Test for the presence of GCC atomic builtins at configure time. If not found,
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 ENABLE_PROFILING
834 DISABLE_ASSERTIONS
835 ENABLE_EXPENSIVE_CHECKS
836 EXPENSIVE_CHECKS
837 DEBUG_RUNTIME
838 JIT
839 TARGET_HAS_JIT
840 ENABLE_DOXYGEN
841 ENABLE_THREADS
842 ENABLE_PIC
843 TARGETS_TO_BUILD
844 ENABLE_CBE_PRINTF_A
845 EXTRA_OPTIONS
846 BINUTILS_INCDIR
847 CXX
848 CXXFLAGS
849 ac_ct_CXX
850 NM
851 ifGNUmake
852 LN_S
853 CMP
854 CP
855 DATE
856 FIND
857 MKDIR
858 MV
859 RANLIB
860 RM
861 SED
862 TAR
863 BINPWD
864 GRAPHVIZ
865 DOT
866 GV
867 DOTTY
868 PERL
869 HAVE_PERL
870 INSTALL_PROGRAM
871 INSTALL_SCRIPT
872 INSTALL_DATA
873 BZIP2
874 DOXYGEN
875 GROFF
876 GZIP
877 POD2HTML
878 POD2MAN
879 RUNTEST
880 TCLSH
881 ZIP
882 OCAMLC
883 OCAMLOPT
884 OCAMLDEP
885 OCAMLDOC
886 GAS
887 INSTALL_LTDL_TRUE
888 INSTALL_LTDL_FALSE
889 CONVENIENCE_LTDL_TRUE
890 CONVENIENCE_LTDL_FALSE
891 LIBADD_DL
892 ECHO
893 AR
894 STRIP
895 CXXCPP
896 F77
897 FFLAGS
898 ac_ct_F77
899 LIBTOOL
900 LLVMGCCCOMMAND
901 LLVMGXXCOMMAND
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 BINDINGS_TO_BUILD
928 ALL_BINDINGS
929 OCAML_LIBDIR
930 ENABLE_VISIBILITY_INLINES_HIDDEN
931 RPATH
932 RDYNAMIC
933 LIBOBJS
934 LTLIBOBJS'
935 ac_subst_files=''
936       ac_precious_vars='build_alias
937 host_alias
938 target_alias
939 CC
940 CFLAGS
941 LDFLAGS
942 CPPFLAGS
943 CPP
944 CXX
945 CXXFLAGS
946 CCC
947 CXXCPP
948 F77
949 FFLAGS'
950 ac_subdirs_all='projects/sample
951 projects/privbracket
952 projects/llvm-stacker
953 projects/llvm-test
954 projects/test-suite
955 projects/llvm-reopt
956 projects/llvm-gcc
957 projects/llvm-java
958 projects/llvm-tv
959 projects/llvm-poolalloc
960 projects/poolalloc
961 projects/llvm-kernel'
962
963 # Initialize some variables set by options.
964 ac_init_help=
965 ac_init_version=false
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
968 cache_file=/dev/null
969 exec_prefix=NONE
970 no_create=
971 no_recursion=
972 prefix=NONE
973 program_prefix=NONE
974 program_suffix=NONE
975 program_transform_name=s,x,x,
976 silent=
977 site=
978 srcdir=
979 verbose=
980 x_includes=NONE
981 x_libraries=NONE
982
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000 infodir='${datarootdir}/info'
1001 htmldir='${docdir}'
1002 dvidir='${docdir}'
1003 pdfdir='${docdir}'
1004 psdir='${docdir}'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1008
1009 ac_prev=
1010 ac_dashdash=
1011 for ac_option
1012 do
1013   # If the previous option needs an argument, assign it.
1014   if test -n "$ac_prev"; then
1015     eval $ac_prev=\$ac_option
1016     ac_prev=
1017     continue
1018   fi
1019
1020   case $ac_option in
1021   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022   *)    ac_optarg=yes ;;
1023   esac
1024
1025   # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027   case $ac_dashdash$ac_option in
1028   --)
1029     ac_dashdash=yes ;;
1030
1031   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032     ac_prev=bindir ;;
1033   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034     bindir=$ac_optarg ;;
1035
1036   -build | --build | --buil | --bui | --bu)
1037     ac_prev=build_alias ;;
1038   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039     build_alias=$ac_optarg ;;
1040
1041   -cache-file | --cache-file | --cache-fil | --cache-fi \
1042   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043     ac_prev=cache_file ;;
1044   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046     cache_file=$ac_optarg ;;
1047
1048   --config-cache | -C)
1049     cache_file=config.cache ;;
1050
1051   -datadir | --datadir | --datadi | --datad)
1052     ac_prev=datadir ;;
1053   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054     datadir=$ac_optarg ;;
1055
1056   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057   | --dataroo | --dataro | --datar)
1058     ac_prev=datarootdir ;;
1059   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061     datarootdir=$ac_optarg ;;
1062
1063   -disable-* | --disable-*)
1064     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065     # Reject names that are not valid shell variable names.
1066     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068    { (exit 1); exit 1; }; }
1069     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070     eval enable_$ac_feature=no ;;
1071
1072   -docdir | --docdir | --docdi | --doc | --do)
1073     ac_prev=docdir ;;
1074   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075     docdir=$ac_optarg ;;
1076
1077   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078     ac_prev=dvidir ;;
1079   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080     dvidir=$ac_optarg ;;
1081
1082   -enable-* | --enable-*)
1083     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084     # Reject names that are not valid shell variable names.
1085     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087    { (exit 1); exit 1; }; }
1088     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1089     eval enable_$ac_feature=\$ac_optarg ;;
1090
1091   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093   | --exec | --exe | --ex)
1094     ac_prev=exec_prefix ;;
1095   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097   | --exec=* | --exe=* | --ex=*)
1098     exec_prefix=$ac_optarg ;;
1099
1100   -gas | --gas | --ga | --g)
1101     # Obsolete; use --with-gas.
1102     with_gas=yes ;;
1103
1104   -help | --help | --hel | --he | -h)
1105     ac_init_help=long ;;
1106   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107     ac_init_help=recursive ;;
1108   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109     ac_init_help=short ;;
1110
1111   -host | --host | --hos | --ho)
1112     ac_prev=host_alias ;;
1113   -host=* | --host=* | --hos=* | --ho=*)
1114     host_alias=$ac_optarg ;;
1115
1116   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117     ac_prev=htmldir ;;
1118   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119   | --ht=*)
1120     htmldir=$ac_optarg ;;
1121
1122   -includedir | --includedir | --includedi | --included | --include \
1123   | --includ | --inclu | --incl | --inc)
1124     ac_prev=includedir ;;
1125   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126   | --includ=* | --inclu=* | --incl=* | --inc=*)
1127     includedir=$ac_optarg ;;
1128
1129   -infodir | --infodir | --infodi | --infod | --info | --inf)
1130     ac_prev=infodir ;;
1131   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132     infodir=$ac_optarg ;;
1133
1134   -libdir | --libdir | --libdi | --libd)
1135     ac_prev=libdir ;;
1136   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137     libdir=$ac_optarg ;;
1138
1139   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140   | --libexe | --libex | --libe)
1141     ac_prev=libexecdir ;;
1142   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143   | --libexe=* | --libex=* | --libe=*)
1144     libexecdir=$ac_optarg ;;
1145
1146   -localedir | --localedir | --localedi | --localed | --locale)
1147     ac_prev=localedir ;;
1148   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149     localedir=$ac_optarg ;;
1150
1151   -localstatedir | --localstatedir | --localstatedi | --localstated \
1152   | --localstate | --localstat | --localsta | --localst | --locals)
1153     ac_prev=localstatedir ;;
1154   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156     localstatedir=$ac_optarg ;;
1157
1158   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159     ac_prev=mandir ;;
1160   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161     mandir=$ac_optarg ;;
1162
1163   -nfp | --nfp | --nf)
1164     # Obsolete; use --without-fp.
1165     with_fp=no ;;
1166
1167   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168   | --no-cr | --no-c | -n)
1169     no_create=yes ;;
1170
1171   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173     no_recursion=yes ;;
1174
1175   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177   | --oldin | --oldi | --old | --ol | --o)
1178     ac_prev=oldincludedir ;;
1179   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182     oldincludedir=$ac_optarg ;;
1183
1184   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185     ac_prev=prefix ;;
1186   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187     prefix=$ac_optarg ;;
1188
1189   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190   | --program-pre | --program-pr | --program-p)
1191     ac_prev=program_prefix ;;
1192   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194     program_prefix=$ac_optarg ;;
1195
1196   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197   | --program-suf | --program-su | --program-s)
1198     ac_prev=program_suffix ;;
1199   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201     program_suffix=$ac_optarg ;;
1202
1203   -program-transform-name | --program-transform-name \
1204   | --program-transform-nam | --program-transform-na \
1205   | --program-transform-n | --program-transform- \
1206   | --program-transform | --program-transfor \
1207   | --program-transfo | --program-transf \
1208   | --program-trans | --program-tran \
1209   | --progr-tra | --program-tr | --program-t)
1210     ac_prev=program_transform_name ;;
1211   -program-transform-name=* | --program-transform-name=* \
1212   | --program-transform-nam=* | --program-transform-na=* \
1213   | --program-transform-n=* | --program-transform-=* \
1214   | --program-transform=* | --program-transfor=* \
1215   | --program-transfo=* | --program-transf=* \
1216   | --program-trans=* | --program-tran=* \
1217   | --progr-tra=* | --program-tr=* | --program-t=*)
1218     program_transform_name=$ac_optarg ;;
1219
1220   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221     ac_prev=pdfdir ;;
1222   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223     pdfdir=$ac_optarg ;;
1224
1225   -psdir | --psdir | --psdi | --psd | --ps)
1226     ac_prev=psdir ;;
1227   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228     psdir=$ac_optarg ;;
1229
1230   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231   | -silent | --silent | --silen | --sile | --sil)
1232     silent=yes ;;
1233
1234   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235     ac_prev=sbindir ;;
1236   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237   | --sbi=* | --sb=*)
1238     sbindir=$ac_optarg ;;
1239
1240   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242   | --sharedst | --shareds | --shared | --share | --shar \
1243   | --sha | --sh)
1244     ac_prev=sharedstatedir ;;
1245   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248   | --sha=* | --sh=*)
1249     sharedstatedir=$ac_optarg ;;
1250
1251   -site | --site | --sit)
1252     ac_prev=site ;;
1253   -site=* | --site=* | --sit=*)
1254     site=$ac_optarg ;;
1255
1256   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257     ac_prev=srcdir ;;
1258   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259     srcdir=$ac_optarg ;;
1260
1261   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262   | --syscon | --sysco | --sysc | --sys | --sy)
1263     ac_prev=sysconfdir ;;
1264   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266     sysconfdir=$ac_optarg ;;
1267
1268   -target | --target | --targe | --targ | --tar | --ta | --t)
1269     ac_prev=target_alias ;;
1270   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271     target_alias=$ac_optarg ;;
1272
1273   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274     verbose=yes ;;
1275
1276   -version | --version | --versio | --versi | --vers | -V)
1277     ac_init_version=: ;;
1278
1279   -with-* | --with-*)
1280     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1283       { echo "$as_me: error: invalid package name: $ac_package" >&2
1284    { (exit 1); exit 1; }; }
1285     ac_package=`echo $ac_package| sed 's/-/_/g'`
1286     eval with_$ac_package=\$ac_optarg ;;
1287
1288   -without-* | --without-*)
1289     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292       { echo "$as_me: error: invalid package name: $ac_package" >&2
1293    { (exit 1); exit 1; }; }
1294     ac_package=`echo $ac_package | sed 's/-/_/g'`
1295     eval with_$ac_package=no ;;
1296
1297   --x)
1298     # Obsolete; use --with-x.
1299     with_x=yes ;;
1300
1301   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302   | --x-incl | --x-inc | --x-in | --x-i)
1303     ac_prev=x_includes ;;
1304   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306     x_includes=$ac_optarg ;;
1307
1308   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310     ac_prev=x_libraries ;;
1311   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313     x_libraries=$ac_optarg ;;
1314
1315   -*) { echo "$as_me: error: unrecognized option: $ac_option
1316 Try \`$0 --help' for more information." >&2
1317    { (exit 1); exit 1; }; }
1318     ;;
1319
1320   *=*)
1321     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322     # Reject names that are not valid shell variable names.
1323     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325    { (exit 1); exit 1; }; }
1326     eval $ac_envvar=\$ac_optarg
1327     export $ac_envvar ;;
1328
1329   *)
1330     # FIXME: should be removed in autoconf 3.0.
1331     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335     ;;
1336
1337   esac
1338 done
1339
1340 if test -n "$ac_prev"; then
1341   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342   { echo "$as_me: error: missing argument to $ac_option" >&2
1343    { (exit 1); exit 1; }; }
1344 fi
1345
1346 # Be sure to have absolute directory names.
1347 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348                 datadir sysconfdir sharedstatedir localstatedir includedir \
1349                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350                 libdir localedir mandir
1351 do
1352   eval ac_val=\$$ac_var
1353   case $ac_val in
1354     [\\/$]* | ?:[\\/]* )  continue;;
1355     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356   esac
1357   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358    { (exit 1); exit 1; }; }
1359 done
1360
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1364 build=$build_alias
1365 host=$host_alias
1366 target=$target_alias
1367
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370   if test "x$build_alias" = x; then
1371     cross_compiling=maybe
1372     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373     If a cross compiler is detected then cross compile mode will be used." >&2
1374   elif test "x$build_alias" != "x$host_alias"; then
1375     cross_compiling=yes
1376   fi
1377 fi
1378
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382 test "$silent" = yes && exec 6>/dev/null
1383
1384
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388   { echo "$as_me: error: Working directory cannot be determined" >&2
1389    { (exit 1); exit 1; }; }
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391   { echo "$as_me: error: pwd does not report name of working directory" >&2
1392    { (exit 1); exit 1; }; }
1393
1394
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397   ac_srcdir_defaulted=yes
1398   # Try the directory containing this script, then the parent directory.
1399   ac_confdir=`$as_dirname -- "$0" ||
1400 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401          X"$0" : 'X\(//\)[^/]' \| \
1402          X"$0" : 'X\(//\)$' \| \
1403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404 echo X"$0" |
1405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)[^/].*/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\/\)$/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\).*/{
1418             s//\1/
1419             q
1420           }
1421           s/.*/./; q'`
1422   srcdir=$ac_confdir
1423   if test ! -r "$srcdir/$ac_unique_file"; then
1424     srcdir=..
1425   fi
1426 else
1427   ac_srcdir_defaulted=no
1428 fi
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432    { (exit 1); exit 1; }; }
1433 fi
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 ac_abs_confdir=`(
1436         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437    { (exit 1); exit 1; }; }
1438         pwd)`
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441   srcdir=.
1442 fi
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1446 case $srcdir in
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 esac
1449 for ac_var in $ac_precious_vars; do
1450   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451   eval ac_env_${ac_var}_value=\$${ac_var}
1452   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1455
1456 #
1457 # Report the --help message.
1458 #
1459 if test "$ac_init_help" = "long"; then
1460   # Omit some internal or obsolete options to make the list less imposing.
1461   # This message is too long to be a string in the A/UX 3.1 sh.
1462   cat <<_ACEOF
1463 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1464
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE.  See below for descriptions of some of the useful variables.
1469
1470 Defaults for the options are specified in brackets.
1471
1472 Configuration:
1473   -h, --help              display this help and exit
1474       --help=short        display options specific to this package
1475       --help=recursive    display the short help of all the included packages
1476   -V, --version           display version information and exit
1477   -q, --quiet, --silent   do not print \`checking...' messages
1478       --cache-file=FILE   cache test results in FILE [disabled]
1479   -C, --config-cache      alias for \`--cache-file=config.cache'
1480   -n, --no-create         do not create output files
1481       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1482
1483 Installation directories:
1484   --prefix=PREFIX         install architecture-independent files in PREFIX
1485                           [$ac_default_prefix]
1486   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1487                           [PREFIX]
1488
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1493
1494 For better control, use the options below.
1495
1496 Fine tuning of the installation directories:
1497   --bindir=DIR           user executables [EPREFIX/bin]
1498   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1499   --libexecdir=DIR       program executables [EPREFIX/libexec]
1500   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1501   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1502   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1503   --libdir=DIR           object code libraries [EPREFIX/lib]
1504   --includedir=DIR       C header files [PREFIX/include]
1505   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1506   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1507   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1508   --infodir=DIR          info documentation [DATAROOTDIR/info]
1509   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1510   --mandir=DIR           man documentation [DATAROOTDIR/man]
1511   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1512   --htmldir=DIR          html documentation [DOCDIR]
1513   --dvidir=DIR           dvi documentation [DOCDIR]
1514   --pdfdir=DIR           pdf documentation [DOCDIR]
1515   --psdir=DIR            ps documentation [DOCDIR]
1516 _ACEOF
1517
1518   cat <<\_ACEOF
1519
1520 System types:
1521   --build=BUILD     configure for building on BUILD [guessed]
1522   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523   --target=TARGET   configure for building compilers for TARGET [HOST]
1524 _ACEOF
1525 fi
1526
1527 if test -n "$ac_init_help"; then
1528   case $ac_init_help in
1529      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1530    esac
1531   cat <<\_ACEOF
1532
1533 Optional Features:
1534   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536   --enable-optimized
1537   --enable-profiling
1538   --enable-assertions
1539   --enable-expensive-checks
1540
1541   --enable-debug-runtime
1542   --enable-jit            Enable Just In Time Compiling (default is YES)
1543   --enable-doxygen        Build doxygen documentation (default is NO)
1544   --enable-threads        Use threads if available (default is YES)
1545   --enable-pic            Build LLVM with Position Independent Code (default
1546                           is YES)
1547   --enable-targets        Build specific host targets:
1548                           all,host-only,{target-name} (default=all)
1549   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1550                           %a (default is YES)
1551   --enable-bindings       Build specific language bindings:
1552                           all,auto,none,{binding-name} (default=auto)
1553   --enable-ltdl-install   install libltdl
1554   --enable-shared[=PKGS]  build shared libraries
1555                           [default=yes]
1556   --enable-static[=PKGS]  build static libraries
1557                           [default=yes]
1558   --enable-fast-install[=PKGS]
1559                           optimize for fast installation
1560                           [default=yes]
1561   --disable-libtool-lock  avoid locking (might break parallel builds)
1562
1563 Optional Packages:
1564   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1565   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1566   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1567                           searches PATH)
1568   --with-llvmgcc          Specify location of llvm-gcc driver (default
1569                           searches PATH)
1570   --with-llvmgxx          Specify location of llvm-g++ driver (default
1571                           searches PATH)
1572   --with-extra-options    Specify additional options to compile LLVM with
1573   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1574                           is stdlib)
1575   --with-binutils-include Specify path to binutils/include/ containing
1576                           plugin-api.h file for gold plugin.
1577   --with-tclinclude       directory where tcl headers are
1578   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1579   --with-pic              try to use only PIC/non-PIC objects [default=use
1580                           both]
1581   --with-tags[=TAGS]      include additional configurations [automatic]
1582   --with-udis86=<path>    Use udis86 external x86 disassembler library
1583
1584 Some influential environment variables:
1585   CC          C compiler command
1586   CFLAGS      C compiler flags
1587   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1588               nonstandard directory <lib dir>
1589   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590               you have headers in a nonstandard directory <include dir>
1591   CPP         C preprocessor
1592   CXX         C++ compiler command
1593   CXXFLAGS    C++ compiler flags
1594   CXXCPP      C++ preprocessor
1595   F77         Fortran 77 compiler command
1596   FFLAGS      Fortran 77 compiler flags
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <llvmbugs@cs.uiuc.edu>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607   # If there are subdirs, report their specific --help.
1608   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609     test -d "$ac_dir" || continue
1610     ac_builddir=.
1611
1612 case "$ac_dir" in
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *)
1615   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1616   # A ".." for each directory in $ac_dir_suffix.
1617   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618   case $ac_top_builddir_sub in
1619   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621   esac ;;
1622 esac
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1627
1628 case $srcdir in
1629   .)  # We are building in place.
1630     ac_srcdir=.
1631     ac_top_srcdir=$ac_top_builddir_sub
1632     ac_abs_top_srcdir=$ac_pwd ;;
1633   [\\/]* | ?:[\\/]* )  # Absolute name.
1634     ac_srcdir=$srcdir$ac_dir_suffix;
1635     ac_top_srcdir=$srcdir
1636     ac_abs_top_srcdir=$srcdir ;;
1637   *) # Relative name.
1638     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639     ac_top_srcdir=$ac_top_build_prefix$srcdir
1640     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 esac
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644     cd "$ac_dir" || { ac_status=$?; continue; }
1645     # Check for guested configure.
1646     if test -f "$ac_srcdir/configure.gnu"; then
1647       echo &&
1648       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649     elif test -f "$ac_srcdir/configure"; then
1650       echo &&
1651       $SHELL "$ac_srcdir/configure" --help=recursive
1652     else
1653       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654     fi || ac_status=$?
1655     cd "$ac_pwd" || { ac_status=$?; break; }
1656   done
1657 fi
1658
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1661   cat <<\_ACEOF
1662 llvm configure 2.6svn
1663 generated by GNU Autoconf 2.60
1664
1665 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1666 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669
1670 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1671 _ACEOF
1672   exit
1673 fi
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1677
1678 It was created by llvm $as_me 2.6svn, which was
1679 generated by GNU Autoconf 2.60.  Invocation command line was
1680
1681   $ $0 $@
1682
1683 _ACEOF
1684 exec 5>>config.log
1685 {
1686 cat <<_ASUNAME
1687 ## --------- ##
1688 ## Platform. ##
1689 ## --------- ##
1690
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1699
1700 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1701 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1704 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1705 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1706 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1707
1708 _ASUNAME
1709
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713   IFS=$as_save_IFS
1714   test -z "$as_dir" && as_dir=.
1715   echo "PATH: $as_dir"
1716 done
1717 IFS=$as_save_IFS
1718
1719 } >&5
1720
1721 cat >&5 <<_ACEOF
1722
1723
1724 ## ----------- ##
1725 ## Core tests. ##
1726 ## ----------- ##
1727
1728 _ACEOF
1729
1730
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_configure_args=
1737 ac_configure_args0=
1738 ac_configure_args1=
1739 ac_must_keep_next=false
1740 for ac_pass in 1 2
1741 do
1742   for ac_arg
1743   do
1744     case $ac_arg in
1745     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747     | -silent | --silent | --silen | --sile | --sil)
1748       continue ;;
1749     *\'*)
1750       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751     esac
1752     case $ac_pass in
1753     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754     2)
1755       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756       if test $ac_must_keep_next = true; then
1757         ac_must_keep_next=false # Got value, back to normal.
1758       else
1759         case $ac_arg in
1760           *=* | --config-cache | -C | -disable-* | --disable-* \
1761           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763           | -with-* | --with-* | -without-* | --without-* | --x)
1764             case "$ac_configure_args0 " in
1765               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766             esac
1767             ;;
1768           -* ) ac_must_keep_next=true ;;
1769         esac
1770       fi
1771       ac_configure_args="$ac_configure_args '$ac_arg'"
1772       ;;
1773     esac
1774   done
1775 done
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log.  We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785   # Save into config.log some information that might help in debugging.
1786   {
1787     echo
1788
1789     cat <<\_ASBOX
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1793 _ASBOX
1794     echo
1795     # The following way of writing the cache mishandles newlines in values,
1796 (
1797   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798     eval ac_val=\$$ac_var
1799     case $ac_val in #(
1800     *${as_nl}*)
1801       case $ac_var in #(
1802       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804       esac
1805       case $ac_var in #(
1806       _ | IFS | as_nl) ;; #(
1807       *) $as_unset $ac_var ;;
1808       esac ;;
1809     esac
1810   done
1811   (set) 2>&1 |
1812     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813     *${as_nl}ac_space=\ *)
1814       sed -n \
1815         "s/'\''/'\''\\\\'\'''\''/g;
1816           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817       ;; #(
1818     *)
1819       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1820       ;;
1821     esac |
1822     sort
1823 )
1824     echo
1825
1826     cat <<\_ASBOX
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1830 _ASBOX
1831     echo
1832     for ac_var in $ac_subst_vars
1833     do
1834       eval ac_val=\$$ac_var
1835       case $ac_val in
1836       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837       esac
1838       echo "$ac_var='\''$ac_val'\''"
1839     done | sort
1840     echo
1841
1842     if test -n "$ac_subst_files"; then
1843       cat <<\_ASBOX
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1847 _ASBOX
1848       echo
1849       for ac_var in $ac_subst_files
1850       do
1851         eval ac_val=\$$ac_var
1852         case $ac_val in
1853         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854         esac
1855         echo "$ac_var='\''$ac_val'\''"
1856       done | sort
1857       echo
1858     fi
1859
1860     if test -s confdefs.h; then
1861       cat <<\_ASBOX
1862 ## ----------- ##
1863 ## confdefs.h. ##
1864 ## ----------- ##
1865 _ASBOX
1866       echo
1867       cat confdefs.h
1868       echo
1869     fi
1870     test "$ac_signal" != 0 &&
1871       echo "$as_me: caught signal $ac_signal"
1872     echo "$as_me: exit $exit_status"
1873   } >&5
1874   rm -f core *.core core.conftest.* &&
1875     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876     exit $exit_status
1877 ' 0
1878 for ac_signal in 1 2 13 15; do
1879   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880 done
1881 ac_signal=0
1882
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1885
1886 # Predefined preprocessor variables.
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910 _ACEOF
1911
1912
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer explicitly selected file to automatically selected ones.
1915 if test -n "$CONFIG_SITE"; then
1916   set x "$CONFIG_SITE"
1917 elif test "x$prefix" != xNONE; then
1918   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919 else
1920   set x "$ac_default_prefix/share/config.site" \
1921         "$ac_default_prefix/etc/config.site"
1922 fi
1923 shift
1924 for ac_site_file
1925 do
1926   if test -r "$ac_site_file"; then
1927     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928 echo "$as_me: loading site script $ac_site_file" >&6;}
1929     sed 's/^/| /' "$ac_site_file" >&5
1930     . "$ac_site_file"
1931   fi
1932 done
1933
1934 if test -r "$cache_file"; then
1935   # Some versions of bash will fail to source /dev/null (special
1936   # files actually), so we avoid doing that.
1937   if test -f "$cache_file"; then
1938     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939 echo "$as_me: loading cache $cache_file" >&6;}
1940     case $cache_file in
1941       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942       *)                      . "./$cache_file";;
1943     esac
1944   fi
1945 else
1946   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947 echo "$as_me: creating cache $cache_file" >&6;}
1948   >$cache_file
1949 fi
1950
1951 # Check that the precious variables saved in the cache have kept the same
1952 # value.
1953 ac_cache_corrupted=false
1954 for ac_var in $ac_precious_vars; do
1955   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956   eval ac_new_set=\$ac_env_${ac_var}_set
1957   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958   eval ac_new_val=\$ac_env_${ac_var}_value
1959   case $ac_old_set,$ac_new_set in
1960     set,)
1961       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963       ac_cache_corrupted=: ;;
1964     ,set)
1965       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967       ac_cache_corrupted=: ;;
1968     ,);;
1969     *)
1970       if test "x$ac_old_val" != "x$ac_new_val"; then
1971         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1974 echo "$as_me:   former value:  $ac_old_val" >&2;}
1975         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1976 echo "$as_me:   current value: $ac_new_val" >&2;}
1977         ac_cache_corrupted=:
1978       fi;;
1979   esac
1980   # Pass precious variables to config.status.
1981   if test "$ac_new_set" = set; then
1982     case $ac_new_val in
1983     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1984     *) ac_arg=$ac_var=$ac_new_val ;;
1985     esac
1986     case " $ac_configure_args " in
1987       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1988       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989     esac
1990   fi
1991 done
1992 if $ac_cache_corrupted; then
1993   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024 ac_ext=c
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029
2030
2031
2032 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2033
2034
2035
2036
2037
2038
2039
2040 ac_aux_dir=
2041 for ac_dir in autoconf "$srcdir"/autoconf; do
2042   if test -f "$ac_dir/install-sh"; then
2043     ac_aux_dir=$ac_dir
2044     ac_install_sh="$ac_aux_dir/install-sh -c"
2045     break
2046   elif test -f "$ac_dir/install.sh"; then
2047     ac_aux_dir=$ac_dir
2048     ac_install_sh="$ac_aux_dir/install.sh -c"
2049     break
2050   elif test -f "$ac_dir/shtool"; then
2051     ac_aux_dir=$ac_dir
2052     ac_install_sh="$ac_aux_dir/shtool install -c"
2053     break
2054   fi
2055 done
2056 if test -z "$ac_aux_dir"; then
2057   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2059    { (exit 1); exit 1; }; }
2060 fi
2061
2062 # These three variables are undocumented and unsupported,
2063 # and are intended to be withdrawn in a future Autoconf release.
2064 # They can cause serious problems if a builder's source tree is in a directory
2065 # whose full name contains unusual characters.
2066 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2067 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2068 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2069
2070
2071
2072 if test ${srcdir} != "." ; then
2073   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2075 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076    { (exit 1); exit 1; }; }
2077   fi
2078 fi
2079
2080 for i in `ls ${srcdir}/projects`
2081 do
2082   if test -d ${srcdir}/projects/${i} ; then
2083     case ${i} in
2084       CVS) ;;
2085       sample)       subdirs="$subdirs projects/sample"
2086     ;;
2087       privbracket)  subdirs="$subdirs projects/privbracket"
2088  ;;
2089       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2090  ;;
2091       # llvm-test is the old name of the test-suite, kept here for backwards
2092       # compatibility
2093       llvm-test)    subdirs="$subdirs projects/llvm-test"
2094  ;;
2095       test-suite)   subdirs="$subdirs projects/test-suite"
2096  ;;
2097       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2098 ;;
2099       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2100   ;;
2101       llvm-java)    subdirs="$subdirs projects/llvm-java"
2102  ;;
2103       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2104    ;;
2105       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2106  ;;
2107       poolalloc)    subdirs="$subdirs projects/poolalloc"
2108  ;;
2109       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2110  ;;
2111       *)
2112         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2113 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2114         ;;
2115     esac
2116   fi
2117 done
2118
2119
2120 # Make sure we can run config.sub.
2121 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2124    { (exit 1); exit 1; }; }
2125
2126 { echo "$as_me:$LINENO: checking build system type" >&5
2127 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2128 if test "${ac_cv_build+set}" = set; then
2129   echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131   ac_build_alias=$build_alias
2132 test "x$ac_build_alias" = x &&
2133   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134 test "x$ac_build_alias" = x &&
2135   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137    { (exit 1); exit 1; }; }
2138 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2141    { (exit 1); exit 1; }; }
2142
2143 fi
2144 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145 echo "${ECHO_T}$ac_cv_build" >&6; }
2146 case $ac_cv_build in
2147 *-*-*) ;;
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149 echo "$as_me: error: invalid value of canonical build" >&2;}
2150    { (exit 1); exit 1; }; };;
2151 esac
2152 build=$ac_cv_build
2153 ac_save_IFS=$IFS; IFS='-'
2154 set x $ac_cv_build
2155 shift
2156 build_cpu=$1
2157 build_vendor=$2
2158 shift; shift
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2161 build_os=$*
2162 IFS=$ac_save_IFS
2163 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2164
2165
2166 { echo "$as_me:$LINENO: checking host system type" >&5
2167 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2168 if test "${ac_cv_host+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   if test "x$host_alias" = x; then
2172   ac_cv_host=$ac_cv_build
2173 else
2174   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2177    { (exit 1); exit 1; }; }
2178 fi
2179
2180 fi
2181 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182 echo "${ECHO_T}$ac_cv_host" >&6; }
2183 case $ac_cv_host in
2184 *-*-*) ;;
2185 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186 echo "$as_me: error: invalid value of canonical host" >&2;}
2187    { (exit 1); exit 1; }; };;
2188 esac
2189 host=$ac_cv_host
2190 ac_save_IFS=$IFS; IFS='-'
2191 set x $ac_cv_host
2192 shift
2193 host_cpu=$1
2194 host_vendor=$2
2195 shift; shift
2196 # Remember, the first character of IFS is used to create $*,
2197 # except with old shells:
2198 host_os=$*
2199 IFS=$ac_save_IFS
2200 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2201
2202
2203 { echo "$as_me:$LINENO: checking target system type" >&5
2204 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2205 if test "${ac_cv_target+set}" = set; then
2206   echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208   if test "x$target_alias" = x; then
2209   ac_cv_target=$ac_cv_host
2210 else
2211   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2212     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2213 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2214    { (exit 1); exit 1; }; }
2215 fi
2216
2217 fi
2218 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219 echo "${ECHO_T}$ac_cv_target" >&6; }
2220 case $ac_cv_target in
2221 *-*-*) ;;
2222 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2223 echo "$as_me: error: invalid value of canonical target" >&2;}
2224    { (exit 1); exit 1; }; };;
2225 esac
2226 target=$ac_cv_target
2227 ac_save_IFS=$IFS; IFS='-'
2228 set x $ac_cv_target
2229 shift
2230 target_cpu=$1
2231 target_vendor=$2
2232 shift; shift
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2235 target_os=$*
2236 IFS=$ac_save_IFS
2237 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2238
2239
2240 # The aliases save the names the user supplied, while $host etc.
2241 # will get canonicalized.
2242 test -n "$target_alias" &&
2243   test "$program_prefix$program_suffix$program_transform_name" = \
2244     NONENONEs,x,x, &&
2245   program_prefix=${target_alias}-
2246
2247 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2248 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2249 if test "${llvm_cv_os_type+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   case $host in
2253   *-*-aix*)
2254     llvm_cv_link_all_option="-Wl,--whole-archive"
2255     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256     llvm_cv_os_type="AIX"
2257     llvm_cv_platform_type="Unix" ;;
2258   *-*-irix*)
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="IRIX"
2262     llvm_cv_platform_type="Unix" ;;
2263   *-*-cygwin*)
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="Cygwin"
2267     llvm_cv_platform_type="Unix" ;;
2268   *-*-darwin*)
2269     llvm_cv_link_all_option="-Wl,-all_load"
2270     llvm_cv_no_link_all_option="-Wl,-noall_load"
2271     llvm_cv_os_type="Darwin"
2272     llvm_cv_platform_type="Unix" ;;
2273   *-*-freebsd*)
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="FreeBSD"
2277     llvm_cv_platform_type="Unix" ;;
2278   *-*-openbsd*)
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="OpenBSD"
2282     llvm_cv_platform_type="Unix" ;;
2283   *-*-netbsd*)
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="NetBSD"
2287     llvm_cv_platform_type="Unix" ;;
2288   *-*-dragonfly*)
2289     llvm_cv_link_all_option="-Wl,--whole-archive"
2290     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291     llvm_cv_os_type="DragonFly"
2292     llvm_cv_platform_type="Unix" ;;
2293   *-*-hpux*)
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="HP-UX"
2297     llvm_cv_platform_type="Unix" ;;
2298   *-*-interix*)
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="Interix"
2302     llvm_cv_platform_type="Unix" ;;
2303   *-*-linux*)
2304     llvm_cv_link_all_option="-Wl,--whole-archive"
2305     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306     llvm_cv_os_type="Linux"
2307     llvm_cv_platform_type="Unix" ;;
2308   *-*-solaris*)
2309     llvm_cv_link_all_option="-Wl,-z,allextract"
2310     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2311     llvm_cv_os_type="SunOS"
2312     llvm_cv_platform_type="Unix" ;;
2313   *-*-win32*)
2314     llvm_cv_link_all_option="-Wl,--whole-archive"
2315     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316     llvm_cv_os_type="Win32"
2317     llvm_cv_platform_type="Win32" ;;
2318   *-*-mingw*)
2319     llvm_cv_link_all_option="-Wl,--whole-archive"
2320     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321     llvm_cv_os_type="MingW"
2322     llvm_cv_platform_type="Win32" ;;
2323   *)
2324     llvm_cv_link_all_option=""
2325     llvm_cv_no_link_all_option=""
2326     llvm_cv_os_type="Unknown"
2327     llvm_cv_platform_type="Unknown" ;;
2328 esac
2329 fi
2330 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2331 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2332
2333 if test "$llvm_cv_os_type" = "Unknown" ; then
2334   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2335 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2336    { (exit 1); exit 1; }; }
2337 fi
2338
2339 OS=$llvm_cv_os_type
2340
2341
2342 LINKALL=$llvm_cv_link_all_option
2343
2344 NOLINKALL=$llvm_cv_no_link_all_option
2345
2346
2347 case $llvm_cv_platform_type in
2348   Unix)
2349
2350 cat >>confdefs.h <<\_ACEOF
2351 #define LLVM_ON_UNIX 1
2352 _ACEOF
2353
2354     LLVM_ON_UNIX=1
2355
2356     LLVM_ON_WIN32=0
2357
2358     ;;
2359   Win32)
2360
2361 cat >>confdefs.h <<\_ACEOF
2362 #define LLVM_ON_WIN32 1
2363 _ACEOF
2364
2365     LLVM_ON_UNIX=0
2366
2367     LLVM_ON_WIN32=1
2368
2369     ;;
2370 esac
2371
2372 { echo "$as_me:$LINENO: checking target architecture" >&5
2373 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2374 if test "${llvm_cv_target_arch+set}" = set; then
2375   echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377   case $target in
2378   i?86-*)                 llvm_cv_target_arch="x86" ;;
2379   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2380   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2381   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2382   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2383   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2384   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2385   mips-*)                 llvm_cv_target_arch="Mips" ;;
2386   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2387   xcore-*)                llvm_cv_target_arch="XCore" ;;
2388   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2389   *)                      llvm_cv_target_arch="Unknown" ;;
2390 esac
2391 fi
2392 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2393 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2394
2395 if test "$llvm_cv_target_arch" = "Unknown" ; then
2396   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2397 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2398 fi
2399
2400 ARCH=$llvm_cv_target_arch
2401
2402
2403 ac_ext=c
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408 if test -n "$ac_tool_prefix"; then
2409   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   if test -n "$CC"; then
2417   ac_cv_prog_CC="$CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424   for ac_exec_ext in '' $ac_executable_extensions; do
2425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2426     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431 done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 CC=$ac_cv_prog_CC
2437 if test -n "$CC"; then
2438   { echo "$as_me:$LINENO: result: $CC" >&5
2439 echo "${ECHO_T}$CC" >&6; }
2440 else
2441   { echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6; }
2443 fi
2444
2445
2446 fi
2447 if test -z "$ac_cv_prog_CC"; then
2448   ac_ct_CC=$CC
2449   # Extract the first word of "gcc", so it can be a program name with args.
2450 set dummy gcc; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2454   echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456   if test -n "$ac_ct_CC"; then
2457   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462   IFS=$as_save_IFS
2463   test -z "$as_dir" && as_dir=.
2464   for ac_exec_ext in '' $ac_executable_extensions; do
2465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2466     ac_cv_prog_ac_ct_CC="gcc"
2467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468     break 2
2469   fi
2470 done
2471 done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477 if test -n "$ac_ct_CC"; then
2478   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479 echo "${ECHO_T}$ac_ct_CC" >&6; }
2480 else
2481   { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2483 fi
2484
2485   if test "x$ac_ct_CC" = x; then
2486     CC=""
2487   else
2488     case $cross_compiling:$ac_tool_warned in
2489 yes:)
2490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet.  If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&5
2493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet.  If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498     CC=$ac_ct_CC
2499   fi
2500 else
2501   CC="$ac_cv_prog_CC"
2502 fi
2503
2504 if test -z "$CC"; then
2505           if test -n "$ac_tool_prefix"; then
2506     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}cc; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   if test -n "$CC"; then
2514   ac_cv_prog_CC="$CC" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519   IFS=$as_save_IFS
2520   test -z "$as_dir" && as_dir=.
2521   for ac_exec_ext in '' $ac_executable_extensions; do
2522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2523     ac_cv_prog_CC="${ac_tool_prefix}cc"
2524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525     break 2
2526   fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 CC=$ac_cv_prog_CC
2534 if test -n "$CC"; then
2535   { echo "$as_me:$LINENO: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6; }
2537 else
2538   { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2540 fi
2541
2542
2543   fi
2544 fi
2545 if test -z "$CC"; then
2546   # Extract the first word of "cc", so it can be a program name with args.
2547 set dummy cc; ac_word=$2
2548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then
2551   echo $ECHO_N "(cached) $ECHO_C" >&6
2552 else
2553   if test -n "$CC"; then
2554   ac_cv_prog_CC="$CC" # Let the user override the test.
2555 else
2556   ac_prog_rejected=no
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560   IFS=$as_save_IFS
2561   test -z "$as_dir" && as_dir=.
2562   for ac_exec_ext in '' $ac_executable_extensions; do
2563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2564     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565        ac_prog_rejected=yes
2566        continue
2567      fi
2568     ac_cv_prog_CC="cc"
2569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570     break 2
2571   fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 if test $ac_prog_rejected = yes; then
2577   # We found a bogon in the path, so make sure we never use it.
2578   set dummy $ac_cv_prog_CC
2579   shift
2580   if test $# != 0; then
2581     # We chose a different compiler from the bogus one.
2582     # However, it has the same basename, so the bogon will be chosen
2583     # first if we set CC to just the basename; use the full file name.
2584     shift
2585     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586   fi
2587 fi
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592   { echo "$as_me:$LINENO: result: $CC" >&5
2593 echo "${ECHO_T}$CC" >&6; }
2594 else
2595   { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2597 fi
2598
2599
2600 fi
2601 if test -z "$CC"; then
2602   if test -n "$ac_tool_prefix"; then
2603   for ac_prog in cl.exe
2604   do
2605     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   if test -n "$CC"; then
2613   ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2622     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 CC=$ac_cv_prog_CC
2633 if test -n "$CC"; then
2634   { echo "$as_me:$LINENO: result: $CC" >&5
2635 echo "${ECHO_T}$CC" >&6; }
2636 else
2637   { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2639 fi
2640
2641
2642     test -n "$CC" && break
2643   done
2644 fi
2645 if test -z "$CC"; then
2646   ac_ct_CC=$CC
2647   for ac_prog in cl.exe
2648 do
2649   # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654   echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656   if test -n "$ac_ct_CC"; then
2657   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664   for ac_exec_ext in '' $ac_executable_extensions; do
2665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2666     ac_cv_prog_ac_ct_CC="$ac_prog"
2667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679 echo "${ECHO_T}$ac_ct_CC" >&6; }
2680 else
2681   { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2683 fi
2684
2685
2686   test -n "$ac_ct_CC" && break
2687 done
2688
2689   if test "x$ac_ct_CC" = x; then
2690     CC=""
2691   else
2692     case $cross_compiling:$ac_tool_warned in
2693 yes:)
2694 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2695 whose name does not start with the host triplet.  If you think this
2696 configuration is useful to you, please write to autoconf@gnu.org." >&5
2697 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2698 whose name does not start with the host triplet.  If you think this
2699 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2700 ac_tool_warned=yes ;;
2701 esac
2702     CC=$ac_ct_CC
2703   fi
2704 fi
2705
2706 fi
2707
2708
2709 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: no acceptable C compiler found in \$PATH
2712 See \`config.log' for more details." >&2;}
2713    { (exit 1); exit 1; }; }
2714
2715 # Provide some information about the compiler.
2716 echo "$as_me:$LINENO: checking for C compiler version" >&5
2717 ac_compiler=`set X $ac_compile; echo $2`
2718 { (ac_try="$ac_compiler --version >&5"
2719 case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_compiler --version >&5") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }
2728 { (ac_try="$ac_compiler -v >&5"
2729 case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_compiler -v >&5") 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }
2738 { (ac_try="$ac_compiler -V >&5"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_compiler -V >&5") 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }
2748
2749 cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2755
2756 int
2757 main ()
2758 {
2759
2760   ;
2761   return 0;
2762 }
2763 _ACEOF
2764 ac_clean_files_save=$ac_clean_files
2765 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2766 # Try to create an executable without -o first, disregard a.out.
2767 # It will help us diagnose broken compilers, and finding out an intuition
2768 # of exeext.
2769 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2770 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2771 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2772 #
2773 # List of possible output files, starting from the most likely.
2774 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2775 # only as a last resort.  b.out is created by i960 compilers.
2776 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2777 #
2778 # The IRIX 6 linker writes into existing files which may not be
2779 # executable, retaining their permissions.  Remove them first so a
2780 # subsequent execution test works.
2781 ac_rmfiles=
2782 for ac_file in $ac_files
2783 do
2784   case $ac_file in
2785     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2786     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2787   esac
2788 done
2789 rm -f $ac_rmfiles
2790
2791 if { (ac_try="$ac_link_default"
2792 case "(($ac_try" in
2793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794   *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797   (eval "$ac_link_default") 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }; then
2801   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2804 # so that the user can short-circuit this test for compilers unknown to
2805 # Autoconf.
2806 for ac_file in $ac_files
2807 do
2808   test -f "$ac_file" || continue
2809   case $ac_file in
2810     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2811         ;;
2812     [ab].out )
2813         # We found the default executable, but exeext='' is most
2814         # certainly right.
2815         break;;
2816     *.* )
2817         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2818         then :; else
2819            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2820         fi
2821         # We set ac_cv_exeext here because the later test for it is not
2822         # safe: cross compilers may not add the suffix if given an `-o'
2823         # argument, so we may need to know it at that point already.
2824         # Even if this section looks crufty: it has the advantage of
2825         # actually working.
2826         break;;
2827     * )
2828         break;;
2829   esac
2830 done
2831 test "$ac_cv_exeext" = no && ac_cv_exeext=
2832
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: C compiler cannot create executables
2840 See \`config.log' for more details." >&2;}
2841    { (exit 77); exit 77; }; }
2842 fi
2843
2844 ac_exeext=$ac_cv_exeext
2845 { echo "$as_me:$LINENO: result: $ac_file" >&5
2846 echo "${ECHO_T}$ac_file" >&6; }
2847
2848 # Check that the compiler produces executables we can run.  If not, either
2849 # the compiler is broken, or we cross compile.
2850 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2851 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2852 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2853 # If not cross compiling, check that we can run a simple program.
2854 if test "$cross_compiling" != yes; then
2855   if { ac_try='./$ac_file'
2856   { (case "(($ac_try" in
2857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858   *) ac_try_echo=$ac_try;;
2859 esac
2860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861   (eval "$ac_try") 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }; }; then
2865     cross_compiling=no
2866   else
2867     if test "$cross_compiling" = maybe; then
2868         cross_compiling=yes
2869     else
2870         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: cannot run C compiled programs.
2874 If you meant to cross compile, use \`--host'.
2875 See \`config.log' for more details." >&2;}
2876    { (exit 1); exit 1; }; }
2877     fi
2878   fi
2879 fi
2880 { echo "$as_me:$LINENO: result: yes" >&5
2881 echo "${ECHO_T}yes" >&6; }
2882
2883 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2884 ac_clean_files=$ac_clean_files_save
2885 # Check that the compiler produces executables we can run.  If not, either
2886 # the compiler is broken, or we cross compile.
2887 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2888 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2889 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2890 echo "${ECHO_T}$cross_compiling" >&6; }
2891
2892 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2893 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2894 if { (ac_try="$ac_link"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_link") 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; then
2904   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2906 # work properly (i.e., refer to `conftest.exe'), while it won't with
2907 # `rm'.
2908 for ac_file in conftest.exe conftest conftest.*; do
2909   test -f "$ac_file" || continue
2910   case $ac_file in
2911     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2912     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913           break;;
2914     * ) break;;
2915   esac
2916 done
2917 else
2918   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2919 See \`config.log' for more details." >&5
2920 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2921 See \`config.log' for more details." >&2;}
2922    { (exit 1); exit 1; }; }
2923 fi
2924
2925 rm -f conftest$ac_cv_exeext
2926 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2927 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2928
2929 rm -f conftest.$ac_ext
2930 EXEEXT=$ac_cv_exeext
2931 ac_exeext=$EXEEXT
2932 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2933 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2934 if test "${ac_cv_objext+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h.  */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h.  */
2943
2944 int
2945 main ()
2946 {
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 rm -f conftest.o conftest.obj
2953 if { (ac_try="$ac_compile"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_compile") 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; then
2963   for ac_file in conftest.o conftest.obj conftest.*; do
2964   test -f "$ac_file" || continue;
2965   case $ac_file in
2966     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2967     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2968        break;;
2969   esac
2970 done
2971 else
2972   echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2976 See \`config.log' for more details." >&5
2977 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2978 See \`config.log' for more details." >&2;}
2979    { (exit 1); exit 1; }; }
2980 fi
2981
2982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2983 fi
2984 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2985 echo "${ECHO_T}$ac_cv_objext" >&6; }
2986 OBJEXT=$ac_cv_objext
2987 ac_objext=$OBJEXT
2988 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2989 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2990 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2991   echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993   cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h.  */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h.  */
2999
3000 int
3001 main ()
3002 {
3003 #ifndef __GNUC__
3004        choke me
3005 #endif
3006
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } &&
3025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3026   { (case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_try") 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; } &&
3035          { ac_try='test -s conftest.$ac_objext'
3036   { (case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; }; then
3045   ac_compiler_gnu=yes
3046 else
3047   echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050         ac_compiler_gnu=no
3051 fi
3052
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3055
3056 fi
3057 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3059 GCC=`test $ac_compiler_gnu = yes && echo yes`
3060 ac_test_CFLAGS=${CFLAGS+set}
3061 ac_save_CFLAGS=$CFLAGS
3062 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_cc_g+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   ac_save_c_werror_flag=$ac_c_werror_flag
3068    ac_c_werror_flag=yes
3069    ac_cv_prog_cc_g=no
3070    CFLAGS="-g"
3071    cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077
3078 int
3079 main ()
3080 {
3081
3082   ;
3083   return 0;
3084 }
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3094   ac_status=$?
3095   grep -v '^ *+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } &&
3100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3101   { (case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_try") 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; } &&
3110          { ac_try='test -s conftest.$ac_objext'
3111   { (case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_try") 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }; }; then
3120   ac_cv_prog_cc_g=yes
3121 else
3122   echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125         CFLAGS=""
3126       cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132
3133 int
3134 main ()
3135 {
3136
3137   ;
3138   return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3149   ac_status=$?
3150   grep -v '^ *+' conftest.er1 >conftest.err
3151   rm -f conftest.er1
3152   cat conftest.err >&5
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); } &&
3155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156   { (case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_try") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; } &&
3165          { ac_try='test -s conftest.$ac_objext'
3166   { (case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_try") 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; }; then
3175   :
3176 else
3177   echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180         ac_c_werror_flag=$ac_save_c_werror_flag
3181          CFLAGS="-g"
3182          cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h.  */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h.  */
3188
3189 int
3190 main ()
3191 {
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } &&
3211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3212   { (case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217   (eval "$ac_try") 2>&5
3218   ac_status=$?
3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); }; } &&
3221          { ac_try='test -s conftest.$ac_objext'
3222   { (case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227   (eval "$ac_try") 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }; }; then
3231   ac_cv_prog_cc_g=yes
3232 else
3233   echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 fi
3241
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246    ac_c_werror_flag=$ac_save_c_werror_flag
3247 fi
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251   CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253   if test "$GCC" = yes; then
3254     CFLAGS="-g -O2"
3255   else
3256     CFLAGS="-g"
3257   fi
3258 else
3259   if test "$GCC" = yes; then
3260     CFLAGS="-O2"
3261   else
3262     CFLAGS=
3263   fi
3264 fi
3265 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_cc_c89+set}" = set; then
3268   echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270   ac_cv_prog_cc_c89=no
3271 ac_save_CC=$CC
3272 cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278 #include <stdarg.h>
3279 #include <stdio.h>
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3286      char **p;
3287      int i;
3288 {
3289   return p[i];
3290 }
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3292 {
3293   char *s;
3294   va_list v;
3295   va_start (v,p);
3296   s = g (p, va_arg (v,int));
3297   va_end (v);
3298   return s;
3299 }
3300
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3302    function prototypes and stuff, but not '\xHH' hex character constants.
3303    These don't provoke an error unfortunately, instead are silently treated
3304    as 'x'.  The following induces an error, until -std is added to get
3305    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3306    array size at least.  It's necessary to write '\x00'==0 to get something
3307    that's true only with -std.  */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311    inside strings and character constants.  */
3312 #define FOO(x) 'x'
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 int argc;
3320 char **argv;
3321 int
3322 main ()
3323 {
3324 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332   CC="$ac_save_CC $ac_arg"
3333   rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } &&
3347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3348   { (case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_try") 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); }; } &&
3357          { ac_try='test -s conftest.$ac_objext'
3358   { (case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_try") 2>&5
3364   ac_status=$?
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }; }; then
3367   ac_cv_prog_cc_c89=$ac_arg
3368 else
3369   echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
3373 fi
3374
3375 rm -f core conftest.err conftest.$ac_objext
3376   test "x$ac_cv_prog_cc_c89" != "xno" && break
3377 done
3378 rm -f conftest.$ac_ext
3379 CC=$ac_save_CC
3380
3381 fi
3382 # AC_CACHE_VAL
3383 case "x$ac_cv_prog_cc_c89" in
3384   x)
3385     { echo "$as_me:$LINENO: result: none needed" >&5
3386 echo "${ECHO_T}none needed" >&6; } ;;
3387   xno)
3388     { echo "$as_me:$LINENO: result: unsupported" >&5
3389 echo "${ECHO_T}unsupported" >&6; } ;;
3390   *)
3391     CC="$CC $ac_cv_prog_cc_c89"
3392     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3394 esac
3395
3396
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402
3403
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3410 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3411 # On Suns, sometimes $CPP names a directory.
3412 if test -n "$CPP" && test -d "$CPP"; then
3413   CPP=
3414 fi
3415 if test -z "$CPP"; then
3416   if test "${ac_cv_prog_CPP+set}" = set; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419       # Double quotes because CPP needs to be expanded
3420     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3421     do
3422       ac_preproc_ok=false
3423 for ac_c_preproc_warn_flag in '' yes
3424 do
3425   # Use a header file that comes with gcc, so configuring glibc
3426   # with a fresh cross-compiler works.
3427   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428   # <limits.h> exists even on freestanding compilers.
3429   # On the NeXT, cc -E runs the code through the compiler's parser,
3430   # not just through cpp. "Syntax error" is here to catch this case.
3431   cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h.  */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h.  */
3437 #ifdef __STDC__
3438 # include <limits.h>
3439 #else
3440 # include <assert.h>
3441 #endif
3442                      Syntax error
3443 _ACEOF
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } >/dev/null; then
3457   if test -s conftest.err; then
3458     ac_cpp_err=$ac_c_preproc_warn_flag
3459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460   else
3461     ac_cpp_err=
3462   fi
3463 else
3464   ac_cpp_err=yes
3465 fi
3466 if test -z "$ac_cpp_err"; then
3467   :
3468 else
3469   echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472   # Broken: fails on valid input.
3473 continue
3474 fi
3475
3476 rm -f conftest.err conftest.$ac_ext
3477
3478   # OK, works on sane cases.  Now check whether nonexistent headers
3479   # can be detected and how.
3480   cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486 #include <ac_nonexistent.h>
3487 _ACEOF
3488 if { (ac_try="$ac_cpp conftest.$ac_ext"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } >/dev/null; then
3501   if test -s conftest.err; then
3502     ac_cpp_err=$ac_c_preproc_warn_flag
3503     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504   else
3505     ac_cpp_err=
3506   fi
3507 else
3508   ac_cpp_err=yes
3509 fi
3510 if test -z "$ac_cpp_err"; then
3511   # Broken: success on invalid input.
3512 continue
3513 else
3514   echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517   # Passes both tests.
3518 ac_preproc_ok=:
3519 break
3520 fi
3521
3522 rm -f conftest.err conftest.$ac_ext
3523
3524 done
3525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526 rm -f conftest.err conftest.$ac_ext
3527 if $ac_preproc_ok; then
3528   break
3529 fi
3530
3531     done
3532     ac_cv_prog_CPP=$CPP
3533
3534 fi
3535   CPP=$ac_cv_prog_CPP
3536 else
3537   ac_cv_prog_CPP=$CPP
3538 fi
3539 { echo "$as_me:$LINENO: result: $CPP" >&5
3540 echo "${ECHO_T}$CPP" >&6; }
3541 ac_preproc_ok=false
3542 for ac_c_preproc_warn_flag in '' yes
3543 do
3544   # Use a header file that comes with gcc, so configuring glibc
3545   # with a fresh cross-compiler works.
3546   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547   # <limits.h> exists even on freestanding compilers.
3548   # On the NeXT, cc -E runs the code through the compiler's parser,
3549   # not just through cpp. "Syntax error" is here to catch this case.
3550   cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h.  */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h.  */
3556 #ifdef __STDC__
3557 # include <limits.h>
3558 #else
3559 # include <assert.h>
3560 #endif
3561                      Syntax error
3562 _ACEOF
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } >/dev/null; then
3576   if test -s conftest.err; then
3577     ac_cpp_err=$ac_c_preproc_warn_flag
3578     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579   else
3580     ac_cpp_err=
3581   fi
3582 else
3583   ac_cpp_err=yes
3584 fi
3585 if test -z "$ac_cpp_err"; then
3586   :
3587 else
3588   echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591   # Broken: fails on valid input.
3592 continue
3593 fi
3594
3595 rm -f conftest.err conftest.$ac_ext
3596
3597   # OK, works on sane cases.  Now check whether nonexistent headers
3598   # can be detected and how.
3599   cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605 #include <ac_nonexistent.h>
3606 _ACEOF
3607 if { (ac_try="$ac_cpp conftest.$ac_ext"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
3617   cat conftest.err >&5
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); } >/dev/null; then
3620   if test -s conftest.err; then
3621     ac_cpp_err=$ac_c_preproc_warn_flag
3622     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3623   else
3624     ac_cpp_err=
3625   fi
3626 else
3627   ac_cpp_err=yes
3628 fi
3629 if test -z "$ac_cpp_err"; then
3630   # Broken: success on invalid input.
3631 continue
3632 else
3633   echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636   # Passes both tests.
3637 ac_preproc_ok=:
3638 break
3639 fi
3640
3641 rm -f conftest.err conftest.$ac_ext
3642
3643 done
3644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645 rm -f conftest.err conftest.$ac_ext
3646 if $ac_preproc_ok; then
3647   :
3648 else
3649   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3650 See \`config.log' for more details." >&5
3651 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3652 See \`config.log' for more details." >&2;}
3653    { (exit 1); exit 1; }; }
3654 fi
3655
3656 ac_ext=c
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
3662
3663 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3664 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3665 if test "${ac_cv_path_GREP+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   # Extract the first word of "grep ggrep" to use in msg output
3669 if test -z "$GREP"; then
3670 set dummy grep ggrep; ac_prog_name=$2
3671 if test "${ac_cv_path_GREP+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   ac_path_GREP_found=false
3675 # Loop through the user's path and test for each of PROGNAME-LIST
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681   for ac_prog in grep ggrep; do
3682   for ac_exec_ext in '' $ac_executable_extensions; do
3683     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3684     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3685     # Check for GNU ac_path_GREP and select it if it is found.
3686   # Check for GNU $ac_path_GREP
3687 case `"$ac_path_GREP" --version 2>&1` in
3688 *GNU*)
3689   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3690 *)
3691   ac_count=0
3692   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3693   while :
3694   do
3695     cat "conftest.in" "conftest.in" >"conftest.tmp"
3696     mv "conftest.tmp" "conftest.in"
3697     cp "conftest.in" "conftest.nl"
3698     echo 'GREP' >> "conftest.nl"
3699     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701     ac_count=`expr $ac_count + 1`
3702     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3703       # Best one so far, save it but keep looking for a better one
3704       ac_cv_path_GREP="$ac_path_GREP"
3705       ac_path_GREP_max=$ac_count
3706     fi
3707     # 10*(2^10) chars as input seems more than enough
3708     test $ac_count -gt 10 && break
3709   done
3710   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711 esac
3712
3713
3714     $ac_path_GREP_found && break 3
3715   done
3716 done
3717
3718 done
3719 IFS=$as_save_IFS
3720
3721
3722 fi
3723
3724 GREP="$ac_cv_path_GREP"
3725 if test -z "$GREP"; then
3726   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728    { (exit 1); exit 1; }; }
3729 fi
3730
3731 else
3732   ac_cv_path_GREP=$GREP
3733 fi
3734
3735
3736 fi
3737 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3738 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3739  GREP="$ac_cv_path_GREP"
3740
3741
3742 { echo "$as_me:$LINENO: checking for egrep" >&5
3743 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3744 if test "${ac_cv_path_EGREP+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3748    then ac_cv_path_EGREP="$GREP -E"
3749    else
3750      # Extract the first word of "egrep" to use in msg output
3751 if test -z "$EGREP"; then
3752 set dummy egrep; ac_prog_name=$2
3753 if test "${ac_cv_path_EGREP+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   ac_path_EGREP_found=false
3757 # Loop through the user's path and test for each of PROGNAME-LIST
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763   for ac_prog in egrep; do
3764   for ac_exec_ext in '' $ac_executable_extensions; do
3765     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3766     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3767     # Check for GNU ac_path_EGREP and select it if it is found.
3768   # Check for GNU $ac_path_EGREP
3769 case `"$ac_path_EGREP" --version 2>&1` in
3770 *GNU*)
3771   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3772 *)
3773   ac_count=0
3774   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3775   while :
3776   do
3777     cat "conftest.in" "conftest.in" >"conftest.tmp"
3778     mv "conftest.tmp" "conftest.in"
3779     cp "conftest.in" "conftest.nl"
3780     echo 'EGREP' >> "conftest.nl"
3781     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783     ac_count=`expr $ac_count + 1`
3784     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3785       # Best one so far, save it but keep looking for a better one
3786       ac_cv_path_EGREP="$ac_path_EGREP"
3787       ac_path_EGREP_max=$ac_count
3788     fi
3789     # 10*(2^10) chars as input seems more than enough
3790     test $ac_count -gt 10 && break
3791   done
3792   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793 esac
3794
3795
3796     $ac_path_EGREP_found && break 3
3797   done
3798 done
3799
3800 done
3801 IFS=$as_save_IFS
3802
3803
3804 fi
3805
3806 EGREP="$ac_cv_path_EGREP"
3807 if test -z "$EGREP"; then
3808   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810    { (exit 1); exit 1; }; }
3811 fi
3812
3813 else
3814   ac_cv_path_EGREP=$EGREP
3815 fi
3816
3817
3818    fi
3819 fi
3820 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3821 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3822  EGREP="$ac_cv_path_EGREP"
3823
3824
3825 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3827 if test "${ac_cv_header_stdc+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836 #include <stdlib.h>
3837 #include <stdarg.h>
3838 #include <string.h>
3839 #include <float.h>
3840
3841 int
3842 main ()
3843 {
3844
3845   ;
3846   return 0;
3847 }
3848 _ACEOF
3849 rm -f conftest.$ac_objext
3850 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3857   ac_status=$?
3858   grep -v '^ *+' conftest.er1 >conftest.err
3859   rm -f conftest.er1
3860   cat conftest.err >&5
3861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862   (exit $ac_status); } &&
3863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3864   { (case "(($ac_try" in
3865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866   *) ac_try_echo=$ac_try;;
3867 esac
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869   (eval "$ac_try") 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); }; } &&
3873          { ac_try='test -s conftest.$ac_objext'
3874   { (case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879   (eval "$ac_try") 2>&5
3880   ac_status=$?
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); }; }; then
3883   ac_cv_header_stdc=yes
3884 else
3885   echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888         ac_cv_header_stdc=no
3889 fi
3890
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892
3893 if test $ac_cv_header_stdc = yes; then
3894   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895   cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h.  */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h.  */
3901 #include <string.h>
3902
3903 _ACEOF
3904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905   $EGREP "memchr" >/dev/null 2>&1; then
3906   :
3907 else
3908   ac_cv_header_stdc=no
3909 fi
3910 rm -f conftest*
3911
3912 fi
3913
3914 if test $ac_cv_header_stdc = yes; then
3915   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916   cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922 #include <stdlib.h>
3923
3924 _ACEOF
3925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3926   $EGREP "free" >/dev/null 2>&1; then
3927   :
3928 else
3929   ac_cv_header_stdc=no
3930 fi
3931 rm -f conftest*
3932
3933 fi
3934
3935 if test $ac_cv_header_stdc = yes; then
3936   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937   if test "$cross_compiling" = yes; then
3938   :
3939 else
3940   cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h.  */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h.  */
3946 #include <ctype.h>
3947 #include <stdlib.h>
3948 #if ((' ' & 0x0FF) == 0x020)
3949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3951 #else
3952 # define ISLOWER(c) \
3953                    (('a' <= (c) && (c) <= 'i') \
3954                      || ('j' <= (c) && (c) <= 'r') \
3955                      || ('s' <= (c) && (c) <= 'z'))
3956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957 #endif
3958
3959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3960 int
3961 main ()
3962 {
3963   int i;
3964   for (i = 0; i < 256; i++)
3965     if (XOR (islower (i), ISLOWER (i))
3966         || toupper (i) != TOUPPER (i))
3967       return 2;
3968   return 0;
3969 }
3970 _ACEOF
3971 rm -f conftest$ac_exeext
3972 if { (ac_try="$ac_link"
3973 case "(($ac_try" in
3974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975   *) ac_try_echo=$ac_try;;
3976 esac
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978   (eval "$ac_link") 2>&5
3979   ac_status=$?
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3982   { (case "(($ac_try" in
3983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984   *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987   (eval "$ac_try") 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; }; then
3991   :
3992 else
3993   echo "$as_me: program exited with status $ac_status" >&5
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997 ( exit $ac_status )
3998 ac_cv_header_stdc=no
3999 fi
4000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001 fi
4002
4003
4004 fi
4005 fi
4006 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4008 if test $ac_cv_header_stdc = yes; then
4009
4010 cat >>confdefs.h <<\_ACEOF
4011 #define STDC_HEADERS 1
4012 _ACEOF
4013
4014 fi
4015
4016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027                   inttypes.h stdint.h unistd.h
4028 do
4029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h.  */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h.  */
4041 $ac_includes_default
4042
4043 #include <$ac_header>
4044 _ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4053   ac_status=$?
4054   grep -v '^ *+' conftest.er1 >conftest.err
4055   rm -f conftest.er1
4056   cat conftest.err >&5
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); } &&
4059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4060   { (case "(($ac_try" in
4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062   *) ac_try_echo=$ac_try;;
4063 esac
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065   (eval "$ac_try") 2>&5
4066   ac_status=$?
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); }; } &&
4069          { ac_try='test -s conftest.$ac_objext'
4070   { (case "(($ac_try" in
4071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072   *) ac_try_echo=$ac_try;;
4073 esac
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075   (eval "$ac_try") 2>&5
4076   ac_status=$?
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); }; }; then
4079   eval "$as_ac_Header=yes"
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084         eval "$as_ac_Header=no"
4085 fi
4086
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 fi
4089 ac_res=`eval echo '${'$as_ac_Header'}'`
4090                { echo "$as_me:$LINENO: result: $ac_res" >&5
4091 echo "${ECHO_T}$ac_res" >&6; }
4092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093   cat >>confdefs.h <<_ACEOF
4094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095 _ACEOF
4096
4097 fi
4098
4099 done
4100
4101
4102 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4103 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4104 if test "${ac_cv_c_bigendian+set}" = set; then
4105   echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107   # See if sys/param.h defines the BYTE_ORDER macro.
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #include <sys/types.h>
4115 #include <sys/param.h>
4116
4117 int
4118 main ()
4119 {
4120 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4121  bogus endian macros
4122 #endif
4123
4124   ;
4125   return 0;
4126 }
4127 _ACEOF
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4136   ac_status=$?
4137   grep -v '^ *+' conftest.er1 >conftest.err
4138   rm -f conftest.er1
4139   cat conftest.err >&5
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); } &&
4142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4143   { (case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148   (eval "$ac_try") 2>&5
4149   ac_status=$?
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); }; } &&
4152          { ac_try='test -s conftest.$ac_objext'
4153   { (case "(($ac_try" in
4154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155   *) ac_try_echo=$ac_try;;
4156 esac
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158   (eval "$ac_try") 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; }; then
4162   # It does; now see whether it defined to BIG_ENDIAN or not.
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169 #include <sys/types.h>
4170 #include <sys/param.h>
4171
4172 int
4173 main ()
4174 {
4175 #if BYTE_ORDER != BIG_ENDIAN
4176  not big endian
4177 #endif
4178
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 rm -f conftest.$ac_objext
4184 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4191   ac_status=$?
4192   grep -v '^ *+' conftest.er1 >conftest.err
4193   rm -f conftest.er1
4194   cat conftest.err >&5
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } &&
4197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4198   { (case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203   (eval "$ac_try") 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; } &&
4207          { ac_try='test -s conftest.$ac_objext'
4208   { (case "(($ac_try" in
4209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210   *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213   (eval "$ac_try") 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; }; then
4217   ac_cv_c_bigendian=yes
4218 else
4219   echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222         ac_cv_c_bigendian=no
4223 fi
4224
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 else
4227   echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4229
4230         # It does not; compile a test program.
4231 if test "$cross_compiling" = yes; then
4232   # try to guess the endianness by grepping values into an object file
4233   ac_cv_c_bigendian=unknown
4234   cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4241 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4242 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4243 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4244 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4245 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4246 int
4247 main ()
4248 {
4249  _ascii (); _ebcdic ();
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } &&
4268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269   { (case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_try") 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; } &&
4278          { ac_try='test -s conftest.$ac_objext'
4279   { (case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284   (eval "$ac_try") 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; }; then
4288   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4289   ac_cv_c_bigendian=yes
4290 fi
4291 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4292   if test "$ac_cv_c_bigendian" = unknown; then
4293     ac_cv_c_bigendian=no
4294   else
4295     # finding both strings is unlikely to happen, but who knows?
4296     ac_cv_c_bigendian=unknown
4297   fi
4298 fi
4299 else
4300   echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4302
4303
4304 fi
4305
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 else
4308   cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 $ac_includes_default
4315 int
4316 main ()
4317 {
4318
4319   /* Are we little or big endian?  From Harbison&Steele.  */
4320   union
4321   {
4322     long int l;
4323     char c[sizeof (long int)];
4324   } u;
4325   u.l = 1;
4326   return u.c[sizeof (long int) - 1] == 1;
4327
4328   ;
4329   return 0;
4330 }
4331 _ACEOF
4332 rm -f conftest$ac_exeext
4333 if { (ac_try="$ac_link"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339   (eval "$ac_link") 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4343   { (case "(($ac_try" in
4344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345   *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348   (eval "$ac_try") 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); }; }; then
4352   ac_cv_c_bigendian=no
4353 else
4354   echo "$as_me: program exited with status $ac_status" >&5
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 ( exit $ac_status )
4359 ac_cv_c_bigendian=yes
4360 fi
4361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362 fi
4363
4364
4365 fi
4366
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 fi
4369 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4370 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4371 case $ac_cv_c_bigendian in
4372   yes)
4373     ENDIAN=big
4374  ;;
4375   no)
4376     ENDIAN=little
4377  ;;
4378   *)
4379     { { echo "$as_me:$LINENO: error: unknown endianness
4380 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4381 echo "$as_me: error: unknown endianness
4382 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4383    { (exit 1); exit 1; }; } ;;
4384 esac
4385
4386
4387 if test "$cross_compiling" = yes; then
4388   LLVM_CROSS_COMPILING=1
4389
4390
4391 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4392 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4393 if test "${ac_cv_build_exeext+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4397   ac_cv_build_exeext=.exe
4398 else
4399   ac_build_prefix=${build_alias}-
4400
4401   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4402 set dummy ${ac_build_prefix}gcc; ac_word=$2
4403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408   if test -n "$BUILD_CC"; then
4409   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416   for ac_exec_ext in '' $ac_executable_extensions; do
4417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4418     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420     break 2
4421   fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 BUILD_CC=$ac_cv_prog_BUILD_CC
4429 if test -n "$BUILD_CC"; then
4430   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4431 echo "${ECHO_T}$BUILD_CC" >&6; }
4432 else
4433   { echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6; }
4435 fi
4436
4437
4438   if test -z "$BUILD_CC"; then
4439      # Extract the first word of "gcc", so it can be a program name with args.
4440 set dummy gcc; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   if test -n "$BUILD_CC"; then
4447   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454   for ac_exec_ext in '' $ac_executable_extensions; do
4455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4456     ac_cv_prog_BUILD_CC="gcc"
4457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458     break 2
4459   fi
4460 done
4461 done
4462 IFS=$as_save_IFS
4463
4464 fi
4465 fi
4466 BUILD_CC=$ac_cv_prog_BUILD_CC
4467 if test -n "$BUILD_CC"; then
4468   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469 echo "${ECHO_T}$BUILD_CC" >&6; }
4470 else
4471   { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4473 fi
4474
4475
4476      if test -z "$BUILD_CC"; then
4477        # Extract the first word of "cc", so it can be a program name with args.
4478 set dummy cc; ac_word=$2
4479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4481 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   if test -n "$BUILD_CC"; then
4485   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4486 else
4487   ac_prog_rejected=no
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493   for ac_exec_ext in '' $ac_executable_extensions; do
4494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4495     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496        ac_prog_rejected=yes
4497        continue
4498      fi
4499     ac_cv_prog_BUILD_CC="cc"
4500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501     break 2
4502   fi
4503 done
4504 done
4505 IFS=$as_save_IFS
4506
4507 if test $ac_prog_rejected = yes; then
4508   # We found a bogon in the path, so make sure we never use it.
4509   set dummy $ac_cv_prog_BUILD_CC
4510   shift
4511   if test $# != 0; then
4512     # We chose a different compiler from the bogus one.
4513     # However, it has the same basename, so the bogon will be chosen
4514     # first if we set BUILD_CC to just the basename; use the full file name.
4515     shift
4516     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4517   fi
4518 fi
4519 fi
4520 fi
4521 BUILD_CC=$ac_cv_prog_BUILD_CC
4522 if test -n "$BUILD_CC"; then
4523   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524 echo "${ECHO_T}$BUILD_CC" >&6; }
4525 else
4526   { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4528 fi
4529
4530
4531      fi
4532   fi
4533   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4534 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4535    { (exit 1); exit 1; }; }
4536   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4537   rm -f conftest*
4538   echo 'int main () { return 0; }' > conftest.$ac_ext
4539   ac_cv_build_exeext=
4540   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4541   (eval $ac_build_link) 2>&5
4542   ac_status=$?
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); }; then
4545     for file in conftest.*; do
4546       case $file in
4547       *.c | *.o | *.obj | *.dSYM) ;;
4548       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4549       esac
4550     done
4551   else
4552     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4553 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4554    { (exit 1); exit 1; }; }
4555   fi
4556   rm -f conftest*
4557   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4558 fi
4559 fi
4560
4561 BUILD_EXEEXT=""
4562 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4563 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4564 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4565 ac_build_exeext=$BUILD_EXEEXT
4566
4567   ac_build_prefix=${build_alias}-
4568   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4569 set dummy ${ac_build_prefix}g++; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4573   echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575   if test -n "$BUILD_CXX"; then
4576   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583   for ac_exec_ext in '' $ac_executable_extensions; do
4584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4585     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587     break 2
4588   fi
4589 done
4590 done
4591 IFS=$as_save_IFS
4592
4593 fi
4594 fi
4595 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4596 if test -n "$BUILD_CXX"; then
4597   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4598 echo "${ECHO_T}$BUILD_CXX" >&6; }
4599 else
4600   { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4602 fi
4603
4604
4605   if test -z "$BUILD_CXX"; then
4606      # Extract the first word of "g++", so it can be a program name with args.
4607 set dummy g++; ac_word=$2
4608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   if test -n "$BUILD_CXX"; then
4614   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621   for ac_exec_ext in '' $ac_executable_extensions; do
4622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4623     ac_cv_prog_BUILD_CXX="g++"
4624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625     break 2
4626   fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 fi
4632 fi
4633 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4634 if test -n "$BUILD_CXX"; then
4635   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4636 echo "${ECHO_T}$BUILD_CXX" >&6; }
4637 else
4638   { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4640 fi
4641
4642
4643      if test -z "$BUILD_CXX"; then
4644        # Extract the first word of "c++", so it can be a program name with args.
4645 set dummy c++; ac_word=$2
4646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   if test -n "$BUILD_CXX"; then
4652   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4653 else
4654   ac_prog_rejected=no
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658   IFS=$as_save_IFS
4659   test -z "$as_dir" && as_dir=.
4660   for ac_exec_ext in '' $ac_executable_extensions; do
4661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4662     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4663        ac_prog_rejected=yes
4664        continue
4665      fi
4666     ac_cv_prog_BUILD_CXX="c++"
4667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671 done
4672 IFS=$as_save_IFS
4673
4674 if test $ac_prog_rejected = yes; then
4675   # We found a bogon in the path, so make sure we never use it.
4676   set dummy $ac_cv_prog_BUILD_CXX
4677   shift
4678   if test $# != 0; then
4679     # We chose a different compiler from the bogus one.
4680     # However, it has the same basename, so the bogon will be chosen
4681     # first if we set BUILD_CXX to just the basename; use the full file name.
4682     shift
4683     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4684   fi
4685 fi
4686 fi
4687 fi
4688 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689 if test -n "$BUILD_CXX"; then
4690   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691 echo "${ECHO_T}$BUILD_CXX" >&6; }
4692 else
4693   { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4695 fi
4696
4697
4698      fi
4699   fi
4700 else
4701   LLVM_CROSS_COMPILING=0
4702
4703 fi
4704
4705 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4706   cvsbuild="yes"
4707   optimize="no"
4708   CVSBUILD=CVSBUILD=1
4709
4710 else
4711   cvsbuild="no"
4712   optimize="yes"
4713 fi
4714
4715
4716 # Check whether --enable-optimized was given.
4717 if test "${enable_optimized+set}" = set; then
4718   enableval=$enable_optimized;
4719 else
4720   enableval=$optimize
4721 fi
4722
4723 if test ${enableval} = "no" ; then
4724   ENABLE_OPTIMIZED=
4725
4726 else
4727   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4728
4729 fi
4730
4731 # Check whether --enable-profiling was given.
4732 if test "${enable_profiling+set}" = set; then
4733   enableval=$enable_profiling;
4734 else
4735   enableval="no"
4736 fi
4737
4738 if test ${enableval} = "no" ; then
4739   ENABLE_PROFILING=
4740
4741 else
4742   ENABLE_PROFILING=ENABLE_PROFILING=1
4743
4744 fi
4745
4746 # Check whether --enable-assertions was given.
4747 if test "${enable_assertions+set}" = set; then
4748   enableval=$enable_assertions;
4749 else
4750   enableval="yes"
4751 fi
4752
4753 if test ${enableval} = "yes" ; then
4754   DISABLE_ASSERTIONS=
4755
4756 else
4757   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4758
4759 fi
4760
4761 # Check whether --enable-expensive-checks was given.
4762 if test "${enable_expensive_checks+set}" = set; then
4763   enableval=$enable_expensive_checks;
4764 else
4765   enableval="no"
4766 fi
4767
4768 if test ${enableval} = "yes" ; then
4769   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4770
4771   EXPENSIVE_CHECKS=yes
4772
4773 else
4774   ENABLE_EXPENSIVE_CHECKS=
4775
4776   EXPENSIVE_CHECKS=no
4777
4778 fi
4779
4780 # Check whether --enable-debug-runtime was given.
4781 if test "${enable_debug_runtime+set}" = set; then
4782   enableval=$enable_debug_runtime;
4783 else
4784   enableval=no
4785 fi
4786
4787 if test ${enableval} = "no" ; then
4788   DEBUG_RUNTIME=
4789
4790 else
4791   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4792
4793 fi
4794
4795 # Check whether --enable-jit was given.
4796 if test "${enable_jit+set}" = set; then
4797   enableval=$enable_jit;
4798 else
4799   enableval=default
4800 fi
4801
4802 if test ${enableval} = "no"
4803 then
4804   JIT=
4805
4806 else
4807   case "$llvm_cv_target_arch" in
4808     x86)     TARGET_HAS_JIT=1
4809  ;;
4810     Sparc)   TARGET_HAS_JIT=0
4811  ;;
4812     PowerPC) TARGET_HAS_JIT=1
4813  ;;
4814     x86_64)  TARGET_HAS_JIT=1
4815  ;;
4816     Alpha)   TARGET_HAS_JIT=1
4817  ;;
4818     IA64)    TARGET_HAS_JIT=0
4819  ;;
4820     ARM)     TARGET_HAS_JIT=0
4821  ;;
4822     Mips)    TARGET_HAS_JIT=0
4823  ;;
4824     PIC16)   TARGET_HAS_JIT=0
4825  ;;
4826     XCore)   TARGET_HAS_JIT=0
4827  ;;
4828     MSP430)  TARGET_HAS_JIT=0
4829  ;;
4830     *)       TARGET_HAS_JIT=0
4831  ;;
4832   esac
4833 fi
4834
4835 # Check whether --enable-doxygen was given.
4836 if test "${enable_doxygen+set}" = set; then
4837   enableval=$enable_doxygen;
4838 else
4839   enableval=default
4840 fi
4841
4842 case "$enableval" in
4843   yes) ENABLE_DOXYGEN=1
4844  ;;
4845   no)  ENABLE_DOXYGEN=0
4846  ;;
4847   default) ENABLE_DOXYGEN=0
4848  ;;
4849   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4851    { (exit 1); exit 1; }; } ;;
4852 esac
4853
4854 # Check whether --enable-threads was given.
4855 if test "${enable_threads+set}" = set; then
4856   enableval=$enable_threads;
4857 else
4858   enableval=default
4859 fi
4860
4861 case "$enableval" in
4862   yes) ENABLE_THREADS=1
4863  ;;
4864   no)  ENABLE_THREADS=0
4865  ;;
4866   default) ENABLE_THREADS=1
4867  ;;
4868   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4869 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4870    { (exit 1); exit 1; }; } ;;
4871 esac
4872
4873 # Check whether --enable-pic was given.
4874 if test "${enable_pic+set}" = set; then
4875   enableval=$enable_pic;
4876 else
4877   enableval=default
4878 fi
4879
4880 case "$enableval" in
4881   yes) ENABLE_PIC=1
4882  ;;
4883   no)  ENABLE_PIC=0
4884  ;;
4885   default) ENABLE_PIC=1
4886  ;;
4887   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4889    { (exit 1); exit 1; }; } ;;
4890 esac
4891
4892 cat >>confdefs.h <<_ACEOF
4893 #define ENABLE_PIC $ENABLE_PIC
4894 _ACEOF
4895
4896
4897 TARGETS_TO_BUILD=""
4898 # Check whether --enable-targets was given.
4899 if test "${enable_targets+set}" = set; then
4900   enableval=$enable_targets;
4901 else
4902   enableval=all
4903 fi
4904
4905 case "$enableval" in
4906   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4907   host-only)
4908     case "$llvm_cv_target_arch" in
4909       x86)     TARGETS_TO_BUILD="X86" ;;
4910       x86_64)  TARGETS_TO_BUILD="X86" ;;
4911       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4912       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4913       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4914       IA64)    TARGETS_TO_BUILD="IA64" ;;
4915       ARM)     TARGETS_TO_BUILD="ARM" ;;
4916       Mips)    TARGETS_TO_BUILD="Mips" ;;
4917       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4918       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4919       XCore)   TARGETS_TO_BUILD="XCore" ;;
4920       MSP430)  TARGETS_TO_BUILD="MSP430" ;;
4921       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4922 echo "$as_me: error: Can not set target to build" >&2;}
4923    { (exit 1); exit 1; }; } ;;
4924     esac
4925     ;;
4926   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4927       case "$a_target" in
4928         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4929         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4930         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4931         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4932         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4933         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4934         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4935         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4936         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4937         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4938         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4939         msp430)  TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4940         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4941         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4942         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4943         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4944 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4945    { (exit 1); exit 1; }; } ;;
4946       esac
4947   done
4948   ;;
4949 esac
4950 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4951
4952
4953 # Check whether --enable-cbe-printf-a was given.
4954 if test "${enable_cbe_printf_a+set}" = set; then
4955   enableval=$enable_cbe_printf_a;
4956 else
4957   enableval=default
4958 fi
4959
4960 case "$enableval" in
4961   yes) ENABLE_CBE_PRINTF_A=1
4962  ;;
4963   no)  ENABLE_CBE_PRINTF_A=0
4964  ;;
4965   default)  ENABLE_CBE_PRINTF_A=1
4966  ;;
4967   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4968 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4969    { (exit 1); exit 1; }; } ;;
4970 esac
4971
4972 cat >>confdefs.h <<_ACEOF
4973 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4974 _ACEOF
4975
4976
4977
4978 # Check whether --with-llvmgccdir was given.
4979 if test "${with_llvmgccdir+set}" = set; then
4980   withval=$with_llvmgccdir;
4981 else
4982   withval=default
4983 fi
4984
4985 case "$withval" in
4986   default) WITH_LLVMGCCDIR=default ;;
4987   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4988   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4989 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4990    { (exit 1); exit 1; }; } ;;
4991 esac
4992
4993
4994 # Check whether --with-llvmgcc was given.
4995 if test "${with_llvmgcc+set}" = set; then
4996   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4997       WITH_LLVMGCCDIR=""
4998 fi
4999
5000
5001
5002 # Check whether --with-llvmgxx was given.
5003 if test "${with_llvmgxx+set}" = set; then
5004   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5005     WITH_LLVMGCCDIR=""
5006 fi
5007
5008
5009 if test -n "$LLVMGCC"; then
5010    LLVMGCCCOMMAND="$LLVMGCC"
5011 fi
5012
5013 if test -n "$LLVMGXX"; then
5014    LLVMGXXCOMMAND="$LLVMGXX"
5015 fi
5016
5017 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5018    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5019 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5020    { (exit 1); exit 1; }; };
5021 fi
5022
5023 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5024    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5025 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5026    { (exit 1); exit 1; }; };
5027 fi
5028
5029
5030 # Check whether --with-extra-options was given.
5031 if test "${with_extra_options+set}" = set; then
5032   withval=$with_extra_options;
5033 else
5034   withval=default
5035 fi
5036
5037 case "$withval" in
5038   default) EXTRA_OPTIONS= ;;
5039   *) EXTRA_OPTIONS=$withval ;;
5040 esac
5041 EXTRA_OPTIONS=$EXTRA_OPTIONS
5042
5043
5044 # Check whether --enable-bindings was given.
5045 if test "${enable_bindings+set}" = set; then
5046   enableval=$enable_bindings;
5047 else
5048   enableval=default
5049 fi
5050
5051 BINDINGS_TO_BUILD=""
5052 case "$enableval" in
5053   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5054   all ) BINDINGS_TO_BUILD="ocaml" ;;
5055   none | no) BINDINGS_TO_BUILD="" ;;
5056   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5057       case "$a_binding" in
5058         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5059         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5060 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5061    { (exit 1); exit 1; }; } ;;
5062       esac
5063   done
5064   ;;
5065 esac
5066
5067
5068 # Check whether --with-ocaml-libdir was given.
5069 if test "${with_ocaml_libdir+set}" = set; then
5070   withval=$with_ocaml_libdir;
5071 else
5072   withval=auto
5073 fi
5074
5075 case "$withval" in
5076   auto) with_ocaml_libdir="$withval" ;;
5077   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5078   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5079 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5080    { (exit 1); exit 1; }; } ;;
5081 esac
5082
5083
5084 # Check whether --with-binutils-include was given.
5085 if test "${with_binutils_include+set}" = set; then
5086   withval=$with_binutils_include;
5087 else
5088   withval=default
5089 fi
5090
5091 case "$withval" in
5092   default) WITH_BINUTILS_INCDIR=default ;;
5093   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5094   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5095 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5096    { (exit 1); exit 1; }; } ;;
5097 esac
5098 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5099   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5100
5101   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5102      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5103      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5104 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5105    { (exit 1); exit 1; }; };
5106   fi
5107 fi
5108
5109
5110 ac_ext=c
5111 ac_cpp='$CPP $CPPFLAGS'
5112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5116 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5117 # On Suns, sometimes $CPP names a directory.
5118 if test -n "$CPP" && test -d "$CPP"; then
5119   CPP=
5120 fi
5121 if test -z "$CPP"; then
5122   if test "${ac_cv_prog_CPP+set}" = set; then
5123   echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125       # Double quotes because CPP needs to be expanded
5126     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5127     do
5128       ac_preproc_ok=false
5129 for ac_c_preproc_warn_flag in '' yes
5130 do
5131   # Use a header file that comes with gcc, so configuring glibc
5132   # with a fresh cross-compiler works.
5133   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134   # <limits.h> exists even on freestanding compilers.
5135   # On the NeXT, cc -E runs the code through the compiler's parser,
5136   # not just through cpp. "Syntax error" is here to catch this case.
5137   cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143 #ifdef __STDC__
5144 # include <limits.h>
5145 #else
5146 # include <assert.h>
5147 #endif
5148                      Syntax error
5149 _ACEOF
5150 if { (ac_try="$ac_cpp conftest.$ac_ext"
5151 case "(($ac_try" in
5152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153   *) ac_try_echo=$ac_try;;
5154 esac
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5157   ac_status=$?
5158   grep -v '^ *+' conftest.er1 >conftest.err
5159   rm -f conftest.er1
5160   cat conftest.err >&5
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); } >/dev/null; then
5163   if test -s conftest.err; then
5164     ac_cpp_err=$ac_c_preproc_warn_flag
5165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5166   else
5167     ac_cpp_err=
5168   fi
5169 else
5170   ac_cpp_err=yes
5171 fi
5172 if test -z "$ac_cpp_err"; then
5173   :
5174 else
5175   echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178   # Broken: fails on valid input.
5179 continue
5180 fi
5181
5182 rm -f conftest.err conftest.$ac_ext
5183
5184   # OK, works on sane cases.  Now check whether nonexistent headers
5185   # can be detected and how.
5186   cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h.  */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h.  */
5192 #include <ac_nonexistent.h>
5193 _ACEOF
5194 if { (ac_try="$ac_cpp conftest.$ac_ext"
5195 case "(($ac_try" in
5196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197   *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } >/dev/null; then
5207   if test -s conftest.err; then
5208     ac_cpp_err=$ac_c_preproc_warn_flag
5209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5210   else
5211     ac_cpp_err=
5212   fi
5213 else
5214   ac_cpp_err=yes
5215 fi
5216 if test -z "$ac_cpp_err"; then
5217   # Broken: success on invalid input.
5218 continue
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223   # Passes both tests.
5224 ac_preproc_ok=:
5225 break
5226 fi
5227
5228 rm -f conftest.err conftest.$ac_ext
5229
5230 done
5231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232 rm -f conftest.err conftest.$ac_ext
5233 if $ac_preproc_ok; then
5234   break
5235 fi
5236
5237     done
5238     ac_cv_prog_CPP=$CPP
5239
5240 fi
5241   CPP=$ac_cv_prog_CPP
5242 else
5243   ac_cv_prog_CPP=$CPP
5244 fi
5245 { echo "$as_me:$LINENO: result: $CPP" >&5
5246 echo "${ECHO_T}$CPP" >&6; }
5247 ac_preproc_ok=false
5248 for ac_c_preproc_warn_flag in '' yes
5249 do
5250   # Use a header file that comes with gcc, so configuring glibc
5251   # with a fresh cross-compiler works.
5252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5253   # <limits.h> exists even on freestanding compilers.
5254   # On the NeXT, cc -E runs the code through the compiler's parser,
5255   # not just through cpp. "Syntax error" is here to catch this case.
5256   cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262 #ifdef __STDC__
5263 # include <limits.h>
5264 #else
5265 # include <assert.h>
5266 #endif
5267                      Syntax error
5268 _ACEOF
5269 if { (ac_try="$ac_cpp conftest.$ac_ext"
5270 case "(($ac_try" in
5271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272   *) ac_try_echo=$ac_try;;
5273 esac
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5276   ac_status=$?
5277   grep -v '^ *+' conftest.er1 >conftest.err
5278   rm -f conftest.er1
5279   cat conftest.err >&5
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } >/dev/null; then
5282   if test -s conftest.err; then
5283     ac_cpp_err=$ac_c_preproc_warn_flag
5284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285   else
5286     ac_cpp_err=
5287   fi
5288 else
5289   ac_cpp_err=yes
5290 fi
5291 if test -z "$ac_cpp_err"; then
5292   :
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297   # Broken: fails on valid input.
5298 continue
5299 fi
5300
5301 rm -f conftest.err conftest.$ac_ext
5302
5303   # OK, works on sane cases.  Now check whether nonexistent headers
5304   # can be detected and how.
5305   cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311 #include <ac_nonexistent.h>
5312 _ACEOF
5313 if { (ac_try="$ac_cpp conftest.$ac_ext"
5314 case "(($ac_try" in
5315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316   *) ac_try_echo=$ac_try;;
5317 esac
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5320   ac_status=$?
5321   grep -v '^ *+' conftest.er1 >conftest.err
5322   rm -f conftest.er1
5323   cat conftest.err >&5
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } >/dev/null; then
5326   if test -s conftest.err; then
5327     ac_cpp_err=$ac_c_preproc_warn_flag
5328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5329   else
5330     ac_cpp_err=
5331   fi
5332 else
5333   ac_cpp_err=yes
5334 fi
5335 if test -z "$ac_cpp_err"; then
5336   # Broken: success on invalid input.
5337 continue
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342   # Passes both tests.
5343 ac_preproc_ok=:
5344 break
5345 fi
5346
5347 rm -f conftest.err conftest.$ac_ext
5348
5349 done
5350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5351 rm -f conftest.err conftest.$ac_ext
5352 if $ac_preproc_ok; then
5353   :
5354 else
5355   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5356 See \`config.log' for more details." >&5
5357 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5358 See \`config.log' for more details." >&2;}
5359    { (exit 1); exit 1; }; }
5360 fi
5361
5362 ac_ext=c
5363 ac_cpp='$CPP $CPPFLAGS'
5364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5367
5368 ac_ext=c
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373 if test -n "$ac_tool_prefix"; then
5374   for ac_prog in gcc
5375   do
5376     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5380 if test "${ac_cv_prog_CC+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383   if test -n "$CC"; then
5384   ac_cv_prog_CC="$CC" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391   for ac_exec_ext in '' $ac_executable_extensions; do
5392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5393     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401 fi
5402 fi
5403 CC=$ac_cv_prog_CC
5404 if test -n "$CC"; then
5405   { echo "$as_me:$LINENO: result: $CC" >&5
5406 echo "${ECHO_T}$CC" >&6; }
5407 else
5408   { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5410 fi
5411
5412
5413     test -n "$CC" && break
5414   done
5415 fi
5416 if test -z "$CC"; then
5417   ac_ct_CC=$CC
5418   for ac_prog in gcc
5419 do
5420   # Extract the first word of "$ac_prog", so it can be a program name with args.
5421 set dummy $ac_prog; ac_word=$2
5422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5425   echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427   if test -n "$ac_ct_CC"; then
5428   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435   for ac_exec_ext in '' $ac_executable_extensions; do
5436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5437     ac_cv_prog_ac_ct_CC="$ac_prog"
5438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5448 if test -n "$ac_ct_CC"; then
5449   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5450 echo "${ECHO_T}$ac_ct_CC" >&6; }
5451 else
5452   { echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6; }
5454 fi
5455
5456
5457   test -n "$ac_ct_CC" && break
5458 done
5459
5460   if test "x$ac_ct_CC" = x; then
5461     CC=""
5462   else
5463     case $cross_compiling:$ac_tool_warned in
5464 yes:)
5465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5466 whose name does not start with the host triplet.  If you think this
5467 configuration is useful to you, please write to autoconf@gnu.org." >&5
5468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5469 whose name does not start with the host triplet.  If you think this
5470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5471 ac_tool_warned=yes ;;
5472 esac
5473     CC=$ac_ct_CC
5474   fi
5475 fi
5476
5477
5478 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5479 See \`config.log' for more details." >&5
5480 echo "$as_me: error: no acceptable C compiler found in \$PATH
5481 See \`config.log' for more details." >&2;}
5482    { (exit 1); exit 1; }; }
5483
5484 # Provide some information about the compiler.
5485 echo "$as_me:$LINENO: checking for C compiler version" >&5
5486 ac_compiler=`set X $ac_compile; echo $2`
5487 { (ac_try="$ac_compiler --version >&5"
5488 case "(($ac_try" in
5489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490   *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493   (eval "$ac_compiler --version >&5") 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }
5497 { (ac_try="$ac_compiler -v >&5"
5498 case "(($ac_try" in
5499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500   *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503   (eval "$ac_compiler -v >&5") 2>&5
5504   ac_status=$?
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); }
5507 { (ac_try="$ac_compiler -V >&5"
5508 case "(($ac_try" in
5509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510   *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513   (eval "$ac_compiler -V >&5") 2>&5
5514   ac_status=$?
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); }
5517
5518 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5519 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5520 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523   cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h.  */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h.  */
5529
5530 int
5531 main ()
5532 {
5533 #ifndef __GNUC__
5534        choke me
5535 #endif
5536
5537   ;
5538   return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest.$ac_objext
5542 if { (ac_try="$ac_compile"
5543 case "(($ac_try" in
5544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545   *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548   (eval "$ac_compile") 2>conftest.er1
5549   ac_status=$?
5550   grep -v '^ *+' conftest.er1 >conftest.err
5551   rm -f conftest.er1
5552   cat conftest.err >&5
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } &&
5555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5556   { (case "(($ac_try" in
5557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558   *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561   (eval "$ac_try") 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); }; } &&
5565          { ac_try='test -s conftest.$ac_objext'
5566   { (case "(($ac_try" in
5567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568   *) ac_try_echo=$ac_try;;
5569 esac
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571   (eval "$ac_try") 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }; }; then
5575   ac_compiler_gnu=yes
5576 else
5577   echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5579
5580         ac_compiler_gnu=no
5581 fi
5582
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5585
5586 fi
5587 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5589 GCC=`test $ac_compiler_gnu = yes && echo yes`
5590 ac_test_CFLAGS=${CFLAGS+set}
5591 ac_save_CFLAGS=$CFLAGS
5592 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5593 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5594 if test "${ac_cv_prog_cc_g+set}" = set; then
5595   echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597   ac_save_c_werror_flag=$ac_c_werror_flag
5598    ac_c_werror_flag=yes
5599    ac_cv_prog_cc_g=no
5600    CFLAGS="-g"
5601    cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h.  */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h.  */
5607
5608 int
5609 main ()
5610 {
5611
5612   ;
5613   return 0;
5614 }
5615 _ACEOF
5616 rm -f conftest.$ac_objext
5617 if { (ac_try="$ac_compile"
5618 case "(($ac_try" in
5619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620   *) ac_try_echo=$ac_try;;
5621 esac
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623   (eval "$ac_compile") 2>conftest.er1
5624   ac_status=$?
5625   grep -v '^ *+' conftest.er1 >conftest.err
5626   rm -f conftest.er1
5627   cat conftest.err >&5
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); } &&
5630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5631   { (case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_try") 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; } &&
5640          { ac_try='test -s conftest.$ac_objext'
5641   { (case "(($ac_try" in
5642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643   *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646   (eval "$ac_try") 2>&5
5647   ac_status=$?
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); }; }; then
5650   ac_cv_prog_cc_g=yes
5651 else
5652   echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5654
5655         CFLAGS=""
5656       cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h.  */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h.  */
5662
5663 int
5664 main ()
5665 {
5666
5667   ;
5668   return 0;
5669 }
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5673 case "(($ac_try" in
5674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675   *) ac_try_echo=$ac_try;;
5676 esac
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678   (eval "$ac_compile") 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } &&
5685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686   { (case "(($ac_try" in
5687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688   *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691   (eval "$ac_try") 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; } &&
5695          { ac_try='test -s conftest.$ac_objext'
5696   { (case "(($ac_try" in
5697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698   *) ac_try_echo=$ac_try;;
5699 esac
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701   (eval "$ac_try") 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; }; then
5705   :
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710         ac_c_werror_flag=$ac_save_c_werror_flag
5711          CFLAGS="-g"
5712          cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718
5719 int
5720 main ()
5721 {
5722
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (ac_try="$ac_compile"
5729 case "(($ac_try" in
5730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731   *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734   (eval "$ac_compile") 2>conftest.er1
5735   ac_status=$?
5736   grep -v '^ *+' conftest.er1 >conftest.err
5737   rm -f conftest.er1
5738   cat conftest.err >&5
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } &&
5741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5742   { (case "(($ac_try" in
5743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744   *) ac_try_echo=$ac_try;;
5745 esac
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747   (eval "$ac_try") 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; } &&
5751          { ac_try='test -s conftest.$ac_objext'
5752   { (case "(($ac_try" in
5753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754   *) ac_try_echo=$ac_try;;
5755 esac
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757   (eval "$ac_try") 2>&5
5758   ac_status=$?
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); }; }; then
5761   ac_cv_prog_cc_g=yes
5762 else
5763   echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5765
5766
5767 fi
5768
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 fi
5771
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 fi
5774
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776    ac_c_werror_flag=$ac_save_c_werror_flag
5777 fi
5778 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5779 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5780 if test "$ac_test_CFLAGS" = set; then
5781   CFLAGS=$ac_save_CFLAGS
5782 elif test $ac_cv_prog_cc_g = yes; then
5783   if test "$GCC" = yes; then
5784     CFLAGS="-g -O2"
5785   else
5786     CFLAGS="-g"
5787   fi
5788 else
5789   if test "$GCC" = yes; then
5790     CFLAGS="-O2"
5791   else
5792     CFLAGS=
5793   fi
5794 fi
5795 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5796 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5797 if test "${ac_cv_prog_cc_c89+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   ac_cv_prog_cc_c89=no
5801 ac_save_CC=$CC
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h.  */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h.  */
5808 #include <stdarg.h>
5809 #include <stdio.h>
5810 #include <sys/types.h>
5811 #include <sys/stat.h>
5812 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5813 struct buf { int x; };
5814 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5815 static char *e (p, i)
5816      char **p;
5817      int i;
5818 {
5819   return p[i];
5820 }
5821 static char *f (char * (*g) (char **, int), char **p, ...)
5822 {
5823   char *s;
5824   va_list v;
5825   va_start (v,p);
5826   s = g (p, va_arg (v,int));
5827   va_end (v);
5828   return s;
5829 }
5830
5831 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5832    function prototypes and stuff, but not '\xHH' hex character constants.
5833    These don't provoke an error unfortunately, instead are silently treated
5834    as 'x'.  The following induces an error, until -std is added to get
5835    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5836    array size at least.  It's necessary to write '\x00'==0 to get something
5837    that's true only with -std.  */
5838 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5839
5840 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5841    inside strings and character constants.  */
5842 #define FOO(x) 'x'
5843 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5844
5845 int test (int i, double x);
5846 struct s1 {int (*f) (int a);};
5847 struct s2 {int (*f) (double a);};
5848 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5849 int argc;
5850 char **argv;
5851 int
5852 main ()
5853 {
5854 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5860         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5861 do
5862   CC="$ac_save_CC $ac_arg"
5863   rm -f conftest.$ac_objext
5864 if { (ac_try="$ac_compile"
5865 case "(($ac_try" in
5866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867   *) ac_try_echo=$ac_try;;
5868 esac
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870   (eval "$ac_compile") 2>conftest.er1
5871   ac_status=$?
5872   grep -v '^ *+' conftest.er1 >conftest.err
5873   rm -f conftest.er1
5874   cat conftest.err >&5
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); } &&
5877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5878   { (case "(($ac_try" in
5879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880   *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883   (eval "$ac_try") 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; } &&
5887          { ac_try='test -s conftest.$ac_objext'
5888   { (case "(($ac_try" in
5889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890   *) ac_try_echo=$ac_try;;
5891 esac
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893   (eval "$ac_try") 2>&5
5894   ac_status=$?
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); }; }; then
5897   ac_cv_prog_cc_c89=$ac_arg
5898 else
5899   echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902
5903 fi
5904
5905 rm -f core conftest.err conftest.$ac_objext
5906   test "x$ac_cv_prog_cc_c89" != "xno" && break
5907 done
5908 rm -f conftest.$ac_ext
5909 CC=$ac_save_CC
5910
5911 fi
5912 # AC_CACHE_VAL
5913 case "x$ac_cv_prog_cc_c89" in
5914   x)
5915     { echo "$as_me:$LINENO: result: none needed" >&5
5916 echo "${ECHO_T}none needed" >&6; } ;;
5917   xno)
5918     { echo "$as_me:$LINENO: result: unsupported" >&5
5919 echo "${ECHO_T}unsupported" >&6; } ;;
5920   *)
5921     CC="$CC $ac_cv_prog_cc_c89"
5922     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5923 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5924 esac
5925
5926
5927 ac_ext=c
5928 ac_cpp='$CPP $CPPFLAGS'
5929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932
5933 ac_ext=cpp
5934 ac_cpp='$CXXCPP $CPPFLAGS'
5935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5938 if test -z "$CXX"; then
5939   if test -n "$CCC"; then
5940     CXX=$CCC
5941   else
5942     if test -n "$ac_tool_prefix"; then
5943   for ac_prog in g++
5944   do
5945     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949 if test "${ac_cv_prog_CXX+set}" = set; then
5950   echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952   if test -n "$CXX"; then
5953   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960   for ac_exec_ext in '' $ac_executable_extensions; do
5961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967 done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 CXX=$ac_cv_prog_CXX
5973 if test -n "$CXX"; then
5974   { echo "$as_me:$LINENO: result: $CXX" >&5
5975 echo "${ECHO_T}$CXX" >&6; }
5976 else
5977   { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979 fi
5980
5981
5982     test -n "$CXX" && break
5983   done
5984 fi
5985 if test -z "$CXX"; then
5986   ac_ct_CXX=$CXX
5987   for ac_prog in g++
5988 do
5989   # Extract the first word of "$ac_prog", so it can be a program name with args.
5990 set dummy $ac_prog; ac_word=$2
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   if test -n "$ac_ct_CXX"; then
5997   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002   IFS=$as_save_IFS
6003   test -z "$as_dir" && as_dir=.
6004   for ac_exec_ext in '' $ac_executable_extensions; do
6005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6006     ac_cv_prog_ac_ct_CXX="$ac_prog"
6007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008     break 2
6009   fi
6010 done
6011 done
6012 IFS=$as_save_IFS
6013
6014 fi
6015 fi
6016 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6017 if test -n "$ac_ct_CXX"; then
6018   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6019 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6020 else
6021   { echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6; }
6023 fi
6024
6025
6026   test -n "$ac_ct_CXX" && break
6027 done
6028
6029   if test "x$ac_ct_CXX" = x; then
6030     CXX="g++"
6031   else
6032     case $cross_compiling:$ac_tool_warned in
6033 yes:)
6034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6035 whose name does not start with the host triplet.  If you think this
6036 configuration is useful to you, please write to autoconf@gnu.org." >&5
6037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6038 whose name does not start with the host triplet.  If you think this
6039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6040 ac_tool_warned=yes ;;
6041 esac
6042     CXX=$ac_ct_CXX
6043   fi
6044 fi
6045
6046   fi
6047 fi
6048 # Provide some information about the compiler.
6049 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6050 ac_compiler=`set X $ac_compile; echo $2`
6051 { (ac_try="$ac_compiler --version >&5"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057   (eval "$ac_compiler --version >&5") 2>&5
6058   ac_status=$?
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); }
6061 { (ac_try="$ac_compiler -v >&5"
6062 case "(($ac_try" in
6063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064   *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067   (eval "$ac_compiler -v >&5") 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }
6071 { (ac_try="$ac_compiler -V >&5"
6072 case "(($ac_try" in
6073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074   *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077   (eval "$ac_compiler -V >&5") 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }
6081
6082 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6083 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6084 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h.  */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h.  */
6093
6094 int
6095 main ()
6096 {
6097 #ifndef __GNUC__
6098        choke me
6099 #endif
6100
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109   *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112   (eval "$ac_compile") 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6120   { (case "(($ac_try" in
6121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122   *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125   (eval "$ac_try") 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; } &&
6129          { ac_try='test -s conftest.$ac_objext'
6130   { (case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_try") 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_compiler_gnu=yes
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144         ac_compiler_gnu=no
6145 fi
6146
6147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6149
6150 fi
6151 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6152 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6153 GXX=`test $ac_compiler_gnu = yes && echo yes`
6154 ac_test_CXXFLAGS=${CXXFLAGS+set}
6155 ac_save_CXXFLAGS=$CXXFLAGS
6156 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6157 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_cxx_g+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6162    ac_cxx_werror_flag=yes
6163    ac_cv_prog_cxx_g=no
6164    CXXFLAGS="-g"
6165    cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h.  */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h.  */
6171
6172 int
6173 main ()
6174 {
6175
6176   ;
6177   return 0;
6178 }
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (ac_try="$ac_compile"
6182 case "(($ac_try" in
6183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184   *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187   (eval "$ac_compile") 2>conftest.er1
6188   ac_status=$?
6189   grep -v '^ *+' conftest.er1 >conftest.err
6190   rm -f conftest.er1
6191   cat conftest.err >&5
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); } &&
6194          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6195   { (case "(($ac_try" in
6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197   *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200   (eval "$ac_try") 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; } &&
6204          { ac_try='test -s conftest.$ac_objext'
6205   { (case "(($ac_try" in
6206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207   *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210   (eval "$ac_try") 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); }; }; then
6214   ac_cv_prog_cxx_g=yes
6215 else
6216   echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219         CXXFLAGS=""
6220       cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226
6227 int
6228 main ()
6229 {
6230
6231   ;
6232   return 0;
6233 }
6234 _ACEOF
6235 rm -f conftest.$ac_objext
6236 if { (ac_try="$ac_compile"
6237 case "(($ac_try" in
6238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239   *) ac_try_echo=$ac_try;;
6240 esac
6241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242   (eval "$ac_compile") 2>conftest.er1
6243   ac_status=$?
6244   grep -v '^ *+' conftest.er1 >conftest.err
6245   rm -f conftest.er1
6246   cat conftest.err >&5
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); } &&
6249          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6250   { (case "(($ac_try" in
6251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252   *) ac_try_echo=$ac_try;;
6253 esac
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255   (eval "$ac_try") 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); }; } &&
6259          { ac_try='test -s conftest.$ac_objext'
6260   { (case "(($ac_try" in
6261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262   *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265   (eval "$ac_try") 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); }; }; then
6269   :
6270 else
6271   echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6275          CXXFLAGS="-g"
6276          cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h.  */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h.  */
6282
6283 int
6284 main ()
6285 {
6286
6287   ;
6288   return 0;
6289 }
6290 _ACEOF
6291 rm -f conftest.$ac_objext
6292 if { (ac_try="$ac_compile"
6293 case "(($ac_try" in
6294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295   *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298   (eval "$ac_compile") 2>conftest.er1
6299   ac_status=$?
6300   grep -v '^ *+' conftest.er1 >conftest.err
6301   rm -f conftest.er1
6302   cat conftest.err >&5
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } &&
6305          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6306   { (case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_try") 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; } &&
6315          { ac_try='test -s conftest.$ac_objext'
6316   { (case "(($ac_try" in
6317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318   *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321   (eval "$ac_try") 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); }; }; then
6325   ac_cv_prog_cxx_g=yes
6326 else
6327   echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330
6331 fi
6332
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 fi
6335
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 fi
6338
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6341 fi
6342 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6343 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6344 if test "$ac_test_CXXFLAGS" = set; then
6345   CXXFLAGS=$ac_save_CXXFLAGS
6346 elif test $ac_cv_prog_cxx_g = yes; then
6347   if test "$GXX" = yes; then
6348     CXXFLAGS="-g -O2"
6349   else
6350     CXXFLAGS="-g"
6351   fi
6352 else
6353   if test "$GXX" = yes; then
6354     CXXFLAGS="-O2"
6355   else
6356     CXXFLAGS=
6357   fi
6358 fi
6359 ac_ext=c
6360 ac_cpp='$CPP $CPPFLAGS'
6361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6364
6365
6366 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6367 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6368 if test "${lt_cv_path_NM+set}" = set; then
6369   echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371   if test -n "$NM"; then
6372   # Let the user override the test.
6373   lt_cv_path_NM="$NM"
6374 else
6375   lt_nm_to_check="${ac_tool_prefix}nm"
6376   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6377     lt_nm_to_check="$lt_nm_to_check nm"
6378   fi
6379   for lt_tmp_nm in $lt_nm_to_check; do
6380     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6381     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6382       IFS="$lt_save_ifs"
6383       test -z "$ac_dir" && ac_dir=.
6384       tmp_nm="$ac_dir/$lt_tmp_nm"
6385       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6386         # Check to see if the nm accepts a BSD-compat flag.
6387         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6388         #   nm: unknown option "B" ignored
6389         # Tru64's nm complains that /dev/null is an invalid object file
6390         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6391         */dev/null* | *'Invalid file or object type'*)
6392           lt_cv_path_NM="$tmp_nm -B"
6393           break
6394           ;;
6395         *)
6396           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6397           */dev/null*)
6398             lt_cv_path_NM="$tmp_nm -p"
6399             break
6400             ;;
6401           *)
6402             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6403             continue # so that we can try to find one that supports BSD flags
6404             ;;
6405           esac
6406           ;;
6407         esac
6408       fi
6409     done
6410     IFS="$lt_save_ifs"
6411   done
6412   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6413 fi
6414 fi
6415 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6416 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6417 NM="$lt_cv_path_NM"
6418
6419
6420
6421 { echo "$as_me:$LINENO: checking for GNU make" >&5
6422 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6423 if test "${llvm_cv_gnu_make_command+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   llvm_cv_gnu_make_command=''
6427  for a in "$MAKE" make gmake gnumake ; do
6428   if test -z "$a" ; then continue ; fi ;
6429   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6430   then
6431    llvm_cv_gnu_make_command=$a ;
6432    break;
6433   fi
6434  done
6435 fi
6436 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6437 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6438  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6439    ifGNUmake='' ;
6440  else
6441    ifGNUmake='#' ;
6442    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6443 echo "${ECHO_T}\"Not found\"" >&6; };
6444  fi
6445
6446
6447 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6448 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6449 LN_S=$as_ln_s
6450 if test "$LN_S" = "ln -s"; then
6451   { echo "$as_me:$LINENO: result: yes" >&5
6452 echo "${ECHO_T}yes" >&6; }
6453 else
6454   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6455 echo "${ECHO_T}no, using $LN_S" >&6; }
6456 fi
6457
6458 # Extract the first word of "cmp", so it can be a program name with args.
6459 set dummy cmp; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_CMP+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   case $CMP in
6466   [\\/]* | ?:[\\/]*)
6467   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6468   ;;
6469   *)
6470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473   IFS=$as_save_IFS
6474   test -z "$as_dir" && as_dir=.
6475   for ac_exec_ext in '' $ac_executable_extensions; do
6476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6477     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479     break 2
6480   fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6486   ;;
6487 esac
6488 fi
6489 CMP=$ac_cv_path_CMP
6490 if test -n "$CMP"; then
6491   { echo "$as_me:$LINENO: result: $CMP" >&5
6492 echo "${ECHO_T}$CMP" >&6; }
6493 else
6494   { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6496 fi
6497
6498
6499 # Extract the first word of "cp", so it can be a program name with args.
6500 set dummy cp; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_CP+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   case $CP in
6507   [\\/]* | ?:[\\/]*)
6508   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6509   ;;
6510   *)
6511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514   IFS=$as_save_IFS
6515   test -z "$as_dir" && as_dir=.
6516   for ac_exec_ext in '' $ac_executable_extensions; do
6517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6518     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520     break 2
6521   fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6527   ;;
6528 esac
6529 fi
6530 CP=$ac_cv_path_CP
6531 if test -n "$CP"; then
6532   { echo "$as_me:$LINENO: result: $CP" >&5
6533 echo "${ECHO_T}$CP" >&6; }
6534 else
6535   { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6537 fi
6538
6539
6540 # Extract the first word of "date", so it can be a program name with args.
6541 set dummy date; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_path_DATE+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   case $DATE in
6548   [\\/]* | ?:[\\/]*)
6549   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6550   ;;
6551   *)
6552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557   for ac_exec_ext in '' $ac_executable_extensions; do
6558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6568   ;;
6569 esac
6570 fi
6571 DATE=$ac_cv_path_DATE
6572 if test -n "$DATE"; then
6573   { echo "$as_me:$LINENO: result: $DATE" >&5
6574 echo "${ECHO_T}$DATE" >&6; }
6575 else
6576   { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6578 fi
6579
6580
6581 # Extract the first word of "find", so it can be a program name with args.
6582 set dummy find; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_FIND+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   case $FIND in
6589   [\\/]* | ?:[\\/]*)
6590   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6591   ;;
6592   *)
6593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598   for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6609   ;;
6610 esac
6611 fi
6612 FIND=$ac_cv_path_FIND
6613 if test -n "$FIND"; then
6614   { echo "$as_me:$LINENO: result: $FIND" >&5
6615 echo "${ECHO_T}$FIND" >&6; }
6616 else
6617   { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6619 fi
6620
6621
6622 # Extract the first word of "grep", so it can be a program name with args.
6623 set dummy grep; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_GREP+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   case $GREP in
6630   [\\/]* | ?:[\\/]*)
6631   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6632   ;;
6633   *)
6634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639   for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6650   ;;
6651 esac
6652 fi
6653 GREP=$ac_cv_path_GREP
6654 if test -n "$GREP"; then
6655   { echo "$as_me:$LINENO: result: $GREP" >&5
6656 echo "${ECHO_T}$GREP" >&6; }
6657 else
6658   { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6660 fi
6661
6662
6663 # Extract the first word of "mkdir", so it can be a program name with args.
6664 set dummy mkdir; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_MKDIR+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   case $MKDIR in
6671   [\\/]* | ?:[\\/]*)
6672   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6673   ;;
6674   *)
6675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680   for ac_exec_ext in '' $ac_executable_extensions; do
6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6691   ;;
6692 esac
6693 fi
6694 MKDIR=$ac_cv_path_MKDIR
6695 if test -n "$MKDIR"; then
6696   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6697 echo "${ECHO_T}$MKDIR" >&6; }
6698 else
6699   { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6701 fi
6702
6703
6704 # Extract the first word of "mv", so it can be a program name with args.
6705 set dummy mv; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_MV+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   case $MV in
6712   [\\/]* | ?:[\\/]*)
6713   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6714   ;;
6715   *)
6716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721   for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6732   ;;
6733 esac
6734 fi
6735 MV=$ac_cv_path_MV
6736 if test -n "$MV"; then
6737   { echo "$as_me:$LINENO: result: $MV" >&5
6738 echo "${ECHO_T}$MV" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744
6745 if test -n "$ac_tool_prefix"; then
6746   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_prog_RANLIB+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   if test -n "$RANLIB"; then
6754   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761   for ac_exec_ext in '' $ac_executable_extensions; do
6762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768 done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 RANLIB=$ac_cv_prog_RANLIB
6774 if test -n "$RANLIB"; then
6775   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6776 echo "${ECHO_T}$RANLIB" >&6; }
6777 else
6778   { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6780 fi
6781
6782
6783 fi
6784 if test -z "$ac_cv_prog_RANLIB"; then
6785   ac_ct_RANLIB=$RANLIB
6786   # Extract the first word of "ranlib", so it can be a program name with args.
6787 set dummy ranlib; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   if test -n "$ac_ct_RANLIB"; then
6794   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_prog_ac_ct_RANLIB="ranlib"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6814 if test -n "$ac_ct_RANLIB"; then
6815   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6816 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822   if test "x$ac_ct_RANLIB" = x; then
6823     RANLIB=":"
6824   else
6825     case $cross_compiling:$ac_tool_warned in
6826 yes:)
6827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6828 whose name does not start with the host triplet.  If you think this
6829 configuration is useful to you, please write to autoconf@gnu.org." >&5
6830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6831 whose name does not start with the host triplet.  If you think this
6832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6833 ac_tool_warned=yes ;;
6834 esac
6835     RANLIB=$ac_ct_RANLIB
6836   fi
6837 else
6838   RANLIB="$ac_cv_prog_RANLIB"
6839 fi
6840
6841 # Extract the first word of "rm", so it can be a program name with args.
6842 set dummy rm; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_RM+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   case $RM in
6849   [\\/]* | ?:[\\/]*)
6850   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6851   ;;
6852   *)
6853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856   IFS=$as_save_IFS
6857   test -z "$as_dir" && as_dir=.
6858   for ac_exec_ext in '' $ac_executable_extensions; do
6859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862     break 2
6863   fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6869   ;;
6870 esac
6871 fi
6872 RM=$ac_cv_path_RM
6873 if test -n "$RM"; then
6874   { echo "$as_me:$LINENO: result: $RM" >&5
6875 echo "${ECHO_T}$RM" >&6; }
6876 else
6877   { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6879 fi
6880
6881
6882 # Extract the first word of "sed", so it can be a program name with args.
6883 set dummy sed; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_SED+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   case $SED in
6890   [\\/]* | ?:[\\/]*)
6891   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6892   ;;
6893   *)
6894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897   IFS=$as_save_IFS
6898   test -z "$as_dir" && as_dir=.
6899   for ac_exec_ext in '' $ac_executable_extensions; do
6900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903     break 2
6904   fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6910   ;;
6911 esac
6912 fi
6913 SED=$ac_cv_path_SED
6914 if test -n "$SED"; then
6915   { echo "$as_me:$LINENO: result: $SED" >&5
6916 echo "${ECHO_T}$SED" >&6; }
6917 else
6918   { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6920 fi
6921
6922
6923 # Extract the first word of "tar", so it can be a program name with args.
6924 set dummy tar; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_TAR+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   case $TAR in
6931   [\\/]* | ?:[\\/]*)
6932   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6933   ;;
6934   *)
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940   for ac_exec_ext in '' $ac_executable_extensions; do
6941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6951   ;;
6952 esac
6953 fi
6954 TAR=$ac_cv_path_TAR
6955 if test -n "$TAR"; then
6956   { echo "$as_me:$LINENO: result: $TAR" >&5
6957 echo "${ECHO_T}$TAR" >&6; }
6958 else
6959   { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6961 fi
6962
6963
6964 # Extract the first word of "pwd", so it can be a program name with args.
6965 set dummy pwd; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_BINPWD+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   case $BINPWD in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981   for ac_exec_ext in '' $ac_executable_extensions; do
6982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6992   ;;
6993 esac
6994 fi
6995 BINPWD=$ac_cv_path_BINPWD
6996 if test -n "$BINPWD"; then
6997   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6998 echo "${ECHO_T}$BINPWD" >&6; }
6999 else
7000   { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7002 fi
7003
7004
7005
7006 # Extract the first word of "Graphviz", so it can be a program name with args.
7007 set dummy Graphviz; ac_word=$2
7008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7011   echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013   case $GRAPHVIZ in
7014   [\\/]* | ?:[\\/]*)
7015   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7016   ;;
7017   *)
7018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7020 do
7021   IFS=$as_save_IFS
7022   test -z "$as_dir" && as_dir=.
7023   for ac_exec_ext in '' $ac_executable_extensions; do
7024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027     break 2
7028   fi
7029 done
7030 done
7031 IFS=$as_save_IFS
7032
7033   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7034   ;;
7035 esac
7036 fi
7037 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7038 if test -n "$GRAPHVIZ"; then
7039   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7040 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7041 else
7042   { echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6; }
7044 fi
7045
7046
7047 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7048
7049 cat >>confdefs.h <<\_ACEOF
7050 #define HAVE_GRAPHVIZ 1
7051 _ACEOF
7052
7053     if test "$llvm_cv_os_type" = "MingW" ; then
7054     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7055   fi
7056
7057 cat >>confdefs.h <<_ACEOF
7058 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7059 _ACEOF
7060
7061 fi
7062 # Extract the first word of "dot", so it can be a program name with args.
7063 set dummy dot; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_path_DOT+set}" = set; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   case $DOT in
7070   [\\/]* | ?:[\\/]*)
7071   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7072   ;;
7073   *)
7074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079   for ac_exec_ext in '' $ac_executable_extensions; do
7080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7081     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7088
7089   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7090   ;;
7091 esac
7092 fi
7093 DOT=$ac_cv_path_DOT
7094 if test -n "$DOT"; then
7095   { echo "$as_me:$LINENO: result: $DOT" >&5
7096 echo "${ECHO_T}$DOT" >&6; }
7097 else
7098   { echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6; }
7100 fi
7101
7102
7103 if test "$DOT" != "echo dot" ; then
7104
7105 cat >>confdefs.h <<\_ACEOF
7106 #define HAVE_DOT 1
7107 _ACEOF
7108
7109     if test "$llvm_cv_os_type" = "MingW" ; then
7110     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7111   fi
7112
7113 cat >>confdefs.h <<_ACEOF
7114 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7115 _ACEOF
7116
7117 fi
7118 for ac_prog in gv gsview32
7119 do
7120   # Extract the first word of "$ac_prog", so it can be a program name with args.
7121 set dummy $ac_prog; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_GV+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   case $GV in
7128   [\\/]* | ?:[\\/]*)
7129   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7130   ;;
7131   *)
7132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137   for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147   ;;
7148 esac
7149 fi
7150 GV=$ac_cv_path_GV
7151 if test -n "$GV"; then
7152   { echo "$as_me:$LINENO: result: $GV" >&5
7153 echo "${ECHO_T}$GV" >&6; }
7154 else
7155   { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159
7160   test -n "$GV" && break
7161 done
7162 test -n "$GV" || GV="echo gv"
7163
7164 if test "$GV" != "echo gv" ; then
7165
7166 cat >>confdefs.h <<\_ACEOF
7167 #define HAVE_GV 1
7168 _ACEOF
7169
7170     if test "$llvm_cv_os_type" = "MingW" ; then
7171     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7172   fi
7173
7174 cat >>confdefs.h <<_ACEOF
7175 #define LLVM_PATH_GV "$GV${EXEEXT}"
7176 _ACEOF
7177
7178 fi
7179 # Extract the first word of "dotty", so it can be a program name with args.
7180 set dummy dotty; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_path_DOTTY+set}" = set; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186   case $DOTTY in
7187   [\\/]* | ?:[\\/]*)
7188   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7189   ;;
7190   *)
7191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196   for ac_exec_ext in '' $ac_executable_extensions; do
7197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7207   ;;
7208 esac
7209 fi
7210 DOTTY=$ac_cv_path_DOTTY
7211 if test -n "$DOTTY"; then
7212   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7213 echo "${ECHO_T}$DOTTY" >&6; }
7214 else
7215   { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7217 fi
7218
7219
7220 if test "$DOTTY" != "echo dotty" ; then
7221
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_DOTTY 1
7224 _ACEOF
7225
7226     if test "$llvm_cv_os_type" = "MingW" ; then
7227     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7228   fi
7229
7230 cat >>confdefs.h <<_ACEOF
7231 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7232 _ACEOF
7233
7234 fi
7235
7236
7237 # Extract the first word of "perl", so it can be a program name with args.
7238 set dummy perl; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_PERL+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   case $PERL in
7245   [\\/]* | ?:[\\/]*)
7246   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7247   ;;
7248   *)
7249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254   for ac_exec_ext in '' $ac_executable_extensions; do
7255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261 done
7262 IFS=$as_save_IFS
7263
7264   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7265   ;;
7266 esac
7267 fi
7268 PERL=$ac_cv_path_PERL
7269 if test -n "$PERL"; then
7270   { echo "$as_me:$LINENO: result: $PERL" >&5
7271 echo "${ECHO_T}$PERL" >&6; }
7272 else
7273   { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7275 fi
7276
7277
7278 if test "$PERL" != "none"; then
7279   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7280 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7281   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7282     { echo "$as_me:$LINENO: result: yes" >&5
7283 echo "${ECHO_T}yes" >&6; }
7284   else
7285     PERL=none
7286     { echo "$as_me:$LINENO: result: not found" >&5
7287 echo "${ECHO_T}not found" >&6; }
7288   fi
7289 fi
7290
7291
7292 if test x"$PERL" = xnone; then
7293    HAVE_PERL=0
7294
7295    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7296 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7297    { (exit 1); exit 1; }; }
7298 else
7299    HAVE_PERL=1
7300
7301 fi
7302
7303 # Find a good install program.  We prefer a C program (faster),
7304 # so one script is as good as another.  But avoid the broken or
7305 # incompatible versions:
7306 # SysV /etc/install, /usr/sbin/install
7307 # SunOS /usr/etc/install
7308 # IRIX /sbin/install
7309 # AIX /bin/install
7310 # AmigaOS /C/install, which installs bootblocks on floppy discs
7311 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7312 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7313 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7314 # OS/2's system install, which has a completely different semantic
7315 # ./install, which can be erroneously created by make from ./install.sh.
7316 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7317 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7318 if test -z "$INSTALL"; then
7319 if test "${ac_cv_path_install+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325   IFS=$as_save_IFS
7326   test -z "$as_dir" && as_dir=.
7327   # Account for people who put trailing slashes in PATH elements.
7328 case $as_dir/ in
7329   ./ | .// | /cC/* | \
7330   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7331   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7332   /usr/ucb/* ) ;;
7333   *)
7334     # OSF1 and SCO ODT 3.0 have their own names for install.
7335     # Don't use installbsd from OSF since it installs stuff as root
7336     # by default.
7337     for ac_prog in ginstall scoinst install; do
7338       for ac_exec_ext in '' $ac_executable_extensions; do
7339         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7340           if test $ac_prog = install &&
7341             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7342             # AIX install.  It has an incompatible calling convention.
7343             :
7344           elif test $ac_prog = install &&
7345             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7346             # program-specific install script used by HP pwplus--don't use.
7347             :
7348           else
7349             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7350             break 3
7351           fi
7352         fi
7353       done
7354     done
7355     ;;
7356 esac
7357 done
7358 IFS=$as_save_IFS
7359
7360
7361 fi
7362   if test "${ac_cv_path_install+set}" = set; then
7363     INSTALL=$ac_cv_path_install
7364   else
7365     # As a last resort, use the slow shell script.  Don't cache a
7366     # value for INSTALL within a source directory, because that will
7367     # break other packages using the cache if that directory is
7368     # removed, or if the value is a relative name.
7369     INSTALL=$ac_install_sh
7370   fi
7371 fi
7372 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7373 echo "${ECHO_T}$INSTALL" >&6; }
7374
7375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7376 # It thinks the first close brace ends the variable substitution.
7377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7378
7379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7380
7381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7382
7383
7384 # Extract the first word of "bzip2", so it can be a program name with args.
7385 set dummy bzip2; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_BZIP2+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   case $BZIP2 in
7392   [\\/]* | ?:[\\/]*)
7393   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7394   ;;
7395   *)
7396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401   for ac_exec_ext in '' $ac_executable_extensions; do
7402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411   ;;
7412 esac
7413 fi
7414 BZIP2=$ac_cv_path_BZIP2
7415 if test -n "$BZIP2"; then
7416   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7417 echo "${ECHO_T}$BZIP2" >&6; }
7418 else
7419   { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7421 fi
7422
7423
7424 # Extract the first word of "doxygen", so it can be a program name with args.
7425 set dummy doxygen; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431   case $DOXYGEN in
7432   [\\/]* | ?:[\\/]*)
7433   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7434   ;;
7435   *)
7436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441   for ac_exec_ext in '' $ac_executable_extensions; do
7442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448 done
7449 IFS=$as_save_IFS
7450
7451   ;;
7452 esac
7453 fi
7454 DOXYGEN=$ac_cv_path_DOXYGEN
7455 if test -n "$DOXYGEN"; then
7456   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7457 echo "${ECHO_T}$DOXYGEN" >&6; }
7458 else
7459   { echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6; }
7461 fi
7462
7463
7464 # Extract the first word of "groff", so it can be a program name with args.
7465 set dummy groff; ac_word=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_path_GROFF+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471   case $GROFF in
7472   [\\/]* | ?:[\\/]*)
7473   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7474   ;;
7475   *)
7476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479   IFS=$as_save_IFS
7480   test -z "$as_dir" && as_dir=.
7481   for ac_exec_ext in '' $ac_executable_extensions; do
7482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7483     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485     break 2
7486   fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491   ;;
7492 esac
7493 fi
7494 GROFF=$ac_cv_path_GROFF
7495 if test -n "$GROFF"; then
7496   { echo "$as_me:$LINENO: result: $GROFF" >&5
7497 echo "${ECHO_T}$GROFF" >&6; }
7498 else
7499   { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7501 fi
7502
7503
7504 # Extract the first word of "gzip", so it can be a program name with args.
7505 set dummy gzip; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_GZIP+set}" = set; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   case $GZIP in
7512   [\\/]* | ?:[\\/]*)
7513   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7514   ;;
7515   *)
7516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521   for ac_exec_ext in '' $ac_executable_extensions; do
7522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531   ;;
7532 esac
7533 fi
7534 GZIP=$ac_cv_path_GZIP
7535 if test -n "$GZIP"; then
7536   { echo "$as_me:$LINENO: result: $GZIP" >&5
7537 echo "${ECHO_T}$GZIP" >&6; }
7538 else
7539   { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7541 fi
7542
7543
7544 # Extract the first word of "pod2html", so it can be a program name with args.
7545 set dummy pod2html; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_POD2HTML+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   case $POD2HTML in
7552   [\\/]* | ?:[\\/]*)
7553   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7554   ;;
7555   *)
7556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571   ;;
7572 esac
7573 fi
7574 POD2HTML=$ac_cv_path_POD2HTML
7575 if test -n "$POD2HTML"; then
7576   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7577 echo "${ECHO_T}$POD2HTML" >&6; }
7578 else
7579   { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7581 fi
7582
7583
7584 # Extract the first word of "pod2man", so it can be a program name with args.
7585 set dummy pod2man; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_path_POD2MAN+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   case $POD2MAN in
7592   [\\/]* | ?:[\\/]*)
7593   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7594   ;;
7595   *)
7596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601   for ac_exec_ext in '' $ac_executable_extensions; do
7602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7603     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611   ;;
7612 esac
7613 fi
7614 POD2MAN=$ac_cv_path_POD2MAN
7615 if test -n "$POD2MAN"; then
7616   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7617 echo "${ECHO_T}$POD2MAN" >&6; }
7618 else
7619   { echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6; }
7621 fi
7622
7623
7624 # Extract the first word of "runtest", so it can be a program name with args.
7625 set dummy runtest; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_RUNTEST+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   case $RUNTEST in
7632   [\\/]* | ?:[\\/]*)
7633   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7634   ;;
7635   *)
7636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641   for ac_exec_ext in '' $ac_executable_extensions; do
7642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651   ;;
7652 esac
7653 fi
7654 RUNTEST=$ac_cv_path_RUNTEST
7655 if test -n "$RUNTEST"; then
7656   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7657 echo "${ECHO_T}$RUNTEST" >&6; }
7658 else
7659   { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7661 fi
7662
7663
7664
7665 no_itcl=true
7666 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7667 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7668
7669 # Check whether --with-tclinclude was given.
7670 if test "${with_tclinclude+set}" = set; then
7671   withval=$with_tclinclude; with_tclinclude=${withval}
7672 else
7673   with_tclinclude=''
7674 fi
7675
7676 if test "${ac_cv_path_tclsh+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679
7680 if test x"${with_tclinclude}" != x ; then
7681   if test -f ${with_tclinclude}/tclsh ; then
7682     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7683   elif test -f ${with_tclinclude}/src/tclsh ; then
7684     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7685   else
7686     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7687 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7688    { (exit 1); exit 1; }; }
7689   fi
7690 fi
7691
7692 if test x"${ac_cv_path_tclsh}" = x ; then
7693   { echo "$as_me:$LINENO: result: none" >&5
7694 echo "${ECHO_T}none" >&6; }
7695   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
7696 do
7697   # Extract the first word of "$ac_prog", so it can be a program name with args.
7698 set dummy $ac_prog; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_path_TCLSH+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   case $TCLSH in
7705   [\\/]* | ?:[\\/]*)
7706   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7707   ;;
7708   *)
7709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714   for ac_exec_ext in '' $ac_executable_extensions; do
7715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7716     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721 done
7722 IFS=$as_save_IFS
7723
7724   ;;
7725 esac
7726 fi
7727 TCLSH=$ac_cv_path_TCLSH
7728 if test -n "$TCLSH"; then
7729   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7730 echo "${ECHO_T}$TCLSH" >&6; }
7731 else
7732   { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7734 fi
7735
7736
7737   test -n "$TCLSH" && break
7738 done
7739
7740   if test x"${TCLSH}" = x ; then
7741     ac_cv_path_tclsh='';
7742   else
7743     ac_cv_path_tclsh="${TCLSH}";
7744   fi
7745 else
7746   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7747 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7748   TCLSH="${ac_cv_path_tclsh}"
7749
7750 fi
7751
7752 fi
7753
7754 # Extract the first word of "zip", so it can be a program name with args.
7755 set dummy zip; ac_word=$2
7756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7758 if test "${ac_cv_path_ZIP+set}" = set; then
7759   echo $ECHO_N "(cached) $ECHO_C" >&6
7760 else
7761   case $ZIP in
7762   [\\/]* | ?:[\\/]*)
7763   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7764   ;;
7765   *)
7766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769   IFS=$as_save_IFS
7770   test -z "$as_dir" && as_dir=.
7771   for ac_exec_ext in '' $ac_executable_extensions; do
7772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7773     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775     break 2
7776   fi
7777 done
7778 done
7779 IFS=$as_save_IFS
7780
7781   ;;
7782 esac
7783 fi
7784 ZIP=$ac_cv_path_ZIP
7785 if test -n "$ZIP"; then
7786   { echo "$as_me:$LINENO: result: $ZIP" >&5
7787 echo "${ECHO_T}$ZIP" >&6; }
7788 else
7789   { echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6; }
7791 fi
7792
7793
7794 for ac_prog in ocamlc
7795 do
7796   # Extract the first word of "$ac_prog", so it can be a program name with args.
7797 set dummy $ac_prog; ac_word=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_path_OCAMLC+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   case $OCAMLC in
7804   [\\/]* | ?:[\\/]*)
7805   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7806   ;;
7807   *)
7808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811   IFS=$as_save_IFS
7812   test -z "$as_dir" && as_dir=.
7813   for ac_exec_ext in '' $ac_executable_extensions; do
7814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7815     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817     break 2
7818   fi
7819 done
7820 done
7821 IFS=$as_save_IFS
7822
7823   ;;
7824 esac
7825 fi
7826 OCAMLC=$ac_cv_path_OCAMLC
7827 if test -n "$OCAMLC"; then
7828   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7829 echo "${ECHO_T}$OCAMLC" >&6; }
7830 else
7831   { echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6; }
7833 fi
7834
7835
7836   test -n "$OCAMLC" && break
7837 done
7838
7839 for ac_prog in ocamlopt
7840 do
7841   # Extract the first word of "$ac_prog", so it can be a program name with args.
7842 set dummy $ac_prog; ac_word=$2
7843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7845 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   case $OCAMLOPT in
7849   [\\/]* | ?:[\\/]*)
7850   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7851   ;;
7852   *)
7853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856   IFS=$as_save_IFS
7857   test -z "$as_dir" && as_dir=.
7858   for ac_exec_ext in '' $ac_executable_extensions; do
7859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7860     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862     break 2
7863   fi
7864 done
7865 done
7866 IFS=$as_save_IFS
7867
7868   ;;
7869 esac
7870 fi
7871 OCAMLOPT=$ac_cv_path_OCAMLOPT
7872 if test -n "$OCAMLOPT"; then
7873   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7874 echo "${ECHO_T}$OCAMLOPT" >&6; }
7875 else
7876   { echo "$as_me:$LINENO: result: no" >&5
7877 echo "${ECHO_T}no" >&6; }
7878 fi
7879
7880
7881   test -n "$OCAMLOPT" && break
7882 done
7883
7884 for ac_prog in ocamldep
7885 do
7886   # Extract the first word of "$ac_prog", so it can be a program name with args.
7887 set dummy $ac_prog; ac_word=$2
7888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   case $OCAMLDEP in
7894   [\\/]* | ?:[\\/]*)
7895   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7896   ;;
7897   *)
7898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903   for ac_exec_ext in '' $ac_executable_extensions; do
7904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7905     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7907     break 2
7908   fi
7909 done
7910 done
7911 IFS=$as_save_IFS
7912
7913   ;;
7914 esac
7915 fi
7916 OCAMLDEP=$ac_cv_path_OCAMLDEP
7917 if test -n "$OCAMLDEP"; then
7918   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7919 echo "${ECHO_T}$OCAMLDEP" >&6; }
7920 else
7921   { echo "$as_me:$LINENO: result: no" >&5
7922 echo "${ECHO_T}no" >&6; }
7923 fi
7924
7925
7926   test -n "$OCAMLDEP" && break
7927 done
7928
7929 for ac_prog in ocamldoc
7930 do
7931   # Extract the first word of "$ac_prog", so it can be a program name with args.
7932 set dummy $ac_prog; ac_word=$2
7933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7935 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938   case $OCAMLDOC in
7939   [\\/]* | ?:[\\/]*)
7940   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7941   ;;
7942   *)
7943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946   IFS=$as_save_IFS
7947   test -z "$as_dir" && as_dir=.
7948   for ac_exec_ext in '' $ac_executable_extensions; do
7949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7950     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952     break 2
7953   fi
7954 done
7955 done
7956 IFS=$as_save_IFS
7957
7958   ;;
7959 esac
7960 fi
7961 OCAMLDOC=$ac_cv_path_OCAMLDOC
7962 if test -n "$OCAMLDOC"; then
7963   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7964 echo "${ECHO_T}$OCAMLDOC" >&6; }
7965 else
7966   { echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6; }
7968 fi
7969
7970
7971   test -n "$OCAMLDOC" && break
7972 done
7973
7974 for ac_prog in gas as
7975 do
7976   # Extract the first word of "$ac_prog", so it can be a program name with args.
7977 set dummy $ac_prog; ac_word=$2
7978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7980 if test "${ac_cv_path_GAS+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   case $GAS in
7984   [\\/]* | ?:[\\/]*)
7985   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7986   ;;
7987   *)
7988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991   IFS=$as_save_IFS
7992   test -z "$as_dir" && as_dir=.
7993   for ac_exec_ext in '' $ac_executable_extensions; do
7994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7995     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997     break 2
7998   fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003   ;;
8004 esac
8005 fi
8006 GAS=$ac_cv_path_GAS
8007 if test -n "$GAS"; then
8008   { echo "$as_me:$LINENO: result: $GAS" >&5
8009 echo "${ECHO_T}$GAS" >&6; }
8010 else
8011   { echo "$as_me:$LINENO: result: no" >&5
8012 echo "${ECHO_T}no" >&6; }
8013 fi
8014
8015
8016   test -n "$GAS" && break
8017 done
8018
8019
8020 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8021 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8022 if test "${llvm_cv_link_use_r+set}" = set; then
8023   echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025    ac_ext=c
8026 ac_cpp='$CPP $CPPFLAGS'
8027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8030
8031   oldcflags="$CFLAGS"
8032   CFLAGS="$CFLAGS -Wl,-R."
8033   cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h.  */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h.  */
8039
8040 int
8041 main ()
8042 {
8043 int main() { return 0; }
8044   ;
8045   return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext conftest$ac_exeext
8049 if { (ac_try="$ac_link"
8050 case "(($ac_try" in
8051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052   *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055   (eval "$ac_link") 2>conftest.er1
8056   ac_status=$?
8057   grep -v '^ *+' conftest.er1 >conftest.err
8058   rm -f conftest.er1
8059   cat conftest.err >&5
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } &&
8062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063   { (case "(($ac_try" in
8064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065   *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068   (eval "$ac_try") 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest$ac_exeext'
8073   { (case "(($ac_try" in
8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075   *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078   (eval "$ac_try") 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; }; then
8082   llvm_cv_link_use_r=yes
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087         llvm_cv_link_use_r=no
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext \
8091       conftest$ac_exeext conftest.$ac_ext
8092   CFLAGS="$oldcflags"
8093   ac_ext=c
8094 ac_cpp='$CPP $CPPFLAGS'
8095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098
8099
8100 fi
8101 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8102 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8103 if test "$llvm_cv_link_use_r" = yes ; then
8104
8105 cat >>confdefs.h <<\_ACEOF
8106 #define HAVE_LINK_R 1
8107 _ACEOF
8108
8109   fi
8110
8111
8112 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8113 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8114 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8115   echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117    ac_ext=c
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122
8123   oldcflags="$CFLAGS"
8124   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8125   cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131
8132 int
8133 main ()
8134 {
8135 int main() { return 0; }
8136   ;
8137   return 0;
8138 }
8139 _ACEOF
8140 rm -f conftest.$ac_objext conftest$ac_exeext
8141 if { (ac_try="$ac_link"
8142 case "(($ac_try" in
8143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144   *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147   (eval "$ac_link") 2>conftest.er1
8148   ac_status=$?
8149   grep -v '^ *+' conftest.er1 >conftest.err
8150   rm -f conftest.er1
8151   cat conftest.err >&5
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); } &&
8154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8155   { (case "(($ac_try" in
8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157   *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160   (eval "$ac_try") 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); }; } &&
8164          { ac_try='test -s conftest$ac_exeext'
8165   { (case "(($ac_try" in
8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167   *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170   (eval "$ac_try") 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   llvm_cv_link_use_export_dynamic=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179         llvm_cv_link_use_export_dynamic=no
8180 fi
8181
8182 rm -f core conftest.err conftest.$ac_objext \
8183       conftest$ac_exeext conftest.$ac_ext
8184   CFLAGS="$oldcflags"
8185   ac_ext=c
8186 ac_cpp='$CPP $CPPFLAGS'
8187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8190
8191
8192 fi
8193 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8194 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8195 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8196
8197 cat >>confdefs.h <<\_ACEOF
8198 #define HAVE_LINK_EXPORT_DYNAMIC 1
8199 _ACEOF
8200
8201   fi
8202
8203
8204
8205
8206 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8207 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8208 if test "${ac_cv_c_const+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 int
8219 main ()
8220 {
8221 /* FIXME: Include the comments suggested by Paul. */
8222 #ifndef __cplusplus
8223   /* Ultrix mips cc rejects this.  */
8224   typedef int charset[2];
8225   const charset x;
8226   /* SunOS 4.1.1 cc rejects this.  */
8227   char const *const *ccp;
8228   char **p;
8229   /* NEC SVR4.0.2 mips cc rejects this.  */
8230   struct point {int x, y;};
8231   static struct point const zero = {0,0};
8232   /* AIX XL C 1.02.0.0 rejects this.
8233      It does not let you subtract one const X* pointer from another in
8234      an arm of an if-expression whose if-part is not a constant
8235      expression */
8236   const char *g = "string";
8237   ccp = &g + (g ? g-g : 0);
8238   /* HPUX 7.0 cc rejects these. */
8239   ++ccp;
8240   p = (char**) ccp;
8241   ccp = (char const *const *) p;
8242   { /* SCO 3.2v4 cc rejects this.  */
8243     char *t;
8244     char const *s = 0 ? (char *) 0 : (char const *) 0;
8245
8246     *t++ = 0;
8247     if (s) return 0;
8248   }
8249   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8250     int x[] = {25, 17};
8251     const int *foo = &x[0];
8252     ++foo;
8253   }
8254   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8255     typedef const int *iptr;
8256     iptr p = 0;
8257     ++p;
8258   }
8259   { /* AIX XL C 1.02.0.0 rejects this saying
8260        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8261     struct s { int j; const int *ap[3]; };
8262     struct s *b; b->j = 5;
8263   }
8264   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8265     const int foo = 10;
8266     if (!foo) return 0;
8267   }
8268   return !x[0] && !zero.x;
8269 #endif
8270
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8277 case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_compile") 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290   { (case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_try") 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest.$ac_objext'
8300   { (case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_try") 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309   ac_cv_c_const=yes
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314         ac_cv_c_const=no
8315 fi
8316
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 fi
8319 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8320 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8321 if test $ac_cv_c_const = no; then
8322
8323 cat >>confdefs.h <<\_ACEOF
8324 #define const
8325 _ACEOF
8326
8327 fi
8328
8329
8330
8331
8332
8333
8334 ac_header_dirent=no
8335 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8336   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8337 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8338 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h.  */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h.  */
8348 #include <sys/types.h>
8349 #include <$ac_hdr>
8350
8351 int
8352 main ()
8353 {
8354 if ((DIR *) 0)
8355 return 0;
8356   ;
8357   return 0;
8358 }
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (ac_try="$ac_compile"
8362 case "(($ac_try" in
8363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364   *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367   (eval "$ac_compile") 2>conftest.er1
8368   ac_status=$?
8369   grep -v '^ *+' conftest.er1 >conftest.err
8370   rm -f conftest.er1
8371   cat conftest.err >&5
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } &&
8374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8375   { (case "(($ac_try" in
8376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377   *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380   (eval "$ac_try") 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); }; } &&
8384          { ac_try='test -s conftest.$ac_objext'
8385   { (case "(($ac_try" in
8386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387   *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390   (eval "$ac_try") 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; }; then
8394   eval "$as_ac_Header=yes"
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399         eval "$as_ac_Header=no"
8400 fi
8401
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 fi
8404 ac_res=`eval echo '${'$as_ac_Header'}'`
8405                { echo "$as_me:$LINENO: result: $ac_res" >&5
8406 echo "${ECHO_T}$ac_res" >&6; }
8407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8408   cat >>confdefs.h <<_ACEOF
8409 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8410 _ACEOF
8411
8412 ac_header_dirent=$ac_hdr; break
8413 fi
8414
8415 done
8416 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8417 if test $ac_header_dirent = dirent.h; then
8418   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8419 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8420 if test "${ac_cv_search_opendir+set}" = set; then
8421   echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423   ac_func_search_save_LIBS=$LIBS
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430
8431 /* Override any GCC internal prototype to avoid an error.
8432    Use char because int might match the return type of a GCC
8433    builtin and then its argument prototype would still apply.  */
8434 #ifdef __cplusplus
8435 extern "C"
8436 #endif
8437 char opendir ();
8438 int
8439 main ()
8440 {
8441 return opendir ();
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 for ac_lib in '' dir; do
8447   if test -z "$ac_lib"; then
8448     ac_res="none required"
8449   else
8450     ac_res=-l$ac_lib
8451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8452   fi
8453   rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (ac_try="$ac_link"
8455 case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460   (eval "$ac_link") 2>conftest.er1
8461   ac_status=$?
8462   grep -v '^ *+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } &&
8467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8468   { (case "(($ac_try" in
8469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470   *) ac_try_echo=$ac_try;;
8471 esac
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473   (eval "$ac_try") 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }; } &&
8477          { ac_try='test -s conftest$ac_exeext'
8478   { (case "(($ac_try" in
8479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480   *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483   (eval "$ac_try") 2>&5
8484   ac_status=$?
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); }; }; then
8487   ac_cv_search_opendir=$ac_res
8488 else
8489   echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8491
8492
8493 fi
8494
8495 rm -f core conftest.err conftest.$ac_objext \
8496       conftest$ac_exeext
8497   if test "${ac_cv_search_opendir+set}" = set; then
8498   break
8499 fi
8500 done
8501 if test "${ac_cv_search_opendir+set}" = set; then
8502   :
8503 else
8504   ac_cv_search_opendir=no
8505 fi
8506 rm conftest.$ac_ext
8507 LIBS=$ac_func_search_save_LIBS
8508 fi
8509 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8510 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8511 ac_res=$ac_cv_search_opendir
8512 if test "$ac_res" != no; then
8513   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8514
8515 fi
8516
8517 else
8518   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8519 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8520 if test "${ac_cv_search_opendir+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   ac_func_search_save_LIBS=$LIBS
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530
8531 /* Override any GCC internal prototype to avoid an error.
8532    Use char because int might match the return type of a GCC
8533    builtin and then its argument prototype would still apply.  */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 char opendir ();
8538 int
8539 main ()
8540 {
8541 return opendir ();
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 for ac_lib in '' x; do
8547   if test -z "$ac_lib"; then
8548     ac_res="none required"
8549   else
8550     ac_res=-l$ac_lib
8551     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8552   fi
8553   rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (ac_try="$ac_link"
8555 case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_link") 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } &&
8567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8568   { (case "(($ac_try" in
8569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570   *) ac_try_echo=$ac_try;;
8571 esac
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573   (eval "$ac_try") 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; } &&
8577          { ac_try='test -s conftest$ac_exeext'
8578   { (case "(($ac_try" in
8579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580   *) ac_try_echo=$ac_try;;
8581 esac
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583   (eval "$ac_try") 2>&5
8584   ac_status=$?
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); }; }; then
8587   ac_cv_search_opendir=$ac_res
8588 else
8589   echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8591
8592
8593 fi
8594
8595 rm -f core conftest.err conftest.$ac_objext \
8596       conftest$ac_exeext
8597   if test "${ac_cv_search_opendir+set}" = set; then
8598   break
8599 fi
8600 done
8601 if test "${ac_cv_search_opendir+set}" = set; then
8602   :
8603 else
8604   ac_cv_search_opendir=no
8605 fi
8606 rm conftest.$ac_ext
8607 LIBS=$ac_func_search_save_LIBS
8608 fi
8609 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8610 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8611 ac_res=$ac_cv_search_opendir
8612 if test "$ac_res" != no; then
8613   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8614
8615 fi
8616
8617 fi
8618
8619
8620 for ac_header in dlfcn.h
8621 do
8622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8624   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8627   echo $ECHO_N "(cached) $ECHO_C" >&6
8628 fi
8629 ac_res=`eval echo '${'$as_ac_Header'}'`
8630                { echo "$as_me:$LINENO: result: $ac_res" >&5
8631 echo "${ECHO_T}$ac_res" >&6; }
8632 else
8633   # Is the header compilable?
8634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h.  */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h.  */
8642 $ac_includes_default
8643 #include <$ac_header>
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_compile") 2>conftest.er1
8653   ac_status=$?
8654   grep -v '^ *+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } &&
8659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8660   { (case "(($ac_try" in
8661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662   *) ac_try_echo=$ac_try;;
8663 esac
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665   (eval "$ac_try") 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); }; } &&
8669          { ac_try='test -s conftest.$ac_objext'
8670   { (case "(($ac_try" in
8671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672   *) ac_try_echo=$ac_try;;
8673 esac
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675   (eval "$ac_try") 2>&5
8676   ac_status=$?
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); }; }; then
8679   ac_header_compiler=yes
8680 else
8681   echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8683
8684         ac_header_compiler=no
8685 fi
8686
8687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8689 echo "${ECHO_T}$ac_header_compiler" >&6; }
8690
8691 # Is the header present?
8692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h.  */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h.  */
8700 #include <$ac_header>
8701 _ACEOF
8702 if { (ac_try="$ac_cpp conftest.$ac_ext"
8703 case "(($ac_try" in
8704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705   *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8709   ac_status=$?
8710   grep -v '^ *+' conftest.er1 >conftest.err
8711   rm -f conftest.er1
8712   cat conftest.err >&5
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); } >/dev/null; then
8715   if test -s conftest.err; then
8716     ac_cpp_err=$ac_c_preproc_warn_flag
8717     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8718   else
8719     ac_cpp_err=
8720   fi
8721 else
8722   ac_cpp_err=yes
8723 fi
8724 if test -z "$ac_cpp_err"; then
8725   ac_header_preproc=yes
8726 else
8727   echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730   ac_header_preproc=no
8731 fi
8732
8733 rm -f conftest.err conftest.$ac_ext
8734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735 echo "${ECHO_T}$ac_header_preproc" >&6; }
8736
8737 # So?  What about this header?
8738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8739   yes:no: )
8740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8744     ac_header_preproc=yes
8745     ;;
8746   no:yes:* )
8747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8759     ( cat <<\_ASBOX
8760 ## ----------------------------------- ##
8761 ## Report this to llvmbugs@cs.uiuc.edu ##
8762 ## ----------------------------------- ##
8763 _ASBOX
8764      ) | sed "s/^/$as_me: WARNING:     /" >&2
8765     ;;
8766 esac
8767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772   eval "$as_ac_Header=\$ac_header_preproc"
8773 fi
8774 ac_res=`eval echo '${'$as_ac_Header'}'`
8775                { echo "$as_me:$LINENO: result: $ac_res" >&5
8776 echo "${ECHO_T}$ac_res" >&6; }
8777
8778 fi
8779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8780   cat >>confdefs.h <<_ACEOF
8781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8782 _ACEOF
8783
8784 fi
8785
8786 done
8787
8788 # Check whether --enable-ltdl-install was given.
8789 if test "${enable_ltdl_install+set}" = set; then
8790   enableval=$enable_ltdl_install;
8791 fi
8792
8793
8794
8795
8796 if test x"${enable_ltdl_install-no}" != xno; then
8797   INSTALL_LTDL_TRUE=
8798   INSTALL_LTDL_FALSE='#'
8799 else
8800   INSTALL_LTDL_TRUE='#'
8801   INSTALL_LTDL_FALSE=
8802 fi
8803
8804
8805
8806 if test x"${enable_ltdl_convenience-no}" != xno; then
8807   CONVENIENCE_LTDL_TRUE=
8808   CONVENIENCE_LTDL_FALSE='#'
8809 else
8810   CONVENIENCE_LTDL_TRUE='#'
8811   CONVENIENCE_LTDL_FALSE=
8812 fi
8813
8814
8815 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8816 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8817 library_names_spec=
8818 libname_spec='lib$name'
8819 soname_spec=
8820 shrext_cmds=".so"
8821 postinstall_cmds=
8822 postuninstall_cmds=
8823 finish_cmds=
8824 finish_eval=
8825 shlibpath_var=
8826 shlibpath_overrides_runpath=unknown
8827 version_type=none
8828 dynamic_linker="$host_os ld.so"
8829 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8830 if test "$GCC" = yes; then
8831   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8832   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8833     # if the path contains ";" then we assume it to be the separator
8834     # otherwise default to the standard path separator (i.e. ":") - it is
8835     # assumed that no part of a normal pathname contains ";" but that should
8836     # okay in the real world where ";" in dirpaths is itself problematic.
8837     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8838   else
8839     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8840   fi
8841 else
8842   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8843 fi
8844 need_lib_prefix=unknown
8845 hardcode_into_libs=no
8846
8847 # when you set need_version to no, make sure it does not cause -set_version
8848 # flags to be left without arguments
8849 need_version=unknown
8850
8851 case $host_os in
8852 aix3*)
8853   version_type=linux
8854   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8855   shlibpath_var=LIBPATH
8856
8857   # AIX 3 has no versioning support, so we append a major version to the name.
8858   soname_spec='${libname}${release}${shared_ext}$major'
8859   ;;
8860
8861 aix4* | aix5*)
8862   version_type=linux
8863   need_lib_prefix=no
8864   need_version=no
8865   hardcode_into_libs=yes
8866   if test "$host_cpu" = ia64; then
8867     # AIX 5 supports IA64
8868     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8869     shlibpath_var=LD_LIBRARY_PATH
8870   else
8871     # With GCC up to 2.95.x, collect2 would create an import file
8872     # for dependence libraries.  The import file would start with
8873     # the line `#! .'.  This would cause the generated library to
8874     # depend on `.', always an invalid library.  This was fixed in
8875     # development snapshots of GCC prior to 3.0.
8876     case $host_os in
8877       aix4 | aix4.[01] | aix4.[01].*)
8878       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8879            echo ' yes '
8880            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8881         :
8882       else
8883         can_build_shared=no
8884       fi
8885       ;;
8886     esac
8887     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8888     # soname into executable. Probably we can add versioning support to
8889     # collect2, so additional links can be useful in future.
8890     if test "$aix_use_runtimelinking" = yes; then
8891       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8892       # instead of lib<name>.a to let people know that these are not
8893       # typical AIX shared libraries.
8894       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895     else
8896       # We preserve .a as extension for shared libraries through AIX4.2
8897       # and later when we are not doing run time linking.
8898       library_names_spec='${libname}${release}.a $libname.a'
8899       soname_spec='${libname}${release}${shared_ext}$major'
8900     fi
8901     shlibpath_var=LIBPATH
8902   fi
8903   ;;
8904
8905 amigaos*)
8906   library_names_spec='$libname.ixlibrary $libname.a'
8907   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8908   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'
8909   ;;
8910
8911 beos*)
8912   library_names_spec='${libname}${shared_ext}'
8913   dynamic_linker="$host_os ld.so"
8914   shlibpath_var=LIBRARY_PATH
8915   ;;
8916
8917 bsdi[45]*)
8918   version_type=linux
8919   need_version=no
8920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921   soname_spec='${libname}${release}${shared_ext}$major'
8922   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8923   shlibpath_var=LD_LIBRARY_PATH
8924   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8925   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8926   # the default ld.so.conf also contains /usr/contrib/lib and
8927   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8928   # libtool to hard-code these into programs
8929   ;;
8930
8931 cygwin* | mingw* | pw32*)
8932   version_type=windows
8933   shrext_cmds=".dll"
8934   need_version=no
8935   need_lib_prefix=no
8936
8937   case $GCC,$host_os in
8938   yes,cygwin* | yes,mingw* | yes,pw32*)
8939     library_names_spec='$libname.dll.a'
8940     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8941     postinstall_cmds='base_file=`basename \${file}`~
8942       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8943       dldir=$destdir/`dirname \$dlpath`~
8944       test -d \$dldir || mkdir -p \$dldir~
8945       $install_prog $dir/$dlname \$dldir/$dlname~
8946       chmod a+x \$dldir/$dlname'
8947     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8948       dlpath=$dir/\$dldll~
8949        $rm \$dlpath'
8950     shlibpath_overrides_runpath=yes
8951
8952     case $host_os in
8953     cygwin*)
8954       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8955       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8956       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8957       ;;
8958     mingw*)
8959       # MinGW DLLs use traditional 'lib' prefix
8960       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8961       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8962       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8963         # It is most probably a Windows format PATH printed by
8964         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8965         # path with ; separators, and with drive letters. We can handle the
8966         # drive letters (cygwin fileutils understands them), so leave them,
8967         # especially as we might pass files found there to a mingw objdump,
8968         # which wouldn't understand a cygwinified path. Ahh.
8969         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8970       else
8971         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8972       fi
8973       ;;
8974     pw32*)
8975       # pw32 DLLs use 'pw' prefix rather than 'lib'
8976       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8977       ;;
8978     esac
8979     ;;
8980
8981   *)
8982     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8983     ;;
8984   esac
8985   dynamic_linker='Win32 ld.exe'
8986   # FIXME: first we should search . and the directory the executable is in
8987   shlibpath_var=PATH
8988   ;;
8989
8990 darwin* | rhapsody*)
8991   dynamic_linker="$host_os dyld"
8992   version_type=darwin
8993   need_lib_prefix=no
8994   need_version=no
8995   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8996   soname_spec='${libname}${release}${major}$shared_ext'
8997   shlibpath_overrides_runpath=yes
8998   shlibpath_var=DYLD_LIBRARY_PATH
8999   shrext_cmds='.dylib'
9000   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9001   if test "$GCC" = yes; then
9002     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"`
9003   else
9004     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9005   fi
9006   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9007   ;;
9008
9009 dgux*)
9010   version_type=linux
9011   need_lib_prefix=no
9012   need_version=no
9013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9014   soname_spec='${libname}${release}${shared_ext}$major'
9015   shlibpath_var=LD_LIBRARY_PATH
9016   ;;
9017
9018 freebsd1*)
9019   dynamic_linker=no
9020   ;;
9021
9022 kfreebsd*-gnu)
9023   version_type=linux
9024   need_lib_prefix=no
9025   need_version=no
9026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027   soname_spec='${libname}${release}${shared_ext}$major'
9028   shlibpath_var=LD_LIBRARY_PATH
9029   shlibpath_overrides_runpath=no
9030   hardcode_into_libs=yes
9031   dynamic_linker='GNU ld.so'
9032   ;;
9033
9034 freebsd* | dragonfly*)
9035   # DragonFly does not have aout.  When/if they implement a new
9036   # versioning mechanism, adjust this.
9037   if test -x /usr/bin/objformat; then
9038     objformat=`/usr/bin/objformat`
9039   else
9040     case $host_os in
9041     freebsd[123]*) objformat=aout ;;
9042     *) objformat=elf ;;
9043     esac
9044   fi
9045   version_type=freebsd-$objformat
9046   case $version_type in
9047     freebsd-elf*)
9048       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9049       need_version=no
9050       need_lib_prefix=no
9051       ;;
9052     freebsd-*)
9053       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9054       need_version=yes
9055       ;;
9056   esac
9057   shlibpath_var=LD_LIBRARY_PATH
9058   case $host_os in
9059   freebsd2*)
9060     shlibpath_overrides_runpath=yes
9061     ;;
9062   freebsd3.[01]* | freebsdelf3.[01]*)
9063     shlibpath_overrides_runpath=yes
9064     hardcode_into_libs=yes
9065     ;;
9066   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9067   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9068     shlibpath_overrides_runpath=no
9069     hardcode_into_libs=yes
9070     ;;
9071   freebsd*) # from 4.6 on
9072     shlibpath_overrides_runpath=yes
9073     hardcode_into_libs=yes
9074     ;;
9075   esac
9076   ;;
9077
9078 gnu*)
9079   version_type=linux
9080   need_lib_prefix=no
9081   need_version=no
9082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9083   soname_spec='${libname}${release}${shared_ext}$major'
9084   shlibpath_var=LD_LIBRARY_PATH
9085   hardcode_into_libs=yes
9086   ;;
9087
9088 hpux9* | hpux10* | hpux11*)
9089   # Give a soname corresponding to the major version so that dld.sl refuses to
9090   # link against other versions.
9091   version_type=sunos
9092   need_lib_prefix=no
9093   need_version=no
9094   case $host_cpu in
9095   ia64*)
9096     shrext_cmds='.so'
9097     hardcode_into_libs=yes
9098     dynamic_linker="$host_os dld.so"
9099     shlibpath_var=LD_LIBRARY_PATH
9100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102     soname_spec='${libname}${release}${shared_ext}$major'
9103     if test "X$HPUX_IA64_MODE" = X32; then
9104       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9105     else
9106       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9107     fi
9108     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9109     ;;
9110    hppa*64*)
9111      shrext_cmds='.sl'
9112      hardcode_into_libs=yes
9113      dynamic_linker="$host_os dld.sl"
9114      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9115      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9116      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117      soname_spec='${libname}${release}${shared_ext}$major'
9118      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9119      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9120      ;;
9121    *)
9122     shrext_cmds='.sl'
9123     dynamic_linker="$host_os dld.sl"
9124     shlibpath_var=SHLIB_PATH
9125     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127     soname_spec='${libname}${release}${shared_ext}$major'
9128     ;;
9129   esac
9130   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9131   postinstall_cmds='chmod 555 $lib'
9132   ;;
9133
9134 interix3*)
9135   version_type=linux
9136   need_lib_prefix=no
9137   need_version=no
9138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9139   soname_spec='${libname}${release}${shared_ext}$major'
9140   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9141   shlibpath_var=LD_LIBRARY_PATH
9142   shlibpath_overrides_runpath=no
9143   hardcode_into_libs=yes
9144   ;;
9145
9146 irix5* | irix6* | nonstopux*)
9147   case $host_os in
9148     nonstopux*) version_type=nonstopux ;;
9149     *)
9150         if test "$lt_cv_prog_gnu_ld" = yes; then
9151                 version_type=linux
9152         else
9153                 version_type=irix
9154         fi ;;
9155   esac
9156   need_lib_prefix=no
9157   need_version=no
9158   soname_spec='${libname}${release}${shared_ext}$major'
9159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9160   case $host_os in
9161   irix5* | nonstopux*)
9162     libsuff= shlibsuff=
9163     ;;
9164   *)
9165     case $LD in # libtool.m4 will add one of these switches to LD
9166     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9167       libsuff= shlibsuff= libmagic=32-bit;;
9168     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9169       libsuff=32 shlibsuff=N32 libmagic=N32;;
9170     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9171       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9172     *) libsuff= shlibsuff= libmagic=never-match;;
9173     esac
9174     ;;
9175   esac
9176   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9177   shlibpath_overrides_runpath=no
9178   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9179   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9180   hardcode_into_libs=yes
9181   ;;
9182
9183 # No shared lib support for Linux oldld, aout, or coff.
9184 linux*oldld* | linux*aout* | linux*coff*)
9185   dynamic_linker=no
9186   ;;
9187
9188 # This must be Linux ELF.
9189 linux*)
9190   version_type=linux
9191   need_lib_prefix=no
9192   need_version=no
9193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194   soname_spec='${libname}${release}${shared_ext}$major'
9195   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9196   shlibpath_var=LD_LIBRARY_PATH
9197   shlibpath_overrides_runpath=no
9198   # This implies no fast_install, which is unacceptable.
9199   # Some rework will be needed to allow for fast_install
9200   # before this can be enabled.
9201   hardcode_into_libs=yes
9202
9203   # Append ld.so.conf contents to the search path
9204   if test -f /etc/ld.so.conf; then
9205     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' ' '`
9206     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9207   fi
9208
9209   # We used to test for /lib/ld.so.1 and disable shared libraries on
9210   # powerpc, because MkLinux only supported shared libraries with the
9211   # GNU dynamic linker.  Since this was broken with cross compilers,
9212   # most powerpc-linux boxes support dynamic linking these days and
9213   # people can always --disable-shared, the test was removed, and we
9214   # assume the GNU/Linux dynamic linker is in use.
9215   dynamic_linker='GNU/Linux ld.so'
9216   ;;
9217
9218 knetbsd*-gnu)
9219   version_type=linux
9220   need_lib_prefix=no
9221   need_version=no
9222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9223   soname_spec='${libname}${release}${shared_ext}$major'
9224   shlibpath_var=LD_LIBRARY_PATH
9225   shlibpath_overrides_runpath=no
9226   hardcode_into_libs=yes
9227   dynamic_linker='GNU ld.so'
9228   ;;
9229
9230 netbsd*)
9231   version_type=sunos
9232   need_lib_prefix=no
9233   need_version=no
9234   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9236     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9237     dynamic_linker='NetBSD (a.out) ld.so'
9238   else
9239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9240     soname_spec='${libname}${release}${shared_ext}$major'
9241     dynamic_linker='NetBSD ld.elf_so'
9242   fi
9243   shlibpath_var=LD_LIBRARY_PATH
9244   shlibpath_overrides_runpath=yes
9245   hardcode_into_libs=yes
9246   ;;
9247
9248 newsos6)
9249   version_type=linux
9250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251   shlibpath_var=LD_LIBRARY_PATH
9252   shlibpath_overrides_runpath=yes
9253   ;;
9254
9255 nto-qnx*)
9256   version_type=linux
9257   need_lib_prefix=no
9258   need_version=no
9259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   shlibpath_var=LD_LIBRARY_PATH
9262   shlibpath_overrides_runpath=yes
9263   ;;
9264
9265 openbsd*)
9266   version_type=sunos
9267   sys_lib_dlsearch_path_spec="/usr/lib"
9268   need_lib_prefix=no
9269   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9270   case $host_os in
9271     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9272     *)                         need_version=no  ;;
9273   esac
9274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9275   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9276   shlibpath_var=LD_LIBRARY_PATH
9277   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9278     case $host_os in
9279       openbsd2.[89] | openbsd2.[89].*)
9280         shlibpath_overrides_runpath=no
9281         ;;
9282       *)
9283         shlibpath_overrides_runpath=yes
9284         ;;
9285       esac
9286   else
9287     shlibpath_overrides_runpath=yes
9288   fi
9289   ;;
9290
9291 os2*)
9292   libname_spec='$name'
9293   shrext_cmds=".dll"
9294   need_lib_prefix=no
9295   library_names_spec='$libname${shared_ext} $libname.a'
9296   dynamic_linker='OS/2 ld.exe'
9297   shlibpath_var=LIBPATH
9298   ;;
9299
9300 osf3* | osf4* | osf5*)
9301   version_type=osf
9302   need_lib_prefix=no
9303   need_version=no
9304   soname_spec='${libname}${release}${shared_ext}$major'
9305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306   shlibpath_var=LD_LIBRARY_PATH
9307   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9308   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9309   ;;
9310
9311 solaris*)
9312   version_type=linux
9313   need_lib_prefix=no
9314   need_version=no
9315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316   soname_spec='${libname}${release}${shared_ext}$major'
9317   shlibpath_var=LD_LIBRARY_PATH
9318   shlibpath_overrides_runpath=yes
9319   hardcode_into_libs=yes
9320   # ldd complains unless libraries are executable
9321   postinstall_cmds='chmod +x $lib'
9322   ;;
9323
9324 sunos4*)
9325   version_type=sunos
9326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9327   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9328   shlibpath_var=LD_LIBRARY_PATH
9329   shlibpath_overrides_runpath=yes
9330   if test "$with_gnu_ld" = yes; then
9331     need_lib_prefix=no
9332   fi
9333   need_version=yes
9334   ;;
9335
9336 sysv4 | sysv4.3*)
9337   version_type=linux
9338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339   soname_spec='${libname}${release}${shared_ext}$major'
9340   shlibpath_var=LD_LIBRARY_PATH
9341   case $host_vendor in
9342     sni)
9343       shlibpath_overrides_runpath=no
9344       need_lib_prefix=no
9345       export_dynamic_flag_spec='${wl}-Blargedynsym'
9346       runpath_var=LD_RUN_PATH
9347       ;;
9348     siemens)
9349       need_lib_prefix=no
9350       ;;
9351     motorola)
9352       need_lib_prefix=no
9353       need_version=no
9354       shlibpath_overrides_runpath=no
9355       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9356       ;;
9357   esac
9358   ;;
9359
9360 sysv4*MP*)
9361   if test -d /usr/nec ;then
9362     version_type=linux
9363     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9364     soname_spec='$libname${shared_ext}.$major'
9365     shlibpath_var=LD_LIBRARY_PATH
9366   fi
9367   ;;
9368
9369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9370   version_type=freebsd-elf
9371   need_lib_prefix=no
9372   need_version=no
9373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9374   soname_spec='${libname}${release}${shared_ext}$major'
9375   shlibpath_var=LD_LIBRARY_PATH
9376   hardcode_into_libs=yes
9377   if test "$with_gnu_ld" = yes; then
9378     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9379     shlibpath_overrides_runpath=no
9380   else
9381     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9382     shlibpath_overrides_runpath=yes
9383     case $host_os in
9384       sco3.2v5*)
9385         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9386         ;;
9387     esac
9388   fi
9389   sys_lib_dlsearch_path_spec='/usr/lib'
9390   ;;
9391
9392 uts4*)
9393   version_type=linux
9394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395   soname_spec='${libname}${release}${shared_ext}$major'
9396   shlibpath_var=LD_LIBRARY_PATH
9397   ;;
9398
9399 *)
9400   dynamic_linker=no
9401   ;;
9402 esac
9403 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9404 echo "${ECHO_T}$dynamic_linker" >&6; }
9405 test "$dynamic_linker" = no && can_build_shared=no
9406
9407 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9408 if test "$GCC" = yes; then
9409   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9410 fi
9411
9412
9413 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9414 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9415 if test "${libltdl_cv_shlibext+set}" = set; then
9416   echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418
9419 module=yes
9420 eval libltdl_cv_shlibext=$shrext_cmds
9421
9422 fi
9423 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9424 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9425 if test -n "$libltdl_cv_shlibext"; then
9426
9427 cat >>confdefs.h <<_ACEOF
9428 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9429 _ACEOF
9430
9431 fi
9432
9433
9434 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9435 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9436 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439   libltdl_cv_shlibpath_var="$shlibpath_var"
9440 fi
9441 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9442 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9443 if test -n "$libltdl_cv_shlibpath_var"; then
9444
9445 cat >>confdefs.h <<_ACEOF
9446 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9447 _ACEOF
9448
9449 fi
9450
9451
9452 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9453 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_sys_search_path+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9458 fi
9459 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9460 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9461 if test -n "$libltdl_cv_sys_search_path"; then
9462   sys_search_path=
9463   for dir in $libltdl_cv_sys_search_path; do
9464     if test -z "$sys_search_path"; then
9465       sys_search_path="$dir"
9466     else
9467       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9468     fi
9469   done
9470
9471 cat >>confdefs.h <<_ACEOF
9472 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9473 _ACEOF
9474
9475 fi
9476
9477 { echo "$as_me:$LINENO: checking for objdir" >&5
9478 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9479 if test "${libltdl_cv_objdir+set}" = set; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482   libltdl_cv_objdir="$objdir"
9483   if test -n "$objdir"; then
9484     :
9485   else
9486     rm -f .libs 2>/dev/null
9487     mkdir .libs 2>/dev/null
9488     if test -d .libs; then
9489       libltdl_cv_objdir=.libs
9490     else
9491       # MS-DOS does not allow filenames that begin with a dot.
9492       libltdl_cv_objdir=_libs
9493     fi
9494   rmdir .libs 2>/dev/null
9495   fi
9496
9497 fi
9498 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9499 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9500
9501 cat >>confdefs.h <<_ACEOF
9502 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9503 _ACEOF
9504
9505
9506
9507
9508
9509
9510 # Check for command to grab the raw symbol name followed by C symbol from nm.
9511 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9512 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9513 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9514   echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516
9517 # These are sane defaults that work on at least a few old systems.
9518 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9519
9520 # Character class describing NM global symbol codes.
9521 symcode='[BCDEGRST]'
9522
9523 # Regexp to match symbols that can be accessed directly from C.
9524 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9525
9526 # Transform an extracted symbol line into a proper C declaration
9527 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9528
9529 # Transform an extracted symbol line into symbol name and symbol address
9530 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'"
9531
9532 # Define system-specific variables.
9533 case $host_os in
9534 aix*)
9535   symcode='[BCDT]'
9536   ;;
9537 cygwin* | mingw* | pw32*)
9538   symcode='[ABCDGISTW]'
9539   ;;
9540 hpux*) # Its linker distinguishes data from code symbols
9541   if test "$host_cpu" = ia64; then
9542     symcode='[ABCDEGRST]'
9543   fi
9544   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9545   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'"
9546   ;;
9547 linux*)
9548   if test "$host_cpu" = ia64; then
9549     symcode='[ABCDGIRSTW]'
9550     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9551     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'"
9552   fi
9553   ;;
9554 irix* | nonstopux*)
9555   symcode='[BCDEGRST]'
9556   ;;
9557 osf*)
9558   symcode='[BCDEGQRST]'
9559   ;;
9560 solaris*)
9561   symcode='[BDRT]'
9562   ;;
9563 sco3.2v5*)
9564   symcode='[DT]'
9565   ;;
9566 sysv4.2uw2*)
9567   symcode='[DT]'
9568   ;;
9569 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9570   symcode='[ABDT]'
9571   ;;
9572 sysv4)
9573   symcode='[DFNSTU]'
9574   ;;
9575 esac
9576
9577 # Handle CRLF in mingw tool chain
9578 opt_cr=
9579 case $build_os in
9580 mingw*)
9581   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9582   ;;
9583 esac
9584
9585 # If we're using GNU nm, then use its standard symbol codes.
9586 case `$NM -V 2>&1` in
9587 *GNU* | *'with BFD'*)
9588   symcode='[ABCDGIRSTW]' ;;
9589 esac
9590
9591 # Try without a prefix undercore, then with it.
9592 for ac_symprfx in "" "_"; do
9593
9594   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9595   symxfrm="\\1 $ac_symprfx\\2 \\2"
9596
9597   # Write the raw and C identifiers.
9598   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9599
9600   # Check to see that the pipe works correctly.
9601   pipe_works=no
9602
9603   rm -f conftest*
9604   cat > conftest.$ac_ext <<EOF
9605 #ifdef __cplusplus
9606 extern "C" {
9607 #endif
9608 char nm_test_var;
9609 void nm_test_func(){}
9610 #ifdef __cplusplus
9611 }
9612 #endif
9613 int main(){nm_test_var='a';nm_test_func();return(0);}
9614 EOF
9615
9616   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9617   (eval $ac_compile) 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); }; then
9621     # Now try to grab the symbols.
9622     nlist=conftest.nm
9623     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9624   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } && test -s "$nlist"; then
9628       # Try sorting and uniquifying the output.
9629       if sort "$nlist" | uniq > "$nlist"T; then
9630         mv -f "$nlist"T "$nlist"
9631       else
9632         rm -f "$nlist"T
9633       fi
9634
9635       # Make sure that we snagged all the symbols we need.
9636       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9637         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9638           cat <<EOF > conftest.$ac_ext
9639 #ifdef __cplusplus
9640 extern "C" {
9641 #endif
9642
9643 EOF
9644           # Now generate the symbol file.
9645           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9646
9647           cat <<EOF >> conftest.$ac_ext
9648 #if defined (__STDC__) && __STDC__
9649 # define lt_ptr_t void *
9650 #else
9651 # define lt_ptr_t char *
9652 # define const
9653 #endif
9654
9655 /* The mapping between symbol names and symbols. */
9656 const struct {
9657   const char *name;
9658   lt_ptr_t address;
9659 }
9660 lt_preloaded_symbols[] =
9661 {
9662 EOF
9663           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9664           cat <<\EOF >> conftest.$ac_ext
9665   {0, (lt_ptr_t) 0}
9666 };
9667
9668 #ifdef __cplusplus
9669 }
9670 #endif
9671 EOF
9672           # Now try linking the two files.
9673           mv conftest.$ac_objext conftstm.$ac_objext
9674           lt_save_LIBS="$LIBS"
9675           lt_save_CFLAGS="$CFLAGS"
9676           LIBS="conftstm.$ac_objext"
9677           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9678           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679   (eval $ac_link) 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9683             pipe_works=yes
9684           fi
9685           LIBS="$lt_save_LIBS"
9686           CFLAGS="$lt_save_CFLAGS"
9687         else
9688           echo "cannot find nm_test_func in $nlist" >&5
9689         fi
9690       else
9691         echo "cannot find nm_test_var in $nlist" >&5
9692       fi
9693     else
9694       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9695     fi
9696   else
9697     echo "$progname: failed program was:" >&5
9698     cat conftest.$ac_ext >&5
9699   fi
9700   rm -f conftest* conftst*
9701
9702   # Do not use the global_symbol_pipe unless it works.
9703   if test "$pipe_works" = yes; then
9704     break
9705   else
9706     lt_cv_sys_global_symbol_pipe=
9707   fi
9708 done
9709
9710 fi
9711
9712 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9713   lt_cv_sys_global_symbol_to_cdecl=
9714 fi
9715 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9716   { echo "$as_me:$LINENO: result: failed" >&5
9717 echo "${ECHO_T}failed" >&6; }
9718 else
9719   { echo "$as_me:$LINENO: result: ok" >&5
9720 echo "${ECHO_T}ok" >&6; }
9721 fi
9722
9723
9724 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9725 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9726 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9727   echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9730     libltdl_cv_preloaded_symbols=yes
9731   else
9732     libltdl_cv_preloaded_symbols=no
9733   fi
9734
9735 fi
9736 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9737 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9738 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9739
9740 cat >>confdefs.h <<\_ACEOF
9741 #define HAVE_PRELOADED_SYMBOLS 1
9742 _ACEOF
9743
9744 fi
9745
9746 LIBADD_DL=
9747
9748 ac_ext=c
9749 ac_cpp='$CPP $CPPFLAGS'
9750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9753
9754
9755 { echo "$as_me:$LINENO: checking for shl_load" >&5
9756 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9757 if test "${ac_cv_func_shl_load+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h.  */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h.  */
9766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9768 #define shl_load innocuous_shl_load
9769
9770 /* System header to define __stub macros and hopefully few prototypes,
9771     which can conflict with char shl_load (); below.
9772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9773     <limits.h> exists even on freestanding compilers.  */
9774
9775 #ifdef __STDC__
9776 # include <limits.h>
9777 #else
9778 # include <assert.h>
9779 #endif
9780
9781 #undef shl_load
9782
9783 /* Override any GCC internal prototype to avoid an error.
9784    Use char because int might match the return type of a GCC
9785    builtin and then its argument prototype would still apply.  */
9786 #ifdef __cplusplus
9787 extern "C"
9788 #endif
9789 char shl_load ();
9790 /* The GNU C library defines this for functions which it implements
9791     to always fail with ENOSYS.  Some functions are actually named
9792     something starting with __ and the normal name is an alias.  */
9793 #if defined __stub_shl_load || defined __stub___shl_load
9794 choke me
9795 #endif
9796
9797 int
9798 main ()
9799 {
9800 return shl_load ();
9801   ;
9802   return 0;
9803 }
9804 _ACEOF
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (ac_try="$ac_link"
9807 case "(($ac_try" in
9808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809   *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812   (eval "$ac_link") 2>conftest.er1
9813   ac_status=$?
9814   grep -v '^ *+' conftest.er1 >conftest.err
9815   rm -f conftest.er1
9816   cat conftest.err >&5
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } &&
9819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820   { (case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825   (eval "$ac_try") 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; } &&
9829          { ac_try='test -s conftest$ac_exeext'
9830   { (case "(($ac_try" in
9831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832   *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835   (eval "$ac_try") 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); }; }; then
9839   ac_cv_func_shl_load=yes
9840 else
9841   echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844         ac_cv_func_shl_load=no
9845 fi
9846
9847 rm -f core conftest.err conftest.$ac_objext \
9848       conftest$ac_exeext conftest.$ac_ext
9849 fi
9850 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9851 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9852 if test $ac_cv_func_shl_load = yes; then
9853
9854 cat >>confdefs.h <<\_ACEOF
9855 #define HAVE_SHL_LOAD 1
9856 _ACEOF
9857
9858 else
9859   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9860 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9861 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864   ac_check_lib_save_LIBS=$LIBS
9865 LIBS="-ldld  $LIBS"
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h.  */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h.  */
9872
9873 /* Override any GCC internal prototype to avoid an error.
9874    Use char because int might match the return type of a GCC
9875    builtin and then its argument prototype would still apply.  */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 char shl_load ();
9880 int
9881 main ()
9882 {
9883 return shl_load ();
9884   ;
9885   return 0;
9886 }
9887 _ACEOF
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9890 case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895   (eval "$ac_link") 2>conftest.er1
9896   ac_status=$?
9897   grep -v '^ *+' conftest.er1 >conftest.err
9898   rm -f conftest.er1
9899   cat conftest.err >&5
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } &&
9902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903   { (case "(($ac_try" in
9904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905   *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908   (eval "$ac_try") 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; } &&
9912          { ac_try='test -s conftest$ac_exeext'
9913   { (case "(($ac_try" in
9914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915   *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918   (eval "$ac_try") 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; }; then
9922   ac_cv_lib_dld_shl_load=yes
9923 else
9924   echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9926
9927         ac_cv_lib_dld_shl_load=no
9928 fi
9929
9930 rm -f core conftest.err conftest.$ac_objext \
9931       conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9933 fi
9934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9935 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9936 if test $ac_cv_lib_dld_shl_load = yes; then
9937
9938 cat >>confdefs.h <<\_ACEOF
9939 #define HAVE_SHL_LOAD 1
9940 _ACEOF
9941
9942         LIBADD_DL="$LIBADD_DL -ldld"
9943 else
9944   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9945 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9946 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949   ac_check_lib_save_LIBS=$LIBS
9950 LIBS="-ldl  $LIBS"
9951 cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h.  */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h.  */
9957
9958 /* Override any GCC internal prototype to avoid an error.
9959    Use char because int might match the return type of a GCC
9960    builtin and then its argument prototype would still apply.  */
9961 #ifdef __cplusplus
9962 extern "C"
9963 #endif
9964 char dlopen ();
9965 int
9966 main ()
9967 {
9968 return dlopen ();
9969   ;
9970   return 0;
9971 }
9972 _ACEOF
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (ac_try="$ac_link"
9975 case "(($ac_try" in
9976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977   *) ac_try_echo=$ac_try;;
9978 esac
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980   (eval "$ac_link") 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } &&
9987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9988   { (case "(($ac_try" in
9989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990   *) ac_try_echo=$ac_try;;
9991 esac
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993   (eval "$ac_try") 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; } &&
9997          { ac_try='test -s conftest$ac_exeext'
9998   { (case "(($ac_try" in
9999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000   *) ac_try_echo=$ac_try;;
10001 esac
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003   (eval "$ac_try") 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); }; }; then
10007   ac_cv_lib_dl_dlopen=yes
10008 else
10009   echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10011
10012         ac_cv_lib_dl_dlopen=no
10013 fi
10014
10015 rm -f core conftest.err conftest.$ac_objext \
10016       conftest$ac_exeext conftest.$ac_ext
10017 LIBS=$ac_check_lib_save_LIBS
10018 fi
10019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10020 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10021 if test $ac_cv_lib_dl_dlopen = yes; then
10022
10023 cat >>confdefs.h <<\_ACEOF
10024 #define HAVE_LIBDL 1
10025 _ACEOF
10026
10027                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10028 else
10029   cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h.  */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h.  */
10035 #if HAVE_DLFCN_H
10036 #  include <dlfcn.h>
10037 #endif
10038
10039 int
10040 main ()
10041 {
10042 dlopen(0, 0);
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_link") 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
10058   cat conftest.err >&5
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } &&
10061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10062   { (case "(($ac_try" in
10063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064   *) ac_try_echo=$ac_try;;
10065 esac
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067   (eval "$ac_try") 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; } &&
10071          { ac_try='test -s conftest$ac_exeext'
10072   { (case "(($ac_try" in
10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074   *) ac_try_echo=$ac_try;;
10075 esac
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077   (eval "$ac_try") 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; }; then
10081
10082 cat >>confdefs.h <<\_ACEOF
10083 #define HAVE_LIBDL 1
10084 _ACEOF
10085  libltdl_cv_func_dlopen="yes"
10086 else
10087   echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10091 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10093   echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095   ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-lsvld  $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103
10104 /* Override any GCC internal prototype to avoid an error.
10105    Use char because int might match the return type of a GCC
10106    builtin and then its argument prototype would still apply.  */
10107 #ifdef __cplusplus
10108 extern "C"
10109 #endif
10110 char dlopen ();
10111 int
10112 main ()
10113 {
10114 return dlopen ();
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_link") 2>conftest.er1
10127   ac_status=$?
10128   grep -v '^ *+' conftest.er1 >conftest.err
10129   rm -f conftest.er1
10130   cat conftest.err >&5
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } &&
10133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134   { (case "(($ac_try" in
10135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136   *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139   (eval "$ac_try") 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; } &&
10143          { ac_try='test -s conftest$ac_exeext'
10144   { (case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_try") 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; }; then
10153   ac_cv_lib_svld_dlopen=yes
10154 else
10155   echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158         ac_cv_lib_svld_dlopen=no
10159 fi
10160
10161 rm -f core conftest.err conftest.$ac_objext \
10162       conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10164 fi
10165 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10167 if test $ac_cv_lib_svld_dlopen = yes; then
10168
10169 cat >>confdefs.h <<\_ACEOF
10170 #define HAVE_LIBDL 1
10171 _ACEOF
10172
10173                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10174 else
10175   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10176 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10177 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180   ac_check_lib_save_LIBS=$LIBS
10181 LIBS="-ldld  $LIBS"
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h.  */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h.  */
10188
10189 /* Override any GCC internal prototype to avoid an error.
10190    Use char because int might match the return type of a GCC
10191    builtin and then its argument prototype would still apply.  */
10192 #ifdef __cplusplus
10193 extern "C"
10194 #endif
10195 char dld_link ();
10196 int
10197 main ()
10198 {
10199 return dld_link ();
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 rm -f conftest.$ac_objext conftest$ac_exeext
10205 if { (ac_try="$ac_link"
10206 case "(($ac_try" in
10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208   *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211   (eval "$ac_link") 2>conftest.er1
10212   ac_status=$?
10213   grep -v '^ *+' conftest.er1 >conftest.err
10214   rm -f conftest.er1
10215   cat conftest.err >&5
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } &&
10218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219   { (case "(($ac_try" in
10220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221   *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224   (eval "$ac_try") 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; } &&
10228          { ac_try='test -s conftest$ac_exeext'
10229   { (case "(($ac_try" in
10230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231   *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234   (eval "$ac_try") 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; }; then
10238   ac_cv_lib_dld_dld_link=yes
10239 else
10240   echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10242
10243         ac_cv_lib_dld_dld_link=no
10244 fi
10245
10246 rm -f core conftest.err conftest.$ac_objext \
10247       conftest$ac_exeext conftest.$ac_ext
10248 LIBS=$ac_check_lib_save_LIBS
10249 fi
10250 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10251 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10252 if test $ac_cv_lib_dld_dld_link = yes; then
10253
10254 cat >>confdefs.h <<\_ACEOF
10255 #define HAVE_DLD 1
10256 _ACEOF
10257
10258                 LIBADD_DL="$LIBADD_DL -ldld"
10259 else
10260   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10261 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10262 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265   cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h.  */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h.  */
10271 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10273 #define _dyld_func_lookup innocuous__dyld_func_lookup
10274
10275 /* System header to define __stub macros and hopefully few prototypes,
10276     which can conflict with char _dyld_func_lookup (); below.
10277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10278     <limits.h> exists even on freestanding compilers.  */
10279
10280 #ifdef __STDC__
10281 # include <limits.h>
10282 #else
10283 # include <assert.h>
10284 #endif
10285
10286 #undef _dyld_func_lookup
10287
10288 /* Override any GCC internal prototype to avoid an error.
10289    Use char because int might match the return type of a GCC
10290    builtin and then its argument prototype would still apply.  */
10291 #ifdef __cplusplus
10292 extern "C"
10293 #endif
10294 char _dyld_func_lookup ();
10295 /* The GNU C library defines this for functions which it implements
10296     to always fail with ENOSYS.  Some functions are actually named
10297     something starting with __ and the normal name is an alias.  */
10298 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10299 choke me
10300 #endif
10301
10302 int
10303 main ()
10304 {
10305 return _dyld_func_lookup ();
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314   *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317   (eval "$ac_link") 2>conftest.er1
10318   ac_status=$?
10319   grep -v '^ *+' conftest.er1 >conftest.err
10320   rm -f conftest.er1
10321   cat conftest.err >&5
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } &&
10324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10325   { (case "(($ac_try" in
10326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327   *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330   (eval "$ac_try") 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); }; } &&
10334          { ac_try='test -s conftest$ac_exeext'
10335   { (case "(($ac_try" in
10336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337   *) ac_try_echo=$ac_try;;
10338 esac
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340   (eval "$ac_try") 2>&5
10341   ac_status=$?
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); }; }; then
10344   ac_cv_func__dyld_func_lookup=yes
10345 else
10346   echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349         ac_cv_func__dyld_func_lookup=no
10350 fi
10351
10352 rm -f core conftest.err conftest.$ac_objext \
10353       conftest$ac_exeext conftest.$ac_ext
10354 fi
10355 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10356 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10357 if test $ac_cv_func__dyld_func_lookup = yes; then
10358
10359 cat >>confdefs.h <<\_ACEOF
10360 #define HAVE_DYLD 1
10361 _ACEOF
10362
10363 fi
10364
10365
10366 fi
10367
10368
10369 fi
10370
10371
10372 fi
10373
10374 rm -f core conftest.err conftest.$ac_objext \
10375       conftest$ac_exeext conftest.$ac_ext
10376
10377 fi
10378
10379
10380 fi
10381
10382
10383 fi
10384
10385
10386 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10387 then
10388   lt_save_LIBS="$LIBS"
10389   LIBS="$LIBS $LIBADD_DL"
10390
10391 for ac_func in dlerror
10392 do
10393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h.  */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h.  */
10405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10407 #define $ac_func innocuous_$ac_func
10408
10409 /* System header to define __stub macros and hopefully few prototypes,
10410     which can conflict with char $ac_func (); below.
10411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10412     <limits.h> exists even on freestanding compilers.  */
10413
10414 #ifdef __STDC__
10415 # include <limits.h>
10416 #else
10417 # include <assert.h>
10418 #endif
10419
10420 #undef $ac_func
10421
10422 /* Override any GCC internal prototype to avoid an error.
10423    Use char because int might match the return type of a GCC
10424    builtin and then its argument prototype would still apply.  */
10425 #ifdef __cplusplus
10426 extern "C"
10427 #endif
10428 char $ac_func ();
10429 /* The GNU C library defines this for functions which it implements
10430     to always fail with ENOSYS.  Some functions are actually named
10431     something starting with __ and the normal name is an alias.  */
10432 #if defined __stub_$ac_func || defined __stub___$ac_func
10433 choke me
10434 #endif
10435
10436 int
10437 main ()
10438 {
10439 return $ac_func ();
10440   ;
10441   return 0;
10442 }
10443 _ACEOF
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (ac_try="$ac_link"
10446 case "(($ac_try" in
10447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448   *) ac_try_echo=$ac_try;;
10449 esac
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451   (eval "$ac_link") 2>conftest.er1
10452   ac_status=$?
10453   grep -v '^ *+' conftest.er1 >conftest.err
10454   rm -f conftest.er1
10455   cat conftest.err >&5
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); } &&
10458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10459   { (case "(($ac_try" in
10460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461   *) ac_try_echo=$ac_try;;
10462 esac
10463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464   (eval "$ac_try") 2>&5
10465   ac_status=$?
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); }; } &&
10468          { ac_try='test -s conftest$ac_exeext'
10469   { (case "(($ac_try" in
10470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471   *) ac_try_echo=$ac_try;;
10472 esac
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474   (eval "$ac_try") 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; }; then
10478   eval "$as_ac_var=yes"
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483         eval "$as_ac_var=no"
10484 fi
10485
10486 rm -f core conftest.err conftest.$ac_objext \
10487       conftest$ac_exeext conftest.$ac_ext
10488 fi
10489 ac_res=`eval echo '${'$as_ac_var'}'`
10490                { echo "$as_me:$LINENO: result: $ac_res" >&5
10491 echo "${ECHO_T}$ac_res" >&6; }
10492 if test `eval echo '${'$as_ac_var'}'` = yes; then
10493   cat >>confdefs.h <<_ACEOF
10494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10495 _ACEOF
10496
10497 fi
10498 done
10499
10500   LIBS="$lt_save_LIBS"
10501 fi
10502 ac_ext=c
10503 ac_cpp='$CPP $CPPFLAGS'
10504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10507
10508
10509
10510 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10511 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10512 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10513   echo $ECHO_N "(cached) $ECHO_C" >&6
10514 else
10515   ac_cv_sys_symbol_underscore=no
10516   cat > conftest.$ac_ext <<EOF
10517 void nm_test_func(){}
10518 int main(){nm_test_func;return 0;}
10519 EOF
10520   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10521   (eval $ac_compile) 2>&5
10522   ac_status=$?
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); }; then
10525     # Now try to grab the symbols.
10526     ac_nlist=conftest.nm
10527     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10528   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } && test -s "$ac_nlist"; then
10532       # See whether the symbols have a leading underscore.
10533       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10534         ac_cv_sys_symbol_underscore=yes
10535       else
10536         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10537           :
10538         else
10539           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10540         fi
10541       fi
10542     else
10543       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10544     fi
10545   else
10546     echo "configure: failed program was:" >&5
10547     cat conftest.c >&5
10548   fi
10549   rm -rf conftest*
10550
10551 fi
10552 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10553 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10554
10555
10556 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10557   if test x"$libltdl_cv_func_dlopen" = xyes ||
10558      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10559         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10560 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10561 if test "${libltdl_cv_need_uscore+set}" = set; then
10562   echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564   libltdl_cv_need_uscore=unknown
10565           save_LIBS="$LIBS"
10566           LIBS="$LIBS $LIBADD_DL"
10567           if test "$cross_compiling" = yes; then :
10568   libltdl_cv_need_uscore=cross
10569 else
10570   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10571   lt_status=$lt_dlunknown
10572   cat > conftest.$ac_ext <<EOF
10573 #line 10573 "configure"
10574 #include "confdefs.h"
10575
10576 #if HAVE_DLFCN_H
10577 #include <dlfcn.h>
10578 #endif
10579
10580 #include <stdio.h>
10581
10582 #ifdef RTLD_GLOBAL
10583 #  define LT_DLGLOBAL           RTLD_GLOBAL
10584 #else
10585 #  ifdef DL_GLOBAL
10586 #    define LT_DLGLOBAL         DL_GLOBAL
10587 #  else
10588 #    define LT_DLGLOBAL         0
10589 #  endif
10590 #endif
10591
10592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10593    find out it does not work in some platform. */
10594 #ifndef LT_DLLAZY_OR_NOW
10595 #  ifdef RTLD_LAZY
10596 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10597 #  else
10598 #    ifdef DL_LAZY
10599 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10600 #    else
10601 #      ifdef RTLD_NOW
10602 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10603 #      else
10604 #        ifdef DL_NOW
10605 #          define LT_DLLAZY_OR_NOW      DL_NOW
10606 #        else
10607 #          define LT_DLLAZY_OR_NOW      0
10608 #        endif
10609 #      endif
10610 #    endif
10611 #  endif
10612 #endif
10613
10614 #ifdef __cplusplus
10615 extern "C" void exit (int);
10616 #endif
10617
10618 void fnord() { int i=42;}
10619 int main ()
10620 {
10621   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622   int status = $lt_dlunknown;
10623
10624   if (self)
10625     {
10626       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10627       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10628       /* dlclose (self); */
10629     }
10630   else
10631     puts (dlerror ());
10632
10633     exit (status);
10634 }
10635 EOF
10636   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637   (eval $ac_link) 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10641     (./conftest; exit; ) >&5 2>/dev/null
10642     lt_status=$?
10643     case x$lt_status in
10644       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10645       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10646       x$lt_dlunknown|x*)  ;;
10647     esac
10648   else :
10649     # compilation failed
10650
10651   fi
10652 fi
10653 rm -fr conftest*
10654
10655           LIBS="$save_LIBS"
10656
10657 fi
10658 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10659 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10660   fi
10661 fi
10662
10663 if test x"$libltdl_cv_need_uscore" = xyes; then
10664
10665 cat >>confdefs.h <<\_ACEOF
10666 #define NEED_USCORE 1
10667 _ACEOF
10668
10669 fi
10670
10671
10672 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10673 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10674 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10675   echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677   # PORTME does your system automatically load deplibs for dlopen?
10678   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10679   # For now, we just catch OSes we know something about -- in the
10680   # future, we'll try test this programmatically.
10681   libltdl_cv_sys_dlopen_deplibs=unknown
10682   case "$host_os" in
10683   aix3*|aix4.1.*|aix4.2.*)
10684     # Unknown whether this is true for these versions of AIX, but
10685     # we want this `case' here to explicitly catch those versions.
10686     libltdl_cv_sys_dlopen_deplibs=unknown
10687     ;;
10688   aix[45]*)
10689     libltdl_cv_sys_dlopen_deplibs=yes
10690     ;;
10691   darwin*)
10692     # Assuming the user has installed a libdl from somewhere, this is true
10693     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10694     libltdl_cv_sys_dlopen_deplibs=yes
10695     ;;
10696   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10697     # GNU and its variants, using gnu ld.so (Glibc)
10698     libltdl_cv_sys_dlopen_deplibs=yes
10699     ;;
10700   hpux10*|hpux11*)
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   interix*)
10704     libltdl_cv_sys_dlopen_deplibs=yes
10705     ;;
10706   irix[12345]*|irix6.[01]*)
10707     # Catch all versions of IRIX before 6.2, and indicate that we don't
10708     # know how it worked for any of those versions.
10709     libltdl_cv_sys_dlopen_deplibs=unknown
10710     ;;
10711   irix*)
10712     # The case above catches anything before 6.2, and it's known that
10713     # at 6.2 and later dlopen does load deplibs.
10714     libltdl_cv_sys_dlopen_deplibs=yes
10715     ;;
10716   netbsd*)
10717     libltdl_cv_sys_dlopen_deplibs=yes
10718     ;;
10719   openbsd*)
10720     libltdl_cv_sys_dlopen_deplibs=yes
10721     ;;
10722   osf[1234]*)
10723     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10724     # it did *not* use an RPATH in a shared library to find objects the
10725     # library depends on, so we explictly say `no'.
10726     libltdl_cv_sys_dlopen_deplibs=no
10727     ;;
10728   osf5.0|osf5.0a|osf5.1)
10729     # dlopen *does* load deplibs and with the right loader patch applied
10730     # it even uses RPATH in a shared library to search for shared objects
10731     # that the library depends on, but there's no easy way to know if that
10732     # patch is installed.  Since this is the case, all we can really
10733     # say is unknown -- it depends on the patch being installed.  If
10734     # it is, this changes to `yes'.  Without it, it would be `no'.
10735     libltdl_cv_sys_dlopen_deplibs=unknown
10736     ;;
10737   osf*)
10738     # the two cases above should catch all versions of osf <= 5.1.  Read
10739     # the comments above for what we know about them.
10740     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10741     # is used to find them so we can finally say `yes'.
10742     libltdl_cv_sys_dlopen_deplibs=yes
10743     ;;
10744   solaris*)
10745     libltdl_cv_sys_dlopen_deplibs=yes
10746     ;;
10747   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10748     libltdl_cv_sys_dlopen_deplibs=yes
10749     ;;
10750   esac
10751
10752 fi
10753 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10754 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10755 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10756
10757 cat >>confdefs.h <<\_ACEOF
10758 #define LTDL_DLOPEN_DEPLIBS 1
10759 _ACEOF
10760
10761 fi
10762
10763
10764 for ac_header in argz.h
10765 do
10766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10768   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 fi
10773 ac_res=`eval echo '${'$as_ac_Header'}'`
10774                { echo "$as_me:$LINENO: result: $ac_res" >&5
10775 echo "${ECHO_T}$ac_res" >&6; }
10776 else
10777   # Is the header compilable?
10778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10780 cat >conftest.$ac_ext <<_ACEOF
10781 /* confdefs.h.  */
10782 _ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h.  */
10786 $ac_includes_default
10787 #include <$ac_header>
10788 _ACEOF
10789 rm -f conftest.$ac_objext
10790 if { (ac_try="$ac_compile"
10791 case "(($ac_try" in
10792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793   *) ac_try_echo=$ac_try;;
10794 esac
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796   (eval "$ac_compile") 2>conftest.er1
10797   ac_status=$?
10798   grep -v '^ *+' conftest.er1 >conftest.err
10799   rm -f conftest.er1
10800   cat conftest.err >&5
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); } &&
10803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10804   { (case "(($ac_try" in
10805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806   *) ac_try_echo=$ac_try;;
10807 esac
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809   (eval "$ac_try") 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); }; } &&
10813          { ac_try='test -s conftest.$ac_objext'
10814   { (case "(($ac_try" in
10815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816   *) ac_try_echo=$ac_try;;
10817 esac
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819   (eval "$ac_try") 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; }; then
10823   ac_header_compiler=yes
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828         ac_header_compiler=no
10829 fi
10830
10831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10833 echo "${ECHO_T}$ac_header_compiler" >&6; }
10834
10835 # Is the header present?
10836 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h.  */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h.  */
10844 #include <$ac_header>
10845 _ACEOF
10846 if { (ac_try="$ac_cpp conftest.$ac_ext"
10847 case "(($ac_try" in
10848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849   *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10853   ac_status=$?
10854   grep -v '^ *+' conftest.er1 >conftest.err
10855   rm -f conftest.er1
10856   cat conftest.err >&5
10857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858   (exit $ac_status); } >/dev/null; then
10859   if test -s conftest.err; then
10860     ac_cpp_err=$ac_c_preproc_warn_flag
10861     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10862   else
10863     ac_cpp_err=
10864   fi
10865 else
10866   ac_cpp_err=yes
10867 fi
10868 if test -z "$ac_cpp_err"; then
10869   ac_header_preproc=yes
10870 else
10871   echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10873
10874   ac_header_preproc=no
10875 fi
10876
10877 rm -f conftest.err conftest.$ac_ext
10878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10879 echo "${ECHO_T}$ac_header_preproc" >&6; }
10880
10881 # So?  What about this header?
10882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10883   yes:no: )
10884     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10888     ac_header_preproc=yes
10889     ;;
10890   no:yes:* )
10891     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10893     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10894 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10895     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10897     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10898 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10901     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10903     ( cat <<\_ASBOX
10904 ## ----------------------------------- ##
10905 ## Report this to llvmbugs@cs.uiuc.edu ##
10906 ## ----------------------------------- ##
10907 _ASBOX
10908      ) | sed "s/^/$as_me: WARNING:     /" >&2
10909     ;;
10910 esac
10911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916   eval "$as_ac_Header=\$ac_header_preproc"
10917 fi
10918 ac_res=`eval echo '${'$as_ac_Header'}'`
10919                { echo "$as_me:$LINENO: result: $ac_res" >&5
10920 echo "${ECHO_T}$ac_res" >&6; }
10921
10922 fi
10923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10924   cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10926 _ACEOF
10927
10928 fi
10929
10930 done
10931
10932
10933 { echo "$as_me:$LINENO: checking for error_t" >&5
10934 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10935 if test "${ac_cv_type_error_t+set}" = set; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938   cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h.  */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h.  */
10944 #if HAVE_ARGZ_H
10945 #  include <argz.h>
10946 #endif
10947
10948 typedef error_t ac__type_new_;
10949 int
10950 main ()
10951 {
10952 if ((ac__type_new_ *) 0)
10953   return 0;
10954 if (sizeof (ac__type_new_))
10955   return 0;
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext
10961 if { (ac_try="$ac_compile"
10962 case "(($ac_try" in
10963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964   *) ac_try_echo=$ac_try;;
10965 esac
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967   (eval "$ac_compile") 2>conftest.er1
10968   ac_status=$?
10969   grep -v '^ *+' conftest.er1 >conftest.err
10970   rm -f conftest.er1
10971   cat conftest.err >&5
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); } &&
10974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10975   { (case "(($ac_try" in
10976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977   *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980   (eval "$ac_try") 2>&5
10981   ac_status=$?
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); }; } &&
10984          { ac_try='test -s conftest.$ac_objext'
10985   { (case "(($ac_try" in
10986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987   *) ac_try_echo=$ac_try;;
10988 esac
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990   (eval "$ac_try") 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; }; then
10994   ac_cv_type_error_t=yes
10995 else
10996   echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10998
10999         ac_cv_type_error_t=no
11000 fi
11001
11002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003 fi
11004 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11005 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11006 if test $ac_cv_type_error_t = yes; then
11007
11008 cat >>confdefs.h <<_ACEOF
11009 #define HAVE_ERROR_T 1
11010 _ACEOF
11011
11012
11013 else
11014
11015 cat >>confdefs.h <<\_ACEOF
11016 #define error_t int
11017 _ACEOF
11018
11019 fi
11020
11021
11022
11023
11024
11025
11026
11027 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11028 do
11029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11033   echo $ECHO_N "(cached) $ECHO_C" >&6
11034 else
11035   cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h.  */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h.  */
11041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11043 #define $ac_func innocuous_$ac_func
11044
11045 /* System header to define __stub macros and hopefully few prototypes,
11046     which can conflict with char $ac_func (); below.
11047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11048     <limits.h> exists even on freestanding compilers.  */
11049
11050 #ifdef __STDC__
11051 # include <limits.h>
11052 #else
11053 # include <assert.h>
11054 #endif
11055
11056 #undef $ac_func
11057
11058 /* Override any GCC internal prototype to avoid an error.
11059    Use char because int might match the return type of a GCC
11060    builtin and then its argument prototype would still apply.  */
11061 #ifdef __cplusplus
11062 extern "C"
11063 #endif
11064 char $ac_func ();
11065 /* The GNU C library defines this for functions which it implements
11066     to always fail with ENOSYS.  Some functions are actually named
11067     something starting with __ and the normal name is an alias.  */
11068 #if defined __stub_$ac_func || defined __stub___$ac_func
11069 choke me
11070 #endif
11071
11072 int
11073 main ()
11074 {
11075 return $ac_func ();
11076   ;
11077   return 0;
11078 }
11079 _ACEOF
11080 rm -f conftest.$ac_objext conftest$ac_exeext
11081 if { (ac_try="$ac_link"
11082 case "(($ac_try" in
11083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084   *) ac_try_echo=$ac_try;;
11085 esac
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087   (eval "$ac_link") 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } &&
11094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095   { (case "(($ac_try" in
11096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097   *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100   (eval "$ac_try") 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; } &&
11104          { ac_try='test -s conftest$ac_exeext'
11105   { (case "(($ac_try" in
11106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107   *) ac_try_echo=$ac_try;;
11108 esac
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110   (eval "$ac_try") 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; }; then
11114   eval "$as_ac_var=yes"
11115 else
11116   echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119         eval "$as_ac_var=no"
11120 fi
11121
11122 rm -f core conftest.err conftest.$ac_objext \
11123       conftest$ac_exeext conftest.$ac_ext
11124 fi
11125 ac_res=`eval echo '${'$as_ac_var'}'`
11126                { echo "$as_me:$LINENO: result: $ac_res" >&5
11127 echo "${ECHO_T}$ac_res" >&6; }
11128 if test `eval echo '${'$as_ac_var'}'` = yes; then
11129   cat >>confdefs.h <<_ACEOF
11130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11131 _ACEOF
11132
11133 fi
11134 done
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11164                   stdio.h unistd.h
11165 do
11166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11168   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 fi
11173 ac_res=`eval echo '${'$as_ac_Header'}'`
11174                { echo "$as_me:$LINENO: result: $ac_res" >&5
11175 echo "${ECHO_T}$ac_res" >&6; }
11176 else
11177   # Is the header compilable?
11178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 $ac_includes_default
11187 #include <$ac_header>
11188 _ACEOF
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193   *) ac_try_echo=$ac_try;;
11194 esac
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196   (eval "$ac_compile") 2>conftest.er1
11197   ac_status=$?
11198   grep -v '^ *+' conftest.er1 >conftest.err
11199   rm -f conftest.er1
11200   cat conftest.err >&5
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } &&
11203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11204   { (case "(($ac_try" in
11205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206   *) ac_try_echo=$ac_try;;
11207 esac
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209   (eval "$ac_try") 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; } &&
11213          { ac_try='test -s conftest.$ac_objext'
11214   { (case "(($ac_try" in
11215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216   *) ac_try_echo=$ac_try;;
11217 esac
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219   (eval "$ac_try") 2>&5
11220   ac_status=$?
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); }; }; then
11223   ac_header_compiler=yes
11224 else
11225   echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11227
11228         ac_header_compiler=no
11229 fi
11230
11231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11233 echo "${ECHO_T}$ac_header_compiler" >&6; }
11234
11235 # Is the header present?
11236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244 #include <$ac_header>
11245 _ACEOF
11246 if { (ac_try="$ac_cpp conftest.$ac_ext"
11247 case "(($ac_try" in
11248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249   *) ac_try_echo=$ac_try;;
11250 esac
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11253   ac_status=$?
11254   grep -v '^ *+' conftest.er1 >conftest.err
11255   rm -f conftest.er1
11256   cat conftest.err >&5
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); } >/dev/null; then
11259   if test -s conftest.err; then
11260     ac_cpp_err=$ac_c_preproc_warn_flag
11261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11262   else
11263     ac_cpp_err=
11264   fi
11265 else
11266   ac_cpp_err=yes
11267 fi
11268 if test -z "$ac_cpp_err"; then
11269   ac_header_preproc=yes
11270 else
11271   echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11273
11274   ac_header_preproc=no
11275 fi
11276
11277 rm -f conftest.err conftest.$ac_ext
11278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11279 echo "${ECHO_T}$ac_header_preproc" >&6; }
11280
11281 # So?  What about this header?
11282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11283   yes:no: )
11284     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11288     ac_header_preproc=yes
11289     ;;
11290   no:yes:* )
11291     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11293     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11294 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11295     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11297     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11298 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11303     ( cat <<\_ASBOX
11304 ## ----------------------------------- ##
11305 ## Report this to llvmbugs@cs.uiuc.edu ##
11306 ## ----------------------------------- ##
11307 _ASBOX
11308      ) | sed "s/^/$as_me: WARNING:     /" >&2
11309     ;;
11310 esac
11311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   eval "$as_ac_Header=\$ac_header_preproc"
11317 fi
11318 ac_res=`eval echo '${'$as_ac_Header'}'`
11319                { echo "$as_me:$LINENO: result: $ac_res" >&5
11320 echo "${ECHO_T}$ac_res" >&6; }
11321
11322 fi
11323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11324   cat >>confdefs.h <<_ACEOF
11325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11326 _ACEOF
11327
11328 fi
11329
11330 done
11331
11332
11333
11334
11335
11336 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11337 do
11338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11343   echo $ECHO_N "(cached) $ECHO_C" >&6
11344 fi
11345 ac_res=`eval echo '${'$as_ac_Header'}'`
11346                { echo "$as_me:$LINENO: result: $ac_res" >&5
11347 echo "${ECHO_T}$ac_res" >&6; }
11348 else
11349   # Is the header compilable?
11350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h.  */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h.  */
11358 $ac_includes_default
11359 #include <$ac_header>
11360 _ACEOF
11361 rm -f conftest.$ac_objext
11362 if { (ac_try="$ac_compile"
11363 case "(($ac_try" in
11364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365   *) ac_try_echo=$ac_try;;
11366 esac
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368   (eval "$ac_compile") 2>conftest.er1
11369   ac_status=$?
11370   grep -v '^ *+' conftest.er1 >conftest.err
11371   rm -f conftest.er1
11372   cat conftest.err >&5
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); } &&
11375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11376   { (case "(($ac_try" in
11377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378   *) ac_try_echo=$ac_try;;
11379 esac
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381   (eval "$ac_try") 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); }; } &&
11385          { ac_try='test -s conftest.$ac_objext'
11386   { (case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391   (eval "$ac_try") 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; }; then
11395   ac_header_compiler=yes
11396 else
11397   echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11399
11400         ac_header_compiler=no
11401 fi
11402
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11405 echo "${ECHO_T}$ac_header_compiler" >&6; }
11406
11407 # Is the header present?
11408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 #include <$ac_header>
11417 _ACEOF
11418 if { (ac_try="$ac_cpp conftest.$ac_ext"
11419 case "(($ac_try" in
11420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421   *) ac_try_echo=$ac_try;;
11422 esac
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11425   ac_status=$?
11426   grep -v '^ *+' conftest.er1 >conftest.err
11427   rm -f conftest.er1
11428   cat conftest.err >&5
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); } >/dev/null; then
11431   if test -s conftest.err; then
11432     ac_cpp_err=$ac_c_preproc_warn_flag
11433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11434   else
11435     ac_cpp_err=
11436   fi
11437 else
11438   ac_cpp_err=yes
11439 fi
11440 if test -z "$ac_cpp_err"; then
11441   ac_header_preproc=yes
11442 else
11443   echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446   ac_header_preproc=no
11447 fi
11448
11449 rm -f conftest.err conftest.$ac_ext
11450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11451 echo "${ECHO_T}$ac_header_preproc" >&6; }
11452
11453 # So?  What about this header?
11454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11455   yes:no: )
11456     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11460     ac_header_preproc=yes
11461     ;;
11462   no:yes:* )
11463     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11465     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11466 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11467     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11469     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11470 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11473     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11475     ( cat <<\_ASBOX
11476 ## ----------------------------------- ##
11477 ## Report this to llvmbugs@cs.uiuc.edu ##
11478 ## ----------------------------------- ##
11479 _ASBOX
11480      ) | sed "s/^/$as_me: WARNING:     /" >&2
11481     ;;
11482 esac
11483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11486   echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488   eval "$as_ac_Header=\$ac_header_preproc"
11489 fi
11490 ac_res=`eval echo '${'$as_ac_Header'}'`
11491                { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11493
11494 fi
11495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11496   cat >>confdefs.h <<_ACEOF
11497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11498 _ACEOF
11499
11500 fi
11501
11502 done
11503
11504
11505
11506 for ac_header in string.h strings.h
11507 do
11508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11510   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11513   echo $ECHO_N "(cached) $ECHO_C" >&6
11514 fi
11515 ac_res=`eval echo '${'$as_ac_Header'}'`
11516                { echo "$as_me:$LINENO: result: $ac_res" >&5
11517 echo "${ECHO_T}$ac_res" >&6; }
11518 else
11519   # Is the header compilable?
11520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h.  */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h.  */
11528 $ac_includes_default
11529 #include <$ac_header>
11530 _ACEOF
11531 rm -f conftest.$ac_objext
11532 if { (ac_try="$ac_compile"
11533 case "(($ac_try" in
11534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535   *) ac_try_echo=$ac_try;;
11536 esac
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538   (eval "$ac_compile") 2>conftest.er1
11539   ac_status=$?
11540   grep -v '^ *+' conftest.er1 >conftest.err
11541   rm -f conftest.er1
11542   cat conftest.err >&5
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); } &&
11545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11546   { (case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551   (eval "$ac_try") 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; } &&
11555          { ac_try='test -s conftest.$ac_objext'
11556   { (case "(($ac_try" in
11557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558   *) ac_try_echo=$ac_try;;
11559 esac
11560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561   (eval "$ac_try") 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; }; then
11565   ac_header_compiler=yes
11566 else
11567   echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11569
11570         ac_header_compiler=no
11571 fi
11572
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575 echo "${ECHO_T}$ac_header_compiler" >&6; }
11576
11577 # Is the header present?
11578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11580 cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586 #include <$ac_header>
11587 _ACEOF
11588 if { (ac_try="$ac_cpp conftest.$ac_ext"
11589 case "(($ac_try" in
11590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591   *) ac_try_echo=$ac_try;;
11592 esac
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11595   ac_status=$?
11596   grep -v '^ *+' conftest.er1 >conftest.err
11597   rm -f conftest.er1
11598   cat conftest.err >&5
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); } >/dev/null; then
11601   if test -s conftest.err; then
11602     ac_cpp_err=$ac_c_preproc_warn_flag
11603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11604   else
11605     ac_cpp_err=
11606   fi
11607 else
11608   ac_cpp_err=yes
11609 fi
11610 if test -z "$ac_cpp_err"; then
11611   ac_header_preproc=yes
11612 else
11613   echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616   ac_header_preproc=no
11617 fi
11618
11619 rm -f conftest.err conftest.$ac_ext
11620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11621 echo "${ECHO_T}$ac_header_preproc" >&6; }
11622
11623 # So?  What about this header?
11624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11625   yes:no: )
11626     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11630     ac_header_preproc=yes
11631     ;;
11632   no:yes:* )
11633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11635     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11636 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11637     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11639     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11640 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11643     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11645     ( cat <<\_ASBOX
11646 ## ----------------------------------- ##
11647 ## Report this to llvmbugs@cs.uiuc.edu ##
11648 ## ----------------------------------- ##
11649 _ASBOX
11650      ) | sed "s/^/$as_me: WARNING:     /" >&2
11651     ;;
11652 esac
11653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658   eval "$as_ac_Header=\$ac_header_preproc"
11659 fi
11660 ac_res=`eval echo '${'$as_ac_Header'}'`
11661                { echo "$as_me:$LINENO: result: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11663
11664 fi
11665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11666   cat >>confdefs.h <<_ACEOF
11667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11668 _ACEOF
11669  break
11670 fi
11671
11672 done
11673
11674
11675
11676
11677 for ac_func in strchr index
11678 do
11679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11683   echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685   cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11693 #define $ac_func innocuous_$ac_func
11694
11695 /* System header to define __stub macros and hopefully few prototypes,
11696     which can conflict with char $ac_func (); below.
11697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11698     <limits.h> exists even on freestanding compilers.  */
11699
11700 #ifdef __STDC__
11701 # include <limits.h>
11702 #else
11703 # include <assert.h>
11704 #endif
11705
11706 #undef $ac_func
11707
11708 /* Override any GCC internal prototype to avoid an error.
11709    Use char because int might match the return type of a GCC
11710    builtin and then its argument prototype would still apply.  */
11711 #ifdef __cplusplus
11712 extern "C"
11713 #endif
11714 char $ac_func ();
11715 /* The GNU C library defines this for functions which it implements
11716     to always fail with ENOSYS.  Some functions are actually named
11717     something starting with __ and the normal name is an alias.  */
11718 #if defined __stub_$ac_func || defined __stub___$ac_func
11719 choke me
11720 #endif
11721
11722 int
11723 main ()
11724 {
11725 return $ac_func ();
11726   ;
11727   return 0;
11728 }
11729 _ACEOF
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (ac_try="$ac_link"
11732 case "(($ac_try" in
11733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734   *) ac_try_echo=$ac_try;;
11735 esac
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737   (eval "$ac_link") 2>conftest.er1
11738   ac_status=$?
11739   grep -v '^ *+' conftest.er1 >conftest.err
11740   rm -f conftest.er1
11741   cat conftest.err >&5
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); } &&
11744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11745   { (case "(($ac_try" in
11746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747   *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750   (eval "$ac_try") 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); }; } &&
11754          { ac_try='test -s conftest$ac_exeext'
11755   { (case "(($ac_try" in
11756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757   *) ac_try_echo=$ac_try;;
11758 esac
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760   (eval "$ac_try") 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); }; }; then
11764   eval "$as_ac_var=yes"
11765 else
11766   echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769         eval "$as_ac_var=no"
11770 fi
11771
11772 rm -f core conftest.err conftest.$ac_objext \
11773       conftest$ac_exeext conftest.$ac_ext
11774 fi
11775 ac_res=`eval echo '${'$as_ac_var'}'`
11776                { echo "$as_me:$LINENO: result: $ac_res" >&5
11777 echo "${ECHO_T}$ac_res" >&6; }
11778 if test `eval echo '${'$as_ac_var'}'` = yes; then
11779   cat >>confdefs.h <<_ACEOF
11780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11781 _ACEOF
11782  break
11783 fi
11784 done
11785
11786
11787
11788 for ac_func in strrchr rindex
11789 do
11790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11791 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h.  */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h.  */
11802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11804 #define $ac_func innocuous_$ac_func
11805
11806 /* System header to define __stub macros and hopefully few prototypes,
11807     which can conflict with char $ac_func (); below.
11808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809     <limits.h> exists even on freestanding compilers.  */
11810
11811 #ifdef __STDC__
11812 # include <limits.h>
11813 #else
11814 # include <assert.h>
11815 #endif
11816
11817 #undef $ac_func
11818
11819 /* Override any GCC internal prototype to avoid an error.
11820    Use char because int might match the return type of a GCC
11821    builtin and then its argument prototype would still apply.  */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 char $ac_func ();
11826 /* The GNU C library defines this for functions which it implements
11827     to always fail with ENOSYS.  Some functions are actually named
11828     something starting with __ and the normal name is an alias.  */
11829 #if defined __stub_$ac_func || defined __stub___$ac_func
11830 choke me
11831 #endif
11832
11833 int
11834 main ()
11835 {
11836 return $ac_func ();
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (ac_try="$ac_link"
11843 case "(($ac_try" in
11844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845   *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848   (eval "$ac_link") 2>conftest.er1
11849   ac_status=$?
11850   grep -v '^ *+' conftest.er1 >conftest.err
11851   rm -f conftest.er1
11852   cat conftest.err >&5
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } &&
11855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856   { (case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_try") 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }; } &&
11865          { ac_try='test -s conftest$ac_exeext'
11866   { (case "(($ac_try" in
11867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868   *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871   (eval "$ac_try") 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; }; then
11875   eval "$as_ac_var=yes"
11876 else
11877   echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880         eval "$as_ac_var=no"
11881 fi
11882
11883 rm -f core conftest.err conftest.$ac_objext \
11884       conftest$ac_exeext conftest.$ac_ext
11885 fi
11886 ac_res=`eval echo '${'$as_ac_var'}'`
11887                { echo "$as_me:$LINENO: result: $ac_res" >&5
11888 echo "${ECHO_T}$ac_res" >&6; }
11889 if test `eval echo '${'$as_ac_var'}'` = yes; then
11890   cat >>confdefs.h <<_ACEOF
11891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11892 _ACEOF
11893  break
11894 fi
11895 done
11896
11897
11898
11899 for ac_func in memcpy bcopy
11900 do
11901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907   cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11915 #define $ac_func innocuous_$ac_func
11916
11917 /* System header to define __stub macros and hopefully few prototypes,
11918     which can conflict with char $ac_func (); below.
11919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11920     <limits.h> exists even on freestanding compilers.  */
11921
11922 #ifdef __STDC__
11923 # include <limits.h>
11924 #else
11925 # include <assert.h>
11926 #endif
11927
11928 #undef $ac_func
11929
11930 /* Override any GCC internal prototype to avoid an error.
11931    Use char because int might match the return type of a GCC
11932    builtin and then its argument prototype would still apply.  */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 char $ac_func ();
11937 /* The GNU C library defines this for functions which it implements
11938     to always fail with ENOSYS.  Some functions are actually named
11939     something starting with __ and the normal name is an alias.  */
11940 #if defined __stub_$ac_func || defined __stub___$ac_func
11941 choke me
11942 #endif
11943
11944 int
11945 main ()
11946 {
11947 return $ac_func ();
11948   ;
11949   return 0;
11950 }
11951 _ACEOF
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (ac_try="$ac_link"
11954 case "(($ac_try" in
11955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956   *) ac_try_echo=$ac_try;;
11957 esac
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959   (eval "$ac_link") 2>conftest.er1
11960   ac_status=$?
11961   grep -v '^ *+' conftest.er1 >conftest.err
11962   rm -f conftest.er1
11963   cat conftest.err >&5
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } &&
11966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11967   { (case "(($ac_try" in
11968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969   *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972   (eval "$ac_try") 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; } &&
11976          { ac_try='test -s conftest$ac_exeext'
11977   { (case "(($ac_try" in
11978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979   *) ac_try_echo=$ac_try;;
11980 esac
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982   (eval "$ac_try") 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; }; then
11986   eval "$as_ac_var=yes"
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991         eval "$as_ac_var=no"
11992 fi
11993
11994 rm -f core conftest.err conftest.$ac_objext \
11995       conftest$ac_exeext conftest.$ac_ext
11996 fi
11997 ac_res=`eval echo '${'$as_ac_var'}'`
11998                { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12000 if test `eval echo '${'$as_ac_var'}'` = yes; then
12001   cat >>confdefs.h <<_ACEOF
12002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12003 _ACEOF
12004  break
12005 fi
12006 done
12007
12008
12009
12010 for ac_func in memmove strcmp
12011 do
12012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12016   echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018   cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h.  */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h.  */
12024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12026 #define $ac_func innocuous_$ac_func
12027
12028 /* System header to define __stub macros and hopefully few prototypes,
12029     which can conflict with char $ac_func (); below.
12030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031     <limits.h> exists even on freestanding compilers.  */
12032
12033 #ifdef __STDC__
12034 # include <limits.h>
12035 #else
12036 # include <assert.h>
12037 #endif
12038
12039 #undef $ac_func
12040
12041 /* Override any GCC internal prototype to avoid an error.
12042    Use char because int might match the return type of a GCC
12043    builtin and then its argument prototype would still apply.  */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 char $ac_func ();
12048 /* The GNU C library defines this for functions which it implements
12049     to always fail with ENOSYS.  Some functions are actually named
12050     something starting with __ and the normal name is an alias.  */
12051 #if defined __stub_$ac_func || defined __stub___$ac_func
12052 choke me
12053 #endif
12054
12055 int
12056 main ()
12057 {
12058 return $ac_func ();
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (ac_try="$ac_link"
12065 case "(($ac_try" in
12066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067   *) ac_try_echo=$ac_try;;
12068 esac
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070   (eval "$ac_link") 2>conftest.er1
12071   ac_status=$?
12072   grep -v '^ *+' conftest.er1 >conftest.err
12073   rm -f conftest.er1
12074   cat conftest.err >&5
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); } &&
12077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12078   { (case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083   (eval "$ac_try") 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; } &&
12087          { ac_try='test -s conftest$ac_exeext'
12088   { (case "(($ac_try" in
12089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090   *) ac_try_echo=$ac_try;;
12091 esac
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093   (eval "$ac_try") 2>&5
12094   ac_status=$?
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); }; }; then
12097   eval "$as_ac_var=yes"
12098 else
12099   echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12101
12102         eval "$as_ac_var=no"
12103 fi
12104
12105 rm -f core conftest.err conftest.$ac_objext \
12106       conftest$ac_exeext conftest.$ac_ext
12107 fi
12108 ac_res=`eval echo '${'$as_ac_var'}'`
12109                { echo "$as_me:$LINENO: result: $ac_res" >&5
12110 echo "${ECHO_T}$ac_res" >&6; }
12111 if test `eval echo '${'$as_ac_var'}'` = yes; then
12112   cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12114 _ACEOF
12115
12116 fi
12117 done
12118
12119
12120
12121
12122 for ac_func in closedir opendir readdir
12123 do
12124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12128   echo $ECHO_N "(cached) $ECHO_C" >&6
12129 else
12130   cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12138 #define $ac_func innocuous_$ac_func
12139
12140 /* System header to define __stub macros and hopefully few prototypes,
12141     which can conflict with char $ac_func (); below.
12142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12143     <limits.h> exists even on freestanding compilers.  */
12144
12145 #ifdef __STDC__
12146 # include <limits.h>
12147 #else
12148 # include <assert.h>
12149 #endif
12150
12151 #undef $ac_func
12152
12153 /* Override any GCC internal prototype to avoid an error.
12154    Use char because int might match the return type of a GCC
12155    builtin and then its argument prototype would still apply.  */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 char $ac_func ();
12160 /* The GNU C library defines this for functions which it implements
12161     to always fail with ENOSYS.  Some functions are actually named
12162     something starting with __ and the normal name is an alias.  */
12163 #if defined __stub_$ac_func || defined __stub___$ac_func
12164 choke me
12165 #endif
12166
12167 int
12168 main ()
12169 {
12170 return $ac_func ();
12171   ;
12172   return 0;
12173 }
12174 _ACEOF
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (ac_try="$ac_link"
12177 case "(($ac_try" in
12178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179   *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182   (eval "$ac_link") 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } &&
12189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12190   { (case "(($ac_try" in
12191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192   *) ac_try_echo=$ac_try;;
12193 esac
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195   (eval "$ac_try") 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; } &&
12199          { ac_try='test -s conftest$ac_exeext'
12200   { (case "(($ac_try" in
12201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202   *) ac_try_echo=$ac_try;;
12203 esac
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205   (eval "$ac_try") 2>&5
12206   ac_status=$?
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); }; }; then
12209   eval "$as_ac_var=yes"
12210 else
12211   echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12213
12214         eval "$as_ac_var=no"
12215 fi
12216
12217 rm -f core conftest.err conftest.$ac_objext \
12218       conftest$ac_exeext conftest.$ac_ext
12219 fi
12220 ac_res=`eval echo '${'$as_ac_var'}'`
12221                { echo "$as_me:$LINENO: result: $ac_res" >&5
12222 echo "${ECHO_T}$ac_res" >&6; }
12223 if test `eval echo '${'$as_ac_var'}'` = yes; then
12224   cat >>confdefs.h <<_ACEOF
12225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12226 _ACEOF
12227
12228 fi
12229 done
12230
12231
12232 # Check whether --enable-shared was given.
12233 if test "${enable_shared+set}" = set; then
12234   enableval=$enable_shared; p=${PACKAGE-default}
12235     case $enableval in
12236     yes) enable_shared=yes ;;
12237     no) enable_shared=no ;;
12238     *)
12239       enable_shared=no
12240       # Look at the argument we got.  We use all the common list separators.
12241       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12242       for pkg in $enableval; do
12243         IFS="$lt_save_ifs"
12244         if test "X$pkg" = "X$p"; then
12245           enable_shared=yes
12246         fi
12247       done
12248       IFS="$lt_save_ifs"
12249       ;;
12250     esac
12251 else
12252   enable_shared=yes
12253 fi
12254
12255
12256 # Check whether --enable-static was given.
12257 if test "${enable_static+set}" = set; then
12258   enableval=$enable_static; p=${PACKAGE-default}
12259     case $enableval in
12260     yes) enable_static=yes ;;
12261     no) enable_static=no ;;
12262     *)
12263      enable_static=no
12264       # Look at the argument we got.  We use all the common list separators.
12265       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12266       for pkg in $enableval; do
12267         IFS="$lt_save_ifs"
12268         if test "X$pkg" = "X$p"; then
12269           enable_static=yes
12270         fi
12271       done
12272       IFS="$lt_save_ifs"
12273       ;;
12274     esac
12275 else
12276   enable_static=yes
12277 fi
12278
12279
12280 # Check whether --enable-fast-install was given.
12281 if test "${enable_fast_install+set}" = set; then
12282   enableval=$enable_fast_install; p=${PACKAGE-default}
12283     case $enableval in
12284     yes) enable_fast_install=yes ;;
12285     no) enable_fast_install=no ;;
12286     *)
12287       enable_fast_install=no
12288       # Look at the argument we got.  We use all the common list separators.
12289       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12290       for pkg in $enableval; do
12291         IFS="$lt_save_ifs"
12292         if test "X$pkg" = "X$p"; then
12293           enable_fast_install=yes
12294         fi
12295       done
12296       IFS="$lt_save_ifs"
12297       ;;
12298     esac
12299 else
12300   enable_fast_install=yes
12301 fi
12302
12303
12304 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12305 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12306 if test "${lt_cv_path_SED+set}" = set; then
12307   echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309   # Loop through the user's path and test for sed and gsed.
12310 # Then use that list of sed's as ones to test for truncation.
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12313 do
12314   IFS=$as_save_IFS
12315   test -z "$as_dir" && as_dir=.
12316   for lt_ac_prog in sed gsed; do
12317     for ac_exec_ext in '' $ac_executable_extensions; do
12318       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12319         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12320       fi
12321     done
12322   done
12323 done
12324 lt_ac_max=0
12325 lt_ac_count=0
12326 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12327 # along with /bin/sed that truncates output.
12328 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12329   test ! -f $lt_ac_sed && continue
12330   cat /dev/null > conftest.in
12331   lt_ac_count=0
12332   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12333   # Check for GNU sed and select it if it is found.
12334   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12335     lt_cv_path_SED=$lt_ac_sed
12336     break
12337   fi
12338   while true; do
12339     cat conftest.in conftest.in >conftest.tmp
12340     mv conftest.tmp conftest.in
12341     cp conftest.in conftest.nl
12342     echo >>conftest.nl
12343     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12344     cmp -s conftest.out conftest.nl || break
12345     # 10000 chars as input seems more than enough
12346     test $lt_ac_count -gt 10 && break
12347     lt_ac_count=`expr $lt_ac_count + 1`
12348     if test $lt_ac_count -gt $lt_ac_max; then
12349       lt_ac_max=$lt_ac_count
12350       lt_cv_path_SED=$lt_ac_sed
12351     fi
12352   done
12353 done
12354
12355 fi
12356
12357 SED=$lt_cv_path_SED
12358 { echo "$as_me:$LINENO: result: $SED" >&5
12359 echo "${ECHO_T}$SED" >&6; }
12360
12361
12362 # Check whether --with-gnu-ld was given.
12363 if test "${with_gnu_ld+set}" = set; then
12364   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12365 else
12366   with_gnu_ld=no
12367 fi
12368
12369 ac_prog=ld
12370 if test "$GCC" = yes; then
12371   # Check if gcc -print-prog-name=ld gives a path.
12372   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12373 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12374   case $host in
12375   *-*-mingw*)
12376     # gcc leaves a trailing carriage return which upsets mingw
12377     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12378   *)
12379     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12380   esac
12381   case $ac_prog in
12382     # Accept absolute paths.
12383     [\\/]* | ?:[\\/]*)
12384       re_direlt='/[^/][^/]*/\.\./'
12385       # Canonicalize the pathname of ld
12386       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12387       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12388         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12389       done
12390       test -z "$LD" && LD="$ac_prog"
12391       ;;
12392   "")
12393     # If it fails, then pretend we aren't using GCC.
12394     ac_prog=ld
12395     ;;
12396   *)
12397     # If it is relative, then search for the first ld in PATH.
12398     with_gnu_ld=unknown
12399     ;;
12400   esac
12401 elif test "$with_gnu_ld" = yes; then
12402   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12403 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12404 else
12405   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12406 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12407 fi
12408 if test "${lt_cv_path_LD+set}" = set; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411   if test -z "$LD"; then
12412   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12413   for ac_dir in $PATH; do
12414     IFS="$lt_save_ifs"
12415     test -z "$ac_dir" && ac_dir=.
12416     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12417       lt_cv_path_LD="$ac_dir/$ac_prog"
12418       # Check to see if the program is GNU ld.  I'd rather use --version,
12419       # but apparently some variants of GNU ld only accept -v.
12420       # Break only if it was the GNU/non-GNU ld that we prefer.
12421       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12422       *GNU* | *'with BFD'*)
12423         test "$with_gnu_ld" != no && break
12424         ;;
12425       *)
12426         test "$with_gnu_ld" != yes && break
12427         ;;
12428       esac
12429     fi
12430   done
12431   IFS="$lt_save_ifs"
12432 else
12433   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12434 fi
12435 fi
12436
12437 LD="$lt_cv_path_LD"
12438 if test -n "$LD"; then
12439   { echo "$as_me:$LINENO: result: $LD" >&5
12440 echo "${ECHO_T}$LD" >&6; }
12441 else
12442   { echo "$as_me:$LINENO: result: no" >&5
12443 echo "${ECHO_T}no" >&6; }
12444 fi
12445 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12446 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12447    { (exit 1); exit 1; }; }
12448 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12449 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12450 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12451   echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12454 case `$LD -v 2>&1 </dev/null` in
12455 *GNU* | *'with BFD'*)
12456   lt_cv_prog_gnu_ld=yes
12457   ;;
12458 *)
12459   lt_cv_prog_gnu_ld=no
12460   ;;
12461 esac
12462 fi
12463 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12464 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12465 with_gnu_ld=$lt_cv_prog_gnu_ld
12466
12467
12468 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12469 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12470 if test "${lt_cv_ld_reload_flag+set}" = set; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473   lt_cv_ld_reload_flag='-r'
12474 fi
12475 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12476 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12477 reload_flag=$lt_cv_ld_reload_flag
12478 case $reload_flag in
12479 "" | " "*) ;;
12480 *) reload_flag=" $reload_flag" ;;
12481 esac
12482 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12483 case $host_os in
12484   darwin*)
12485     if test "$GCC" = yes; then
12486       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12487     else
12488       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12489     fi
12490     ;;
12491 esac
12492
12493 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12494 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12495 if test "${lt_cv_deplibs_check_method+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   lt_cv_file_magic_cmd='$MAGIC_CMD'
12499 lt_cv_file_magic_test_file=
12500 lt_cv_deplibs_check_method='unknown'
12501 # Need to set the preceding variable on all platforms that support
12502 # interlibrary dependencies.
12503 # 'none' -- dependencies not supported.
12504 # `unknown' -- same as none, but documents that we really don't know.
12505 # 'pass_all' -- all dependencies passed with no checks.
12506 # 'test_compile' -- check by making test program.
12507 # 'file_magic [[regex]]' -- check by looking for files in library path
12508 # which responds to the $file_magic_cmd with a given extended regex.
12509 # If you have `file' or equivalent on your system and you're not sure
12510 # whether `pass_all' will *always* work, you probably want this one.
12511
12512 case $host_os in
12513 aix4* | aix5*)
12514   lt_cv_deplibs_check_method=pass_all
12515   ;;
12516
12517 beos*)
12518   lt_cv_deplibs_check_method=pass_all
12519   ;;
12520
12521 bsdi[45]*)
12522   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12523   lt_cv_file_magic_cmd='/usr/bin/file -L'
12524   lt_cv_file_magic_test_file=/shlib/libc.so
12525   ;;
12526
12527 cygwin*)
12528   # func_win32_libid is a shell function defined in ltmain.sh
12529   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12530   lt_cv_file_magic_cmd='func_win32_libid'
12531   ;;
12532
12533 mingw* | pw32*)
12534   # Base MSYS/MinGW do not provide the 'file' command needed by
12535   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12536   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12537   lt_cv_file_magic_cmd='$OBJDUMP -f'
12538   ;;
12539
12540 darwin* | rhapsody*)
12541   lt_cv_deplibs_check_method=pass_all
12542   ;;
12543
12544 freebsd* | kfreebsd*-gnu | dragonfly*)
12545   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12546     case $host_cpu in
12547     i*86 )
12548       # Not sure whether the presence of OpenBSD here was a mistake.
12549       # Let's accept both of them until this is cleared up.
12550       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12551       lt_cv_file_magic_cmd=/usr/bin/file
12552       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12553       ;;
12554     esac
12555   else
12556     lt_cv_deplibs_check_method=pass_all
12557   fi
12558   ;;
12559
12560 gnu*)
12561   lt_cv_deplibs_check_method=pass_all
12562   ;;
12563
12564 hpux10.20* | hpux11*)
12565   lt_cv_file_magic_cmd=/usr/bin/file
12566   case $host_cpu in
12567   ia64*)
12568     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12569     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12570     ;;
12571   hppa*64*)
12572     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]'
12573     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12574     ;;
12575   *)
12576     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12577     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12578     ;;
12579   esac
12580   ;;
12581
12582 interix3*)
12583   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12584   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12585   ;;
12586
12587 irix5* | irix6* | nonstopux*)
12588   case $LD in
12589   *-32|*"-32 ") libmagic=32-bit;;
12590   *-n32|*"-n32 ") libmagic=N32;;
12591   *-64|*"-64 ") libmagic=64-bit;;
12592   *) libmagic=never-match;;
12593   esac
12594   lt_cv_deplibs_check_method=pass_all
12595   ;;
12596
12597 # This must be Linux ELF.
12598 linux*)
12599   lt_cv_deplibs_check_method=pass_all
12600   ;;
12601
12602 netbsd*)
12603   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12604     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12605   else
12606     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12607   fi
12608   ;;
12609
12610 newos6*)
12611   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12612   lt_cv_file_magic_cmd=/usr/bin/file
12613   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12614   ;;
12615
12616 nto-qnx*)
12617   lt_cv_deplibs_check_method=unknown
12618   ;;
12619
12620 openbsd*)
12621   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12622     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12623   else
12624     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12625   fi
12626   ;;
12627
12628 osf3* | osf4* | osf5*)
12629   lt_cv_deplibs_check_method=pass_all
12630   ;;
12631
12632 solaris*)
12633   lt_cv_deplibs_check_method=pass_all
12634   ;;
12635
12636 sysv4 | sysv4.3*)
12637   case $host_vendor in
12638   motorola)
12639     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]'
12640     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12641     ;;
12642   ncr)
12643     lt_cv_deplibs_check_method=pass_all
12644     ;;
12645   sequent)
12646     lt_cv_file_magic_cmd='/bin/file'
12647     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12648     ;;
12649   sni)
12650     lt_cv_file_magic_cmd='/bin/file'
12651     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12652     lt_cv_file_magic_test_file=/lib/libc.so
12653     ;;
12654   siemens)
12655     lt_cv_deplibs_check_method=pass_all
12656     ;;
12657   pc)
12658     lt_cv_deplibs_check_method=pass_all
12659     ;;
12660   esac
12661   ;;
12662
12663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12664   lt_cv_deplibs_check_method=pass_all
12665   ;;
12666 esac
12667
12668 fi
12669 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12670 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12671 file_magic_cmd=$lt_cv_file_magic_cmd
12672 deplibs_check_method=$lt_cv_deplibs_check_method
12673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12674
12675
12676
12677 # If no C compiler was specified, use CC.
12678 LTCC=${LTCC-"$CC"}
12679
12680 # If no C compiler flags were specified, use CFLAGS.
12681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12682
12683 # Allow CC to be a program name with arguments.
12684 compiler=$CC
12685
12686 # Check whether --enable-libtool-lock was given.
12687 if test "${enable_libtool_lock+set}" = set; then
12688   enableval=$enable_libtool_lock;
12689 fi
12690
12691 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12692
12693 # Some flags need to be propagated to the compiler or linker for good
12694 # libtool support.
12695 case $host in
12696 ia64-*-hpux*)
12697   # Find out which ABI we are using.
12698   echo 'int i;' > conftest.$ac_ext
12699   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12700   (eval $ac_compile) 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; then
12704     case `/usr/bin/file conftest.$ac_objext` in
12705     *ELF-32*)
12706       HPUX_IA64_MODE="32"
12707       ;;
12708     *ELF-64*)
12709       HPUX_IA64_MODE="64"
12710       ;;
12711     esac
12712   fi
12713   rm -rf conftest*
12714   ;;
12715 *-*-irix6*)
12716   # Find out which ABI we are using.
12717   echo '#line 12717 "configure"' > conftest.$ac_ext
12718   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12719   (eval $ac_compile) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; then
12723    if test "$lt_cv_prog_gnu_ld" = yes; then
12724     case `/usr/bin/file conftest.$ac_objext` in
12725     *32-bit*)
12726       LD="${LD-ld} -melf32bsmip"
12727       ;;
12728     *N32*)
12729       LD="${LD-ld} -melf32bmipn32"
12730       ;;
12731     *64-bit*)
12732       LD="${LD-ld} -melf64bmip"
12733       ;;
12734     esac
12735    else
12736     case `/usr/bin/file conftest.$ac_objext` in
12737     *32-bit*)
12738       LD="${LD-ld} -32"
12739       ;;
12740     *N32*)
12741       LD="${LD-ld} -n32"
12742       ;;
12743     *64-bit*)
12744       LD="${LD-ld} -64"
12745       ;;
12746     esac
12747    fi
12748   fi
12749   rm -rf conftest*
12750   ;;
12751
12752 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12753   # Find out which ABI we are using.
12754   echo 'int i;' > conftest.$ac_ext
12755   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756   (eval $ac_compile) 2>&5
12757   ac_status=$?
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); }; then
12760     case `/usr/bin/file conftest.o` in
12761     *32-bit*)
12762       case $host in
12763         x86_64-*linux*)
12764           LD="${LD-ld} -m elf_i386"
12765           ;;
12766         ppc64-*linux*|powerpc64-*linux*)
12767           LD="${LD-ld} -m elf32ppclinux"
12768           ;;
12769         s390x-*linux*)
12770           LD="${LD-ld} -m elf_s390"
12771           ;;
12772         sparc64-*linux*)
12773           LD="${LD-ld} -m elf32_sparc"
12774           ;;
12775       esac
12776       ;;
12777     *64-bit*)
12778       case $host in
12779         x86_64-*linux*)
12780           LD="${LD-ld} -m elf_x86_64"
12781           ;;
12782         ppc*-*linux*|powerpc*-*linux*)
12783           LD="${LD-ld} -m elf64ppc"
12784           ;;
12785         s390*-*linux*)
12786           LD="${LD-ld} -m elf64_s390"
12787           ;;
12788         sparc*-*linux*)
12789           LD="${LD-ld} -m elf64_sparc"
12790           ;;
12791       esac
12792       ;;
12793     esac
12794   fi
12795   rm -rf conftest*
12796   ;;
12797
12798 *-*-sco3.2v5*)
12799   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12800   SAVE_CFLAGS="$CFLAGS"
12801   CFLAGS="$CFLAGS -belf"
12802   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12803 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12804 if test "${lt_cv_cc_needs_belf+set}" = set; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807   ac_ext=c
12808 ac_cpp='$CPP $CPPFLAGS'
12809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12812
12813      cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h.  */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h.  */
12819
12820 int
12821 main ()
12822 {
12823
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 rm -f conftest.$ac_objext conftest$ac_exeext
12829 if { (ac_try="$ac_link"
12830 case "(($ac_try" in
12831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832   *) ac_try_echo=$ac_try;;
12833 esac
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835   (eval "$ac_link") 2>conftest.er1
12836   ac_status=$?
12837   grep -v '^ *+' conftest.er1 >conftest.err
12838   rm -f conftest.er1
12839   cat conftest.err >&5
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); } &&
12842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12843   { (case "(($ac_try" in
12844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845   *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848   (eval "$ac_try") 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; } &&
12852          { ac_try='test -s conftest$ac_exeext'
12853   { (case "(($ac_try" in
12854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855   *) ac_try_echo=$ac_try;;
12856 esac
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858   (eval "$ac_try") 2>&5
12859   ac_status=$?
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); }; }; then
12862   lt_cv_cc_needs_belf=yes
12863 else
12864   echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12866
12867         lt_cv_cc_needs_belf=no
12868 fi
12869
12870 rm -f core conftest.err conftest.$ac_objext \
12871       conftest$ac_exeext conftest.$ac_ext
12872      ac_ext=c
12873 ac_cpp='$CPP $CPPFLAGS'
12874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12877
12878 fi
12879 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12880 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12881   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12882     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12883     CFLAGS="$SAVE_CFLAGS"
12884   fi
12885   ;;
12886 sparc*-*solaris*)
12887   # Find out which ABI we are using.
12888   echo 'int i;' > conftest.$ac_ext
12889   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12890   (eval $ac_compile) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; then
12894     case `/usr/bin/file conftest.o` in
12895     *64-bit*)
12896       case $lt_cv_prog_gnu_ld in
12897       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12898       *)    LD="${LD-ld} -64" ;;
12899       esac
12900       ;;
12901     esac
12902   fi
12903   rm -rf conftest*
12904   ;;
12905
12906
12907 esac
12908
12909 need_locks="$enable_libtool_lock"
12910
12911
12912
12913
12914 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12915     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12916     (test "X$CXX" != "Xg++"))) ; then
12917   ac_ext=cpp
12918 ac_cpp='$CXXCPP $CPPFLAGS'
12919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12922 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12923 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12924 if test -z "$CXXCPP"; then
12925   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12926   echo $ECHO_N "(cached) $ECHO_C" >&6
12927 else
12928       # Double quotes because CXXCPP needs to be expanded
12929     for CXXCPP in "$CXX -E" "/lib/cpp"
12930     do
12931       ac_preproc_ok=false
12932 for ac_cxx_preproc_warn_flag in '' yes
12933 do
12934   # Use a header file that comes with gcc, so configuring glibc
12935   # with a fresh cross-compiler works.
12936   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937   # <limits.h> exists even on freestanding compilers.
12938   # On the NeXT, cc -E runs the code through the compiler's parser,
12939   # not just through cpp. "Syntax error" is here to catch this case.
12940   cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h.  */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h.  */
12946 #ifdef __STDC__
12947 # include <limits.h>
12948 #else
12949 # include <assert.h>
12950 #endif
12951                      Syntax error
12952 _ACEOF
12953 if { (ac_try="$ac_cpp conftest.$ac_ext"
12954 case "(($ac_try" in
12955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956   *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12960   ac_status=$?
12961   grep -v '^ *+' conftest.er1 >conftest.err
12962   rm -f conftest.er1
12963   cat conftest.err >&5
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); } >/dev/null; then
12966   if test -s conftest.err; then
12967     ac_cpp_err=$ac_cxx_preproc_warn_flag
12968     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12969   else
12970     ac_cpp_err=
12971   fi
12972 else
12973   ac_cpp_err=yes
12974 fi
12975 if test -z "$ac_cpp_err"; then
12976   :
12977 else
12978   echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12980
12981   # Broken: fails on valid input.
12982 continue
12983 fi
12984
12985 rm -f conftest.err conftest.$ac_ext
12986
12987   # OK, works on sane cases.  Now check whether nonexistent headers
12988   # can be detected and how.
12989   cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h.  */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h.  */
12995 #include <ac_nonexistent.h>
12996 _ACEOF
12997 if { (ac_try="$ac_cpp conftest.$ac_ext"
12998 case "(($ac_try" in
12999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000   *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13004   ac_status=$?
13005   grep -v '^ *+' conftest.er1 >conftest.err
13006   rm -f conftest.er1
13007   cat conftest.err >&5
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); } >/dev/null; then
13010   if test -s conftest.err; then
13011     ac_cpp_err=$ac_cxx_preproc_warn_flag
13012     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13013   else
13014     ac_cpp_err=
13015   fi
13016 else
13017   ac_cpp_err=yes
13018 fi
13019 if test -z "$ac_cpp_err"; then
13020   # Broken: success on invalid input.
13021 continue
13022 else
13023   echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026   # Passes both tests.
13027 ac_preproc_ok=:
13028 break
13029 fi
13030
13031 rm -f conftest.err conftest.$ac_ext
13032
13033 done
13034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13035 rm -f conftest.err conftest.$ac_ext
13036 if $ac_preproc_ok; then
13037   break
13038 fi
13039
13040     done
13041     ac_cv_prog_CXXCPP=$CXXCPP
13042
13043 fi
13044   CXXCPP=$ac_cv_prog_CXXCPP
13045 else
13046   ac_cv_prog_CXXCPP=$CXXCPP
13047 fi
13048 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13049 echo "${ECHO_T}$CXXCPP" >&6; }
13050 ac_preproc_ok=false
13051 for ac_cxx_preproc_warn_flag in '' yes
13052 do
13053   # Use a header file that comes with gcc, so configuring glibc
13054   # with a fresh cross-compiler works.
13055   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13056   # <limits.h> exists even on freestanding compilers.
13057   # On the NeXT, cc -E runs the code through the compiler's parser,
13058   # not just through cpp. "Syntax error" is here to catch this case.
13059   cat >conftest.$ac_ext <<_ACEOF
13060 /* confdefs.h.  */
13061 _ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h.  */
13065 #ifdef __STDC__
13066 # include <limits.h>
13067 #else
13068 # include <assert.h>
13069 #endif
13070                      Syntax error
13071 _ACEOF
13072 if { (ac_try="$ac_cpp conftest.$ac_ext"
13073 case "(($ac_try" in
13074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075   *) ac_try_echo=$ac_try;;
13076 esac
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13079   ac_status=$?
13080   grep -v '^ *+' conftest.er1 >conftest.err
13081   rm -f conftest.er1
13082   cat conftest.err >&5
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); } >/dev/null; then
13085   if test -s conftest.err; then
13086     ac_cpp_err=$ac_cxx_preproc_warn_flag
13087     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13088   else
13089     ac_cpp_err=
13090   fi
13091 else
13092   ac_cpp_err=yes
13093 fi
13094 if test -z "$ac_cpp_err"; then
13095   :
13096 else
13097   echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13099
13100   # Broken: fails on valid input.
13101 continue
13102 fi
13103
13104 rm -f conftest.err conftest.$ac_ext
13105
13106   # OK, works on sane cases.  Now check whether nonexistent headers
13107   # can be detected and how.
13108   cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h.  */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h.  */
13114 #include <ac_nonexistent.h>
13115 _ACEOF
13116 if { (ac_try="$ac_cpp conftest.$ac_ext"
13117 case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } >/dev/null; then
13129   if test -s conftest.err; then
13130     ac_cpp_err=$ac_cxx_preproc_warn_flag
13131     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13132   else
13133     ac_cpp_err=
13134   fi
13135 else
13136   ac_cpp_err=yes
13137 fi
13138 if test -z "$ac_cpp_err"; then
13139   # Broken: success on invalid input.
13140 continue
13141 else
13142   echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145   # Passes both tests.
13146 ac_preproc_ok=:
13147 break
13148 fi
13149
13150 rm -f conftest.err conftest.$ac_ext
13151
13152 done
13153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13154 rm -f conftest.err conftest.$ac_ext
13155 if $ac_preproc_ok; then
13156   :
13157 else
13158   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13159 See \`config.log' for more details." >&5
13160 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13161 See \`config.log' for more details." >&2;}
13162    { (exit 1); exit 1; }; }
13163 fi
13164
13165 ac_ext=cpp
13166 ac_cpp='$CXXCPP $CPPFLAGS'
13167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13170
13171 fi
13172
13173
13174 ac_ext=f
13175 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13176 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13178 if test -n "$ac_tool_prefix"; then
13179   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
13180   do
13181     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13185 if test "${ac_cv_prog_F77+set}" = set; then
13186   echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188   if test -n "$F77"; then
13189   ac_cv_prog_F77="$F77" # Let the user override the test.
13190 else
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13193 do
13194   IFS=$as_save_IFS
13195   test -z "$as_dir" && as_dir=.
13196   for ac_exec_ext in '' $ac_executable_extensions; do
13197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13198     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13200     break 2
13201   fi
13202 done
13203 done
13204 IFS=$as_save_IFS
13205
13206 fi
13207 fi
13208 F77=$ac_cv_prog_F77
13209 if test -n "$F77"; then
13210   { echo "$as_me:$LINENO: result: $F77" >&5
13211 echo "${ECHO_T}$F77" >&6; }
13212 else
13213   { echo "$as_me:$LINENO: result: no" >&5
13214 echo "${ECHO_T}no" >&6; }
13215 fi
13216
13217
13218     test -n "$F77" && break
13219   done
13220 fi
13221 if test -z "$F77"; then
13222   ac_ct_F77=$F77
13223   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
13224 do
13225   # Extract the first word of "$ac_prog", so it can be a program name with args.
13226 set dummy $ac_prog; ac_word=$2
13227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13229 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13230   echo $ECHO_N "(cached) $ECHO_C" >&6
13231 else
13232   if test -n "$ac_ct_F77"; then
13233   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13234 else
13235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236 for as_dir in $PATH
13237 do
13238   IFS=$as_save_IFS
13239   test -z "$as_dir" && as_dir=.
13240   for ac_exec_ext in '' $ac_executable_extensions; do
13241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13242     ac_cv_prog_ac_ct_F77="$ac_prog"
13243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13244     break 2
13245   fi
13246 done
13247 done
13248 IFS=$as_save_IFS
13249
13250 fi
13251 fi
13252 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13253 if test -n "$ac_ct_F77"; then
13254   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13255 echo "${ECHO_T}$ac_ct_F77" >&6; }
13256 else
13257   { echo "$as_me:$LINENO: result: no" >&5
13258 echo "${ECHO_T}no" >&6; }
13259 fi
13260
13261
13262   test -n "$ac_ct_F77" && break
13263 done
13264
13265   if test "x$ac_ct_F77" = x; then
13266     F77=""
13267   else
13268     case $cross_compiling:$ac_tool_warned in
13269 yes:)
13270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13271 whose name does not start with the host triplet.  If you think this
13272 configuration is useful to you, please write to autoconf@gnu.org." >&5
13273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13274 whose name does not start with the host triplet.  If you think this
13275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13276 ac_tool_warned=yes ;;
13277 esac
13278     F77=$ac_ct_F77
13279   fi
13280 fi
13281
13282
13283 # Provide some information about the compiler.
13284 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13285 ac_compiler=`set X $ac_compile; echo $2`
13286 { (ac_try="$ac_compiler --version >&5"
13287 case "(($ac_try" in
13288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289   *) ac_try_echo=$ac_try;;
13290 esac
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292   (eval "$ac_compiler --version >&5") 2>&5
13293   ac_status=$?
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); }
13296 { (ac_try="$ac_compiler -v >&5"
13297 case "(($ac_try" in
13298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299   *) ac_try_echo=$ac_try;;
13300 esac
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302   (eval "$ac_compiler -v >&5") 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }
13306 { (ac_try="$ac_compiler -V >&5"
13307 case "(($ac_try" in
13308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309   *) ac_try_echo=$ac_try;;
13310 esac
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312   (eval "$ac_compiler -V >&5") 2>&5
13313   ac_status=$?
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); }
13316 rm -f a.out
13317
13318 # If we don't use `.F' as extension, the preprocessor is not run on the
13319 # input file.  (Note that this only needs to work for GNU compilers.)
13320 ac_save_ext=$ac_ext
13321 ac_ext=F
13322 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13323 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13324 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   cat >conftest.$ac_ext <<_ACEOF
13328       program main
13329 #ifndef __GNUC__
13330        choke me
13331 #endif
13332
13333       end
13334 _ACEOF
13335 rm -f conftest.$ac_objext
13336 if { (ac_try="$ac_compile"
13337 case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_compile") 2>conftest.er1
13343   ac_status=$?
13344   grep -v '^ *+' conftest.er1 >conftest.err
13345   rm -f conftest.er1
13346   cat conftest.err >&5
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } &&
13349          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13350   { (case "(($ac_try" in
13351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352   *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355   (eval "$ac_try") 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); }; } &&
13359          { ac_try='test -s conftest.$ac_objext'
13360   { (case "(($ac_try" in
13361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362   *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365   (eval "$ac_try") 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); }; }; then
13369   ac_compiler_gnu=yes
13370 else
13371   echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13373
13374         ac_compiler_gnu=no
13375 fi
13376
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13379
13380 fi
13381 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13382 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13383 ac_ext=$ac_save_ext
13384 ac_test_FFLAGS=${FFLAGS+set}
13385 ac_save_FFLAGS=$FFLAGS
13386 FFLAGS=
13387 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13388 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13389 if test "${ac_cv_prog_f77_g+set}" = set; then
13390   echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392   FFLAGS=-g
13393 cat >conftest.$ac_ext <<_ACEOF
13394       program main
13395
13396       end
13397 _ACEOF
13398 rm -f conftest.$ac_objext
13399 if { (ac_try="$ac_compile"
13400 case "(($ac_try" in
13401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402   *) ac_try_echo=$ac_try;;
13403 esac
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405   (eval "$ac_compile") 2>conftest.er1
13406   ac_status=$?
13407   grep -v '^ *+' conftest.er1 >conftest.err
13408   rm -f conftest.er1
13409   cat conftest.err >&5
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } &&
13412          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13413   { (case "(($ac_try" in
13414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415   *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418   (eval "$ac_try") 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); }; } &&
13422          { ac_try='test -s conftest.$ac_objext'
13423   { (case "(($ac_try" in
13424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425   *) ac_try_echo=$ac_try;;
13426 esac
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428   (eval "$ac_try") 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); }; }; then
13432   ac_cv_prog_f77_g=yes
13433 else
13434   echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437         ac_cv_prog_f77_g=no
13438 fi
13439
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441
13442 fi
13443 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13444 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13445 if test "$ac_test_FFLAGS" = set; then
13446   FFLAGS=$ac_save_FFLAGS
13447 elif test $ac_cv_prog_f77_g = yes; then
13448   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13449     FFLAGS="-g -O2"
13450   else
13451     FFLAGS="-g"
13452   fi
13453 else
13454   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13455     FFLAGS="-O2"
13456   else
13457     FFLAGS=
13458   fi
13459 fi
13460
13461 G77=`test $ac_compiler_gnu = yes && echo yes`
13462 ac_ext=c
13463 ac_cpp='$CPP $CPPFLAGS'
13464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13467
13468
13469
13470 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13471
13472 # find the maximum length of command line arguments
13473 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13474 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13475 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13476   echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478     i=0
13479   teststring="ABCD"
13480
13481   case $build_os in
13482   msdosdjgpp*)
13483     # On DJGPP, this test can blow up pretty badly due to problems in libc
13484     # (any single argument exceeding 2000 bytes causes a buffer overrun
13485     # during glob expansion).  Even if it were fixed, the result of this
13486     # check would be larger than it should be.
13487     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13488     ;;
13489
13490   gnu*)
13491     # Under GNU Hurd, this test is not required because there is
13492     # no limit to the length of command line arguments.
13493     # Libtool will interpret -1 as no limit whatsoever
13494     lt_cv_sys_max_cmd_len=-1;
13495     ;;
13496
13497   cygwin* | mingw*)
13498     # On Win9x/ME, this test blows up -- it succeeds, but takes
13499     # about 5 minutes as the teststring grows exponentially.
13500     # Worse, since 9x/ME are not pre-emptively multitasking,
13501     # you end up with a "frozen" computer, even though with patience
13502     # the test eventually succeeds (with a max line length of 256k).
13503     # Instead, let's just punt: use the minimum linelength reported by
13504     # all of the supported platforms: 8192 (on NT/2K/XP).
13505     lt_cv_sys_max_cmd_len=8192;
13506     ;;
13507
13508   amigaos*)
13509     # On AmigaOS with pdksh, this test takes hours, literally.
13510     # So we just punt and use a minimum line length of 8192.
13511     lt_cv_sys_max_cmd_len=8192;
13512     ;;
13513
13514   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13515     # This has been around since 386BSD, at least.  Likely further.
13516     if test -x /sbin/sysctl; then
13517       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13518     elif test -x /usr/sbin/sysctl; then
13519       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13520     else
13521       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13522     fi
13523     # And add a safety zone
13524     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13525     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13526     ;;
13527
13528   interix*)
13529     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13530     lt_cv_sys_max_cmd_len=196608
13531     ;;
13532
13533   osf*)
13534     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13535     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13536     # nice to cause kernel panics so lets avoid the loop below.
13537     # First set a reasonable default.
13538     lt_cv_sys_max_cmd_len=16384
13539     #
13540     if test -x /sbin/sysconfig; then
13541       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13542         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13543       esac
13544     fi
13545     ;;
13546   sco3.2v5*)
13547     lt_cv_sys_max_cmd_len=102400
13548     ;;
13549   sysv5* | sco5v6* | sysv4.2uw2*)
13550     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13551     if test -n "$kargmax"; then
13552       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13553     else
13554       lt_cv_sys_max_cmd_len=32768
13555     fi
13556     ;;
13557   *)
13558     # If test is not a shell built-in, we'll probably end up computing a
13559     # maximum length that is only half of the actual maximum length, but
13560     # we can't tell.
13561     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13562     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13563                = "XX$teststring") >/dev/null 2>&1 &&
13564             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13565             lt_cv_sys_max_cmd_len=$new_result &&
13566             test $i != 17 # 1/2 MB should be enough
13567     do
13568       i=`expr $i + 1`
13569       teststring=$teststring$teststring
13570     done
13571     teststring=
13572     # Add a significant safety factor because C++ compilers can tack on massive
13573     # amounts of additional arguments before passing them to the linker.
13574     # It appears as though 1/2 is a usable value.
13575     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13576     ;;
13577   esac
13578
13579 fi
13580
13581 if test -n $lt_cv_sys_max_cmd_len ; then
13582   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13583 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13584 else
13585   { echo "$as_me:$LINENO: result: none" >&5
13586 echo "${ECHO_T}none" >&6; }
13587 fi
13588
13589
13590
13591
13592 # Check for command to grab the raw symbol name followed by C symbol from nm.
13593 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13594 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13595 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13596   echo $ECHO_N "(cached) $ECHO_C" >&6
13597 else
13598
13599 # These are sane defaults that work on at least a few old systems.
13600 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13601
13602 # Character class describing NM global symbol codes.
13603 symcode='[BCDEGRST]'
13604
13605 # Regexp to match symbols that can be accessed directly from C.
13606 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13607
13608 # Transform an extracted symbol line into a proper C declaration
13609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13610
13611 # Transform an extracted symbol line into symbol name and symbol address
13612 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'"
13613
13614 # Define system-specific variables.
13615 case $host_os in
13616 aix*)
13617   symcode='[BCDT]'
13618   ;;
13619 cygwin* | mingw* | pw32*)
13620   symcode='[ABCDGISTW]'
13621   ;;
13622 hpux*) # Its linker distinguishes data from code symbols
13623   if test "$host_cpu" = ia64; then
13624     symcode='[ABCDEGRST]'
13625   fi
13626   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13627   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'"
13628   ;;
13629 linux*)
13630   if test "$host_cpu" = ia64; then
13631     symcode='[ABCDGIRSTW]'
13632     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13633     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'"
13634   fi
13635   ;;
13636 irix* | nonstopux*)
13637   symcode='[BCDEGRST]'
13638   ;;
13639 osf*)
13640   symcode='[BCDEGQRST]'
13641   ;;
13642 solaris*)
13643   symcode='[BDRT]'
13644   ;;
13645 sco3.2v5*)
13646   symcode='[DT]'
13647   ;;
13648 sysv4.2uw2*)
13649   symcode='[DT]'
13650   ;;
13651 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13652   symcode='[ABDT]'
13653   ;;
13654 sysv4)
13655   symcode='[DFNSTU]'
13656   ;;
13657 esac
13658
13659 # Handle CRLF in mingw tool chain
13660 opt_cr=
13661 case $build_os in
13662 mingw*)
13663   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13664   ;;
13665 esac
13666
13667 # If we're using GNU nm, then use its standard symbol codes.
13668 case `$NM -V 2>&1` in
13669 *GNU* | *'with BFD'*)
13670   symcode='[ABCDGIRSTW]' ;;
13671 esac
13672
13673 # Try without a prefix undercore, then with it.
13674 for ac_symprfx in "" "_"; do
13675
13676   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13677   symxfrm="\\1 $ac_symprfx\\2 \\2"
13678
13679   # Write the raw and C identifiers.
13680   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13681
13682   # Check to see that the pipe works correctly.
13683   pipe_works=no
13684
13685   rm -f conftest*
13686   cat > conftest.$ac_ext <<EOF
13687 #ifdef __cplusplus
13688 extern "C" {
13689 #endif
13690 char nm_test_var;
13691 void nm_test_func(){}
13692 #ifdef __cplusplus
13693 }
13694 #endif
13695 int main(){nm_test_var='a';nm_test_func();return(0);}
13696 EOF
13697
13698   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699   (eval $ac_compile) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; then
13703     # Now try to grab the symbols.
13704     nlist=conftest.nm
13705     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13706   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); } && test -s "$nlist"; then
13710       # Try sorting and uniquifying the output.
13711       if sort "$nlist" | uniq > "$nlist"T; then
13712         mv -f "$nlist"T "$nlist"
13713       else
13714         rm -f "$nlist"T
13715       fi
13716
13717       # Make sure that we snagged all the symbols we need.
13718       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13719         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13720           cat <<EOF > conftest.$ac_ext
13721 #ifdef __cplusplus
13722 extern "C" {
13723 #endif
13724
13725 EOF
13726           # Now generate the symbol file.
13727           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13728
13729           cat <<EOF >> conftest.$ac_ext
13730 #if defined (__STDC__) && __STDC__
13731 # define lt_ptr_t void *
13732 #else
13733 # define lt_ptr_t char *
13734 # define const
13735 #endif
13736
13737 /* The mapping between symbol names and symbols. */
13738 const struct {
13739   const char *name;
13740   lt_ptr_t address;
13741 }
13742 lt_preloaded_symbols[] =
13743 {
13744 EOF
13745           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13746           cat <<\EOF >> conftest.$ac_ext
13747   {0, (lt_ptr_t) 0}
13748 };
13749
13750 #ifdef __cplusplus
13751 }
13752 #endif
13753 EOF
13754           # Now try linking the two files.
13755           mv conftest.$ac_objext conftstm.$ac_objext
13756           lt_save_LIBS="$LIBS"
13757           lt_save_CFLAGS="$CFLAGS"
13758           LIBS="conftstm.$ac_objext"
13759           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13760           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761   (eval $ac_link) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13765             pipe_works=yes
13766           fi
13767           LIBS="$lt_save_LIBS"
13768           CFLAGS="$lt_save_CFLAGS"
13769         else
13770           echo "cannot find nm_test_func in $nlist" >&5
13771         fi
13772       else
13773         echo "cannot find nm_test_var in $nlist" >&5
13774       fi
13775     else
13776       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13777     fi
13778   else
13779     echo "$progname: failed program was:" >&5
13780     cat conftest.$ac_ext >&5
13781   fi
13782   rm -f conftest* conftst*
13783
13784   # Do not use the global_symbol_pipe unless it works.
13785   if test "$pipe_works" = yes; then
13786     break
13787   else
13788     lt_cv_sys_global_symbol_pipe=
13789   fi
13790 done
13791
13792 fi
13793
13794 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13795   lt_cv_sys_global_symbol_to_cdecl=
13796 fi
13797 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13798   { echo "$as_me:$LINENO: result: failed" >&5
13799 echo "${ECHO_T}failed" >&6; }
13800 else
13801   { echo "$as_me:$LINENO: result: ok" >&5
13802 echo "${ECHO_T}ok" >&6; }
13803 fi
13804
13805 { echo "$as_me:$LINENO: checking for objdir" >&5
13806 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13807 if test "${lt_cv_objdir+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   rm -f .libs 2>/dev/null
13811 mkdir .libs 2>/dev/null
13812 if test -d .libs; then
13813   lt_cv_objdir=.libs
13814 else
13815   # MS-DOS does not allow filenames that begin with a dot.
13816   lt_cv_objdir=_libs
13817 fi
13818 rmdir .libs 2>/dev/null
13819 fi
13820 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13821 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13822 objdir=$lt_cv_objdir
13823
13824
13825
13826
13827
13828 case $host_os in
13829 aix3*)
13830   # AIX sometimes has problems with the GCC collect2 program.  For some
13831   # reason, if we set the COLLECT_NAMES environment variable, the problems
13832   # vanish in a puff of smoke.
13833   if test "X${COLLECT_NAMES+set}" != Xset; then
13834     COLLECT_NAMES=
13835     export COLLECT_NAMES
13836   fi
13837   ;;
13838 esac
13839
13840 # Sed substitution that helps us do robust quoting.  It backslashifies
13841 # metacharacters that are still active within double-quoted strings.
13842 Xsed='sed -e 1s/^X//'
13843 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13844
13845 # Same as above, but do not quote variable references.
13846 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13847
13848 # Sed substitution to delay expansion of an escaped shell variable in a
13849 # double_quote_subst'ed string.
13850 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13851
13852 # Sed substitution to avoid accidental globbing in evaled expressions
13853 no_glob_subst='s/\*/\\\*/g'
13854
13855 # Constants:
13856 rm="rm -f"
13857
13858 # Global variables:
13859 default_ofile=mklib
13860 can_build_shared=yes
13861
13862 # All known linkers require a `.a' archive for static linking (except MSVC,
13863 # which needs '.lib').
13864 libext=a
13865 ltmain="$ac_aux_dir/ltmain.sh"
13866 ofile="$default_ofile"
13867 with_gnu_ld="$lt_cv_prog_gnu_ld"
13868
13869 if test -n "$ac_tool_prefix"; then
13870   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13871 set dummy ${ac_tool_prefix}ar; ac_word=$2
13872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13874 if test "${ac_cv_prog_AR+set}" = set; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877   if test -n "$AR"; then
13878   ac_cv_prog_AR="$AR" # Let the user override the test.
13879 else
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881 for as_dir in $PATH
13882 do
13883   IFS=$as_save_IFS
13884   test -z "$as_dir" && as_dir=.
13885   for ac_exec_ext in '' $ac_executable_extensions; do
13886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13887     ac_cv_prog_AR="${ac_tool_prefix}ar"
13888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13889     break 2
13890   fi
13891 done
13892 done
13893 IFS=$as_save_IFS
13894
13895 fi
13896 fi
13897 AR=$ac_cv_prog_AR
13898 if test -n "$AR"; then
13899   { echo "$as_me:$LINENO: result: $AR" >&5
13900 echo "${ECHO_T}$AR" >&6; }
13901 else
13902   { echo "$as_me:$LINENO: result: no" >&5
13903 echo "${ECHO_T}no" >&6; }
13904 fi
13905
13906
13907 fi
13908 if test -z "$ac_cv_prog_AR"; then
13909   ac_ct_AR=$AR
13910   # Extract the first word of "ar", so it can be a program name with args.
13911 set dummy ar; ac_word=$2
13912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13914 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13915   echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917   if test -n "$ac_ct_AR"; then
13918   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13919 else
13920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13922 do
13923   IFS=$as_save_IFS
13924   test -z "$as_dir" && as_dir=.
13925   for ac_exec_ext in '' $ac_executable_extensions; do
13926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13927     ac_cv_prog_ac_ct_AR="ar"
13928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13929     break 2
13930   fi
13931 done
13932 done
13933 IFS=$as_save_IFS
13934
13935 fi
13936 fi
13937 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13938 if test -n "$ac_ct_AR"; then
13939   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13940 echo "${ECHO_T}$ac_ct_AR" >&6; }
13941 else
13942   { echo "$as_me:$LINENO: result: no" >&5
13943 echo "${ECHO_T}no" >&6; }
13944 fi
13945
13946   if test "x$ac_ct_AR" = x; then
13947     AR="false"
13948   else
13949     case $cross_compiling:$ac_tool_warned in
13950 yes:)
13951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13952 whose name does not start with the host triplet.  If you think this
13953 configuration is useful to you, please write to autoconf@gnu.org." >&5
13954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13955 whose name does not start with the host triplet.  If you think this
13956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13957 ac_tool_warned=yes ;;
13958 esac
13959     AR=$ac_ct_AR
13960   fi
13961 else
13962   AR="$ac_cv_prog_AR"
13963 fi
13964
13965 if test -n "$ac_tool_prefix"; then
13966   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13970 if test "${ac_cv_prog_RANLIB+set}" = set; then
13971   echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973   if test -n "$RANLIB"; then
13974   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13975 else
13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977 for as_dir in $PATH
13978 do
13979   IFS=$as_save_IFS
13980   test -z "$as_dir" && as_dir=.
13981   for ac_exec_ext in '' $ac_executable_extensions; do
13982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13983     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13985     break 2
13986   fi
13987 done
13988 done
13989 IFS=$as_save_IFS
13990
13991 fi
13992 fi
13993 RANLIB=$ac_cv_prog_RANLIB
13994 if test -n "$RANLIB"; then
13995   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13996 echo "${ECHO_T}$RANLIB" >&6; }
13997 else
13998   { echo "$as_me:$LINENO: result: no" >&5
13999 echo "${ECHO_T}no" >&6; }
14000 fi
14001
14002
14003 fi
14004 if test -z "$ac_cv_prog_RANLIB"; then
14005   ac_ct_RANLIB=$RANLIB
14006   # Extract the first word of "ranlib", so it can be a program name with args.
14007 set dummy ranlib; ac_word=$2
14008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14010 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14011   echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013   if test -n "$ac_ct_RANLIB"; then
14014   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14015 else
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14018 do
14019   IFS=$as_save_IFS
14020   test -z "$as_dir" && as_dir=.
14021   for ac_exec_ext in '' $ac_executable_extensions; do
14022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14023     ac_cv_prog_ac_ct_RANLIB="ranlib"
14024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14025     break 2
14026   fi
14027 done
14028 done
14029 IFS=$as_save_IFS
14030
14031 fi
14032 fi
14033 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14034 if test -n "$ac_ct_RANLIB"; then
14035   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14036 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14037 else
14038   { echo "$as_me:$LINENO: result: no" >&5
14039 echo "${ECHO_T}no" >&6; }
14040 fi
14041
14042   if test "x$ac_ct_RANLIB" = x; then
14043     RANLIB=":"
14044   else
14045     case $cross_compiling:$ac_tool_warned in
14046 yes:)
14047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14048 whose name does not start with the host triplet.  If you think this
14049 configuration is useful to you, please write to autoconf@gnu.org." >&5
14050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14051 whose name does not start with the host triplet.  If you think this
14052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14053 ac_tool_warned=yes ;;
14054 esac
14055     RANLIB=$ac_ct_RANLIB
14056   fi
14057 else
14058   RANLIB="$ac_cv_prog_RANLIB"
14059 fi
14060
14061 if test -n "$ac_tool_prefix"; then
14062   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14063 set dummy ${ac_tool_prefix}strip; ac_word=$2
14064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14066 if test "${ac_cv_prog_STRIP+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   if test -n "$STRIP"; then
14070   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14071 else
14072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073 for as_dir in $PATH
14074 do
14075   IFS=$as_save_IFS
14076   test -z "$as_dir" && as_dir=.
14077   for ac_exec_ext in '' $ac_executable_extensions; do
14078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14079     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14081     break 2
14082   fi
14083 done
14084 done
14085 IFS=$as_save_IFS
14086
14087 fi
14088 fi
14089 STRIP=$ac_cv_prog_STRIP
14090 if test -n "$STRIP"; then
14091   { echo "$as_me:$LINENO: result: $STRIP" >&5
14092 echo "${ECHO_T}$STRIP" >&6; }
14093 else
14094   { echo "$as_me:$LINENO: result: no" >&5
14095 echo "${ECHO_T}no" >&6; }
14096 fi
14097
14098
14099 fi
14100 if test -z "$ac_cv_prog_STRIP"; then
14101   ac_ct_STRIP=$STRIP
14102   # Extract the first word of "strip", so it can be a program name with args.
14103 set dummy strip; ac_word=$2
14104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14106 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14107   echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109   if test -n "$ac_ct_STRIP"; then
14110   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14111 else
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $PATH
14114 do
14115   IFS=$as_save_IFS
14116   test -z "$as_dir" && as_dir=.
14117   for ac_exec_ext in '' $ac_executable_extensions; do
14118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14119     ac_cv_prog_ac_ct_STRIP="strip"
14120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14121     break 2
14122   fi
14123 done
14124 done
14125 IFS=$as_save_IFS
14126
14127 fi
14128 fi
14129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14130 if test -n "$ac_ct_STRIP"; then
14131   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14132 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14133 else
14134   { echo "$as_me:$LINENO: result: no" >&5
14135 echo "${ECHO_T}no" >&6; }
14136 fi
14137
14138   if test "x$ac_ct_STRIP" = x; then
14139     STRIP=":"
14140   else
14141     case $cross_compiling:$ac_tool_warned in
14142 yes:)
14143 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14144 whose name does not start with the host triplet.  If you think this
14145 configuration is useful to you, please write to autoconf@gnu.org." >&5
14146 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14147 whose name does not start with the host triplet.  If you think this
14148 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14149 ac_tool_warned=yes ;;
14150 esac
14151     STRIP=$ac_ct_STRIP
14152   fi
14153 else
14154   STRIP="$ac_cv_prog_STRIP"
14155 fi
14156
14157
14158 old_CC="$CC"
14159 old_CFLAGS="$CFLAGS"
14160
14161 # Set sane defaults for various variables
14162 test -z "$AR" && AR=ar
14163 test -z "$AR_FLAGS" && AR_FLAGS=cru
14164 test -z "$AS" && AS=as
14165 test -z "$CC" && CC=cc
14166 test -z "$LTCC" && LTCC=$CC
14167 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14168 test -z "$DLLTOOL" && DLLTOOL=dlltool
14169 test -z "$LD" && LD=ld
14170 test -z "$LN_S" && LN_S="ln -s"
14171 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14172 test -z "$NM" && NM=nm
14173 test -z "$SED" && SED=sed
14174 test -z "$OBJDUMP" && OBJDUMP=objdump
14175 test -z "$RANLIB" && RANLIB=:
14176 test -z "$STRIP" && STRIP=:
14177 test -z "$ac_objext" && ac_objext=o
14178
14179 # Determine commands to create old-style static archives.
14180 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14181 old_postinstall_cmds='chmod 644 $oldlib'
14182 old_postuninstall_cmds=
14183
14184 if test -n "$RANLIB"; then
14185   case $host_os in
14186   openbsd*)
14187     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14188     ;;
14189   *)
14190     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14191     ;;
14192   esac
14193   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14194 fi
14195
14196 for cc_temp in $compiler""; do
14197   case $cc_temp in
14198     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14199     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14200     \-*) ;;
14201     *) break;;
14202   esac
14203 done
14204 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14205
14206
14207 # Only perform the check for file, if the check method requires it
14208 case $deplibs_check_method in
14209 file_magic*)
14210   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14211     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14212 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14213 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14214   echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216   case $MAGIC_CMD in
14217 [\\/*] |  ?:[\\/]*)
14218   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14219   ;;
14220 *)
14221   lt_save_MAGIC_CMD="$MAGIC_CMD"
14222   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14223   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14224   for ac_dir in $ac_dummy; do
14225     IFS="$lt_save_ifs"
14226     test -z "$ac_dir" && ac_dir=.
14227     if test -f $ac_dir/${ac_tool_prefix}file; then
14228       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14229       if test -n "$file_magic_test_file"; then
14230         case $deplibs_check_method in
14231         "file_magic "*)
14232           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14233           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14234           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14235             $EGREP "$file_magic_regex" > /dev/null; then
14236             :
14237           else
14238             cat <<EOF 1>&2
14239
14240 *** Warning: the command libtool uses to detect shared libraries,
14241 *** $file_magic_cmd, produces output that libtool cannot recognize.
14242 *** The result is that libtool may fail to recognize shared libraries
14243 *** as such.  This will affect the creation of libtool libraries that
14244 *** depend on shared libraries, but programs linked with such libtool
14245 *** libraries will work regardless of this problem.  Nevertheless, you
14246 *** may want to report the problem to your system manager and/or to
14247 *** bug-libtool@gnu.org
14248
14249 EOF
14250           fi ;;
14251         esac
14252       fi
14253       break
14254     fi
14255   done
14256   IFS="$lt_save_ifs"
14257   MAGIC_CMD="$lt_save_MAGIC_CMD"
14258   ;;
14259 esac
14260 fi
14261
14262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14263 if test -n "$MAGIC_CMD"; then
14264   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14265 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14266 else
14267   { echo "$as_me:$LINENO: result: no" >&5
14268 echo "${ECHO_T}no" >&6; }
14269 fi
14270
14271 if test -z "$lt_cv_path_MAGIC_CMD"; then
14272   if test -n "$ac_tool_prefix"; then
14273     { echo "$as_me:$LINENO: checking for file" >&5
14274 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14275 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278   case $MAGIC_CMD in
14279 [\\/*] |  ?:[\\/]*)
14280   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14281   ;;
14282 *)
14283   lt_save_MAGIC_CMD="$MAGIC_CMD"
14284   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14285   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14286   for ac_dir in $ac_dummy; do
14287     IFS="$lt_save_ifs"
14288     test -z "$ac_dir" && ac_dir=.
14289     if test -f $ac_dir/file; then
14290       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14291       if test -n "$file_magic_test_file"; then
14292         case $deplibs_check_method in
14293         "file_magic "*)
14294           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14295           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14296           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14297             $EGREP "$file_magic_regex" > /dev/null; then
14298             :
14299           else
14300             cat <<EOF 1>&2
14301
14302 *** Warning: the command libtool uses to detect shared libraries,
14303 *** $file_magic_cmd, produces output that libtool cannot recognize.
14304 *** The result is that libtool may fail to recognize shared libraries
14305 *** as such.  This will affect the creation of libtool libraries that
14306 *** depend on shared libraries, but programs linked with such libtool
14307 *** libraries will work regardless of this problem.  Nevertheless, you
14308 *** may want to report the problem to your system manager and/or to
14309 *** bug-libtool@gnu.org
14310
14311 EOF
14312           fi ;;
14313         esac
14314       fi
14315       break
14316     fi
14317   done
14318   IFS="$lt_save_ifs"
14319   MAGIC_CMD="$lt_save_MAGIC_CMD"
14320   ;;
14321 esac
14322 fi
14323
14324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14325 if test -n "$MAGIC_CMD"; then
14326   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14327 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14328 else
14329   { echo "$as_me:$LINENO: result: no" >&5
14330 echo "${ECHO_T}no" >&6; }
14331 fi
14332
14333   else
14334     MAGIC_CMD=:
14335   fi
14336 fi
14337
14338   fi
14339   ;;
14340 esac
14341
14342 enable_dlopen=yes
14343 enable_win32_dll=no
14344
14345 # Check whether --enable-libtool-lock was given.
14346 if test "${enable_libtool_lock+set}" = set; then
14347   enableval=$enable_libtool_lock;
14348 fi
14349
14350 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14351
14352
14353 # Check whether --with-pic was given.
14354 if test "${with_pic+set}" = set; then
14355   withval=$with_pic; pic_mode="$withval"
14356 else
14357   pic_mode=default
14358 fi
14359
14360 test -z "$pic_mode" && pic_mode=default
14361
14362 # Use C for the default configuration in the libtool script
14363 tagname=
14364 lt_save_CC="$CC"
14365 ac_ext=c
14366 ac_cpp='$CPP $CPPFLAGS'
14367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14370
14371
14372 # Source file extension for C test sources.
14373 ac_ext=c
14374
14375 # Object file extension for compiled C test sources.
14376 objext=o
14377 objext=$objext
14378
14379 # Code to be used in simple compile tests
14380 lt_simple_compile_test_code="int some_variable = 0;\n"
14381
14382 # Code to be used in simple link tests
14383 lt_simple_link_test_code='int main(){return(0);}\n'
14384
14385
14386 # If no C compiler was specified, use CC.
14387 LTCC=${LTCC-"$CC"}
14388
14389 # If no C compiler flags were specified, use CFLAGS.
14390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14391
14392 # Allow CC to be a program name with arguments.
14393 compiler=$CC
14394
14395
14396 # save warnings/boilerplate of simple test code
14397 ac_outfile=conftest.$ac_objext
14398 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14400 _lt_compiler_boilerplate=`cat conftest.err`
14401 $rm conftest*
14402
14403 ac_outfile=conftest.$ac_objext
14404 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14406 _lt_linker_boilerplate=`cat conftest.err`
14407 $rm conftest*
14408
14409
14410
14411 lt_prog_compiler_no_builtin_flag=
14412
14413 if test "$GCC" = yes; then
14414   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14415
14416
14417 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14418 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14419 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14420   echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422   lt_cv_prog_compiler_rtti_exceptions=no
14423   ac_outfile=conftest.$ac_objext
14424    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14425    lt_compiler_flag="-fno-rtti -fno-exceptions"
14426    # Insert the option either (1) after the last *FLAGS variable, or
14427    # (2) before a word containing "conftest.", or (3) at the end.
14428    # Note that $ac_compile itself does not contain backslashes and begins
14429    # with a dollar sign (not a hyphen), so the echo should work correctly.
14430    # The option is referenced via a variable to avoid confusing sed.
14431    lt_compile=`echo "$ac_compile" | $SED \
14432    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14433    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14434    -e 's:$: $lt_compiler_flag:'`
14435    (eval echo "\"\$as_me:14435: $lt_compile\"" >&5)
14436    (eval "$lt_compile" 2>conftest.err)
14437    ac_status=$?
14438    cat conftest.err >&5
14439    echo "$as_me:14439: \$? = $ac_status" >&5
14440    if (exit $ac_status) && test -s "$ac_outfile"; then
14441      # The compiler can only warn and ignore the option if not recognized
14442      # So say no if there are warnings other than the usual output.
14443      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14444      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14445      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14446        lt_cv_prog_compiler_rtti_exceptions=yes
14447      fi
14448    fi
14449    $rm conftest*
14450
14451 fi
14452 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14453 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14454
14455 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14456     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14457 else
14458     :
14459 fi
14460
14461 fi
14462
14463 lt_prog_compiler_wl=
14464 lt_prog_compiler_pic=
14465 lt_prog_compiler_static=
14466
14467 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14468 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14469
14470   if test "$GCC" = yes; then
14471     lt_prog_compiler_wl='-Wl,'
14472     lt_prog_compiler_static='-static'
14473
14474     case $host_os in
14475       aix*)
14476       # All AIX code is PIC.
14477       if test "$host_cpu" = ia64; then
14478         # AIX 5 now supports IA64 processor
14479         lt_prog_compiler_static='-Bstatic'
14480       fi
14481       ;;
14482
14483     amigaos*)
14484       # FIXME: we need at least 68020 code to build shared libraries, but
14485       # adding the `-m68020' flag to GCC prevents building anything better,
14486       # like `-m68040'.
14487       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14488       ;;
14489
14490     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14491       # PIC is the default for these OSes.
14492       ;;
14493
14494     mingw* | pw32* | os2*)
14495       # This hack is so that the source file can tell whether it is being
14496       # built for inclusion in a dll (and should export symbols for example).
14497       lt_prog_compiler_pic='-DDLL_EXPORT'
14498       ;;
14499
14500     darwin* | rhapsody*)
14501       # PIC is the default on this platform
14502       # Common symbols not allowed in MH_DYLIB files
14503       lt_prog_compiler_pic='-fno-common'
14504       ;;
14505
14506     interix3*)
14507       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14508       # Instead, we relocate shared libraries at runtime.
14509       ;;
14510
14511     msdosdjgpp*)
14512       # Just because we use GCC doesn't mean we suddenly get shared libraries
14513       # on systems that don't support them.
14514       lt_prog_compiler_can_build_shared=no
14515       enable_shared=no
14516       ;;
14517
14518     sysv4*MP*)
14519       if test -d /usr/nec; then
14520         lt_prog_compiler_pic=-Kconform_pic
14521       fi
14522       ;;
14523
14524     hpux*)
14525       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14526       # not for PA HP-UX.
14527       case $host_cpu in
14528       hppa*64*|ia64*)
14529         # +Z the default
14530         ;;
14531       *)
14532         lt_prog_compiler_pic='-fPIC'
14533         ;;
14534       esac
14535       ;;
14536
14537     *)
14538       lt_prog_compiler_pic='-fPIC'
14539       ;;
14540     esac
14541   else
14542     # PORTME Check for flag to pass linker flags through the system compiler.
14543     case $host_os in
14544     aix*)
14545       lt_prog_compiler_wl='-Wl,'
14546       if test "$host_cpu" = ia64; then
14547         # AIX 5 now supports IA64 processor
14548         lt_prog_compiler_static='-Bstatic'
14549       else
14550         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14551       fi
14552       ;;
14553       darwin*)
14554         # PIC is the default on this platform
14555         # Common symbols not allowed in MH_DYLIB files
14556        case $cc_basename in
14557          xlc*)
14558          lt_prog_compiler_pic='-qnocommon'
14559          lt_prog_compiler_wl='-Wl,'
14560          ;;
14561        esac
14562        ;;
14563
14564     mingw* | pw32* | os2*)
14565       # This hack is so that the source file can tell whether it is being
14566       # built for inclusion in a dll (and should export symbols for example).
14567       lt_prog_compiler_pic='-DDLL_EXPORT'
14568       ;;
14569
14570     hpux9* | hpux10* | hpux11*)
14571       lt_prog_compiler_wl='-Wl,'
14572       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14573       # not for PA HP-UX.
14574       case $host_cpu in
14575       hppa*64*|ia64*)
14576         # +Z the default
14577         ;;
14578       *)
14579         lt_prog_compiler_pic='+Z'
14580         ;;
14581       esac
14582       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14583       lt_prog_compiler_static='${wl}-a ${wl}archive'
14584       ;;
14585
14586     irix5* | irix6* | nonstopux*)
14587       lt_prog_compiler_wl='-Wl,'
14588       # PIC (with -KPIC) is the default.
14589       lt_prog_compiler_static='-non_shared'
14590       ;;
14591
14592     newsos6)
14593       lt_prog_compiler_pic='-KPIC'
14594       lt_prog_compiler_static='-Bstatic'
14595       ;;
14596
14597     linux*)
14598       case $cc_basename in
14599       icc* | ecc*)
14600         lt_prog_compiler_wl='-Wl,'
14601         lt_prog_compiler_pic='-KPIC'
14602         lt_prog_compiler_static='-static'
14603         ;;
14604       pgcc* | pgf77* | pgf90* | pgf95*)
14605         # Portland Group compilers (*not* the Pentium gcc compiler,
14606         # which looks to be a dead project)
14607         lt_prog_compiler_wl='-Wl,'
14608         lt_prog_compiler_pic='-fpic'
14609         lt_prog_compiler_static='-Bstatic'
14610         ;;
14611       ccc*)
14612         lt_prog_compiler_wl='-Wl,'
14613         # All Alpha code is PIC.
14614         lt_prog_compiler_static='-non_shared'
14615         ;;
14616       esac
14617       ;;
14618
14619     osf3* | osf4* | osf5*)
14620       lt_prog_compiler_wl='-Wl,'
14621       # All OSF/1 code is PIC.
14622       lt_prog_compiler_static='-non_shared'
14623       ;;
14624
14625     solaris*)
14626       lt_prog_compiler_pic='-KPIC'
14627       lt_prog_compiler_static='-Bstatic'
14628       case $cc_basename in
14629       f77* | f90* | f95*)
14630         lt_prog_compiler_wl='-Qoption ld ';;
14631       *)
14632         lt_prog_compiler_wl='-Wl,';;
14633       esac
14634       ;;
14635
14636     sunos4*)
14637       lt_prog_compiler_wl='-Qoption ld '
14638       lt_prog_compiler_pic='-PIC'
14639       lt_prog_compiler_static='-Bstatic'
14640       ;;
14641
14642     sysv4 | sysv4.2uw2* | sysv4.3*)
14643       lt_prog_compiler_wl='-Wl,'
14644       lt_prog_compiler_pic='-KPIC'
14645       lt_prog_compiler_static='-Bstatic'
14646       ;;
14647
14648     sysv4*MP*)
14649       if test -d /usr/nec ;then
14650         lt_prog_compiler_pic='-Kconform_pic'
14651         lt_prog_compiler_static='-Bstatic'
14652       fi
14653       ;;
14654
14655     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14656       lt_prog_compiler_wl='-Wl,'
14657       lt_prog_compiler_pic='-KPIC'
14658       lt_prog_compiler_static='-Bstatic'
14659       ;;
14660
14661     unicos*)
14662       lt_prog_compiler_wl='-Wl,'
14663       lt_prog_compiler_can_build_shared=no
14664       ;;
14665
14666     uts4*)
14667       lt_prog_compiler_pic='-pic'
14668       lt_prog_compiler_static='-Bstatic'
14669       ;;
14670
14671     *)
14672       lt_prog_compiler_can_build_shared=no
14673       ;;
14674     esac
14675   fi
14676
14677 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14678 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14679
14680 #
14681 # Check to make sure the PIC flag actually works.
14682 #
14683 if test -n "$lt_prog_compiler_pic"; then
14684
14685 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14686 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14687 if test "${lt_prog_compiler_pic_works+set}" = set; then
14688   echo $ECHO_N "(cached) $ECHO_C" >&6
14689 else
14690   lt_prog_compiler_pic_works=no
14691   ac_outfile=conftest.$ac_objext
14692    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14693    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14694    # Insert the option either (1) after the last *FLAGS variable, or
14695    # (2) before a word containing "conftest.", or (3) at the end.
14696    # Note that $ac_compile itself does not contain backslashes and begins
14697    # with a dollar sign (not a hyphen), so the echo should work correctly.
14698    # The option is referenced via a variable to avoid confusing sed.
14699    lt_compile=`echo "$ac_compile" | $SED \
14700    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14701    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14702    -e 's:$: $lt_compiler_flag:'`
14703    (eval echo "\"\$as_me:14703: $lt_compile\"" >&5)
14704    (eval "$lt_compile" 2>conftest.err)
14705    ac_status=$?
14706    cat conftest.err >&5
14707    echo "$as_me:14707: \$? = $ac_status" >&5
14708    if (exit $ac_status) && test -s "$ac_outfile"; then
14709      # The compiler can only warn and ignore the option if not recognized
14710      # So say no if there are warnings other than the usual output.
14711      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14712      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14713      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14714        lt_prog_compiler_pic_works=yes
14715      fi
14716    fi
14717    $rm conftest*
14718
14719 fi
14720 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14721 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14722
14723 if test x"$lt_prog_compiler_pic_works" = xyes; then
14724     case $lt_prog_compiler_pic in
14725      "" | " "*) ;;
14726      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14727      esac
14728 else
14729     lt_prog_compiler_pic=
14730      lt_prog_compiler_can_build_shared=no
14731 fi
14732
14733 fi
14734 case $host_os in
14735   # For platforms which do not support PIC, -DPIC is meaningless:
14736   *djgpp*)
14737     lt_prog_compiler_pic=
14738     ;;
14739   *)
14740     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14741     ;;
14742 esac
14743
14744 #
14745 # Check to make sure the static flag actually works.
14746 #
14747 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14748 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14749 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14750 if test "${lt_prog_compiler_static_works+set}" = set; then
14751   echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753   lt_prog_compiler_static_works=no
14754    save_LDFLAGS="$LDFLAGS"
14755    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14756    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14757    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14758      # The linker can only warn and ignore the option if not recognized
14759      # So say no if there are warnings
14760      if test -s conftest.err; then
14761        # Append any errors to the config.log.
14762        cat conftest.err 1>&5
14763        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14764        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765        if diff conftest.exp conftest.er2 >/dev/null; then
14766          lt_prog_compiler_static_works=yes
14767        fi
14768      else
14769        lt_prog_compiler_static_works=yes
14770      fi
14771    fi
14772    $rm conftest*
14773    LDFLAGS="$save_LDFLAGS"
14774
14775 fi
14776 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14777 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14778
14779 if test x"$lt_prog_compiler_static_works" = xyes; then
14780     :
14781 else
14782     lt_prog_compiler_static=
14783 fi
14784
14785
14786 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14787 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14788 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14789   echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791   lt_cv_prog_compiler_c_o=no
14792    $rm -r conftest 2>/dev/null
14793    mkdir conftest
14794    cd conftest
14795    mkdir out
14796    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14797
14798    lt_compiler_flag="-o out/conftest2.$ac_objext"
14799    # Insert the option either (1) after the last *FLAGS variable, or
14800    # (2) before a word containing "conftest.", or (3) at the end.
14801    # Note that $ac_compile itself does not contain backslashes and begins
14802    # with a dollar sign (not a hyphen), so the echo should work correctly.
14803    lt_compile=`echo "$ac_compile" | $SED \
14804    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14805    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14806    -e 's:$: $lt_compiler_flag:'`
14807    (eval echo "\"\$as_me:14807: $lt_compile\"" >&5)
14808    (eval "$lt_compile" 2>out/conftest.err)
14809    ac_status=$?
14810    cat out/conftest.err >&5
14811    echo "$as_me:14811: \$? = $ac_status" >&5
14812    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14813    then
14814      # The compiler can only warn and ignore the option if not recognized
14815      # So say no if there are warnings
14816      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14817      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14818      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14819        lt_cv_prog_compiler_c_o=yes
14820      fi
14821    fi
14822    chmod u+w . 2>&5
14823    $rm conftest*
14824    # SGI C++ compiler will create directory out/ii_files/ for
14825    # template instantiation
14826    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14827    $rm out/* && rmdir out
14828    cd ..
14829    rmdir conftest
14830    $rm conftest*
14831
14832 fi
14833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14834 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14835
14836
14837 hard_links="nottested"
14838 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14839   # do not overwrite the value of need_locks provided by the user
14840   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14841 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14842   hard_links=yes
14843   $rm conftest*
14844   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14845   touch conftest.a
14846   ln conftest.a conftest.b 2>&5 || hard_links=no
14847   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14848   { echo "$as_me:$LINENO: result: $hard_links" >&5
14849 echo "${ECHO_T}$hard_links" >&6; }
14850   if test "$hard_links" = no; then
14851     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14852 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14853     need_locks=warn
14854   fi
14855 else
14856   need_locks=no
14857 fi
14858
14859 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14860 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14861
14862   runpath_var=
14863   allow_undefined_flag=
14864   enable_shared_with_static_runtimes=no
14865   archive_cmds=
14866   archive_expsym_cmds=
14867   old_archive_From_new_cmds=
14868   old_archive_from_expsyms_cmds=
14869   export_dynamic_flag_spec=
14870   whole_archive_flag_spec=
14871   thread_safe_flag_spec=
14872   hardcode_libdir_flag_spec=
14873   hardcode_libdir_flag_spec_ld=
14874   hardcode_libdir_separator=
14875   hardcode_direct=no
14876   hardcode_minus_L=no
14877   hardcode_shlibpath_var=unsupported
14878   link_all_deplibs=unknown
14879   hardcode_automatic=no
14880   module_cmds=
14881   module_expsym_cmds=
14882   always_export_symbols=no
14883   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14884   # include_expsyms should be a list of space-separated symbols to be *always*
14885   # included in the symbol list
14886   include_expsyms=
14887   # exclude_expsyms can be an extended regexp of symbols to exclude
14888   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14889   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14890   # as well as any symbol that contains `d'.
14891   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14892   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14893   # platforms (ab)use it in PIC code, but their linkers get confused if
14894   # the symbol is explicitly referenced.  Since portable code cannot
14895   # rely on this symbol name, it's probably fine to never include it in
14896   # preloaded symbol tables.
14897   extract_expsyms_cmds=
14898   # Just being paranoid about ensuring that cc_basename is set.
14899   for cc_temp in $compiler""; do
14900   case $cc_temp in
14901     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14902     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14903     \-*) ;;
14904     *) break;;
14905   esac
14906 done
14907 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14908
14909   case $host_os in
14910   cygwin* | mingw* | pw32*)
14911     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14912     # When not using gcc, we currently assume that we are using
14913     # Microsoft Visual C++.
14914     if test "$GCC" != yes; then
14915       with_gnu_ld=no
14916     fi
14917     ;;
14918   interix*)
14919     # we just hope/assume this is gcc and not c89 (= MSVC++)
14920     with_gnu_ld=yes
14921     ;;
14922   openbsd*)
14923     with_gnu_ld=no
14924     ;;
14925   esac
14926
14927   ld_shlibs=yes
14928   if test "$with_gnu_ld" = yes; then
14929     # If archive_cmds runs LD, not CC, wlarc should be empty
14930     wlarc='${wl}'
14931
14932     # Set some defaults for GNU ld with shared library support. These
14933     # are reset later if shared libraries are not supported. Putting them
14934     # here allows them to be overridden if necessary.
14935     runpath_var=LD_RUN_PATH
14936     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14937     export_dynamic_flag_spec='${wl}--export-dynamic'
14938     # ancient GNU ld didn't support --whole-archive et. al.
14939     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14940         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14941       else
14942         whole_archive_flag_spec=
14943     fi
14944     supports_anon_versioning=no
14945     case `$LD -v 2>/dev/null` in
14946       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14947       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14948       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14949       *\ 2.11.*) ;; # other 2.11 versions
14950       *) supports_anon_versioning=yes ;;
14951     esac
14952
14953     # See if GNU ld supports shared libraries.
14954     case $host_os in
14955     aix3* | aix4* | aix5*)
14956       # On AIX/PPC, the GNU linker is very broken
14957       if test "$host_cpu" != ia64; then
14958         ld_shlibs=no
14959         cat <<EOF 1>&2
14960
14961 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14962 *** to be unable to reliably create shared libraries on AIX.
14963 *** Therefore, libtool is disabling shared libraries support.  If you
14964 *** really care for shared libraries, you may want to modify your PATH
14965 *** so that a non-GNU linker is found, and then restart.
14966
14967 EOF
14968       fi
14969       ;;
14970
14971     amigaos*)
14972       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)'
14973       hardcode_libdir_flag_spec='-L$libdir'
14974       hardcode_minus_L=yes
14975
14976       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14977       # that the semantics of dynamic libraries on AmigaOS, at least up
14978       # to version 4, is to share data among multiple programs linked
14979       # with the same dynamic library.  Since this doesn't match the
14980       # behavior of shared libraries on other platforms, we can't use
14981       # them.
14982       ld_shlibs=no
14983       ;;
14984
14985     beos*)
14986       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14987         allow_undefined_flag=unsupported
14988         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14989         # support --undefined.  This deserves some investigation.  FIXME
14990         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14991       else
14992         ld_shlibs=no
14993       fi
14994       ;;
14995
14996     cygwin* | mingw* | pw32*)
14997       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14998       # as there is no search path for DLLs.
14999       hardcode_libdir_flag_spec='-L$libdir'
15000       allow_undefined_flag=unsupported
15001       always_export_symbols=no
15002       enable_shared_with_static_runtimes=yes
15003       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15004
15005       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15006         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15007         # If the export-symbols file already is a .def file (1st line
15008         # is EXPORTS), use it as is; otherwise, prepend...
15009         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15010           cp $export_symbols $output_objdir/$soname.def;
15011         else
15012           echo EXPORTS > $output_objdir/$soname.def;
15013           cat $export_symbols >> $output_objdir/$soname.def;
15014         fi~
15015         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15016       else
15017         ld_shlibs=no
15018       fi
15019       ;;
15020
15021     interix3*)
15022       hardcode_direct=no
15023       hardcode_shlibpath_var=no
15024       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15025       export_dynamic_flag_spec='${wl}-E'
15026       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15027       # Instead, shared libraries are loaded at an image base (0x10000000 by
15028       # default) and relocated if they conflict, which is a slow very memory
15029       # consuming and fragmenting process.  To avoid this, we pick a random,
15030       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15031       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15032       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15033       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'
15034       ;;
15035
15036     linux*)
15037       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15038         tmp_addflag=
15039         case $cc_basename,$host_cpu in
15040         pgcc*)                          # Portland Group C compiler
15041           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'
15042           tmp_addflag=' $pic_flag'
15043           ;;
15044         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15045           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'
15046           tmp_addflag=' $pic_flag -Mnomain' ;;
15047         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15048           tmp_addflag=' -i_dynamic' ;;
15049         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15050           tmp_addflag=' -i_dynamic -nofor_main' ;;
15051         ifc* | ifort*)                  # Intel Fortran compiler
15052           tmp_addflag=' -nofor_main' ;;
15053         esac
15054         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055
15056         if test $supports_anon_versioning = yes; then
15057           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15058   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15059   $echo "local: *; };" >> $output_objdir/$libname.ver~
15060           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15061         fi
15062       else
15063         ld_shlibs=no
15064       fi
15065       ;;
15066
15067     netbsd*)
15068       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15069         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15070         wlarc=
15071       else
15072         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15073         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15074       fi
15075       ;;
15076
15077     solaris*)
15078       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15079         ld_shlibs=no
15080         cat <<EOF 1>&2
15081
15082 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15083 *** create shared libraries on Solaris systems.  Therefore, libtool
15084 *** is disabling shared libraries support.  We urge you to upgrade GNU
15085 *** binutils to release 2.9.1 or newer.  Another option is to modify
15086 *** your PATH or compiler configuration so that the native linker is
15087 *** used, and then restart.
15088
15089 EOF
15090       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15091         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15093       else
15094         ld_shlibs=no
15095       fi
15096       ;;
15097
15098     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15099       case `$LD -v 2>&1` in
15100         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15101         ld_shlibs=no
15102         cat <<_LT_EOF 1>&2
15103
15104 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15105 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15106 *** is disabling shared libraries support.  We urge you to upgrade GNU
15107 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15108 *** your PATH or compiler configuration so that the native linker is
15109 *** used, and then restart.
15110
15111 _LT_EOF
15112         ;;
15113         *)
15114           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15116             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15117             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15118           else
15119             ld_shlibs=no
15120           fi
15121         ;;
15122       esac
15123       ;;
15124
15125     sunos4*)
15126       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15127       wlarc=
15128       hardcode_direct=yes
15129       hardcode_shlibpath_var=no
15130       ;;
15131
15132     *)
15133       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15134         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15135         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15136       else
15137         ld_shlibs=no
15138       fi
15139       ;;
15140     esac
15141
15142     if test "$ld_shlibs" = no; then
15143       runpath_var=
15144       hardcode_libdir_flag_spec=
15145       export_dynamic_flag_spec=
15146       whole_archive_flag_spec=
15147     fi
15148   else
15149     # PORTME fill in a description of your system's linker (not GNU ld)
15150     case $host_os in
15151     aix3*)
15152       allow_undefined_flag=unsupported
15153       always_export_symbols=yes
15154       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'
15155       # Note: this linker hardcodes the directories in LIBPATH if there
15156       # are no directories specified by -L.
15157       hardcode_minus_L=yes
15158       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15159         # Neither direct hardcoding nor static linking is supported with a
15160         # broken collect2.
15161         hardcode_direct=unsupported
15162       fi
15163       ;;
15164
15165     aix4* | aix5*)
15166       if test "$host_cpu" = ia64; then
15167         # On IA64, the linker does run time linking by default, so we don't
15168         # have to do anything special.
15169         aix_use_runtimelinking=no
15170         exp_sym_flag='-Bexport'
15171         no_entry_flag=""
15172       else
15173         # If we're using GNU nm, then we don't want the "-C" option.
15174         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15175         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15176           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'
15177         else
15178           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'
15179         fi
15180         aix_use_runtimelinking=no
15181
15182         # Test if we are trying to use run time linking or normal
15183         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15184         # need to do runtime linking.
15185         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15186           for ld_flag in $LDFLAGS; do
15187           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15188             aix_use_runtimelinking=yes
15189             break
15190           fi
15191           done
15192           ;;
15193         esac
15194
15195         exp_sym_flag='-bexport'
15196         no_entry_flag='-bnoentry'
15197       fi
15198
15199       # When large executables or shared objects are built, AIX ld can
15200       # have problems creating the table of contents.  If linking a library
15201       # or program results in "error TOC overflow" add -mminimal-toc to
15202       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15203       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15204
15205       archive_cmds=''
15206       hardcode_direct=yes
15207       hardcode_libdir_separator=':'
15208       link_all_deplibs=yes
15209
15210       if test "$GCC" = yes; then
15211         case $host_os in aix4.[012]|aix4.[012].*)
15212         # We only want to do this on AIX 4.2 and lower, the check
15213         # below for broken collect2 doesn't work under 4.3+
15214           collect2name=`${CC} -print-prog-name=collect2`
15215           if test -f "$collect2name" && \
15216            strings "$collect2name" | grep resolve_lib_name >/dev/null
15217           then
15218           # We have reworked collect2
15219           hardcode_direct=yes
15220           else
15221           # We have old collect2
15222           hardcode_direct=unsupported
15223           # It fails to find uninstalled libraries when the uninstalled
15224           # path is not listed in the libpath.  Setting hardcode_minus_L
15225           # to unsupported forces relinking
15226           hardcode_minus_L=yes
15227           hardcode_libdir_flag_spec='-L$libdir'
15228           hardcode_libdir_separator=
15229           fi
15230           ;;
15231         esac
15232         shared_flag='-shared'
15233         if test "$aix_use_runtimelinking" = yes; then
15234           shared_flag="$shared_flag "'${wl}-G'
15235         fi
15236       else
15237         # not using gcc
15238         if test "$host_cpu" = ia64; then
15239         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15240         # chokes on -Wl,-G. The following line is correct:
15241           shared_flag='-G'
15242         else
15243           if test "$aix_use_runtimelinking" = yes; then
15244             shared_flag='${wl}-G'
15245           else
15246             shared_flag='${wl}-bM:SRE'
15247           fi
15248         fi
15249       fi
15250
15251       # It seems that -bexpall does not export symbols beginning with
15252       # underscore (_), so it is better to generate a list of symbols to export.
15253       always_export_symbols=yes
15254       if test "$aix_use_runtimelinking" = yes; then
15255         # Warning - without using the other runtime loading flags (-brtl),
15256         # -berok will link without error, but may produce a broken library.
15257         allow_undefined_flag='-berok'
15258        # Determine the default libpath from the value encoded in an empty executable.
15259        cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h.  */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h.  */
15265
15266 int
15267 main ()
15268 {
15269
15270   ;
15271   return 0;
15272 }
15273 _ACEOF
15274 rm -f conftest.$ac_objext conftest$ac_exeext
15275 if { (ac_try="$ac_link"
15276 case "(($ac_try" in
15277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278   *) ac_try_echo=$ac_try;;
15279 esac
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281   (eval "$ac_link") 2>conftest.er1
15282   ac_status=$?
15283   grep -v '^ *+' conftest.er1 >conftest.err
15284   rm -f conftest.er1
15285   cat conftest.err >&5
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); } &&
15288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15289   { (case "(($ac_try" in
15290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291   *) ac_try_echo=$ac_try;;
15292 esac
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294   (eval "$ac_try") 2>&5
15295   ac_status=$?
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); }; } &&
15298          { ac_try='test -s conftest$ac_exeext'
15299   { (case "(($ac_try" in
15300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301   *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304   (eval "$ac_try") 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }; }; then
15308
15309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15310 }'`
15311 # Check for a 64-bit object if we didn't find anything.
15312 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; }
15313 }'`; fi
15314 else
15315   echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318
15319 fi
15320
15321 rm -f core conftest.err conftest.$ac_objext \
15322       conftest$ac_exeext conftest.$ac_ext
15323 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15324
15325        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15326         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"
15327        else
15328         if test "$host_cpu" = ia64; then
15329           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15330           allow_undefined_flag="-z nodefs"
15331           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"
15332         else
15333          # Determine the default libpath from the value encoded in an empty executable.
15334          cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h.  */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h.  */
15340
15341 int
15342 main ()
15343 {
15344
15345   ;
15346   return 0;
15347 }
15348 _ACEOF
15349 rm -f conftest.$ac_objext conftest$ac_exeext
15350 if { (ac_try="$ac_link"
15351 case "(($ac_try" in
15352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353   *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356   (eval "$ac_link") 2>conftest.er1
15357   ac_status=$?
15358   grep -v '^ *+' conftest.er1 >conftest.err
15359   rm -f conftest.er1
15360   cat conftest.err >&5
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } &&
15363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364   { (case "(($ac_try" in
15365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366   *) ac_try_echo=$ac_try;;
15367 esac
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369   (eval "$ac_try") 2>&5
15370   ac_status=$?
15371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372   (exit $ac_status); }; } &&
15373          { ac_try='test -s conftest$ac_exeext'
15374   { (case "(($ac_try" in
15375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376   *) ac_try_echo=$ac_try;;
15377 esac
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379   (eval "$ac_try") 2>&5
15380   ac_status=$?
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); }; }; then
15383
15384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15385 }'`
15386 # Check for a 64-bit object if we didn't find anything.
15387 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; }
15388 }'`; fi
15389 else
15390   echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393
15394 fi
15395
15396 rm -f core conftest.err conftest.$ac_objext \
15397       conftest$ac_exeext conftest.$ac_ext
15398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15399
15400          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15401           # Warning - without using the other run time loading flags,
15402           # -berok will link without error, but may produce a broken library.
15403           no_undefined_flag=' ${wl}-bernotok'
15404           allow_undefined_flag=' ${wl}-berok'
15405           # Exported symbols can be pulled into shared objects from archives
15406           whole_archive_flag_spec='$convenience'
15407           archive_cmds_need_lc=yes
15408           # This is similar to how AIX traditionally builds its shared libraries.
15409           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'
15410         fi
15411       fi
15412       ;;
15413
15414     amigaos*)
15415       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)'
15416       hardcode_libdir_flag_spec='-L$libdir'
15417       hardcode_minus_L=yes
15418       # see comment about different semantics on the GNU ld section
15419       ld_shlibs=no
15420       ;;
15421
15422     bsdi[45]*)
15423       export_dynamic_flag_spec=-rdynamic
15424       ;;
15425
15426     cygwin* | mingw* | pw32*)
15427       # When not using gcc, we currently assume that we are using
15428       # Microsoft Visual C++.
15429       # hardcode_libdir_flag_spec is actually meaningless, as there is
15430       # no search path for DLLs.
15431       hardcode_libdir_flag_spec=' '
15432       allow_undefined_flag=unsupported
15433       # Tell ltmain to make .lib files, not .a files.
15434       libext=lib
15435       # Tell ltmain to make .dll files, not .so files.
15436       shrext_cmds=".dll"
15437       # FIXME: Setting linknames here is a bad hack.
15438       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15439       # The linker will automatically build a .lib file if we build a DLL.
15440       old_archive_From_new_cmds='true'
15441       # FIXME: Should let the user specify the lib program.
15442       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15443       fix_srcfile_path='`cygpath -w "$srcfile"`'
15444       enable_shared_with_static_runtimes=yes
15445       ;;
15446
15447     darwin* | rhapsody*)
15448       case $host_os in
15449         rhapsody* | darwin1.[012])
15450          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15451          ;;
15452        *) # Darwin 1.3 on
15453          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15454            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15455          else
15456            case ${MACOSX_DEPLOYMENT_TARGET} in
15457              10.[012])
15458                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15459                ;;
15460              10.*)
15461                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15462                ;;
15463            esac
15464          fi
15465          ;;
15466       esac
15467       archive_cmds_need_lc=no
15468       hardcode_direct=no
15469       hardcode_automatic=yes
15470       hardcode_shlibpath_var=unsupported
15471       whole_archive_flag_spec=''
15472       link_all_deplibs=yes
15473     if test "$GCC" = yes ; then
15474         output_verbose_link_cmd='echo'
15475         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15476       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15477       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15478       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}'
15479       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}'
15480     else
15481       case $cc_basename in
15482         xlc*)
15483          output_verbose_link_cmd='echo'
15484          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15485          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15486           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15487          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}'
15488           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}'
15489           ;;
15490        *)
15491          ld_shlibs=no
15492           ;;
15493       esac
15494     fi
15495       ;;
15496
15497     dgux*)
15498       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15499       hardcode_libdir_flag_spec='-L$libdir'
15500       hardcode_shlibpath_var=no
15501       ;;
15502
15503     freebsd1*)
15504       ld_shlibs=no
15505       ;;
15506
15507     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15508     # support.  Future versions do this automatically, but an explicit c++rt0.o
15509     # does not break anything, and helps significantly (at the cost of a little
15510     # extra space).
15511     freebsd2.2*)
15512       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15513       hardcode_libdir_flag_spec='-R$libdir'
15514       hardcode_direct=yes
15515       hardcode_shlibpath_var=no
15516       ;;
15517
15518     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15519     freebsd2*)
15520       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15521       hardcode_direct=yes
15522       hardcode_minus_L=yes
15523       hardcode_shlibpath_var=no
15524       ;;
15525
15526     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15527     freebsd* | kfreebsd*-gnu | dragonfly*)
15528       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15529       hardcode_libdir_flag_spec='-R$libdir'
15530       hardcode_direct=yes
15531       hardcode_shlibpath_var=no
15532       ;;
15533
15534     hpux9*)
15535       if test "$GCC" = yes; then
15536         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'
15537       else
15538         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'
15539       fi
15540       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15541       hardcode_libdir_separator=:
15542       hardcode_direct=yes
15543
15544       # hardcode_minus_L: Not really in the search PATH,
15545       # but as the default location of the library.
15546       hardcode_minus_L=yes
15547       export_dynamic_flag_spec='${wl}-E'
15548       ;;
15549
15550     hpux10*)
15551       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15552         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15553       else
15554         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15555       fi
15556       if test "$with_gnu_ld" = no; then
15557         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15558         hardcode_libdir_separator=:
15559
15560         hardcode_direct=yes
15561         export_dynamic_flag_spec='${wl}-E'
15562
15563         # hardcode_minus_L: Not really in the search PATH,
15564         # but as the default location of the library.
15565         hardcode_minus_L=yes
15566       fi
15567       ;;
15568
15569     hpux11*)
15570       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15571         case $host_cpu in
15572         hppa*64*)
15573           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15574           ;;
15575         ia64*)
15576           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15577           ;;
15578         *)
15579           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15580           ;;
15581         esac
15582       else
15583         case $host_cpu in
15584         hppa*64*)
15585           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586           ;;
15587         ia64*)
15588           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15589           ;;
15590         *)
15591           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15592           ;;
15593         esac
15594       fi
15595       if test "$with_gnu_ld" = no; then
15596         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15597         hardcode_libdir_separator=:
15598
15599         case $host_cpu in
15600         hppa*64*|ia64*)
15601           hardcode_libdir_flag_spec_ld='+b $libdir'
15602           hardcode_direct=no
15603           hardcode_shlibpath_var=no
15604           ;;
15605         *)
15606           hardcode_direct=yes
15607           export_dynamic_flag_spec='${wl}-E'
15608
15609           # hardcode_minus_L: Not really in the search PATH,
15610           # but as the default location of the library.
15611           hardcode_minus_L=yes
15612           ;;
15613         esac
15614       fi
15615       ;;
15616
15617     irix5* | irix6* | nonstopux*)
15618       if test "$GCC" = yes; then
15619         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'
15620       else
15621         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'
15622         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15623       fi
15624       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15625       hardcode_libdir_separator=:
15626       link_all_deplibs=yes
15627       ;;
15628
15629     netbsd*)
15630       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15631         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15632       else
15633         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15634       fi
15635       hardcode_libdir_flag_spec='-R$libdir'
15636       hardcode_direct=yes
15637       hardcode_shlibpath_var=no
15638       ;;
15639
15640     newsos6)
15641       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15642       hardcode_direct=yes
15643       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15644       hardcode_libdir_separator=:
15645       hardcode_shlibpath_var=no
15646       ;;
15647
15648     openbsd*)
15649       hardcode_direct=yes
15650       hardcode_shlibpath_var=no
15651       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15652         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15653         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15654         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15655         export_dynamic_flag_spec='${wl}-E'
15656       else
15657        case $host_os in
15658          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15659            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15660            hardcode_libdir_flag_spec='-R$libdir'
15661            ;;
15662          *)
15663            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15664            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15665            ;;
15666        esac
15667       fi
15668       ;;
15669
15670     os2*)
15671       hardcode_libdir_flag_spec='-L$libdir'
15672       hardcode_minus_L=yes
15673       allow_undefined_flag=unsupported
15674       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'
15675       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15676       ;;
15677
15678     osf3*)
15679       if test "$GCC" = yes; then
15680         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15681         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'
15682       else
15683         allow_undefined_flag=' -expect_unresolved \*'
15684         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'
15685       fi
15686       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15687       hardcode_libdir_separator=:
15688       ;;
15689
15690     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15691       if test "$GCC" = yes; then
15692         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15693         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'
15694         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15695       else
15696         allow_undefined_flag=' -expect_unresolved \*'
15697         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'
15698         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15699         $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'
15700
15701         # Both c and cxx compiler support -rpath directly
15702         hardcode_libdir_flag_spec='-rpath $libdir'
15703       fi
15704       hardcode_libdir_separator=:
15705       ;;
15706
15707     solaris*)
15708       no_undefined_flag=' -z text'
15709       if test "$GCC" = yes; then
15710         wlarc='${wl}'
15711         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15712         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15713           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15714       else
15715         wlarc=''
15716         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15717         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15718         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15719       fi
15720       hardcode_libdir_flag_spec='-R$libdir'
15721       hardcode_shlibpath_var=no
15722       case $host_os in
15723       solaris2.[0-5] | solaris2.[0-5].*) ;;
15724       *)
15725         # The compiler driver will combine linker options so we
15726         # cannot just pass the convience library names through
15727         # without $wl, iff we do not link with $LD.
15728         # Luckily, gcc supports the same syntax we need for Sun Studio.
15729         # Supported since Solaris 2.6 (maybe 2.5.1?)
15730         case $wlarc in
15731         '')
15732           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15733         *)
15734           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' ;;
15735         esac ;;
15736       esac
15737       link_all_deplibs=yes
15738       ;;
15739
15740     sunos4*)
15741       if test "x$host_vendor" = xsequent; then
15742         # Use $CC to link under sequent, because it throws in some extra .o
15743         # files that make .init and .fini sections work.
15744         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15745       else
15746         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15747       fi
15748       hardcode_libdir_flag_spec='-L$libdir'
15749       hardcode_direct=yes
15750       hardcode_minus_L=yes
15751       hardcode_shlibpath_var=no
15752       ;;
15753
15754     sysv4)
15755       case $host_vendor in
15756         sni)
15757           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758           hardcode_direct=yes # is this really true???
15759         ;;
15760         siemens)
15761           ## LD is ld it makes a PLAMLIB
15762           ## CC just makes a GrossModule.
15763           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15764           reload_cmds='$CC -r -o $output$reload_objs'
15765           hardcode_direct=no
15766         ;;
15767         motorola)
15768           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15769           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15770         ;;
15771       esac
15772       runpath_var='LD_RUN_PATH'
15773       hardcode_shlibpath_var=no
15774       ;;
15775
15776     sysv4.3*)
15777       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778       hardcode_shlibpath_var=no
15779       export_dynamic_flag_spec='-Bexport'
15780       ;;
15781
15782     sysv4*MP*)
15783       if test -d /usr/nec; then
15784         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15785         hardcode_shlibpath_var=no
15786         runpath_var=LD_RUN_PATH
15787         hardcode_runpath_var=yes
15788         ld_shlibs=yes
15789       fi
15790       ;;
15791
15792     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15793       no_undefined_flag='${wl}-z,text'
15794       archive_cmds_need_lc=no
15795       hardcode_shlibpath_var=no
15796       runpath_var='LD_RUN_PATH'
15797
15798       if test "$GCC" = yes; then
15799         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15800         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15801       else
15802         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15803         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15804       fi
15805       ;;
15806
15807     sysv5* | sco3.2v5* | sco5v6*)
15808       # Note: We can NOT use -z defs as we might desire, because we do not
15809       # link with -lc, and that would cause any symbols used from libc to
15810       # always be unresolved, which means just about no library would
15811       # ever link correctly.  If we're not using GNU ld we use -z text
15812       # though, which does catch some bad symbols but isn't as heavy-handed
15813       # as -z defs.
15814       no_undefined_flag='${wl}-z,text'
15815       allow_undefined_flag='${wl}-z,nodefs'
15816       archive_cmds_need_lc=no
15817       hardcode_shlibpath_var=no
15818       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15819       hardcode_libdir_separator=':'
15820       link_all_deplibs=yes
15821       export_dynamic_flag_spec='${wl}-Bexport'
15822       runpath_var='LD_RUN_PATH'
15823
15824       if test "$GCC" = yes; then
15825         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15826         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15827       else
15828         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15829         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15830       fi
15831       ;;
15832
15833     uts4*)
15834       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835       hardcode_libdir_flag_spec='-L$libdir'
15836       hardcode_shlibpath_var=no
15837       ;;
15838
15839     *)
15840       ld_shlibs=no
15841       ;;
15842     esac
15843   fi
15844
15845 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15846 echo "${ECHO_T}$ld_shlibs" >&6; }
15847 test "$ld_shlibs" = no && can_build_shared=no
15848
15849 #
15850 # Do we need to explicitly link libc?
15851 #
15852 case "x$archive_cmds_need_lc" in
15853 x|xyes)
15854   # Assume -lc should be added
15855   archive_cmds_need_lc=yes
15856
15857   if test "$enable_shared" = yes && test "$GCC" = yes; then
15858     case $archive_cmds in
15859     *'~'*)
15860       # FIXME: we may have to deal with multi-command sequences.
15861       ;;
15862     '$CC '*)
15863       # Test whether the compiler implicitly links with -lc since on some
15864       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15865       # to ld, don't add -lc before -lgcc.
15866       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15867 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15868       $rm conftest*
15869       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15870
15871       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15872   (eval $ac_compile) 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } 2>conftest.err; then
15876         soname=conftest
15877         lib=conftest
15878         libobjs=conftest.$ac_objext
15879         deplibs=
15880         wl=$lt_prog_compiler_wl
15881         pic_flag=$lt_prog_compiler_pic
15882         compiler_flags=-v
15883         linker_flags=-v
15884         verstring=
15885         output_objdir=.
15886         libname=conftest
15887         lt_save_allow_undefined_flag=$allow_undefined_flag
15888         allow_undefined_flag=
15889         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15890   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); }
15894         then
15895           archive_cmds_need_lc=no
15896         else
15897           archive_cmds_need_lc=yes
15898         fi
15899         allow_undefined_flag=$lt_save_allow_undefined_flag
15900       else
15901         cat conftest.err 1>&5
15902       fi
15903       $rm conftest*
15904       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15905 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15906       ;;
15907     esac
15908   fi
15909   ;;
15910 esac
15911
15912 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15913 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15914 library_names_spec=
15915 libname_spec='lib$name'
15916 soname_spec=
15917 shrext_cmds=".so"
15918 postinstall_cmds=
15919 postuninstall_cmds=
15920 finish_cmds=
15921 finish_eval=
15922 shlibpath_var=
15923 shlibpath_overrides_runpath=unknown
15924 version_type=none
15925 dynamic_linker="$host_os ld.so"
15926 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15927 if test "$GCC" = yes; then
15928   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15929   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15930     # if the path contains ";" then we assume it to be the separator
15931     # otherwise default to the standard path separator (i.e. ":") - it is
15932     # assumed that no part of a normal pathname contains ";" but that should
15933     # okay in the real world where ";" in dirpaths is itself problematic.
15934     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15935   else
15936     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15937   fi
15938 else
15939   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15940 fi
15941 need_lib_prefix=unknown
15942 hardcode_into_libs=no
15943
15944 # when you set need_version to no, make sure it does not cause -set_version
15945 # flags to be left without arguments
15946 need_version=unknown
15947
15948 case $host_os in
15949 aix3*)
15950   version_type=linux
15951   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15952   shlibpath_var=LIBPATH
15953
15954   # AIX 3 has no versioning support, so we append a major version to the name.
15955   soname_spec='${libname}${release}${shared_ext}$major'
15956   ;;
15957
15958 aix4* | aix5*)
15959   version_type=linux
15960   need_lib_prefix=no
15961   need_version=no
15962   hardcode_into_libs=yes
15963   if test "$host_cpu" = ia64; then
15964     # AIX 5 supports IA64
15965     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15966     shlibpath_var=LD_LIBRARY_PATH
15967   else
15968     # With GCC up to 2.95.x, collect2 would create an import file
15969     # for dependence libraries.  The import file would start with
15970     # the line `#! .'.  This would cause the generated library to
15971     # depend on `.', always an invalid library.  This was fixed in
15972     # development snapshots of GCC prior to 3.0.
15973     case $host_os in
15974       aix4 | aix4.[01] | aix4.[01].*)
15975       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15976            echo ' yes '
15977            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15978         :
15979       else
15980         can_build_shared=no
15981       fi
15982       ;;
15983     esac
15984     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15985     # soname into executable. Probably we can add versioning support to
15986     # collect2, so additional links can be useful in future.
15987     if test "$aix_use_runtimelinking" = yes; then
15988       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15989       # instead of lib<name>.a to let people know that these are not
15990       # typical AIX shared libraries.
15991       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992     else
15993       # We preserve .a as extension for shared libraries through AIX4.2
15994       # and later when we are not doing run time linking.
15995       library_names_spec='${libname}${release}.a $libname.a'
15996       soname_spec='${libname}${release}${shared_ext}$major'
15997     fi
15998     shlibpath_var=LIBPATH
15999   fi
16000   ;;
16001
16002 amigaos*)
16003   library_names_spec='$libname.ixlibrary $libname.a'
16004   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16005   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'
16006   ;;
16007
16008 beos*)
16009   library_names_spec='${libname}${shared_ext}'
16010   dynamic_linker="$host_os ld.so"
16011   shlibpath_var=LIBRARY_PATH
16012   ;;
16013
16014 bsdi[45]*)
16015   version_type=linux
16016   need_version=no
16017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018   soname_spec='${libname}${release}${shared_ext}$major'
16019   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16020   shlibpath_var=LD_LIBRARY_PATH
16021   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16022   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16023   # the default ld.so.conf also contains /usr/contrib/lib and
16024   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16025   # libtool to hard-code these into programs
16026   ;;
16027
16028 cygwin* | mingw* | pw32*)
16029   version_type=windows
16030   shrext_cmds=".dll"
16031   need_version=no
16032   need_lib_prefix=no
16033
16034   case $GCC,$host_os in
16035   yes,cygwin* | yes,mingw* | yes,pw32*)
16036     library_names_spec='$libname.dll.a'
16037     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16038     postinstall_cmds='base_file=`basename \${file}`~
16039       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16040       dldir=$destdir/`dirname \$dlpath`~
16041       test -d \$dldir || mkdir -p \$dldir~
16042       $install_prog $dir/$dlname \$dldir/$dlname~
16043       chmod a+x \$dldir/$dlname'
16044     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16045       dlpath=$dir/\$dldll~
16046        $rm \$dlpath'
16047     shlibpath_overrides_runpath=yes
16048
16049     case $host_os in
16050     cygwin*)
16051       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16052       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16053       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16054       ;;
16055     mingw*)
16056       # MinGW DLLs use traditional 'lib' prefix
16057       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16058       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16059       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16060         # It is most probably a Windows format PATH printed by
16061         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16062         # path with ; separators, and with drive letters. We can handle the
16063         # drive letters (cygwin fileutils understands them), so leave them,
16064         # especially as we might pass files found there to a mingw objdump,
16065         # which wouldn't understand a cygwinified path. Ahh.
16066         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16067       else
16068         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16069       fi
16070       ;;
16071     pw32*)
16072       # pw32 DLLs use 'pw' prefix rather than 'lib'
16073       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16074       ;;
16075     esac
16076     ;;
16077
16078   *)
16079     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16080     ;;
16081   esac
16082   dynamic_linker='Win32 ld.exe'
16083   # FIXME: first we should search . and the directory the executable is in
16084   shlibpath_var=PATH
16085   ;;
16086
16087 darwin* | rhapsody*)
16088   dynamic_linker="$host_os dyld"
16089   version_type=darwin
16090   need_lib_prefix=no
16091   need_version=no
16092   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16093   soname_spec='${libname}${release}${major}$shared_ext'
16094   shlibpath_overrides_runpath=yes
16095   shlibpath_var=DYLD_LIBRARY_PATH
16096   shrext_cmds='.dylib'
16097   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16098   if test "$GCC" = yes; then
16099     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"`
16100   else
16101     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16102   fi
16103   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16104   ;;
16105
16106 dgux*)
16107   version_type=linux
16108   need_lib_prefix=no
16109   need_version=no
16110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16111   soname_spec='${libname}${release}${shared_ext}$major'
16112   shlibpath_var=LD_LIBRARY_PATH
16113   ;;
16114
16115 freebsd1*)
16116   dynamic_linker=no
16117   ;;
16118
16119 kfreebsd*-gnu)
16120   version_type=linux
16121   need_lib_prefix=no
16122   need_version=no
16123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124   soname_spec='${libname}${release}${shared_ext}$major'
16125   shlibpath_var=LD_LIBRARY_PATH
16126   shlibpath_overrides_runpath=no
16127   hardcode_into_libs=yes
16128   dynamic_linker='GNU ld.so'
16129   ;;
16130
16131 freebsd* | dragonfly*)
16132   # DragonFly does not have aout.  When/if they implement a new
16133   # versioning mechanism, adjust this.
16134   if test -x /usr/bin/objformat; then
16135     objformat=`/usr/bin/objformat`
16136   else
16137     case $host_os in
16138     freebsd[123]*) objformat=aout ;;
16139     *) objformat=elf ;;
16140     esac
16141   fi
16142   version_type=freebsd-$objformat
16143   case $version_type in
16144     freebsd-elf*)
16145       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16146       need_version=no
16147       need_lib_prefix=no
16148       ;;
16149     freebsd-*)
16150       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16151       need_version=yes
16152       ;;
16153   esac
16154   shlibpath_var=LD_LIBRARY_PATH
16155   case $host_os in
16156   freebsd2*)
16157     shlibpath_overrides_runpath=yes
16158     ;;
16159   freebsd3.[01]* | freebsdelf3.[01]*)
16160     shlibpath_overrides_runpath=yes
16161     hardcode_into_libs=yes
16162     ;;
16163   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16164   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16165     shlibpath_overrides_runpath=no
16166     hardcode_into_libs=yes
16167     ;;
16168   freebsd*) # from 4.6 on
16169     shlibpath_overrides_runpath=yes
16170     hardcode_into_libs=yes
16171     ;;
16172   esac
16173   ;;
16174
16175 gnu*)
16176   version_type=linux
16177   need_lib_prefix=no
16178   need_version=no
16179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16180   soname_spec='${libname}${release}${shared_ext}$major'
16181   shlibpath_var=LD_LIBRARY_PATH
16182   hardcode_into_libs=yes
16183   ;;
16184
16185 hpux9* | hpux10* | hpux11*)
16186   # Give a soname corresponding to the major version so that dld.sl refuses to
16187   # link against other versions.
16188   version_type=sunos
16189   need_lib_prefix=no
16190   need_version=no
16191   case $host_cpu in
16192   ia64*)
16193     shrext_cmds='.so'
16194     hardcode_into_libs=yes
16195     dynamic_linker="$host_os dld.so"
16196     shlibpath_var=LD_LIBRARY_PATH
16197     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199     soname_spec='${libname}${release}${shared_ext}$major'
16200     if test "X$HPUX_IA64_MODE" = X32; then
16201       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16202     else
16203       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16204     fi
16205     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16206     ;;
16207    hppa*64*)
16208      shrext_cmds='.sl'
16209      hardcode_into_libs=yes
16210      dynamic_linker="$host_os dld.sl"
16211      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16212      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16213      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214      soname_spec='${libname}${release}${shared_ext}$major'
16215      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16216      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16217      ;;
16218    *)
16219     shrext_cmds='.sl'
16220     dynamic_linker="$host_os dld.sl"
16221     shlibpath_var=SHLIB_PATH
16222     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224     soname_spec='${libname}${release}${shared_ext}$major'
16225     ;;
16226   esac
16227   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16228   postinstall_cmds='chmod 555 $lib'
16229   ;;
16230
16231 interix3*)
16232   version_type=linux
16233   need_lib_prefix=no
16234   need_version=no
16235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16236   soname_spec='${libname}${release}${shared_ext}$major'
16237   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16238   shlibpath_var=LD_LIBRARY_PATH
16239   shlibpath_overrides_runpath=no
16240   hardcode_into_libs=yes
16241   ;;
16242
16243 irix5* | irix6* | nonstopux*)
16244   case $host_os in
16245     nonstopux*) version_type=nonstopux ;;
16246     *)
16247         if test "$lt_cv_prog_gnu_ld" = yes; then
16248                 version_type=linux
16249         else
16250                 version_type=irix
16251         fi ;;
16252   esac
16253   need_lib_prefix=no
16254   need_version=no
16255   soname_spec='${libname}${release}${shared_ext}$major'
16256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16257   case $host_os in
16258   irix5* | nonstopux*)
16259     libsuff= shlibsuff=
16260     ;;
16261   *)
16262     case $LD in # libtool.m4 will add one of these switches to LD
16263     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16264       libsuff= shlibsuff= libmagic=32-bit;;
16265     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16266       libsuff=32 shlibsuff=N32 libmagic=N32;;
16267     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16268       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16269     *) libsuff= shlibsuff= libmagic=never-match;;
16270     esac
16271     ;;
16272   esac
16273   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16274   shlibpath_overrides_runpath=no
16275   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16276   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16277   hardcode_into_libs=yes
16278   ;;
16279
16280 # No shared lib support for Linux oldld, aout, or coff.
16281 linux*oldld* | linux*aout* | linux*coff*)
16282   dynamic_linker=no
16283   ;;
16284
16285 # This must be Linux ELF.
16286 linux*)
16287   version_type=linux
16288   need_lib_prefix=no
16289   need_version=no
16290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291   soname_spec='${libname}${release}${shared_ext}$major'
16292   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16293   shlibpath_var=LD_LIBRARY_PATH
16294   shlibpath_overrides_runpath=no
16295   # This implies no fast_install, which is unacceptable.
16296   # Some rework will be needed to allow for fast_install
16297   # before this can be enabled.
16298   hardcode_into_libs=yes
16299
16300   # Append ld.so.conf contents to the search path
16301   if test -f /etc/ld.so.conf; then
16302     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' ' '`
16303     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16304   fi
16305
16306   # We used to test for /lib/ld.so.1 and disable shared libraries on
16307   # powerpc, because MkLinux only supported shared libraries with the
16308   # GNU dynamic linker.  Since this was broken with cross compilers,
16309   # most powerpc-linux boxes support dynamic linking these days and
16310   # people can always --disable-shared, the test was removed, and we
16311   # assume the GNU/Linux dynamic linker is in use.
16312   dynamic_linker='GNU/Linux ld.so'
16313   ;;
16314
16315 knetbsd*-gnu)
16316   version_type=linux
16317   need_lib_prefix=no
16318   need_version=no
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16320   soname_spec='${libname}${release}${shared_ext}$major'
16321   shlibpath_var=LD_LIBRARY_PATH
16322   shlibpath_overrides_runpath=no
16323   hardcode_into_libs=yes
16324   dynamic_linker='GNU ld.so'
16325   ;;
16326
16327 netbsd*)
16328   version_type=sunos
16329   need_lib_prefix=no
16330   need_version=no
16331   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16333     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16334     dynamic_linker='NetBSD (a.out) ld.so'
16335   else
16336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16337     soname_spec='${libname}${release}${shared_ext}$major'
16338     dynamic_linker='NetBSD ld.elf_so'
16339   fi
16340   shlibpath_var=LD_LIBRARY_PATH
16341   shlibpath_overrides_runpath=yes
16342   hardcode_into_libs=yes
16343   ;;
16344
16345 newsos6)
16346   version_type=linux
16347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348   shlibpath_var=LD_LIBRARY_PATH
16349   shlibpath_overrides_runpath=yes
16350   ;;
16351
16352 nto-qnx*)
16353   version_type=linux
16354   need_lib_prefix=no
16355   need_version=no
16356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357   soname_spec='${libname}${release}${shared_ext}$major'
16358   shlibpath_var=LD_LIBRARY_PATH
16359   shlibpath_overrides_runpath=yes
16360   ;;
16361
16362 openbsd*)
16363   version_type=sunos
16364   sys_lib_dlsearch_path_spec="/usr/lib"
16365   need_lib_prefix=no
16366   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16367   case $host_os in
16368     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16369     *)                         need_version=no  ;;
16370   esac
16371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16372   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16373   shlibpath_var=LD_LIBRARY_PATH
16374   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16375     case $host_os in
16376       openbsd2.[89] | openbsd2.[89].*)
16377         shlibpath_overrides_runpath=no
16378         ;;
16379       *)
16380         shlibpath_overrides_runpath=yes
16381         ;;
16382       esac
16383   else
16384     shlibpath_overrides_runpath=yes
16385   fi
16386   ;;
16387
16388 os2*)
16389   libname_spec='$name'
16390   shrext_cmds=".dll"
16391   need_lib_prefix=no
16392   library_names_spec='$libname${shared_ext} $libname.a'
16393   dynamic_linker='OS/2 ld.exe'
16394   shlibpath_var=LIBPATH
16395   ;;
16396
16397 osf3* | osf4* | osf5*)
16398   version_type=osf
16399   need_lib_prefix=no
16400   need_version=no
16401   soname_spec='${libname}${release}${shared_ext}$major'
16402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403   shlibpath_var=LD_LIBRARY_PATH
16404   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16405   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16406   ;;
16407
16408 solaris*)
16409   version_type=linux
16410   need_lib_prefix=no
16411   need_version=no
16412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413   soname_spec='${libname}${release}${shared_ext}$major'
16414   shlibpath_var=LD_LIBRARY_PATH
16415   shlibpath_overrides_runpath=yes
16416   hardcode_into_libs=yes
16417   # ldd complains unless libraries are executable
16418   postinstall_cmds='chmod +x $lib'
16419   ;;
16420
16421 sunos4*)
16422   version_type=sunos
16423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16424   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16425   shlibpath_var=LD_LIBRARY_PATH
16426   shlibpath_overrides_runpath=yes
16427   if test "$with_gnu_ld" = yes; then
16428     need_lib_prefix=no
16429   fi
16430   need_version=yes
16431   ;;
16432
16433 sysv4 | sysv4.3*)
16434   version_type=linux
16435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436   soname_spec='${libname}${release}${shared_ext}$major'
16437   shlibpath_var=LD_LIBRARY_PATH
16438   case $host_vendor in
16439     sni)
16440       shlibpath_overrides_runpath=no
16441       need_lib_prefix=no
16442       export_dynamic_flag_spec='${wl}-Blargedynsym'
16443       runpath_var=LD_RUN_PATH
16444       ;;
16445     siemens)
16446       need_lib_prefix=no
16447       ;;
16448     motorola)
16449       need_lib_prefix=no
16450       need_version=no
16451       shlibpath_overrides_runpath=no
16452       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16453       ;;
16454   esac
16455   ;;
16456
16457 sysv4*MP*)
16458   if test -d /usr/nec ;then
16459     version_type=linux
16460     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16461     soname_spec='$libname${shared_ext}.$major'
16462     shlibpath_var=LD_LIBRARY_PATH
16463   fi
16464   ;;
16465
16466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16467   version_type=freebsd-elf
16468   need_lib_prefix=no
16469   need_version=no
16470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16471   soname_spec='${libname}${release}${shared_ext}$major'
16472   shlibpath_var=LD_LIBRARY_PATH
16473   hardcode_into_libs=yes
16474   if test "$with_gnu_ld" = yes; then
16475     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16476     shlibpath_overrides_runpath=no
16477   else
16478     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16479     shlibpath_overrides_runpath=yes
16480     case $host_os in
16481       sco3.2v5*)
16482         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16483         ;;
16484     esac
16485   fi
16486   sys_lib_dlsearch_path_spec='/usr/lib'
16487   ;;
16488
16489 uts4*)
16490   version_type=linux
16491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492   soname_spec='${libname}${release}${shared_ext}$major'
16493   shlibpath_var=LD_LIBRARY_PATH
16494   ;;
16495
16496 *)
16497   dynamic_linker=no
16498   ;;
16499 esac
16500 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16501 echo "${ECHO_T}$dynamic_linker" >&6; }
16502 test "$dynamic_linker" = no && can_build_shared=no
16503
16504 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16505 if test "$GCC" = yes; then
16506   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16507 fi
16508
16509 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16510 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16511 hardcode_action=
16512 if test -n "$hardcode_libdir_flag_spec" || \
16513    test -n "$runpath_var" || \
16514    test "X$hardcode_automatic" = "Xyes" ; then
16515
16516   # We can hardcode non-existant directories.
16517   if test "$hardcode_direct" != no &&
16518      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16519      # have to relink, otherwise we might link with an installed library
16520      # when we should be linking with a yet-to-be-installed one
16521      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16522      test "$hardcode_minus_L" != no; then
16523     # Linking always hardcodes the temporary library directory.
16524     hardcode_action=relink
16525   else
16526     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16527     hardcode_action=immediate
16528   fi
16529 else
16530   # We cannot hardcode anything, or else we can only hardcode existing
16531   # directories.
16532   hardcode_action=unsupported
16533 fi
16534 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16535 echo "${ECHO_T}$hardcode_action" >&6; }
16536
16537 if test "$hardcode_action" = relink; then
16538   # Fast installation is not supported
16539   enable_fast_install=no
16540 elif test "$shlibpath_overrides_runpath" = yes ||
16541      test "$enable_shared" = no; then
16542   # Fast installation is not necessary
16543   enable_fast_install=needless
16544 fi
16545
16546 striplib=
16547 old_striplib=
16548 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16549 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16550 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16551   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16552   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16553   { echo "$as_me:$LINENO: result: yes" >&5
16554 echo "${ECHO_T}yes" >&6; }
16555 else
16556 # FIXME - insert some real tests, host_os isn't really good enough
16557   case $host_os in
16558    darwin*)
16559        if test -n "$STRIP" ; then
16560          striplib="$STRIP -x"
16561          { echo "$as_me:$LINENO: result: yes" >&5
16562 echo "${ECHO_T}yes" >&6; }
16563        else
16564   { echo "$as_me:$LINENO: result: no" >&5
16565 echo "${ECHO_T}no" >&6; }
16566 fi
16567        ;;
16568    *)
16569   { echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6; }
16571     ;;
16572   esac
16573 fi
16574
16575 if test "x$enable_dlopen" != xyes; then
16576   enable_dlopen=unknown
16577   enable_dlopen_self=unknown
16578   enable_dlopen_self_static=unknown
16579 else
16580   lt_cv_dlopen=no
16581   lt_cv_dlopen_libs=
16582
16583   case $host_os in
16584   beos*)
16585     lt_cv_dlopen="load_add_on"
16586     lt_cv_dlopen_libs=
16587     lt_cv_dlopen_self=yes
16588     ;;
16589
16590   mingw* | pw32*)
16591     lt_cv_dlopen="LoadLibrary"
16592     lt_cv_dlopen_libs=
16593    ;;
16594
16595   cygwin*)
16596     lt_cv_dlopen="dlopen"
16597     lt_cv_dlopen_libs=
16598    ;;
16599
16600   darwin*)
16601   # if libdl is installed we need to link against it
16602     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16603 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16604 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16605   echo $ECHO_N "(cached) $ECHO_C" >&6
16606 else
16607   ac_check_lib_save_LIBS=$LIBS
16608 LIBS="-ldl  $LIBS"
16609 cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h.  */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h.  */
16615
16616 /* Override any GCC internal prototype to avoid an error.
16617    Use char because int might match the return type of a GCC
16618    builtin and then its argument prototype would still apply.  */
16619 #ifdef __cplusplus
16620 extern "C"
16621 #endif
16622 char dlopen ();
16623 int
16624 main ()
16625 {
16626 return dlopen ();
16627   ;
16628   return 0;
16629 }
16630 _ACEOF
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (ac_try="$ac_link"
16633 case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638   (eval "$ac_link") 2>conftest.er1
16639   ac_status=$?
16640   grep -v '^ *+' conftest.er1 >conftest.err
16641   rm -f conftest.er1
16642   cat conftest.err >&5
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); } &&
16645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646   { (case "(($ac_try" in
16647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648   *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651   (eval "$ac_try") 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); }; } &&
16655          { ac_try='test -s conftest$ac_exeext'
16656   { (case "(($ac_try" in
16657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658   *) ac_try_echo=$ac_try;;
16659 esac
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661   (eval "$ac_try") 2>&5
16662   ac_status=$?
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); }; }; then
16665   ac_cv_lib_dl_dlopen=yes
16666 else
16667   echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670         ac_cv_lib_dl_dlopen=no
16671 fi
16672
16673 rm -f core conftest.err conftest.$ac_objext \
16674       conftest$ac_exeext conftest.$ac_ext
16675 LIBS=$ac_check_lib_save_LIBS
16676 fi
16677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16678 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16679 if test $ac_cv_lib_dl_dlopen = yes; then
16680   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16681 else
16682
16683     lt_cv_dlopen="dyld"
16684     lt_cv_dlopen_libs=
16685     lt_cv_dlopen_self=yes
16686
16687 fi
16688
16689    ;;
16690
16691   *)
16692     { echo "$as_me:$LINENO: checking for shl_load" >&5
16693 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16694 if test "${ac_cv_func_shl_load+set}" = set; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 else
16697   cat >conftest.$ac_ext <<_ACEOF
16698 /* confdefs.h.  */
16699 _ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h.  */
16703 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16705 #define shl_load innocuous_shl_load
16706
16707 /* System header to define __stub macros and hopefully few prototypes,
16708     which can conflict with char shl_load (); below.
16709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16710     <limits.h> exists even on freestanding compilers.  */
16711
16712 #ifdef __STDC__
16713 # include <limits.h>
16714 #else
16715 # include <assert.h>
16716 #endif
16717
16718 #undef shl_load
16719
16720 /* Override any GCC internal prototype to avoid an error.
16721    Use char because int might match the return type of a GCC
16722    builtin and then its argument prototype would still apply.  */
16723 #ifdef __cplusplus
16724 extern "C"
16725 #endif
16726 char shl_load ();
16727 /* The GNU C library defines this for functions which it implements
16728     to always fail with ENOSYS.  Some functions are actually named
16729     something starting with __ and the normal name is an alias.  */
16730 #if defined __stub_shl_load || defined __stub___shl_load
16731 choke me
16732 #endif
16733
16734 int
16735 main ()
16736 {
16737 return shl_load ();
16738   ;
16739   return 0;
16740 }
16741 _ACEOF
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (ac_try="$ac_link"
16744 case "(($ac_try" in
16745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746   *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749   (eval "$ac_link") 2>conftest.er1
16750   ac_status=$?
16751   grep -v '^ *+' conftest.er1 >conftest.err
16752   rm -f conftest.er1
16753   cat conftest.err >&5
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } &&
16756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16757   { (case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762   (eval "$ac_try") 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); }; } &&
16766          { ac_try='test -s conftest$ac_exeext'
16767   { (case "(($ac_try" in
16768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769   *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772   (eval "$ac_try") 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; }; then
16776   ac_cv_func_shl_load=yes
16777 else
16778   echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16780
16781         ac_cv_func_shl_load=no
16782 fi
16783
16784 rm -f core conftest.err conftest.$ac_objext \
16785       conftest$ac_exeext conftest.$ac_ext
16786 fi
16787 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16788 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16789 if test $ac_cv_func_shl_load = yes; then
16790   lt_cv_dlopen="shl_load"
16791 else
16792   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16793 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16794 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16795   echo $ECHO_N "(cached) $ECHO_C" >&6
16796 else
16797   ac_check_lib_save_LIBS=$LIBS
16798 LIBS="-ldld  $LIBS"
16799 cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h.  */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h.  */
16805
16806 /* Override any GCC internal prototype to avoid an error.
16807    Use char because int might match the return type of a GCC
16808    builtin and then its argument prototype would still apply.  */
16809 #ifdef __cplusplus
16810 extern "C"
16811 #endif
16812 char shl_load ();
16813 int
16814 main ()
16815 {
16816 return shl_load ();
16817   ;
16818   return 0;
16819 }
16820 _ACEOF
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825   *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828   (eval "$ac_link") 2>conftest.er1
16829   ac_status=$?
16830   grep -v '^ *+' conftest.er1 >conftest.err
16831   rm -f conftest.er1
16832   cat conftest.err >&5
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } &&
16835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16836   { (case "(($ac_try" in
16837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838   *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841   (eval "$ac_try") 2>&5
16842   ac_status=$?
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); }; } &&
16845          { ac_try='test -s conftest$ac_exeext'
16846   { (case "(($ac_try" in
16847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848   *) ac_try_echo=$ac_try;;
16849 esac
16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851   (eval "$ac_try") 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); }; }; then
16855   ac_cv_lib_dld_shl_load=yes
16856 else
16857   echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860         ac_cv_lib_dld_shl_load=no
16861 fi
16862
16863 rm -f core conftest.err conftest.$ac_objext \
16864       conftest$ac_exeext conftest.$ac_ext
16865 LIBS=$ac_check_lib_save_LIBS
16866 fi
16867 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16868 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16869 if test $ac_cv_lib_dld_shl_load = yes; then
16870   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16871 else
16872   { echo "$as_me:$LINENO: checking for dlopen" >&5
16873 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16874 if test "${ac_cv_func_dlopen+set}" = set; then
16875   echo $ECHO_N "(cached) $ECHO_C" >&6
16876 else
16877   cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h.  */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h.  */
16883 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16885 #define dlopen innocuous_dlopen
16886
16887 /* System header to define __stub macros and hopefully few prototypes,
16888     which can conflict with char dlopen (); below.
16889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16890     <limits.h> exists even on freestanding compilers.  */
16891
16892 #ifdef __STDC__
16893 # include <limits.h>
16894 #else
16895 # include <assert.h>
16896 #endif
16897
16898 #undef dlopen
16899
16900 /* Override any GCC internal prototype to avoid an error.
16901    Use char because int might match the return type of a GCC
16902    builtin and then its argument prototype would still apply.  */
16903 #ifdef __cplusplus
16904 extern "C"
16905 #endif
16906 char dlopen ();
16907 /* The GNU C library defines this for functions which it implements
16908     to always fail with ENOSYS.  Some functions are actually named
16909     something starting with __ and the normal name is an alias.  */
16910 #if defined __stub_dlopen || defined __stub___dlopen
16911 choke me
16912 #endif
16913
16914 int
16915 main ()
16916 {
16917 return dlopen ();
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (ac_try="$ac_link"
16924 case "(($ac_try" in
16925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926   *) ac_try_echo=$ac_try;;
16927 esac
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929   (eval "$ac_link") 2>conftest.er1
16930   ac_status=$?
16931   grep -v '^ *+' conftest.er1 >conftest.err
16932   rm -f conftest.er1
16933   cat conftest.err >&5
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } &&
16936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937   { (case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942   (eval "$ac_try") 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); }; } &&
16946          { ac_try='test -s conftest$ac_exeext'
16947   { (case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952   (eval "$ac_try") 2>&5
16953   ac_status=$?
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); }; }; then
16956   ac_cv_func_dlopen=yes
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961         ac_cv_func_dlopen=no
16962 fi
16963
16964 rm -f core conftest.err conftest.$ac_objext \
16965       conftest$ac_exeext conftest.$ac_ext
16966 fi
16967 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16968 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16969 if test $ac_cv_func_dlopen = yes; then
16970   lt_cv_dlopen="dlopen"
16971 else
16972   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16973 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16974 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16975   echo $ECHO_N "(cached) $ECHO_C" >&6
16976 else
16977   ac_check_lib_save_LIBS=$LIBS
16978 LIBS="-ldl  $LIBS"
16979 cat >conftest.$ac_ext <<_ACEOF
16980 /* confdefs.h.  */
16981 _ACEOF
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h.  */
16985
16986 /* Override any GCC internal prototype to avoid an error.
16987    Use char because int might match the return type of a GCC
16988    builtin and then its argument prototype would still apply.  */
16989 #ifdef __cplusplus
16990 extern "C"
16991 #endif
16992 char dlopen ();
16993 int
16994 main ()
16995 {
16996 return dlopen ();
16997   ;
16998   return 0;
16999 }
17000 _ACEOF
17001 rm -f conftest.$ac_objext conftest$ac_exeext
17002 if { (ac_try="$ac_link"
17003 case "(($ac_try" in
17004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005   *) ac_try_echo=$ac_try;;
17006 esac
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008   (eval "$ac_link") 2>conftest.er1
17009   ac_status=$?
17010   grep -v '^ *+' conftest.er1 >conftest.err
17011   rm -f conftest.er1
17012   cat conftest.err >&5
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); } &&
17015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17016   { (case "(($ac_try" in
17017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018   *) ac_try_echo=$ac_try;;
17019 esac
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021   (eval "$ac_try") 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; } &&
17025          { ac_try='test -s conftest$ac_exeext'
17026   { (case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_try") 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; }; then
17035   ac_cv_lib_dl_dlopen=yes
17036 else
17037   echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040         ac_cv_lib_dl_dlopen=no
17041 fi
17042
17043 rm -f core conftest.err conftest.$ac_objext \
17044       conftest$ac_exeext conftest.$ac_ext
17045 LIBS=$ac_check_lib_save_LIBS
17046 fi
17047 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17048 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17049 if test $ac_cv_lib_dl_dlopen = yes; then
17050   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17051 else
17052   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17053 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17054 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17055   echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057   ac_check_lib_save_LIBS=$LIBS
17058 LIBS="-lsvld  $LIBS"
17059 cat >conftest.$ac_ext <<_ACEOF
17060 /* confdefs.h.  */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h.  */
17065
17066 /* Override any GCC internal prototype to avoid an error.
17067    Use char because int might match the return type of a GCC
17068    builtin and then its argument prototype would still apply.  */
17069 #ifdef __cplusplus
17070 extern "C"
17071 #endif
17072 char dlopen ();
17073 int
17074 main ()
17075 {
17076 return dlopen ();
17077   ;
17078   return 0;
17079 }
17080 _ACEOF
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (ac_try="$ac_link"
17083 case "(($ac_try" in
17084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085   *) ac_try_echo=$ac_try;;
17086 esac
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088   (eval "$ac_link") 2>conftest.er1
17089   ac_status=$?
17090   grep -v '^ *+' conftest.er1 >conftest.err
17091   rm -f conftest.er1
17092   cat conftest.err >&5
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); } &&
17095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096   { (case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_try") 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; } &&
17105          { ac_try='test -s conftest$ac_exeext'
17106   { (case "(($ac_try" in
17107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108   *) ac_try_echo=$ac_try;;
17109 esac
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111   (eval "$ac_try") 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); }; }; then
17115   ac_cv_lib_svld_dlopen=yes
17116 else
17117   echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17119
17120         ac_cv_lib_svld_dlopen=no
17121 fi
17122
17123 rm -f core conftest.err conftest.$ac_objext \
17124       conftest$ac_exeext conftest.$ac_ext
17125 LIBS=$ac_check_lib_save_LIBS
17126 fi
17127 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17128 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17129 if test $ac_cv_lib_svld_dlopen = yes; then
17130   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17131 else
17132   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17133 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17134 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17135   echo $ECHO_N "(cached) $ECHO_C" >&6
17136 else
17137   ac_check_lib_save_LIBS=$LIBS
17138 LIBS="-ldld  $LIBS"
17139 cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h.  */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h.  */
17145
17146 /* Override any GCC internal prototype to avoid an error.
17147    Use char because int might match the return type of a GCC
17148    builtin and then its argument prototype would still apply.  */
17149 #ifdef __cplusplus
17150 extern "C"
17151 #endif
17152 char dld_link ();
17153 int
17154 main ()
17155 {
17156 return dld_link ();
17157   ;
17158   return 0;
17159 }
17160 _ACEOF
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (ac_try="$ac_link"
17163 case "(($ac_try" in
17164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165   *) ac_try_echo=$ac_try;;
17166 esac
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168   (eval "$ac_link") 2>conftest.er1
17169   ac_status=$?
17170   grep -v '^ *+' conftest.er1 >conftest.err
17171   rm -f conftest.er1
17172   cat conftest.err >&5
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); } &&
17175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17176   { (case "(($ac_try" in
17177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178   *) ac_try_echo=$ac_try;;
17179 esac
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181   (eval "$ac_try") 2>&5
17182   ac_status=$?
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); }; } &&
17185          { ac_try='test -s conftest$ac_exeext'
17186   { (case "(($ac_try" in
17187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188   *) ac_try_echo=$ac_try;;
17189 esac
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191   (eval "$ac_try") 2>&5
17192   ac_status=$?
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); }; }; then
17195   ac_cv_lib_dld_dld_link=yes
17196 else
17197   echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200         ac_cv_lib_dld_dld_link=no
17201 fi
17202
17203 rm -f core conftest.err conftest.$ac_objext \
17204       conftest$ac_exeext conftest.$ac_ext
17205 LIBS=$ac_check_lib_save_LIBS
17206 fi
17207 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17208 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17209 if test $ac_cv_lib_dld_dld_link = yes; then
17210   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17211 fi
17212
17213
17214 fi
17215
17216
17217 fi
17218
17219
17220 fi
17221
17222
17223 fi
17224
17225
17226 fi
17227
17228     ;;
17229   esac
17230
17231   if test "x$lt_cv_dlopen" != xno; then
17232     enable_dlopen=yes
17233   else
17234     enable_dlopen=no
17235   fi
17236
17237   case $lt_cv_dlopen in
17238   dlopen)
17239     save_CPPFLAGS="$CPPFLAGS"
17240     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17241
17242     save_LDFLAGS="$LDFLAGS"
17243     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17244
17245     save_LIBS="$LIBS"
17246     LIBS="$lt_cv_dlopen_libs $LIBS"
17247
17248     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17249 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17250 if test "${lt_cv_dlopen_self+set}" = set; then
17251   echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253           if test "$cross_compiling" = yes; then :
17254   lt_cv_dlopen_self=cross
17255 else
17256   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17257   lt_status=$lt_dlunknown
17258   cat > conftest.$ac_ext <<EOF
17259 #line 17259 "configure"
17260 #include "confdefs.h"
17261
17262 #if HAVE_DLFCN_H
17263 #include <dlfcn.h>
17264 #endif
17265
17266 #include <stdio.h>
17267
17268 #ifdef RTLD_GLOBAL
17269 #  define LT_DLGLOBAL           RTLD_GLOBAL
17270 #else
17271 #  ifdef DL_GLOBAL
17272 #    define LT_DLGLOBAL         DL_GLOBAL
17273 #  else
17274 #    define LT_DLGLOBAL         0
17275 #  endif
17276 #endif
17277
17278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17279    find out it does not work in some platform. */
17280 #ifndef LT_DLLAZY_OR_NOW
17281 #  ifdef RTLD_LAZY
17282 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17283 #  else
17284 #    ifdef DL_LAZY
17285 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17286 #    else
17287 #      ifdef RTLD_NOW
17288 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17289 #      else
17290 #        ifdef DL_NOW
17291 #          define LT_DLLAZY_OR_NOW      DL_NOW
17292 #        else
17293 #          define LT_DLLAZY_OR_NOW      0
17294 #        endif
17295 #      endif
17296 #    endif
17297 #  endif
17298 #endif
17299
17300 #ifdef __cplusplus
17301 extern "C" void exit (int);
17302 #endif
17303
17304 void fnord() { int i=42;}
17305 int main ()
17306 {
17307   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17308   int status = $lt_dlunknown;
17309
17310   if (self)
17311     {
17312       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17313       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17314       /* dlclose (self); */
17315     }
17316   else
17317     puts (dlerror ());
17318
17319     exit (status);
17320 }
17321 EOF
17322   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17323   (eval $ac_link) 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17327     (./conftest; exit; ) >&5 2>/dev/null
17328     lt_status=$?
17329     case x$lt_status in
17330       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17331       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17332       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17333     esac
17334   else :
17335     # compilation failed
17336     lt_cv_dlopen_self=no
17337   fi
17338 fi
17339 rm -fr conftest*
17340
17341
17342 fi
17343 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17344 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17345
17346     if test "x$lt_cv_dlopen_self" = xyes; then
17347       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17348       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17349 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17350 if test "${lt_cv_dlopen_self_static+set}" = set; then
17351   echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353           if test "$cross_compiling" = yes; then :
17354   lt_cv_dlopen_self_static=cross
17355 else
17356   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17357   lt_status=$lt_dlunknown
17358   cat > conftest.$ac_ext <<EOF
17359 #line 17359 "configure"
17360 #include "confdefs.h"
17361
17362 #if HAVE_DLFCN_H
17363 #include <dlfcn.h>
17364 #endif
17365
17366 #include <stdio.h>
17367
17368 #ifdef RTLD_GLOBAL
17369 #  define LT_DLGLOBAL           RTLD_GLOBAL
17370 #else
17371 #  ifdef DL_GLOBAL
17372 #    define LT_DLGLOBAL         DL_GLOBAL
17373 #  else
17374 #    define LT_DLGLOBAL         0
17375 #  endif
17376 #endif
17377
17378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17379    find out it does not work in some platform. */
17380 #ifndef LT_DLLAZY_OR_NOW
17381 #  ifdef RTLD_LAZY
17382 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17383 #  else
17384 #    ifdef DL_LAZY
17385 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17386 #    else
17387 #      ifdef RTLD_NOW
17388 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17389 #      else
17390 #        ifdef DL_NOW
17391 #          define LT_DLLAZY_OR_NOW      DL_NOW
17392 #        else
17393 #          define LT_DLLAZY_OR_NOW      0
17394 #        endif
17395 #      endif
17396 #    endif
17397 #  endif
17398 #endif
17399
17400 #ifdef __cplusplus
17401 extern "C" void exit (int);
17402 #endif
17403
17404 void fnord() { int i=42;}
17405 int main ()
17406 {
17407   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17408   int status = $lt_dlunknown;
17409
17410   if (self)
17411     {
17412       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17413       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17414       /* dlclose (self); */
17415     }
17416   else
17417     puts (dlerror ());
17418
17419     exit (status);
17420 }
17421 EOF
17422   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423   (eval $ac_link) 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17427     (./conftest; exit; ) >&5 2>/dev/null
17428     lt_status=$?
17429     case x$lt_status in
17430       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17431       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17432       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17433     esac
17434   else :
17435     # compilation failed
17436     lt_cv_dlopen_self_static=no
17437   fi
17438 fi
17439 rm -fr conftest*
17440
17441
17442 fi
17443 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17444 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17445     fi
17446
17447     CPPFLAGS="$save_CPPFLAGS"
17448     LDFLAGS="$save_LDFLAGS"
17449     LIBS="$save_LIBS"
17450     ;;
17451   esac
17452
17453   case $lt_cv_dlopen_self in
17454   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17455   *) enable_dlopen_self=unknown ;;
17456   esac
17457
17458   case $lt_cv_dlopen_self_static in
17459   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17460   *) enable_dlopen_self_static=unknown ;;
17461   esac
17462 fi
17463
17464
17465 # Report which library types will actually be built
17466 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17467 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17468 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17469 echo "${ECHO_T}$can_build_shared" >&6; }
17470
17471 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17472 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17473 test "$can_build_shared" = "no" && enable_shared=no
17474
17475 # On AIX, shared libraries and static libraries use the same namespace, and
17476 # are all built from PIC.
17477 case $host_os in
17478 aix3*)
17479   test "$enable_shared" = yes && enable_static=no
17480   if test -n "$RANLIB"; then
17481     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17482     postinstall_cmds='$RANLIB $lib'
17483   fi
17484   ;;
17485
17486 aix4* | aix5*)
17487   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17488     test "$enable_shared" = yes && enable_static=no
17489   fi
17490     ;;
17491 esac
17492 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17493 echo "${ECHO_T}$enable_shared" >&6; }
17494
17495 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17496 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17497 # Make sure either enable_shared or enable_static is yes.
17498 test "$enable_shared" = yes || enable_static=yes
17499 { echo "$as_me:$LINENO: result: $enable_static" >&5
17500 echo "${ECHO_T}$enable_static" >&6; }
17501
17502 # The else clause should only fire when bootstrapping the
17503 # libtool distribution, otherwise you forgot to ship ltmain.sh
17504 # with your package, and you will get complaints that there are
17505 # no rules to generate ltmain.sh.
17506 if test -f "$ltmain"; then
17507   # See if we are running on zsh, and set the options which allow our commands through
17508   # without removal of \ escapes.
17509   if test -n "${ZSH_VERSION+set}" ; then
17510     setopt NO_GLOB_SUBST
17511   fi
17512   # Now quote all the things that may contain metacharacters while being
17513   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17514   # variables and quote the copies for generation of the libtool script.
17515   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17516     SED SHELL STRIP \
17517     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17518     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17519     deplibs_check_method reload_flag reload_cmds need_locks \
17520     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17521     lt_cv_sys_global_symbol_to_c_name_address \
17522     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17523     old_postinstall_cmds old_postuninstall_cmds \
17524     compiler \
17525     CC \
17526     LD \
17527     lt_prog_compiler_wl \
17528     lt_prog_compiler_pic \
17529     lt_prog_compiler_static \
17530     lt_prog_compiler_no_builtin_flag \
17531     export_dynamic_flag_spec \
17532     thread_safe_flag_spec \
17533     whole_archive_flag_spec \
17534     enable_shared_with_static_runtimes \
17535     old_archive_cmds \
17536     old_archive_from_new_cmds \
17537     predep_objects \
17538     postdep_objects \
17539     predeps \
17540     postdeps \
17541     compiler_lib_search_path \
17542     archive_cmds \
17543     archive_expsym_cmds \
17544     postinstall_cmds \
17545     postuninstall_cmds \
17546     old_archive_from_expsyms_cmds \
17547     allow_undefined_flag \
17548     no_undefined_flag \
17549     export_symbols_cmds \
17550     hardcode_libdir_flag_spec \
17551     hardcode_libdir_flag_spec_ld \
17552     hardcode_libdir_separator \
17553     hardcode_automatic \
17554     module_cmds \
17555     module_expsym_cmds \
17556     lt_cv_prog_compiler_c_o \
17557     exclude_expsyms \
17558     include_expsyms; do
17559
17560     case $var in
17561     old_archive_cmds | \
17562     old_archive_from_new_cmds | \
17563     archive_cmds | \
17564     archive_expsym_cmds | \
17565     module_cmds | \
17566     module_expsym_cmds | \
17567     old_archive_from_expsyms_cmds | \
17568     export_symbols_cmds | \
17569     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17570     postinstall_cmds | postuninstall_cmds | \
17571     old_postinstall_cmds | old_postuninstall_cmds | \
17572     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17573       # Double-quote double-evaled strings.
17574       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17575       ;;
17576     *)
17577       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17578       ;;
17579     esac
17580   done
17581
17582   case $lt_echo in
17583   *'\$0 --fallback-echo"')
17584     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17585     ;;
17586   esac
17587
17588 cfgfile="${ofile}T"
17589   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17590   $rm -f "$cfgfile"
17591   { echo "$as_me:$LINENO: creating $ofile" >&5
17592 echo "$as_me: creating $ofile" >&6;}
17593
17594   cat <<__EOF__ >> "$cfgfile"
17595 #! $SHELL
17596
17597 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17598 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17599 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17600 #
17601 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17602 # Free Software Foundation, Inc.
17603 #
17604 # This file is part of GNU Libtool:
17605 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17606 #
17607 # This program is free software; you can redistribute it and/or modify
17608 # it under the terms of the GNU General Public License as published by
17609 # the Free Software Foundation; either version 2 of the License, or
17610 # (at your option) any later version.
17611 #
17612 # This program is distributed in the hope that it will be useful, but
17613 # WITHOUT ANY WARRANTY; without even the implied warranty of
17614 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17615 # General Public License for more details.
17616 #
17617 # You should have received a copy of the GNU General Public License
17618 # along with this program; if not, write to the Free Software
17619 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17620 #
17621 # As a special exception to the GNU General Public License, if you
17622 # distribute this file as part of a program that contains a
17623 # configuration script generated by Autoconf, you may include it under
17624 # the same distribution terms that you use for the rest of that program.
17625
17626 # A sed program that does not truncate output.
17627 SED=$lt_SED
17628
17629 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17630 Xsed="$SED -e 1s/^X//"
17631
17632 # The HP-UX ksh and POSIX shell print the target directory to stdout
17633 # if CDPATH is set.
17634 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17635
17636 # The names of the tagged configurations supported by this script.
17637 available_tags=
17638
17639 # ### BEGIN LIBTOOL CONFIG
17640
17641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17642
17643 # Shell to use when invoking shell scripts.
17644 SHELL=$lt_SHELL
17645
17646 # Whether or not to build shared libraries.
17647 build_libtool_libs=$enable_shared
17648
17649 # Whether or not to build static libraries.
17650 build_old_libs=$enable_static
17651
17652 # Whether or not to add -lc for building shared libraries.
17653 build_libtool_need_lc=$archive_cmds_need_lc
17654
17655 # Whether or not to disallow shared libs when runtime libs are static
17656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17657
17658 # Whether or not to optimize for fast installation.
17659 fast_install=$enable_fast_install
17660
17661 # The host system.
17662 host_alias=$host_alias
17663 host=$host
17664 host_os=$host_os
17665
17666 # The build system.
17667 build_alias=$build_alias
17668 build=$build
17669 build_os=$build_os
17670
17671 # An echo program that does not interpret backslashes.
17672 echo=$lt_echo
17673
17674 # The archiver.
17675 AR=$lt_AR
17676 AR_FLAGS=$lt_AR_FLAGS
17677
17678 # A C compiler.
17679 LTCC=$lt_LTCC
17680
17681 # LTCC compiler flags.
17682 LTCFLAGS=$lt_LTCFLAGS
17683
17684 # A language-specific compiler.
17685 CC=$lt_compiler
17686
17687 # Is the compiler the GNU C compiler?
17688 with_gcc=$GCC
17689
17690 # An ERE matcher.
17691 EGREP=$lt_EGREP
17692
17693 # The linker used to build libraries.
17694 LD=$lt_LD
17695
17696 # Whether we need hard or soft links.
17697 LN_S=$lt_LN_S
17698
17699 # A BSD-compatible nm program.
17700 NM=$lt_NM
17701
17702 # A symbol stripping program
17703 STRIP=$lt_STRIP
17704
17705 # Used to examine libraries when file_magic_cmd begins "file"
17706 MAGIC_CMD=$MAGIC_CMD
17707
17708 # Used on cygwin: DLL creation program.
17709 DLLTOOL="$DLLTOOL"
17710
17711 # Used on cygwin: object dumper.
17712 OBJDUMP="$OBJDUMP"
17713
17714 # Used on cygwin: assembler.
17715 AS="$AS"
17716
17717 # The name of the directory that contains temporary libtool files.
17718 objdir=$objdir
17719
17720 # How to create reloadable object files.
17721 reload_flag=$lt_reload_flag
17722 reload_cmds=$lt_reload_cmds
17723
17724 # How to pass a linker flag through the compiler.
17725 wl=$lt_lt_prog_compiler_wl
17726
17727 # Object file suffix (normally "o").
17728 objext="$ac_objext"
17729
17730 # Old archive suffix (normally "a").
17731 libext="$libext"
17732
17733 # Shared library suffix (normally ".so").
17734 shrext_cmds='$shrext_cmds'
17735
17736 # Executable file suffix (normally "").
17737 exeext="$exeext"
17738
17739 # Additional compiler flags for building library objects.
17740 pic_flag=$lt_lt_prog_compiler_pic
17741 pic_mode=$pic_mode
17742
17743 # What is the maximum length of a command?
17744 max_cmd_len=$lt_cv_sys_max_cmd_len
17745
17746 # Does compiler simultaneously support -c and -o options?
17747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17748
17749 # Must we lock files when doing compilation?
17750 need_locks=$lt_need_locks
17751
17752 # Do we need the lib prefix for modules?
17753 need_lib_prefix=$need_lib_prefix
17754
17755 # Do we need a version for libraries?
17756 need_version=$need_version
17757
17758 # Whether dlopen is supported.
17759 dlopen_support=$enable_dlopen
17760
17761 # Whether dlopen of programs is supported.
17762 dlopen_self=$enable_dlopen_self
17763
17764 # Whether dlopen of statically linked programs is supported.
17765 dlopen_self_static=$enable_dlopen_self_static
17766
17767 # Compiler flag to prevent dynamic linking.
17768 link_static_flag=$lt_lt_prog_compiler_static
17769
17770 # Compiler flag to turn off builtin functions.
17771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17772
17773 # Compiler flag to allow reflexive dlopens.
17774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17775
17776 # Compiler flag to generate shared objects directly from archives.
17777 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17778
17779 # Compiler flag to generate thread-safe objects.
17780 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17781
17782 # Library versioning type.
17783 version_type=$version_type
17784
17785 # Format of library name prefix.
17786 libname_spec=$lt_libname_spec
17787
17788 # List of archive names.  First name is the real one, the rest are links.
17789 # The last name is the one that the linker finds with -lNAME.
17790 library_names_spec=$lt_library_names_spec
17791
17792 # The coded name of the library, if different from the real name.
17793 soname_spec=$lt_soname_spec
17794
17795 # Commands used to build and install an old-style archive.
17796 RANLIB=$lt_RANLIB
17797 old_archive_cmds=$lt_old_archive_cmds
17798 old_postinstall_cmds=$lt_old_postinstall_cmds
17799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17800
17801 # Create an old-style archive from a shared archive.
17802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17803
17804 # Create a temporary old-style archive to link instead of a shared archive.
17805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17806
17807 # Commands used to build and install a shared archive.
17808 archive_cmds=$lt_archive_cmds
17809 archive_expsym_cmds=$lt_archive_expsym_cmds
17810 postinstall_cmds=$lt_postinstall_cmds
17811 postuninstall_cmds=$lt_postuninstall_cmds
17812
17813 # Commands used to build a loadable module (assumed same as above if empty)
17814 module_cmds=$lt_module_cmds
17815 module_expsym_cmds=$lt_module_expsym_cmds
17816
17817 # Commands to strip libraries.
17818 old_striplib=$lt_old_striplib
17819 striplib=$lt_striplib
17820
17821 # Dependencies to place before the objects being linked to create a
17822 # shared library.
17823 predep_objects=$lt_predep_objects
17824
17825 # Dependencies to place after the objects being linked to create a
17826 # shared library.
17827 postdep_objects=$lt_postdep_objects
17828
17829 # Dependencies to place before the objects being linked to create a
17830 # shared library.
17831 predeps=$lt_predeps
17832
17833 # Dependencies to place after the objects being linked to create a
17834 # shared library.
17835 postdeps=$lt_postdeps
17836
17837 # The library search path used internally by the compiler when linking
17838 # a shared library.
17839 compiler_lib_search_path=$lt_compiler_lib_search_path
17840
17841 # Method to check whether dependent libraries are shared objects.
17842 deplibs_check_method=$lt_deplibs_check_method
17843
17844 # Command to use when deplibs_check_method == file_magic.
17845 file_magic_cmd=$lt_file_magic_cmd
17846
17847 # Flag that allows shared libraries with undefined symbols to be built.
17848 allow_undefined_flag=$lt_allow_undefined_flag
17849
17850 # Flag that forces no undefined symbols.
17851 no_undefined_flag=$lt_no_undefined_flag
17852
17853 # Commands used to finish a libtool library installation in a directory.
17854 finish_cmds=$lt_finish_cmds
17855
17856 # Same as above, but a single script fragment to be evaled but not shown.
17857 finish_eval=$lt_finish_eval
17858
17859 # Take the output of nm and produce a listing of raw symbols and C names.
17860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17861
17862 # Transform the output of nm in a proper C declaration
17863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17864
17865 # Transform the output of nm in a C name address pair
17866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17867
17868 # This is the shared library runtime path variable.
17869 runpath_var=$runpath_var
17870
17871 # This is the shared library path variable.
17872 shlibpath_var=$shlibpath_var
17873
17874 # Is shlibpath searched before the hard-coded library search path?
17875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17876
17877 # How to hardcode a shared library path into an executable.
17878 hardcode_action=$hardcode_action
17879
17880 # Whether we should hardcode library paths into libraries.
17881 hardcode_into_libs=$hardcode_into_libs
17882
17883 # Flag to hardcode \$libdir into a binary during linking.
17884 # This must work even if \$libdir does not exist.
17885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17886
17887 # If ld is used when linking, flag to hardcode \$libdir into
17888 # a binary during linking. This must work even if \$libdir does
17889 # not exist.
17890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17891
17892 # Whether we need a single -rpath flag with a separated argument.
17893 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17894
17895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17896 # resulting binary.
17897 hardcode_direct=$hardcode_direct
17898
17899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17900 # resulting binary.
17901 hardcode_minus_L=$hardcode_minus_L
17902
17903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17904 # the resulting binary.
17905 hardcode_shlibpath_var=$hardcode_shlibpath_var
17906
17907 # Set to yes if building a shared library automatically hardcodes DIR into the library
17908 # and all subsequent libraries and executables linked against it.
17909 hardcode_automatic=$hardcode_automatic
17910
17911 # Variables whose values should be saved in libtool wrapper scripts and
17912 # restored at relink time.
17913 variables_saved_for_relink="$variables_saved_for_relink"
17914
17915 # Whether libtool must link a program against all its dependency libraries.
17916 link_all_deplibs=$link_all_deplibs
17917
17918 # Compile-time system search path for libraries
17919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17920
17921 # Run-time system search path for libraries
17922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17923
17924 # Fix the shell variable \$srcfile for the compiler.
17925 fix_srcfile_path="$fix_srcfile_path"
17926
17927 # Set to yes if exported symbols are required.
17928 always_export_symbols=$always_export_symbols
17929
17930 # The commands to list exported symbols.
17931 export_symbols_cmds=$lt_export_symbols_cmds
17932
17933 # The commands to extract the exported symbol list from a shared archive.
17934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17935
17936 # Symbols that should not be listed in the preloaded symbols.
17937 exclude_expsyms=$lt_exclude_expsyms
17938
17939 # Symbols that must always be exported.
17940 include_expsyms=$lt_include_expsyms
17941
17942 # ### END LIBTOOL CONFIG
17943
17944 __EOF__
17945
17946
17947   case $host_os in
17948   aix3*)
17949     cat <<\EOF >> "$cfgfile"
17950
17951 # AIX sometimes has problems with the GCC collect2 program.  For some
17952 # reason, if we set the COLLECT_NAMES environment variable, the problems
17953 # vanish in a puff of smoke.
17954 if test "X${COLLECT_NAMES+set}" != Xset; then
17955   COLLECT_NAMES=
17956   export COLLECT_NAMES
17957 fi
17958 EOF
17959     ;;
17960   esac
17961
17962   # We use sed instead of cat because bash on DJGPP gets confused if
17963   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17964   # text mode, it properly converts lines to CR/LF.  This bash problem
17965   # is reportedly fixed, but why not run on old versions too?
17966   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17967
17968   mv -f "$cfgfile" "$ofile" || \
17969     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17970   chmod +x "$ofile"
17971
17972 else
17973   # If there is no Makefile yet, we rely on a make rule to execute
17974   # `config.status --recheck' to rerun these tests and create the
17975   # libtool script then.
17976   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17977   if test -f "$ltmain_in"; then
17978     test -f Makefile && make "$ltmain"
17979   fi
17980 fi
17981
17982
17983 ac_ext=c
17984 ac_cpp='$CPP $CPPFLAGS'
17985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17988
17989 CC="$lt_save_CC"
17990
17991
17992 # Check whether --with-tags was given.
17993 if test "${with_tags+set}" = set; then
17994   withval=$with_tags; tagnames="$withval"
17995 fi
17996
17997
17998 if test -f "$ltmain" && test -n "$tagnames"; then
17999   if test ! -f "${ofile}"; then
18000     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18001 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18002   fi
18003
18004   if test -z "$LTCC"; then
18005     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18006     if test -z "$LTCC"; then
18007       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18008 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18009     else
18010       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18011 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18012     fi
18013   fi
18014   if test -z "$LTCFLAGS"; then
18015     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18016   fi
18017
18018   # Extract list of available tagged configurations in $ofile.
18019   # Note that this assumes the entire list is on one line.
18020   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18021
18022   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18023   for tagname in $tagnames; do
18024     IFS="$lt_save_ifs"
18025     # Check whether tagname contains only valid characters
18026     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18027     "") ;;
18028     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18029 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18030    { (exit 1); exit 1; }; }
18031         ;;
18032     esac
18033
18034     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18035     then
18036       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18037 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18038    { (exit 1); exit 1; }; }
18039     fi
18040
18041     # Update the list of available tags.
18042     if test -n "$tagname"; then
18043       echo appending configuration tag \"$tagname\" to $ofile
18044
18045       case $tagname in
18046       CXX)
18047         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18048             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18049             (test "X$CXX" != "Xg++"))) ; then
18050           ac_ext=cpp
18051 ac_cpp='$CXXCPP $CPPFLAGS'
18052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18055
18056
18057
18058
18059 archive_cmds_need_lc_CXX=no
18060 allow_undefined_flag_CXX=
18061 always_export_symbols_CXX=no
18062 archive_expsym_cmds_CXX=
18063 export_dynamic_flag_spec_CXX=
18064 hardcode_direct_CXX=no
18065 hardcode_libdir_flag_spec_CXX=
18066 hardcode_libdir_flag_spec_ld_CXX=
18067 hardcode_libdir_separator_CXX=
18068 hardcode_minus_L_CXX=no
18069 hardcode_shlibpath_var_CXX=unsupported
18070 hardcode_automatic_CXX=no
18071 module_cmds_CXX=
18072 module_expsym_cmds_CXX=
18073 link_all_deplibs_CXX=unknown
18074 old_archive_cmds_CXX=$old_archive_cmds
18075 no_undefined_flag_CXX=
18076 whole_archive_flag_spec_CXX=
18077 enable_shared_with_static_runtimes_CXX=no
18078
18079 # Dependencies to place before and after the object being linked:
18080 predep_objects_CXX=
18081 postdep_objects_CXX=
18082 predeps_CXX=
18083 postdeps_CXX=
18084 compiler_lib_search_path_CXX=
18085
18086 # Source file extension for C++ test sources.
18087 ac_ext=cpp
18088
18089 # Object file extension for compiled C++ test sources.
18090 objext=o
18091 objext_CXX=$objext
18092
18093 # Code to be used in simple compile tests
18094 lt_simple_compile_test_code="int some_variable = 0;\n"
18095
18096 # Code to be used in simple link tests
18097 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18098
18099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18100
18101 # If no C compiler was specified, use CC.
18102 LTCC=${LTCC-"$CC"}
18103
18104 # If no C compiler flags were specified, use CFLAGS.
18105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18106
18107 # Allow CC to be a program name with arguments.
18108 compiler=$CC
18109
18110
18111 # save warnings/boilerplate of simple test code
18112 ac_outfile=conftest.$ac_objext
18113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18115 _lt_compiler_boilerplate=`cat conftest.err`
18116 $rm conftest*
18117
18118 ac_outfile=conftest.$ac_objext
18119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18121 _lt_linker_boilerplate=`cat conftest.err`
18122 $rm conftest*
18123
18124
18125 # Allow CC to be a program name with arguments.
18126 lt_save_CC=$CC
18127 lt_save_LD=$LD
18128 lt_save_GCC=$GCC
18129 GCC=$GXX
18130 lt_save_with_gnu_ld=$with_gnu_ld
18131 lt_save_path_LD=$lt_cv_path_LD
18132 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18133   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18134 else
18135   $as_unset lt_cv_prog_gnu_ld
18136 fi
18137 if test -n "${lt_cv_path_LDCXX+set}"; then
18138   lt_cv_path_LD=$lt_cv_path_LDCXX
18139 else
18140   $as_unset lt_cv_path_LD
18141 fi
18142 test -z "${LDCXX+set}" || LD=$LDCXX
18143 CC=${CXX-"c++"}
18144 compiler=$CC
18145 compiler_CXX=$CC
18146 for cc_temp in $compiler""; do
18147   case $cc_temp in
18148     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18149     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18150     \-*) ;;
18151     *) break;;
18152   esac
18153 done
18154 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18155
18156
18157 # We don't want -fno-exception wen compiling C++ code, so set the
18158 # no_builtin_flag separately
18159 if test "$GXX" = yes; then
18160   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18161 else
18162   lt_prog_compiler_no_builtin_flag_CXX=
18163 fi
18164
18165 if test "$GXX" = yes; then
18166   # Set up default GNU C++ configuration
18167
18168
18169 # Check whether --with-gnu-ld was given.
18170 if test "${with_gnu_ld+set}" = set; then
18171   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18172 else
18173   with_gnu_ld=no
18174 fi
18175
18176 ac_prog=ld
18177 if test "$GCC" = yes; then
18178   # Check if gcc -print-prog-name=ld gives a path.
18179   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18180 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18181   case $host in
18182   *-*-mingw*)
18183     # gcc leaves a trailing carriage return which upsets mingw
18184     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18185   *)
18186     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18187   esac
18188   case $ac_prog in
18189     # Accept absolute paths.
18190     [\\/]* | ?:[\\/]*)
18191       re_direlt='/[^/][^/]*/\.\./'
18192       # Canonicalize the pathname of ld
18193       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18194       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18195         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18196       done
18197       test -z "$LD" && LD="$ac_prog"
18198       ;;
18199   "")
18200     # If it fails, then pretend we aren't using GCC.
18201     ac_prog=ld
18202     ;;
18203   *)
18204     # If it is relative, then search for the first ld in PATH.
18205     with_gnu_ld=unknown
18206     ;;
18207   esac
18208 elif test "$with_gnu_ld" = yes; then
18209   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18210 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18211 else
18212   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18213 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18214 fi
18215 if test "${lt_cv_path_LD+set}" = set; then
18216   echo $ECHO_N "(cached) $ECHO_C" >&6
18217 else
18218   if test -z "$LD"; then
18219   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18220   for ac_dir in $PATH; do
18221     IFS="$lt_save_ifs"
18222     test -z "$ac_dir" && ac_dir=.
18223     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18224       lt_cv_path_LD="$ac_dir/$ac_prog"
18225       # Check to see if the program is GNU ld.  I'd rather use --version,
18226       # but apparently some variants of GNU ld only accept -v.
18227       # Break only if it was the GNU/non-GNU ld that we prefer.
18228       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18229       *GNU* | *'with BFD'*)
18230         test "$with_gnu_ld" != no && break
18231         ;;
18232       *)
18233         test "$with_gnu_ld" != yes && break
18234         ;;
18235       esac
18236     fi
18237   done
18238   IFS="$lt_save_ifs"
18239 else
18240   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18241 fi
18242 fi
18243
18244 LD="$lt_cv_path_LD"
18245 if test -n "$LD"; then
18246   { echo "$as_me:$LINENO: result: $LD" >&5
18247 echo "${ECHO_T}$LD" >&6; }
18248 else
18249   { echo "$as_me:$LINENO: result: no" >&5
18250 echo "${ECHO_T}no" >&6; }
18251 fi
18252 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18253 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18254    { (exit 1); exit 1; }; }
18255 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18256 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18257 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18258   echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18261 case `$LD -v 2>&1 </dev/null` in
18262 *GNU* | *'with BFD'*)
18263   lt_cv_prog_gnu_ld=yes
18264   ;;
18265 *)
18266   lt_cv_prog_gnu_ld=no
18267   ;;
18268 esac
18269 fi
18270 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18271 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18272 with_gnu_ld=$lt_cv_prog_gnu_ld
18273
18274
18275
18276   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18277   # archiving commands below assume that GNU ld is being used.
18278   if test "$with_gnu_ld" = yes; then
18279     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18280     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'
18281
18282     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18283     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18284
18285     # If archive_cmds runs LD, not CC, wlarc should be empty
18286     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18287     #     investigate it a little bit more. (MM)
18288     wlarc='${wl}'
18289
18290     # ancient GNU ld didn't support --whole-archive et. al.
18291     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18292         grep 'no-whole-archive' > /dev/null; then
18293       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18294     else
18295       whole_archive_flag_spec_CXX=
18296     fi
18297   else
18298     with_gnu_ld=no
18299     wlarc=
18300
18301     # A generic and very simple default shared library creation
18302     # command for GNU C++ for the case where it uses the native
18303     # linker, instead of GNU ld.  If possible, this setting should
18304     # overridden to take advantage of the native linker features on
18305     # the platform it is being used on.
18306     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18307   fi
18308
18309   # Commands to make compiler produce verbose output that lists
18310   # what "hidden" libraries, object files and flags are used when
18311   # linking a shared library.
18312   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18313
18314 else
18315   GXX=no
18316   with_gnu_ld=no
18317   wlarc=
18318 fi
18319
18320 # PORTME: fill in a description of your system's C++ link characteristics
18321 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18322 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18323 ld_shlibs_CXX=yes
18324 case $host_os in
18325   aix3*)
18326     # FIXME: insert proper C++ library support
18327     ld_shlibs_CXX=no
18328     ;;
18329   aix4* | aix5*)
18330     if test "$host_cpu" = ia64; then
18331       # On IA64, the linker does run time linking by default, so we don't
18332       # have to do anything special.
18333       aix_use_runtimelinking=no
18334       exp_sym_flag='-Bexport'
18335       no_entry_flag=""
18336     else
18337       aix_use_runtimelinking=no
18338
18339       # Test if we are trying to use run time linking or normal
18340       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18341       # need to do runtime linking.
18342       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18343         for ld_flag in $LDFLAGS; do
18344           case $ld_flag in
18345           *-brtl*)
18346             aix_use_runtimelinking=yes
18347             break
18348             ;;
18349           esac
18350         done
18351         ;;
18352       esac
18353
18354       exp_sym_flag='-bexport'
18355       no_entry_flag='-bnoentry'
18356     fi
18357
18358     # When large executables or shared objects are built, AIX ld can
18359     # have problems creating the table of contents.  If linking a library
18360     # or program results in "error TOC overflow" add -mminimal-toc to
18361     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18362     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18363
18364     archive_cmds_CXX=''
18365     hardcode_direct_CXX=yes
18366     hardcode_libdir_separator_CXX=':'
18367     link_all_deplibs_CXX=yes
18368
18369     if test "$GXX" = yes; then
18370       case $host_os in aix4.[012]|aix4.[012].*)
18371       # We only want to do this on AIX 4.2 and lower, the check
18372       # below for broken collect2 doesn't work under 4.3+
18373         collect2name=`${CC} -print-prog-name=collect2`
18374         if test -f "$collect2name" && \
18375            strings "$collect2name" | grep resolve_lib_name >/dev/null
18376         then
18377           # We have reworked collect2
18378           hardcode_direct_CXX=yes
18379         else
18380           # We have old collect2
18381           hardcode_direct_CXX=unsupported
18382           # It fails to find uninstalled libraries when the uninstalled
18383           # path is not listed in the libpath.  Setting hardcode_minus_L
18384           # to unsupported forces relinking
18385           hardcode_minus_L_CXX=yes
18386           hardcode_libdir_flag_spec_CXX='-L$libdir'
18387           hardcode_libdir_separator_CXX=
18388         fi
18389         ;;
18390       esac
18391       shared_flag='-shared'
18392       if test "$aix_use_runtimelinking" = yes; then
18393         shared_flag="$shared_flag "'${wl}-G'
18394       fi
18395     else
18396       # not using gcc
18397       if test "$host_cpu" = ia64; then
18398         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18399         # chokes on -Wl,-G. The following line is correct:
18400         shared_flag='-G'
18401       else
18402         if test "$aix_use_runtimelinking" = yes; then
18403           shared_flag='${wl}-G'
18404         else
18405           shared_flag='${wl}-bM:SRE'
18406         fi
18407       fi
18408     fi
18409
18410     # It seems that -bexpall does not export symbols beginning with
18411     # underscore (_), so it is better to generate a list of symbols to export.
18412     always_export_symbols_CXX=yes
18413     if test "$aix_use_runtimelinking" = yes; then
18414       # Warning - without using the other runtime loading flags (-brtl),
18415       # -berok will link without error, but may produce a broken library.
18416       allow_undefined_flag_CXX='-berok'
18417       # Determine the default libpath from the value encoded in an empty executable.
18418       cat >conftest.$ac_ext <<_ACEOF
18419 /* confdefs.h.  */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h.  */
18424
18425 int
18426 main ()
18427 {
18428
18429   ;
18430   return 0;
18431 }
18432 _ACEOF
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437   *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440   (eval "$ac_link") 2>conftest.er1
18441   ac_status=$?
18442   grep -v '^ *+' conftest.er1 >conftest.err
18443   rm -f conftest.er1
18444   cat conftest.err >&5
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); } &&
18447          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18448   { (case "(($ac_try" in
18449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450   *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453   (eval "$ac_try") 2>&5
18454   ac_status=$?
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); }; } &&
18457          { ac_try='test -s conftest$ac_exeext'
18458   { (case "(($ac_try" in
18459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460   *) ac_try_echo=$ac_try;;
18461 esac
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463   (eval "$ac_try") 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; }; then
18467
18468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18469 }'`
18470 # Check for a 64-bit object if we didn't find anything.
18471 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; }
18472 }'`; fi
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477
18478 fi
18479
18480 rm -f core conftest.err conftest.$ac_objext \
18481       conftest$ac_exeext conftest.$ac_ext
18482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18483
18484       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18485
18486       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"
18487      else
18488       if test "$host_cpu" = ia64; then
18489         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18490         allow_undefined_flag_CXX="-z nodefs"
18491         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"
18492       else
18493         # Determine the default libpath from the value encoded in an empty executable.
18494         cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h.  */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h.  */
18500
18501 int
18502 main ()
18503 {
18504
18505   ;
18506   return 0;
18507 }
18508 _ACEOF
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513   *) ac_try_echo=$ac_try;;
18514 esac
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516   (eval "$ac_link") 2>conftest.er1
18517   ac_status=$?
18518   grep -v '^ *+' conftest.er1 >conftest.err
18519   rm -f conftest.er1
18520   cat conftest.err >&5
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); } &&
18523          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18524   { (case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_try") 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; } &&
18533          { ac_try='test -s conftest$ac_exeext'
18534   { (case "(($ac_try" in
18535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536   *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539   (eval "$ac_try") 2>&5
18540   ac_status=$?
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); }; }; then
18543
18544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18545 }'`
18546 # Check for a 64-bit object if we didn't find anything.
18547 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; }
18548 }'`; fi
18549 else
18550   echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18552
18553
18554 fi
18555
18556 rm -f core conftest.err conftest.$ac_objext \
18557       conftest$ac_exeext conftest.$ac_ext
18558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18559
18560         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18561         # Warning - without using the other run time loading flags,
18562         # -berok will link without error, but may produce a broken library.
18563         no_undefined_flag_CXX=' ${wl}-bernotok'
18564         allow_undefined_flag_CXX=' ${wl}-berok'
18565         # Exported symbols can be pulled into shared objects from archives
18566         whole_archive_flag_spec_CXX='$convenience'
18567         archive_cmds_need_lc_CXX=yes
18568         # This is similar to how AIX traditionally builds its shared libraries.
18569         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'
18570       fi
18571     fi
18572     ;;
18573
18574   beos*)
18575     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18576       allow_undefined_flag_CXX=unsupported
18577       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18578       # support --undefined.  This deserves some investigation.  FIXME
18579       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18580     else
18581       ld_shlibs_CXX=no
18582     fi
18583     ;;
18584
18585   chorus*)
18586     case $cc_basename in
18587       *)
18588         # FIXME: insert proper C++ library support
18589         ld_shlibs_CXX=no
18590         ;;
18591     esac
18592     ;;
18593
18594   cygwin* | mingw* | pw32*)
18595     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18596     # as there is no search path for DLLs.
18597     hardcode_libdir_flag_spec_CXX='-L$libdir'
18598     allow_undefined_flag_CXX=unsupported
18599     always_export_symbols_CXX=no
18600     enable_shared_with_static_runtimes_CXX=yes
18601
18602     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18603       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'
18604       # If the export-symbols file already is a .def file (1st line
18605       # is EXPORTS), use it as is; otherwise, prepend...
18606       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18607         cp $export_symbols $output_objdir/$soname.def;
18608       else
18609         echo EXPORTS > $output_objdir/$soname.def;
18610         cat $export_symbols >> $output_objdir/$soname.def;
18611       fi~
18612       $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'
18613     else
18614       ld_shlibs_CXX=no
18615     fi
18616   ;;
18617       darwin* | rhapsody*)
18618         case $host_os in
18619         rhapsody* | darwin1.[012])
18620          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18621          ;;
18622        *) # Darwin 1.3 on
18623          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18624            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18625          else
18626            case ${MACOSX_DEPLOYMENT_TARGET} in
18627              10.[012])
18628                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18629                ;;
18630              10.*)
18631                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18632                ;;
18633            esac
18634          fi
18635          ;;
18636         esac
18637       archive_cmds_need_lc_CXX=no
18638       hardcode_direct_CXX=no
18639       hardcode_automatic_CXX=yes
18640       hardcode_shlibpath_var_CXX=unsupported
18641       whole_archive_flag_spec_CXX=''
18642       link_all_deplibs_CXX=yes
18643
18644     if test "$GXX" = yes ; then
18645       lt_int_apple_cc_single_mod=no
18646       output_verbose_link_cmd='echo'
18647       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18648        lt_int_apple_cc_single_mod=yes
18649       fi
18650       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18651        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18652       else
18653           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'
18654         fi
18655         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18656         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18657           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18658             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}'
18659           else
18660             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}'
18661           fi
18662             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}'
18663       else
18664       case $cc_basename in
18665         xlc*)
18666          output_verbose_link_cmd='echo'
18667           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'
18668           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18669           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18670           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}'
18671           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}'
18672           ;;
18673        *)
18674          ld_shlibs_CXX=no
18675           ;;
18676       esac
18677       fi
18678         ;;
18679
18680   dgux*)
18681     case $cc_basename in
18682       ec++*)
18683         # FIXME: insert proper C++ library support
18684         ld_shlibs_CXX=no
18685         ;;
18686       ghcx*)
18687         # Green Hills C++ Compiler
18688         # FIXME: insert proper C++ library support
18689         ld_shlibs_CXX=no
18690         ;;
18691       *)
18692         # FIXME: insert proper C++ library support
18693         ld_shlibs_CXX=no
18694         ;;
18695     esac
18696     ;;
18697   freebsd[12]*)
18698     # C++ shared libraries reported to be fairly broken before switch to ELF
18699     ld_shlibs_CXX=no
18700     ;;
18701   freebsd-elf*)
18702     archive_cmds_need_lc_CXX=no
18703     ;;
18704   freebsd* | kfreebsd*-gnu | dragonfly*)
18705     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18706     # conventions
18707     ld_shlibs_CXX=yes
18708     ;;
18709   gnu*)
18710     ;;
18711   hpux9*)
18712     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18713     hardcode_libdir_separator_CXX=:
18714     export_dynamic_flag_spec_CXX='${wl}-E'
18715     hardcode_direct_CXX=yes
18716     hardcode_minus_L_CXX=yes # Not in the search PATH,
18717                                 # but as the default
18718                                 # location of the library.
18719
18720     case $cc_basename in
18721     CC*)
18722       # FIXME: insert proper C++ library support
18723       ld_shlibs_CXX=no
18724       ;;
18725     aCC*)
18726       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'
18727       # Commands to make compiler produce verbose output that lists
18728       # what "hidden" libraries, object files and flags are used when
18729       # linking a shared library.
18730       #
18731       # There doesn't appear to be a way to prevent this compiler from
18732       # explicitly linking system object files so we need to strip them
18733       # from the output so that they don't get included in the library
18734       # dependencies.
18735       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'
18736       ;;
18737     *)
18738       if test "$GXX" = yes; then
18739         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'
18740       else
18741         # FIXME: insert proper C++ library support
18742         ld_shlibs_CXX=no
18743       fi
18744       ;;
18745     esac
18746     ;;
18747   hpux10*|hpux11*)
18748     if test $with_gnu_ld = no; then
18749       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18750       hardcode_libdir_separator_CXX=:
18751
18752       case $host_cpu in
18753       hppa*64*|ia64*)
18754         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18755         ;;
18756       *)
18757         export_dynamic_flag_spec_CXX='${wl}-E'
18758         ;;
18759       esac
18760     fi
18761     case $host_cpu in
18762     hppa*64*|ia64*)
18763       hardcode_direct_CXX=no
18764       hardcode_shlibpath_var_CXX=no
18765       ;;
18766     *)
18767       hardcode_direct_CXX=yes
18768       hardcode_minus_L_CXX=yes # Not in the search PATH,
18769                                               # but as the default
18770                                               # location of the library.
18771       ;;
18772     esac
18773
18774     case $cc_basename in
18775       CC*)
18776         # FIXME: insert proper C++ library support
18777         ld_shlibs_CXX=no
18778         ;;
18779       aCC*)
18780         case $host_cpu in
18781         hppa*64*)
18782           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18783           ;;
18784         ia64*)
18785           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18786           ;;
18787         *)
18788           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18789           ;;
18790         esac
18791         # Commands to make compiler produce verbose output that lists
18792         # what "hidden" libraries, object files and flags are used when
18793         # linking a shared library.
18794         #
18795         # There doesn't appear to be a way to prevent this compiler from
18796         # explicitly linking system object files so we need to strip them
18797         # from the output so that they don't get included in the library
18798         # dependencies.
18799         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'
18800         ;;
18801       *)
18802         if test "$GXX" = yes; then
18803           if test $with_gnu_ld = no; then
18804             case $host_cpu in
18805             hppa*64*)
18806               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18807               ;;
18808             ia64*)
18809               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18810               ;;
18811             *)
18812               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'
18813               ;;
18814             esac
18815           fi
18816         else
18817           # FIXME: insert proper C++ library support
18818           ld_shlibs_CXX=no
18819         fi
18820         ;;
18821     esac
18822     ;;
18823   interix3*)
18824     hardcode_direct_CXX=no
18825     hardcode_shlibpath_var_CXX=no
18826     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18827     export_dynamic_flag_spec_CXX='${wl}-E'
18828     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18829     # Instead, shared libraries are loaded at an image base (0x10000000 by
18830     # default) and relocated if they conflict, which is a slow very memory
18831     # consuming and fragmenting process.  To avoid this, we pick a random,
18832     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18833     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18834     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'
18835     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'
18836     ;;
18837   irix5* | irix6*)
18838     case $cc_basename in
18839       CC*)
18840         # SGI C++
18841         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'
18842
18843         # Archives containing C++ object files must be created using
18844         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18845         # necessary to make sure instantiated templates are included
18846         # in the archive.
18847         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18848         ;;
18849       *)
18850         if test "$GXX" = yes; then
18851           if test "$with_gnu_ld" = no; then
18852             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'
18853           else
18854             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'
18855           fi
18856         fi
18857         link_all_deplibs_CXX=yes
18858         ;;
18859     esac
18860     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18861     hardcode_libdir_separator_CXX=:
18862     ;;
18863   linux*)
18864     case $cc_basename in
18865       KCC*)
18866         # Kuck and Associates, Inc. (KAI) C++ Compiler
18867
18868         # KCC will only create a shared library if the output file
18869         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18870         # to its proper name (with version) after linking.
18871         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'
18872         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'
18873         # Commands to make compiler produce verbose output that lists
18874         # what "hidden" libraries, object files and flags are used when
18875         # linking a shared library.
18876         #
18877         # There doesn't appear to be a way to prevent this compiler from
18878         # explicitly linking system object files so we need to strip them
18879         # from the output so that they don't get included in the library
18880         # dependencies.
18881         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'
18882
18883         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18884         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18885
18886         # Archives containing C++ object files must be created using
18887         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18888         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18889         ;;
18890       icpc*)
18891         # Intel C++
18892         with_gnu_ld=yes
18893         # version 8.0 and above of icpc choke on multiply defined symbols
18894         # if we add $predep_objects and $postdep_objects, however 7.1 and
18895         # earlier do not add the objects themselves.
18896         case `$CC -V 2>&1` in
18897         *"Version 7."*)
18898           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18899           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'
18900           ;;
18901         *)  # Version 8.0 or newer
18902           tmp_idyn=
18903           case $host_cpu in
18904             ia64*) tmp_idyn=' -i_dynamic';;
18905           esac
18906           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18907           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'
18908           ;;
18909         esac
18910         archive_cmds_need_lc_CXX=no
18911         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18912         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18913         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18914         ;;
18915       pgCC*)
18916         # Portland Group C++ compiler
18917         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18918         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'
18919
18920         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18921         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18922         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'
18923         ;;
18924       cxx*)
18925         # Compaq C++
18926         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18927         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'
18928
18929         runpath_var=LD_RUN_PATH
18930         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18931         hardcode_libdir_separator_CXX=:
18932
18933         # Commands to make compiler produce verbose output that lists
18934         # what "hidden" libraries, object files and flags are used when
18935         # linking a shared library.
18936         #
18937         # There doesn't appear to be a way to prevent this compiler from
18938         # explicitly linking system object files so we need to strip them
18939         # from the output so that they don't get included in the library
18940         # dependencies.
18941         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'
18942         ;;
18943     esac
18944     ;;
18945   lynxos*)
18946     # FIXME: insert proper C++ library support
18947     ld_shlibs_CXX=no
18948     ;;
18949   m88k*)
18950     # FIXME: insert proper C++ library support
18951     ld_shlibs_CXX=no
18952     ;;
18953   mvs*)
18954     case $cc_basename in
18955       cxx*)
18956         # FIXME: insert proper C++ library support
18957         ld_shlibs_CXX=no
18958         ;;
18959       *)
18960         # FIXME: insert proper C++ library support
18961         ld_shlibs_CXX=no
18962         ;;
18963     esac
18964     ;;
18965   netbsd*)
18966     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18967       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18968       wlarc=
18969       hardcode_libdir_flag_spec_CXX='-R$libdir'
18970       hardcode_direct_CXX=yes
18971       hardcode_shlibpath_var_CXX=no
18972     fi
18973     # Workaround some broken pre-1.5 toolchains
18974     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18975     ;;
18976   openbsd2*)
18977     # C++ shared libraries are fairly broken
18978     ld_shlibs_CXX=no
18979     ;;
18980   openbsd*)
18981     hardcode_direct_CXX=yes
18982     hardcode_shlibpath_var_CXX=no
18983     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18984     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18985     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18986       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18987       export_dynamic_flag_spec_CXX='${wl}-E'
18988       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18989     fi
18990     output_verbose_link_cmd='echo'
18991     ;;
18992   osf3*)
18993     case $cc_basename in
18994       KCC*)
18995         # Kuck and Associates, Inc. (KAI) C++ Compiler
18996
18997         # KCC will only create a shared library if the output file
18998         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18999         # to its proper name (with version) after linking.
19000         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'
19001
19002         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19003         hardcode_libdir_separator_CXX=:
19004
19005         # Archives containing C++ object files must be created using
19006         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19007         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19008
19009         ;;
19010       RCC*)
19011         # Rational C++ 2.4.1
19012         # FIXME: insert proper C++ library support
19013         ld_shlibs_CXX=no
19014         ;;
19015       cxx*)
19016         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19017         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'
19018
19019         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19020         hardcode_libdir_separator_CXX=:
19021
19022         # Commands to make compiler produce verbose output that lists
19023         # what "hidden" libraries, object files and flags are used when
19024         # linking a shared library.
19025         #
19026         # There doesn't appear to be a way to prevent this compiler from
19027         # explicitly linking system object files so we need to strip them
19028         # from the output so that they don't get included in the library
19029         # dependencies.
19030         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'
19031         ;;
19032       *)
19033         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19034           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19035           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'
19036
19037           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19038           hardcode_libdir_separator_CXX=:
19039
19040           # Commands to make compiler produce verbose output that lists
19041           # what "hidden" libraries, object files and flags are used when
19042           # linking a shared library.
19043           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19044
19045         else
19046           # FIXME: insert proper C++ library support
19047           ld_shlibs_CXX=no
19048         fi
19049         ;;
19050     esac
19051     ;;
19052   osf4* | osf5*)
19053     case $cc_basename in
19054       KCC*)
19055         # Kuck and Associates, Inc. (KAI) C++ Compiler
19056
19057         # KCC will only create a shared library if the output file
19058         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19059         # to its proper name (with version) after linking.
19060         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'
19061
19062         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19063         hardcode_libdir_separator_CXX=:
19064
19065         # Archives containing C++ object files must be created using
19066         # the KAI C++ compiler.
19067         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19068         ;;
19069       RCC*)
19070         # Rational C++ 2.4.1
19071         # FIXME: insert proper C++ library support
19072         ld_shlibs_CXX=no
19073         ;;
19074       cxx*)
19075         allow_undefined_flag_CXX=' -expect_unresolved \*'
19076         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'
19077         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19078           echo "-hidden">> $lib.exp~
19079           $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~
19080           $rm $lib.exp'
19081
19082         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19083         hardcode_libdir_separator_CXX=:
19084
19085         # Commands to make compiler produce verbose output that lists
19086         # what "hidden" libraries, object files and flags are used when
19087         # linking a shared library.
19088         #
19089         # There doesn't appear to be a way to prevent this compiler from
19090         # explicitly linking system object files so we need to strip them
19091         # from the output so that they don't get included in the library
19092         # dependencies.
19093         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'
19094         ;;
19095       *)
19096         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19097           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19098          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'
19099
19100           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19101           hardcode_libdir_separator_CXX=:
19102
19103           # Commands to make compiler produce verbose output that lists
19104           # what "hidden" libraries, object files and flags are used when
19105           # linking a shared library.
19106           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19107
19108         else
19109           # FIXME: insert proper C++ library support
19110           ld_shlibs_CXX=no
19111         fi
19112         ;;
19113     esac
19114     ;;
19115   psos*)
19116     # FIXME: insert proper C++ library support
19117     ld_shlibs_CXX=no
19118     ;;
19119   sunos4*)
19120     case $cc_basename in
19121       CC*)
19122         # Sun C++ 4.x
19123         # FIXME: insert proper C++ library support
19124         ld_shlibs_CXX=no
19125         ;;
19126       lcc*)
19127         # Lucid
19128         # FIXME: insert proper C++ library support
19129         ld_shlibs_CXX=no
19130         ;;
19131       *)
19132         # FIXME: insert proper C++ library support
19133         ld_shlibs_CXX=no
19134         ;;
19135     esac
19136     ;;
19137   solaris*)
19138     case $cc_basename in
19139       CC*)
19140         # Sun C++ 4.2, 5.x and Centerline C++
19141         archive_cmds_need_lc_CXX=yes
19142         no_undefined_flag_CXX=' -zdefs'
19143         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19145         $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'
19146
19147         hardcode_libdir_flag_spec_CXX='-R$libdir'
19148         hardcode_shlibpath_var_CXX=no
19149         case $host_os in
19150           solaris2.[0-5] | solaris2.[0-5].*) ;;
19151           *)
19152             # The C++ compiler is used as linker so we must use $wl
19153             # flag to pass the commands to the underlying system
19154             # linker. We must also pass each convience library through
19155             # to the system linker between allextract/defaultextract.
19156             # The C++ compiler will combine linker options so we
19157             # cannot just pass the convience library names through
19158             # without $wl.
19159             # Supported since Solaris 2.6 (maybe 2.5.1?)
19160             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'
19161             ;;
19162         esac
19163         link_all_deplibs_CXX=yes
19164
19165         output_verbose_link_cmd='echo'
19166
19167         # Archives containing C++ object files must be created using
19168         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19169         # necessary to make sure instantiated templates are included
19170         # in the archive.
19171         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19172         ;;
19173       gcx*)
19174         # Green Hills C++ Compiler
19175         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19176
19177         # The C++ compiler must be used to create the archive.
19178         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19179         ;;
19180       *)
19181         # GNU C++ compiler with Solaris linker
19182         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19183           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19184           if $CC --version | grep -v '^2\.7' > /dev/null; then
19185             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19186             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19187                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19188
19189             # Commands to make compiler produce verbose output that lists
19190             # what "hidden" libraries, object files and flags are used when
19191             # linking a shared library.
19192             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19193           else
19194             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19195             # platform.
19196             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19197             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19198                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19199
19200             # Commands to make compiler produce verbose output that lists
19201             # what "hidden" libraries, object files and flags are used when
19202             # linking a shared library.
19203             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19204           fi
19205
19206           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19207         fi
19208         ;;
19209     esac
19210     ;;
19211   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19212     no_undefined_flag_CXX='${wl}-z,text'
19213     archive_cmds_need_lc_CXX=no
19214     hardcode_shlibpath_var_CXX=no
19215     runpath_var='LD_RUN_PATH'
19216
19217     case $cc_basename in
19218       CC*)
19219         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19220         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19221         ;;
19222       *)
19223         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19224         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19225         ;;
19226     esac
19227     ;;
19228   sysv5* | sco3.2v5* | sco5v6*)
19229     # Note: We can NOT use -z defs as we might desire, because we do not
19230     # link with -lc, and that would cause any symbols used from libc to
19231     # always be unresolved, which means just about no library would
19232     # ever link correctly.  If we're not using GNU ld we use -z text
19233     # though, which does catch some bad symbols but isn't as heavy-handed
19234     # as -z defs.
19235     # For security reasons, it is highly recommended that you always
19236     # use absolute paths for naming shared libraries, and exclude the
19237     # DT_RUNPATH tag from executables and libraries.  But doing so
19238     # requires that you compile everything twice, which is a pain.
19239     # So that behaviour is only enabled if SCOABSPATH is set to a
19240     # non-empty value in the environment.  Most likely only useful for
19241     # creating official distributions of packages.
19242     # This is a hack until libtool officially supports absolute path
19243     # names for shared libraries.
19244     no_undefined_flag_CXX='${wl}-z,text'
19245     allow_undefined_flag_CXX='${wl}-z,nodefs'
19246     archive_cmds_need_lc_CXX=no
19247     hardcode_shlibpath_var_CXX=no
19248     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19249     hardcode_libdir_separator_CXX=':'
19250     link_all_deplibs_CXX=yes
19251     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19252     runpath_var='LD_RUN_PATH'
19253
19254     case $cc_basename in
19255       CC*)
19256         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19257         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19258         ;;
19259       *)
19260         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19261         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19262         ;;
19263     esac
19264     ;;
19265   tandem*)
19266     case $cc_basename in
19267       NCC*)
19268         # NonStop-UX NCC 3.20
19269         # FIXME: insert proper C++ library support
19270         ld_shlibs_CXX=no
19271         ;;
19272       *)
19273         # FIXME: insert proper C++ library support
19274         ld_shlibs_CXX=no
19275         ;;
19276     esac
19277     ;;
19278   vxworks*)
19279     # FIXME: insert proper C++ library support
19280     ld_shlibs_CXX=no
19281     ;;
19282   *)
19283     # FIXME: insert proper C++ library support
19284     ld_shlibs_CXX=no
19285     ;;
19286 esac
19287 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19288 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19289 test "$ld_shlibs_CXX" = no && can_build_shared=no
19290
19291 GCC_CXX="$GXX"
19292 LD_CXX="$LD"
19293
19294
19295 cat > conftest.$ac_ext <<EOF
19296 class Foo
19297 {
19298 public:
19299   Foo (void) { a = 0; }
19300 private:
19301   int a;
19302 };
19303 EOF
19304
19305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19306   (eval $ac_compile) 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; then
19310   # Parse the compiler output and extract the necessary
19311   # objects, libraries and library flags.
19312
19313   # Sentinel used to keep track of whether or not we are before
19314   # the conftest object file.
19315   pre_test_object_deps_done=no
19316
19317   # The `*' in the case matches for architectures that use `case' in
19318   # $output_verbose_cmd can trigger glob expansion during the loop
19319   # eval without this substitution.
19320   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19321
19322   for p in `eval $output_verbose_link_cmd`; do
19323     case $p in
19324
19325     -L* | -R* | -l*)
19326        # Some compilers place space between "-{L,R}" and the path.
19327        # Remove the space.
19328        if test $p = "-L" \
19329           || test $p = "-R"; then
19330          prev=$p
19331          continue
19332        else
19333          prev=
19334        fi
19335
19336        if test "$pre_test_object_deps_done" = no; then
19337          case $p in
19338          -L* | -R*)
19339            # Internal compiler library paths should come after those
19340            # provided the user.  The postdeps already come after the
19341            # user supplied libs so there is no need to process them.
19342            if test -z "$compiler_lib_search_path_CXX"; then
19343              compiler_lib_search_path_CXX="${prev}${p}"
19344            else
19345              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19346            fi
19347            ;;
19348          # The "-l" case would never come before the object being
19349          # linked, so don't bother handling this case.
19350          esac
19351        else
19352          if test -z "$postdeps_CXX"; then
19353            postdeps_CXX="${prev}${p}"
19354          else
19355            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19356          fi
19357        fi
19358        ;;
19359
19360     *.$objext)
19361        # This assumes that the test object file only shows up
19362        # once in the compiler output.
19363        if test "$p" = "conftest.$objext"; then
19364          pre_test_object_deps_done=yes
19365          continue
19366        fi
19367
19368        if test "$pre_test_object_deps_done" = no; then
19369          if test -z "$predep_objects_CXX"; then
19370            predep_objects_CXX="$p"
19371          else
19372            predep_objects_CXX="$predep_objects_CXX $p"
19373          fi
19374        else
19375          if test -z "$postdep_objects_CXX"; then
19376            postdep_objects_CXX="$p"
19377          else
19378            postdep_objects_CXX="$postdep_objects_CXX $p"
19379          fi
19380        fi
19381        ;;
19382
19383     *) ;; # Ignore the rest.
19384
19385     esac
19386   done
19387
19388   # Clean up.
19389   rm -f a.out a.exe
19390 else
19391   echo "libtool.m4: error: problem compiling CXX test program"
19392 fi
19393
19394 $rm -f confest.$objext
19395
19396 # PORTME: override above test on systems where it is broken
19397 case $host_os in
19398 interix3*)
19399   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19400   # hack all around it, let's just trust "g++" to DTRT.
19401   predep_objects_CXX=
19402   postdep_objects_CXX=
19403   postdeps_CXX=
19404   ;;
19405
19406 solaris*)
19407   case $cc_basename in
19408   CC*)
19409     # Adding this requires a known-good setup of shared libraries for
19410     # Sun compiler versions before 5.6, else PIC objects from an old
19411     # archive will be linked into the output, leading to subtle bugs.
19412     postdeps_CXX='-lCstd -lCrun'
19413     ;;
19414   esac
19415   ;;
19416 esac
19417
19418
19419 case " $postdeps_CXX " in
19420 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19421 esac
19422
19423 lt_prog_compiler_wl_CXX=
19424 lt_prog_compiler_pic_CXX=
19425 lt_prog_compiler_static_CXX=
19426
19427 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19428 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19429
19430   # C++ specific cases for pic, static, wl, etc.
19431   if test "$GXX" = yes; then
19432     lt_prog_compiler_wl_CXX='-Wl,'
19433     lt_prog_compiler_static_CXX='-static'
19434
19435     case $host_os in
19436     aix*)
19437       # All AIX code is PIC.
19438       if test "$host_cpu" = ia64; then
19439         # AIX 5 now supports IA64 processor
19440         lt_prog_compiler_static_CXX='-Bstatic'
19441       fi
19442       ;;
19443     amigaos*)
19444       # FIXME: we need at least 68020 code to build shared libraries, but
19445       # adding the `-m68020' flag to GCC prevents building anything better,
19446       # like `-m68040'.
19447       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19448       ;;
19449     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19450       # PIC is the default for these OSes.
19451       ;;
19452     mingw* | os2* | pw32*)
19453       # This hack is so that the source file can tell whether it is being
19454       # built for inclusion in a dll (and should export symbols for example).
19455       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19456       ;;
19457     darwin* | rhapsody*)
19458       # PIC is the default on this platform
19459       # Common symbols not allowed in MH_DYLIB files
19460       lt_prog_compiler_pic_CXX='-fno-common'
19461       ;;
19462     *djgpp*)
19463       # DJGPP does not support shared libraries at all
19464       lt_prog_compiler_pic_CXX=
19465       ;;
19466     interix3*)
19467       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19468       # Instead, we relocate shared libraries at runtime.
19469       ;;
19470     sysv4*MP*)
19471       if test -d /usr/nec; then
19472         lt_prog_compiler_pic_CXX=-Kconform_pic
19473       fi
19474       ;;
19475     hpux*)
19476       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19477       # not for PA HP-UX.
19478       case $host_cpu in
19479       hppa*64*|ia64*)
19480         ;;
19481       *)
19482         lt_prog_compiler_pic_CXX='-fPIC'
19483         ;;
19484       esac
19485       ;;
19486     *)
19487       lt_prog_compiler_pic_CXX='-fPIC'
19488       ;;
19489     esac
19490   else
19491     case $host_os in
19492       aix4* | aix5*)
19493         # All AIX code is PIC.
19494         if test "$host_cpu" = ia64; then
19495           # AIX 5 now supports IA64 processor
19496           lt_prog_compiler_static_CXX='-Bstatic'
19497         else
19498           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19499         fi
19500         ;;
19501       chorus*)
19502         case $cc_basename in
19503         cxch68*)
19504           # Green Hills C++ Compiler
19505           # _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"
19506           ;;
19507         esac
19508         ;;
19509        darwin*)
19510          # PIC is the default on this platform
19511          # Common symbols not allowed in MH_DYLIB files
19512          case $cc_basename in
19513            xlc*)
19514            lt_prog_compiler_pic_CXX='-qnocommon'
19515            lt_prog_compiler_wl_CXX='-Wl,'
19516            ;;
19517          esac
19518        ;;
19519       dgux*)
19520         case $cc_basename in
19521           ec++*)
19522             lt_prog_compiler_pic_CXX='-KPIC'
19523             ;;
19524           ghcx*)
19525             # Green Hills C++ Compiler
19526             lt_prog_compiler_pic_CXX='-pic'
19527             ;;
19528           *)
19529             ;;
19530         esac
19531         ;;
19532       freebsd* | kfreebsd*-gnu | dragonfly*)
19533         # FreeBSD uses GNU C++
19534         ;;
19535       hpux9* | hpux10* | hpux11*)
19536         case $cc_basename in
19537           CC*)
19538             lt_prog_compiler_wl_CXX='-Wl,'
19539             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19540             if test "$host_cpu" != ia64; then
19541               lt_prog_compiler_pic_CXX='+Z'
19542             fi
19543             ;;
19544           aCC*)
19545             lt_prog_compiler_wl_CXX='-Wl,'
19546             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19547             case $host_cpu in
19548             hppa*64*|ia64*)
19549               # +Z the default
19550               ;;
19551             *)
19552               lt_prog_compiler_pic_CXX='+Z'
19553               ;;
19554             esac
19555             ;;
19556           *)
19557             ;;
19558         esac
19559         ;;
19560       interix*)
19561         # This is c89, which is MS Visual C++ (no shared libs)
19562         # Anyone wants to do a port?
19563         ;;
19564       irix5* | irix6* | nonstopux*)
19565         case $cc_basename in
19566           CC*)
19567             lt_prog_compiler_wl_CXX='-Wl,'
19568             lt_prog_compiler_static_CXX='-non_shared'
19569             # CC pic flag -KPIC is the default.
19570             ;;
19571           *)
19572             ;;
19573         esac
19574         ;;
19575       linux*)
19576         case $cc_basename in
19577           KCC*)
19578             # KAI C++ Compiler
19579             lt_prog_compiler_wl_CXX='--backend -Wl,'
19580             lt_prog_compiler_pic_CXX='-fPIC'
19581             ;;
19582           icpc* | ecpc*)
19583             # Intel C++
19584             lt_prog_compiler_wl_CXX='-Wl,'
19585             lt_prog_compiler_pic_CXX='-KPIC'
19586             lt_prog_compiler_static_CXX='-static'
19587             ;;
19588           pgCC*)
19589             # Portland Group C++ compiler.
19590             lt_prog_compiler_wl_CXX='-Wl,'
19591             lt_prog_compiler_pic_CXX='-fpic'
19592             lt_prog_compiler_static_CXX='-Bstatic'
19593             ;;
19594           cxx*)
19595             # Compaq C++
19596             # Make sure the PIC flag is empty.  It appears that all Alpha
19597             # Linux and Compaq Tru64 Unix objects are PIC.
19598             lt_prog_compiler_pic_CXX=
19599             lt_prog_compiler_static_CXX='-non_shared'
19600             ;;
19601           *)
19602             ;;
19603         esac
19604         ;;
19605       lynxos*)
19606         ;;
19607       m88k*)
19608         ;;
19609       mvs*)
19610         case $cc_basename in
19611           cxx*)
19612             lt_prog_compiler_pic_CXX='-W c,exportall'
19613             ;;
19614           *)
19615             ;;
19616         esac
19617         ;;
19618       netbsd*)
19619         ;;
19620       osf3* | osf4* | osf5*)
19621         case $cc_basename in
19622           KCC*)
19623             lt_prog_compiler_wl_CXX='--backend -Wl,'
19624             ;;
19625           RCC*)
19626             # Rational C++ 2.4.1
19627             lt_prog_compiler_pic_CXX='-pic'
19628             ;;
19629           cxx*)
19630             # Digital/Compaq C++
19631             lt_prog_compiler_wl_CXX='-Wl,'
19632             # Make sure the PIC flag is empty.  It appears that all Alpha
19633             # Linux and Compaq Tru64 Unix objects are PIC.
19634             lt_prog_compiler_pic_CXX=
19635             lt_prog_compiler_static_CXX='-non_shared'
19636             ;;
19637           *)
19638             ;;
19639         esac
19640         ;;
19641       psos*)
19642         ;;
19643       solaris*)
19644         case $cc_basename in
19645           CC*)
19646             # Sun C++ 4.2, 5.x and Centerline C++
19647             lt_prog_compiler_pic_CXX='-KPIC'
19648             lt_prog_compiler_static_CXX='-Bstatic'
19649             lt_prog_compiler_wl_CXX='-Qoption ld '
19650             ;;
19651           gcx*)
19652             # Green Hills C++ Compiler
19653             lt_prog_compiler_pic_CXX='-PIC'
19654             ;;
19655           *)
19656             ;;
19657         esac
19658         ;;
19659       sunos4*)
19660         case $cc_basename in
19661           CC*)
19662             # Sun C++ 4.x
19663             lt_prog_compiler_pic_CXX='-pic'
19664             lt_prog_compiler_static_CXX='-Bstatic'
19665             ;;
19666           lcc*)
19667             # Lucid
19668             lt_prog_compiler_pic_CXX='-pic'
19669             ;;
19670           *)
19671             ;;
19672         esac
19673         ;;
19674       tandem*)
19675         case $cc_basename in
19676           NCC*)
19677             # NonStop-UX NCC 3.20
19678             lt_prog_compiler_pic_CXX='-KPIC'
19679             ;;
19680           *)
19681             ;;
19682         esac
19683         ;;
19684       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19685         case $cc_basename in
19686           CC*)
19687             lt_prog_compiler_wl_CXX='-Wl,'
19688             lt_prog_compiler_pic_CXX='-KPIC'
19689             lt_prog_compiler_static_CXX='-Bstatic'
19690             ;;
19691         esac
19692         ;;
19693       vxworks*)
19694         ;;
19695       *)
19696         lt_prog_compiler_can_build_shared_CXX=no
19697         ;;
19698     esac
19699   fi
19700
19701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19702 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19703
19704 #
19705 # Check to make sure the PIC flag actually works.
19706 #
19707 if test -n "$lt_prog_compiler_pic_CXX"; then
19708
19709 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19711 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19712   echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714   lt_prog_compiler_pic_works_CXX=no
19715   ac_outfile=conftest.$ac_objext
19716    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19717    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19718    # Insert the option either (1) after the last *FLAGS variable, or
19719    # (2) before a word containing "conftest.", or (3) at the end.
19720    # Note that $ac_compile itself does not contain backslashes and begins
19721    # with a dollar sign (not a hyphen), so the echo should work correctly.
19722    # The option is referenced via a variable to avoid confusing sed.
19723    lt_compile=`echo "$ac_compile" | $SED \
19724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19726    -e 's:$: $lt_compiler_flag:'`
19727    (eval echo "\"\$as_me:19727: $lt_compile\"" >&5)
19728    (eval "$lt_compile" 2>conftest.err)
19729    ac_status=$?
19730    cat conftest.err >&5
19731    echo "$as_me:19731: \$? = $ac_status" >&5
19732    if (exit $ac_status) && test -s "$ac_outfile"; then
19733      # The compiler can only warn and ignore the option if not recognized
19734      # So say no if there are warnings other than the usual output.
19735      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19736      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19737      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19738        lt_prog_compiler_pic_works_CXX=yes
19739      fi
19740    fi
19741    $rm conftest*
19742
19743 fi
19744 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19745 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19746
19747 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19748     case $lt_prog_compiler_pic_CXX in
19749      "" | " "*) ;;
19750      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19751      esac
19752 else
19753     lt_prog_compiler_pic_CXX=
19754      lt_prog_compiler_can_build_shared_CXX=no
19755 fi
19756
19757 fi
19758 case $host_os in
19759   # For platforms which do not support PIC, -DPIC is meaningless:
19760   *djgpp*)
19761     lt_prog_compiler_pic_CXX=
19762     ;;
19763   *)
19764     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19765     ;;
19766 esac
19767
19768 #
19769 # Check to make sure the static flag actually works.
19770 #
19771 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19772 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19773 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19774 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19775   echo $ECHO_N "(cached) $ECHO_C" >&6
19776 else
19777   lt_prog_compiler_static_works_CXX=no
19778    save_LDFLAGS="$LDFLAGS"
19779    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19780    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19781    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19782      # The linker can only warn and ignore the option if not recognized
19783      # So say no if there are warnings
19784      if test -s conftest.err; then
19785        # Append any errors to the config.log.
19786        cat conftest.err 1>&5
19787        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19788        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19789        if diff conftest.exp conftest.er2 >/dev/null; then
19790          lt_prog_compiler_static_works_CXX=yes
19791        fi
19792      else
19793        lt_prog_compiler_static_works_CXX=yes
19794      fi
19795    fi
19796    $rm conftest*
19797    LDFLAGS="$save_LDFLAGS"
19798
19799 fi
19800 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19801 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19802
19803 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19804     :
19805 else
19806     lt_prog_compiler_static_CXX=
19807 fi
19808
19809
19810 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19811 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19812 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19813   echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815   lt_cv_prog_compiler_c_o_CXX=no
19816    $rm -r conftest 2>/dev/null
19817    mkdir conftest
19818    cd conftest
19819    mkdir out
19820    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19821
19822    lt_compiler_flag="-o out/conftest2.$ac_objext"
19823    # Insert the option either (1) after the last *FLAGS variable, or
19824    # (2) before a word containing "conftest.", or (3) at the end.
19825    # Note that $ac_compile itself does not contain backslashes and begins
19826    # with a dollar sign (not a hyphen), so the echo should work correctly.
19827    lt_compile=`echo "$ac_compile" | $SED \
19828    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19829    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19830    -e 's:$: $lt_compiler_flag:'`
19831    (eval echo "\"\$as_me:19831: $lt_compile\"" >&5)
19832    (eval "$lt_compile" 2>out/conftest.err)
19833    ac_status=$?
19834    cat out/conftest.err >&5
19835    echo "$as_me:19835: \$? = $ac_status" >&5
19836    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19837    then
19838      # The compiler can only warn and ignore the option if not recognized
19839      # So say no if there are warnings
19840      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19841      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19842      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19843        lt_cv_prog_compiler_c_o_CXX=yes
19844      fi
19845    fi
19846    chmod u+w . 2>&5
19847    $rm conftest*
19848    # SGI C++ compiler will create directory out/ii_files/ for
19849    # template instantiation
19850    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19851    $rm out/* && rmdir out
19852    cd ..
19853    rmdir conftest
19854    $rm conftest*
19855
19856 fi
19857 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19858 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19859
19860
19861 hard_links="nottested"
19862 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19863   # do not overwrite the value of need_locks provided by the user
19864   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19865 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19866   hard_links=yes
19867   $rm conftest*
19868   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19869   touch conftest.a
19870   ln conftest.a conftest.b 2>&5 || hard_links=no
19871   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19872   { echo "$as_me:$LINENO: result: $hard_links" >&5
19873 echo "${ECHO_T}$hard_links" >&6; }
19874   if test "$hard_links" = no; then
19875     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19876 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19877     need_locks=warn
19878   fi
19879 else
19880   need_locks=no
19881 fi
19882
19883 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19884 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19885
19886   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19887   case $host_os in
19888   aix4* | aix5*)
19889     # If we're using GNU nm, then we don't want the "-C" option.
19890     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19891     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19892       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'
19893     else
19894       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'
19895     fi
19896     ;;
19897   pw32*)
19898     export_symbols_cmds_CXX="$ltdll_cmds"
19899   ;;
19900   cygwin* | mingw*)
19901     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'
19902   ;;
19903   *)
19904     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19905   ;;
19906   esac
19907
19908 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19909 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19910 test "$ld_shlibs_CXX" = no && can_build_shared=no
19911
19912 #
19913 # Do we need to explicitly link libc?
19914 #
19915 case "x$archive_cmds_need_lc_CXX" in
19916 x|xyes)
19917   # Assume -lc should be added
19918   archive_cmds_need_lc_CXX=yes
19919
19920   if test "$enable_shared" = yes && test "$GCC" = yes; then
19921     case $archive_cmds_CXX in
19922     *'~'*)
19923       # FIXME: we may have to deal with multi-command sequences.
19924       ;;
19925     '$CC '*)
19926       # Test whether the compiler implicitly links with -lc since on some
19927       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19928       # to ld, don't add -lc before -lgcc.
19929       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19930 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19931       $rm conftest*
19932       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19933
19934       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19935   (eval $ac_compile) 2>&5
19936   ac_status=$?
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } 2>conftest.err; then
19939         soname=conftest
19940         lib=conftest
19941         libobjs=conftest.$ac_objext
19942         deplibs=
19943         wl=$lt_prog_compiler_wl_CXX
19944         pic_flag=$lt_prog_compiler_pic_CXX
19945         compiler_flags=-v
19946         linker_flags=-v
19947         verstring=
19948         output_objdir=.
19949         libname=conftest
19950         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19951         allow_undefined_flag_CXX=
19952         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19953   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }
19957         then
19958           archive_cmds_need_lc_CXX=no
19959         else
19960           archive_cmds_need_lc_CXX=yes
19961         fi
19962         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19963       else
19964         cat conftest.err 1>&5
19965       fi
19966       $rm conftest*
19967       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19968 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19969       ;;
19970     esac
19971   fi
19972   ;;
19973 esac
19974
19975 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19976 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19977 library_names_spec=
19978 libname_spec='lib$name'
19979 soname_spec=
19980 shrext_cmds=".so"
19981 postinstall_cmds=
19982 postuninstall_cmds=
19983 finish_cmds=
19984 finish_eval=
19985 shlibpath_var=
19986 shlibpath_overrides_runpath=unknown
19987 version_type=none
19988 dynamic_linker="$host_os ld.so"
19989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19990 if test "$GCC" = yes; then
19991   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19992   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19993     # if the path contains ";" then we assume it to be the separator
19994     # otherwise default to the standard path separator (i.e. ":") - it is
19995     # assumed that no part of a normal pathname contains ";" but that should
19996     # okay in the real world where ";" in dirpaths is itself problematic.
19997     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19998   else
19999     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20000   fi
20001 else
20002   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20003 fi
20004 need_lib_prefix=unknown
20005 hardcode_into_libs=no
20006
20007 # when you set need_version to no, make sure it does not cause -set_version
20008 # flags to be left without arguments
20009 need_version=unknown
20010
20011 case $host_os in
20012 aix3*)
20013   version_type=linux
20014   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20015   shlibpath_var=LIBPATH
20016
20017   # AIX 3 has no versioning support, so we append a major version to the name.
20018   soname_spec='${libname}${release}${shared_ext}$major'
20019   ;;
20020
20021 aix4* | aix5*)
20022   version_type=linux
20023   need_lib_prefix=no
20024   need_version=no
20025   hardcode_into_libs=yes
20026   if test "$host_cpu" = ia64; then
20027     # AIX 5 supports IA64
20028     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20029     shlibpath_var=LD_LIBRARY_PATH
20030   else
20031     # With GCC up to 2.95.x, collect2 would create an import file
20032     # for dependence libraries.  The import file would start with
20033     # the line `#! .'.  This would cause the generated library to
20034     # depend on `.', always an invalid library.  This was fixed in
20035     # development snapshots of GCC prior to 3.0.
20036     case $host_os in
20037       aix4 | aix4.[01] | aix4.[01].*)
20038       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20039            echo ' yes '
20040            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20041         :
20042       else
20043         can_build_shared=no
20044       fi
20045       ;;
20046     esac
20047     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20048     # soname into executable. Probably we can add versioning support to
20049     # collect2, so additional links can be useful in future.
20050     if test "$aix_use_runtimelinking" = yes; then
20051       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20052       # instead of lib<name>.a to let people know that these are not
20053       # typical AIX shared libraries.
20054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20055     else
20056       # We preserve .a as extension for shared libraries through AIX4.2
20057       # and later when we are not doing run time linking.
20058       library_names_spec='${libname}${release}.a $libname.a'
20059       soname_spec='${libname}${release}${shared_ext}$major'
20060     fi
20061     shlibpath_var=LIBPATH
20062   fi
20063   ;;
20064
20065 amigaos*)
20066   library_names_spec='$libname.ixlibrary $libname.a'
20067   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20068   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'
20069   ;;
20070
20071 beos*)
20072   library_names_spec='${libname}${shared_ext}'
20073   dynamic_linker="$host_os ld.so"
20074   shlibpath_var=LIBRARY_PATH
20075   ;;
20076
20077 bsdi[45]*)
20078   version_type=linux
20079   need_version=no
20080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20081   soname_spec='${libname}${release}${shared_ext}$major'
20082   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20083   shlibpath_var=LD_LIBRARY_PATH
20084   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20085   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20086   # the default ld.so.conf also contains /usr/contrib/lib and
20087   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20088   # libtool to hard-code these into programs
20089   ;;
20090
20091 cygwin* | mingw* | pw32*)
20092   version_type=windows
20093   shrext_cmds=".dll"
20094   need_version=no
20095   need_lib_prefix=no
20096
20097   case $GCC,$host_os in
20098   yes,cygwin* | yes,mingw* | yes,pw32*)
20099     library_names_spec='$libname.dll.a'
20100     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20101     postinstall_cmds='base_file=`basename \${file}`~
20102       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20103       dldir=$destdir/`dirname \$dlpath`~
20104       test -d \$dldir || mkdir -p \$dldir~
20105       $install_prog $dir/$dlname \$dldir/$dlname~
20106       chmod a+x \$dldir/$dlname'
20107     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20108       dlpath=$dir/\$dldll~
20109        $rm \$dlpath'
20110     shlibpath_overrides_runpath=yes
20111
20112     case $host_os in
20113     cygwin*)
20114       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20115       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20116       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20117       ;;
20118     mingw*)
20119       # MinGW DLLs use traditional 'lib' prefix
20120       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20121       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20122       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20123         # It is most probably a Windows format PATH printed by
20124         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20125         # path with ; separators, and with drive letters. We can handle the
20126         # drive letters (cygwin fileutils understands them), so leave them,
20127         # especially as we might pass files found there to a mingw objdump,
20128         # which wouldn't understand a cygwinified path. Ahh.
20129         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20130       else
20131         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20132       fi
20133       ;;
20134     pw32*)
20135       # pw32 DLLs use 'pw' prefix rather than 'lib'
20136       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20137       ;;
20138     esac
20139     ;;
20140
20141   *)
20142     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20143     ;;
20144   esac
20145   dynamic_linker='Win32 ld.exe'
20146   # FIXME: first we should search . and the directory the executable is in
20147   shlibpath_var=PATH
20148   ;;
20149
20150 darwin* | rhapsody*)
20151   dynamic_linker="$host_os dyld"
20152   version_type=darwin
20153   need_lib_prefix=no
20154   need_version=no
20155   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20156   soname_spec='${libname}${release}${major}$shared_ext'
20157   shlibpath_overrides_runpath=yes
20158   shlibpath_var=DYLD_LIBRARY_PATH
20159   shrext_cmds='.dylib'
20160   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20161   if test "$GCC" = yes; then
20162     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"`
20163   else
20164     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20165   fi
20166   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20167   ;;
20168
20169 dgux*)
20170   version_type=linux
20171   need_lib_prefix=no
20172   need_version=no
20173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20174   soname_spec='${libname}${release}${shared_ext}$major'
20175   shlibpath_var=LD_LIBRARY_PATH
20176   ;;
20177
20178 freebsd1*)
20179   dynamic_linker=no
20180   ;;
20181
20182 kfreebsd*-gnu)
20183   version_type=linux
20184   need_lib_prefix=no
20185   need_version=no
20186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20187   soname_spec='${libname}${release}${shared_ext}$major'
20188   shlibpath_var=LD_LIBRARY_PATH
20189   shlibpath_overrides_runpath=no
20190   hardcode_into_libs=yes
20191   dynamic_linker='GNU ld.so'
20192   ;;
20193
20194 freebsd* | dragonfly*)
20195   # DragonFly does not have aout.  When/if they implement a new
20196   # versioning mechanism, adjust this.
20197   if test -x /usr/bin/objformat; then
20198     objformat=`/usr/bin/objformat`
20199   else
20200     case $host_os in
20201     freebsd[123]*) objformat=aout ;;
20202     *) objformat=elf ;;
20203     esac
20204   fi
20205   version_type=freebsd-$objformat
20206   case $version_type in
20207     freebsd-elf*)
20208       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20209       need_version=no
20210       need_lib_prefix=no
20211       ;;
20212     freebsd-*)
20213       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20214       need_version=yes
20215       ;;
20216   esac
20217   shlibpath_var=LD_LIBRARY_PATH
20218   case $host_os in
20219   freebsd2*)
20220     shlibpath_overrides_runpath=yes
20221     ;;
20222   freebsd3.[01]* | freebsdelf3.[01]*)
20223     shlibpath_overrides_runpath=yes
20224     hardcode_into_libs=yes
20225     ;;
20226   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20227   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20228     shlibpath_overrides_runpath=no
20229     hardcode_into_libs=yes
20230     ;;
20231   freebsd*) # from 4.6 on
20232     shlibpath_overrides_runpath=yes
20233     hardcode_into_libs=yes
20234     ;;
20235   esac
20236   ;;
20237
20238 gnu*)
20239   version_type=linux
20240   need_lib_prefix=no
20241   need_version=no
20242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20243   soname_spec='${libname}${release}${shared_ext}$major'
20244   shlibpath_var=LD_LIBRARY_PATH
20245   hardcode_into_libs=yes
20246   ;;
20247
20248 hpux9* | hpux10* | hpux11*)
20249   # Give a soname corresponding to the major version so that dld.sl refuses to
20250   # link against other versions.
20251   version_type=sunos
20252   need_lib_prefix=no
20253   need_version=no
20254   case $host_cpu in
20255   ia64*)
20256     shrext_cmds='.so'
20257     hardcode_into_libs=yes
20258     dynamic_linker="$host_os dld.so"
20259     shlibpath_var=LD_LIBRARY_PATH
20260     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262     soname_spec='${libname}${release}${shared_ext}$major'
20263     if test "X$HPUX_IA64_MODE" = X32; then
20264       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20265     else
20266       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20267     fi
20268     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20269     ;;
20270    hppa*64*)
20271      shrext_cmds='.sl'
20272      hardcode_into_libs=yes
20273      dynamic_linker="$host_os dld.sl"
20274      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20275      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20276      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20277      soname_spec='${libname}${release}${shared_ext}$major'
20278      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20279      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20280      ;;
20281    *)
20282     shrext_cmds='.sl'
20283     dynamic_linker="$host_os dld.sl"
20284     shlibpath_var=SHLIB_PATH
20285     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20287     soname_spec='${libname}${release}${shared_ext}$major'
20288     ;;
20289   esac
20290   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20291   postinstall_cmds='chmod 555 $lib'
20292   ;;
20293
20294 interix3*)
20295   version_type=linux
20296   need_lib_prefix=no
20297   need_version=no
20298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20299   soname_spec='${libname}${release}${shared_ext}$major'
20300   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20301   shlibpath_var=LD_LIBRARY_PATH
20302   shlibpath_overrides_runpath=no
20303   hardcode_into_libs=yes
20304   ;;
20305
20306 irix5* | irix6* | nonstopux*)
20307   case $host_os in
20308     nonstopux*) version_type=nonstopux ;;
20309     *)
20310         if test "$lt_cv_prog_gnu_ld" = yes; then
20311                 version_type=linux
20312         else
20313                 version_type=irix
20314         fi ;;
20315   esac
20316   need_lib_prefix=no
20317   need_version=no
20318   soname_spec='${libname}${release}${shared_ext}$major'
20319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20320   case $host_os in
20321   irix5* | nonstopux*)
20322     libsuff= shlibsuff=
20323     ;;
20324   *)
20325     case $LD in # libtool.m4 will add one of these switches to LD
20326     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20327       libsuff= shlibsuff= libmagic=32-bit;;
20328     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20329       libsuff=32 shlibsuff=N32 libmagic=N32;;
20330     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20331       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20332     *) libsuff= shlibsuff= libmagic=never-match;;
20333     esac
20334     ;;
20335   esac
20336   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20337   shlibpath_overrides_runpath=no
20338   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20339   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20340   hardcode_into_libs=yes
20341   ;;
20342
20343 # No shared lib support for Linux oldld, aout, or coff.
20344 linux*oldld* | linux*aout* | linux*coff*)
20345   dynamic_linker=no
20346   ;;
20347
20348 # This must be Linux ELF.
20349 linux*)
20350   version_type=linux
20351   need_lib_prefix=no
20352   need_version=no
20353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354   soname_spec='${libname}${release}${shared_ext}$major'
20355   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20356   shlibpath_var=LD_LIBRARY_PATH
20357   shlibpath_overrides_runpath=no
20358   # This implies no fast_install, which is unacceptable.
20359   # Some rework will be needed to allow for fast_install
20360   # before this can be enabled.
20361   hardcode_into_libs=yes
20362
20363   # Append ld.so.conf contents to the search path
20364   if test -f /etc/ld.so.conf; then
20365     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' ' '`
20366     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20367   fi
20368
20369   # We used to test for /lib/ld.so.1 and disable shared libraries on
20370   # powerpc, because MkLinux only supported shared libraries with the
20371   # GNU dynamic linker.  Since this was broken with cross compilers,
20372   # most powerpc-linux boxes support dynamic linking these days and
20373   # people can always --disable-shared, the test was removed, and we
20374   # assume the GNU/Linux dynamic linker is in use.
20375   dynamic_linker='GNU/Linux ld.so'
20376   ;;
20377
20378 knetbsd*-gnu)
20379   version_type=linux
20380   need_lib_prefix=no
20381   need_version=no
20382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20383   soname_spec='${libname}${release}${shared_ext}$major'
20384   shlibpath_var=LD_LIBRARY_PATH
20385   shlibpath_overrides_runpath=no
20386   hardcode_into_libs=yes
20387   dynamic_linker='GNU ld.so'
20388   ;;
20389
20390 netbsd*)
20391   version_type=sunos
20392   need_lib_prefix=no
20393   need_version=no
20394   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20396     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20397     dynamic_linker='NetBSD (a.out) ld.so'
20398   else
20399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20400     soname_spec='${libname}${release}${shared_ext}$major'
20401     dynamic_linker='NetBSD ld.elf_so'
20402   fi
20403   shlibpath_var=LD_LIBRARY_PATH
20404   shlibpath_overrides_runpath=yes
20405   hardcode_into_libs=yes
20406   ;;
20407
20408 newsos6)
20409   version_type=linux
20410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20411   shlibpath_var=LD_LIBRARY_PATH
20412   shlibpath_overrides_runpath=yes
20413   ;;
20414
20415 nto-qnx*)
20416   version_type=linux
20417   need_lib_prefix=no
20418   need_version=no
20419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420   soname_spec='${libname}${release}${shared_ext}$major'
20421   shlibpath_var=LD_LIBRARY_PATH
20422   shlibpath_overrides_runpath=yes
20423   ;;
20424
20425 openbsd*)
20426   version_type=sunos
20427   sys_lib_dlsearch_path_spec="/usr/lib"
20428   need_lib_prefix=no
20429   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20430   case $host_os in
20431     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20432     *)                         need_version=no  ;;
20433   esac
20434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20435   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20436   shlibpath_var=LD_LIBRARY_PATH
20437   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20438     case $host_os in
20439       openbsd2.[89] | openbsd2.[89].*)
20440         shlibpath_overrides_runpath=no
20441         ;;
20442       *)
20443         shlibpath_overrides_runpath=yes
20444         ;;
20445       esac
20446   else
20447     shlibpath_overrides_runpath=yes
20448   fi
20449   ;;
20450
20451 os2*)
20452   libname_spec='$name'
20453   shrext_cmds=".dll"
20454   need_lib_prefix=no
20455   library_names_spec='$libname${shared_ext} $libname.a'
20456   dynamic_linker='OS/2 ld.exe'
20457   shlibpath_var=LIBPATH
20458   ;;
20459
20460 osf3* | osf4* | osf5*)
20461   version_type=osf
20462   need_lib_prefix=no
20463   need_version=no
20464   soname_spec='${libname}${release}${shared_ext}$major'
20465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466   shlibpath_var=LD_LIBRARY_PATH
20467   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20468   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20469   ;;
20470
20471 solaris*)
20472   version_type=linux
20473   need_lib_prefix=no
20474   need_version=no
20475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476   soname_spec='${libname}${release}${shared_ext}$major'
20477   shlibpath_var=LD_LIBRARY_PATH
20478   shlibpath_overrides_runpath=yes
20479   hardcode_into_libs=yes
20480   # ldd complains unless libraries are executable
20481   postinstall_cmds='chmod +x $lib'
20482   ;;
20483
20484 sunos4*)
20485   version_type=sunos
20486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20487   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20488   shlibpath_var=LD_LIBRARY_PATH
20489   shlibpath_overrides_runpath=yes
20490   if test "$with_gnu_ld" = yes; then
20491     need_lib_prefix=no
20492   fi
20493   need_version=yes
20494   ;;
20495
20496 sysv4 | sysv4.3*)
20497   version_type=linux
20498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499   soname_spec='${libname}${release}${shared_ext}$major'
20500   shlibpath_var=LD_LIBRARY_PATH
20501   case $host_vendor in
20502     sni)
20503       shlibpath_overrides_runpath=no
20504       need_lib_prefix=no
20505       export_dynamic_flag_spec='${wl}-Blargedynsym'
20506       runpath_var=LD_RUN_PATH
20507       ;;
20508     siemens)
20509       need_lib_prefix=no
20510       ;;
20511     motorola)
20512       need_lib_prefix=no
20513       need_version=no
20514       shlibpath_overrides_runpath=no
20515       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20516       ;;
20517   esac
20518   ;;
20519
20520 sysv4*MP*)
20521   if test -d /usr/nec ;then
20522     version_type=linux
20523     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20524     soname_spec='$libname${shared_ext}.$major'
20525     shlibpath_var=LD_LIBRARY_PATH
20526   fi
20527   ;;
20528
20529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20530   version_type=freebsd-elf
20531   need_lib_prefix=no
20532   need_version=no
20533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20534   soname_spec='${libname}${release}${shared_ext}$major'
20535   shlibpath_var=LD_LIBRARY_PATH
20536   hardcode_into_libs=yes
20537   if test "$with_gnu_ld" = yes; then
20538     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20539     shlibpath_overrides_runpath=no
20540   else
20541     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20542     shlibpath_overrides_runpath=yes
20543     case $host_os in
20544       sco3.2v5*)
20545         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20546         ;;
20547     esac
20548   fi
20549   sys_lib_dlsearch_path_spec='/usr/lib'
20550   ;;
20551
20552 uts4*)
20553   version_type=linux
20554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20555   soname_spec='${libname}${release}${shared_ext}$major'
20556   shlibpath_var=LD_LIBRARY_PATH
20557   ;;
20558
20559 *)
20560   dynamic_linker=no
20561   ;;
20562 esac
20563 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20564 echo "${ECHO_T}$dynamic_linker" >&6; }
20565 test "$dynamic_linker" = no && can_build_shared=no
20566
20567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20568 if test "$GCC" = yes; then
20569   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20570 fi
20571
20572 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20574 hardcode_action_CXX=
20575 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20576    test -n "$runpath_var_CXX" || \
20577    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20578
20579   # We can hardcode non-existant directories.
20580   if test "$hardcode_direct_CXX" != no &&
20581      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20582      # have to relink, otherwise we might link with an installed library
20583      # when we should be linking with a yet-to-be-installed one
20584      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20585      test "$hardcode_minus_L_CXX" != no; then
20586     # Linking always hardcodes the temporary library directory.
20587     hardcode_action_CXX=relink
20588   else
20589     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20590     hardcode_action_CXX=immediate
20591   fi
20592 else
20593   # We cannot hardcode anything, or else we can only hardcode existing
20594   # directories.
20595   hardcode_action_CXX=unsupported
20596 fi
20597 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20598 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20599
20600 if test "$hardcode_action_CXX" = relink; then
20601   # Fast installation is not supported
20602   enable_fast_install=no
20603 elif test "$shlibpath_overrides_runpath" = yes ||
20604      test "$enable_shared" = no; then
20605   # Fast installation is not necessary
20606   enable_fast_install=needless
20607 fi
20608
20609
20610 # The else clause should only fire when bootstrapping the
20611 # libtool distribution, otherwise you forgot to ship ltmain.sh
20612 # with your package, and you will get complaints that there are
20613 # no rules to generate ltmain.sh.
20614 if test -f "$ltmain"; then
20615   # See if we are running on zsh, and set the options which allow our commands through
20616   # without removal of \ escapes.
20617   if test -n "${ZSH_VERSION+set}" ; then
20618     setopt NO_GLOB_SUBST
20619   fi
20620   # Now quote all the things that may contain metacharacters while being
20621   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20622   # variables and quote the copies for generation of the libtool script.
20623   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20624     SED SHELL STRIP \
20625     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20626     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20627     deplibs_check_method reload_flag reload_cmds need_locks \
20628     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20629     lt_cv_sys_global_symbol_to_c_name_address \
20630     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20631     old_postinstall_cmds old_postuninstall_cmds \
20632     compiler_CXX \
20633     CC_CXX \
20634     LD_CXX \
20635     lt_prog_compiler_wl_CXX \
20636     lt_prog_compiler_pic_CXX \
20637     lt_prog_compiler_static_CXX \
20638     lt_prog_compiler_no_builtin_flag_CXX \
20639     export_dynamic_flag_spec_CXX \
20640     thread_safe_flag_spec_CXX \
20641     whole_archive_flag_spec_CXX \
20642     enable_shared_with_static_runtimes_CXX \
20643     old_archive_cmds_CXX \
20644     old_archive_from_new_cmds_CXX \
20645     predep_objects_CXX \
20646     postdep_objects_CXX \
20647     predeps_CXX \
20648     postdeps_CXX \
20649     compiler_lib_search_path_CXX \
20650     archive_cmds_CXX \
20651     archive_expsym_cmds_CXX \
20652     postinstall_cmds_CXX \
20653     postuninstall_cmds_CXX \
20654     old_archive_from_expsyms_cmds_CXX \
20655     allow_undefined_flag_CXX \
20656     no_undefined_flag_CXX \
20657     export_symbols_cmds_CXX \
20658     hardcode_libdir_flag_spec_CXX \
20659     hardcode_libdir_flag_spec_ld_CXX \
20660     hardcode_libdir_separator_CXX \
20661     hardcode_automatic_CXX \
20662     module_cmds_CXX \
20663     module_expsym_cmds_CXX \
20664     lt_cv_prog_compiler_c_o_CXX \
20665     exclude_expsyms_CXX \
20666     include_expsyms_CXX; do
20667
20668     case $var in
20669     old_archive_cmds_CXX | \
20670     old_archive_from_new_cmds_CXX | \
20671     archive_cmds_CXX | \
20672     archive_expsym_cmds_CXX | \
20673     module_cmds_CXX | \
20674     module_expsym_cmds_CXX | \
20675     old_archive_from_expsyms_cmds_CXX | \
20676     export_symbols_cmds_CXX | \
20677     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20678     postinstall_cmds | postuninstall_cmds | \
20679     old_postinstall_cmds | old_postuninstall_cmds | \
20680     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20681       # Double-quote double-evaled strings.
20682       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20683       ;;
20684     *)
20685       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20686       ;;
20687     esac
20688   done
20689
20690   case $lt_echo in
20691   *'\$0 --fallback-echo"')
20692     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20693     ;;
20694   esac
20695
20696 cfgfile="$ofile"
20697
20698   cat <<__EOF__ >> "$cfgfile"
20699 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20700
20701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20702
20703 # Shell to use when invoking shell scripts.
20704 SHELL=$lt_SHELL
20705
20706 # Whether or not to build shared libraries.
20707 build_libtool_libs=$enable_shared
20708
20709 # Whether or not to build static libraries.
20710 build_old_libs=$enable_static
20711
20712 # Whether or not to add -lc for building shared libraries.
20713 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20714
20715 # Whether or not to disallow shared libs when runtime libs are static
20716 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20717
20718 # Whether or not to optimize for fast installation.
20719 fast_install=$enable_fast_install
20720
20721 # The host system.
20722 host_alias=$host_alias
20723 host=$host
20724 host_os=$host_os
20725
20726 # The build system.
20727 build_alias=$build_alias
20728 build=$build
20729 build_os=$build_os
20730
20731 # An echo program that does not interpret backslashes.
20732 echo=$lt_echo
20733
20734 # The archiver.
20735 AR=$lt_AR
20736 AR_FLAGS=$lt_AR_FLAGS
20737
20738 # A C compiler.
20739 LTCC=$lt_LTCC
20740
20741 # LTCC compiler flags.
20742 LTCFLAGS=$lt_LTCFLAGS
20743
20744 # A language-specific compiler.
20745 CC=$lt_compiler_CXX
20746
20747 # Is the compiler the GNU C compiler?
20748 with_gcc=$GCC_CXX
20749
20750 # An ERE matcher.
20751 EGREP=$lt_EGREP
20752
20753 # The linker used to build libraries.
20754 LD=$lt_LD_CXX
20755
20756 # Whether we need hard or soft links.
20757 LN_S=$lt_LN_S
20758
20759 # A BSD-compatible nm program.
20760 NM=$lt_NM
20761
20762 # A symbol stripping program
20763 STRIP=$lt_STRIP
20764
20765 # Used to examine libraries when file_magic_cmd begins "file"
20766 MAGIC_CMD=$MAGIC_CMD
20767
20768 # Used on cygwin: DLL creation program.
20769 DLLTOOL="$DLLTOOL"
20770
20771 # Used on cygwin: object dumper.
20772 OBJDUMP="$OBJDUMP"
20773
20774 # Used on cygwin: assembler.
20775 AS="$AS"
20776
20777 # The name of the directory that contains temporary libtool files.
20778 objdir=$objdir
20779
20780 # How to create reloadable object files.
20781 reload_flag=$lt_reload_flag
20782 reload_cmds=$lt_reload_cmds
20783
20784 # How to pass a linker flag through the compiler.
20785 wl=$lt_lt_prog_compiler_wl_CXX
20786
20787 # Object file suffix (normally "o").
20788 objext="$ac_objext"
20789
20790 # Old archive suffix (normally "a").
20791 libext="$libext"
20792
20793 # Shared library suffix (normally ".so").
20794 shrext_cmds='$shrext_cmds'
20795
20796 # Executable file suffix (normally "").
20797 exeext="$exeext"
20798
20799 # Additional compiler flags for building library objects.
20800 pic_flag=$lt_lt_prog_compiler_pic_CXX
20801 pic_mode=$pic_mode
20802
20803 # What is the maximum length of a command?
20804 max_cmd_len=$lt_cv_sys_max_cmd_len
20805
20806 # Does compiler simultaneously support -c and -o options?
20807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20808
20809 # Must we lock files when doing compilation?
20810 need_locks=$lt_need_locks
20811
20812 # Do we need the lib prefix for modules?
20813 need_lib_prefix=$need_lib_prefix
20814
20815 # Do we need a version for libraries?
20816 need_version=$need_version
20817
20818 # Whether dlopen is supported.
20819 dlopen_support=$enable_dlopen
20820
20821 # Whether dlopen of programs is supported.
20822 dlopen_self=$enable_dlopen_self
20823
20824 # Whether dlopen of statically linked programs is supported.
20825 dlopen_self_static=$enable_dlopen_self_static
20826
20827 # Compiler flag to prevent dynamic linking.
20828 link_static_flag=$lt_lt_prog_compiler_static_CXX
20829
20830 # Compiler flag to turn off builtin functions.
20831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20832
20833 # Compiler flag to allow reflexive dlopens.
20834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20835
20836 # Compiler flag to generate shared objects directly from archives.
20837 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20838
20839 # Compiler flag to generate thread-safe objects.
20840 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20841
20842 # Library versioning type.
20843 version_type=$version_type
20844
20845 # Format of library name prefix.
20846 libname_spec=$lt_libname_spec
20847
20848 # List of archive names.  First name is the real one, the rest are links.
20849 # The last name is the one that the linker finds with -lNAME.
20850 library_names_spec=$lt_library_names_spec
20851
20852 # The coded name of the library, if different from the real name.
20853 soname_spec=$lt_soname_spec
20854
20855 # Commands used to build and install an old-style archive.
20856 RANLIB=$lt_RANLIB
20857 old_archive_cmds=$lt_old_archive_cmds_CXX
20858 old_postinstall_cmds=$lt_old_postinstall_cmds
20859 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20860
20861 # Create an old-style archive from a shared archive.
20862 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20863
20864 # Create a temporary old-style archive to link instead of a shared archive.
20865 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20866
20867 # Commands used to build and install a shared archive.
20868 archive_cmds=$lt_archive_cmds_CXX
20869 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20870 postinstall_cmds=$lt_postinstall_cmds
20871 postuninstall_cmds=$lt_postuninstall_cmds
20872
20873 # Commands used to build a loadable module (assumed same as above if empty)
20874 module_cmds=$lt_module_cmds_CXX
20875 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20876
20877 # Commands to strip libraries.
20878 old_striplib=$lt_old_striplib
20879 striplib=$lt_striplib
20880
20881 # Dependencies to place before the objects being linked to create a
20882 # shared library.
20883 predep_objects=$lt_predep_objects_CXX
20884
20885 # Dependencies to place after the objects being linked to create a
20886 # shared library.
20887 postdep_objects=$lt_postdep_objects_CXX
20888
20889 # Dependencies to place before the objects being linked to create a
20890 # shared library.
20891 predeps=$lt_predeps_CXX
20892
20893 # Dependencies to place after the objects being linked to create a
20894 # shared library.
20895 postdeps=$lt_postdeps_CXX
20896
20897 # The library search path used internally by the compiler when linking
20898 # a shared library.
20899 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20900
20901 # Method to check whether dependent libraries are shared objects.
20902 deplibs_check_method=$lt_deplibs_check_method
20903
20904 # Command to use when deplibs_check_method == file_magic.
20905 file_magic_cmd=$lt_file_magic_cmd
20906
20907 # Flag that allows shared libraries with undefined symbols to be built.
20908 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20909
20910 # Flag that forces no undefined symbols.
20911 no_undefined_flag=$lt_no_undefined_flag_CXX
20912
20913 # Commands used to finish a libtool library installation in a directory.
20914 finish_cmds=$lt_finish_cmds
20915
20916 # Same as above, but a single script fragment to be evaled but not shown.
20917 finish_eval=$lt_finish_eval
20918
20919 # Take the output of nm and produce a listing of raw symbols and C names.
20920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20921
20922 # Transform the output of nm in a proper C declaration
20923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20924
20925 # Transform the output of nm in a C name address pair
20926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20927
20928 # This is the shared library runtime path variable.
20929 runpath_var=$runpath_var
20930
20931 # This is the shared library path variable.
20932 shlibpath_var=$shlibpath_var
20933
20934 # Is shlibpath searched before the hard-coded library search path?
20935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20936
20937 # How to hardcode a shared library path into an executable.
20938 hardcode_action=$hardcode_action_CXX
20939
20940 # Whether we should hardcode library paths into libraries.
20941 hardcode_into_libs=$hardcode_into_libs
20942
20943 # Flag to hardcode \$libdir into a binary during linking.
20944 # This must work even if \$libdir does not exist.
20945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20946
20947 # If ld is used when linking, flag to hardcode \$libdir into
20948 # a binary during linking. This must work even if \$libdir does
20949 # not exist.
20950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20951
20952 # Whether we need a single -rpath flag with a separated argument.
20953 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20954
20955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20956 # resulting binary.
20957 hardcode_direct=$hardcode_direct_CXX
20958
20959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20960 # resulting binary.
20961 hardcode_minus_L=$hardcode_minus_L_CXX
20962
20963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20964 # the resulting binary.
20965 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20966
20967 # Set to yes if building a shared library automatically hardcodes DIR into the library
20968 # and all subsequent libraries and executables linked against it.
20969 hardcode_automatic=$hardcode_automatic_CXX
20970
20971 # Variables whose values should be saved in libtool wrapper scripts and
20972 # restored at relink time.
20973 variables_saved_for_relink="$variables_saved_for_relink"
20974
20975 # Whether libtool must link a program against all its dependency libraries.
20976 link_all_deplibs=$link_all_deplibs_CXX
20977
20978 # Compile-time system search path for libraries
20979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20980
20981 # Run-time system search path for libraries
20982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20983
20984 # Fix the shell variable \$srcfile for the compiler.
20985 fix_srcfile_path="$fix_srcfile_path_CXX"
20986
20987 # Set to yes if exported symbols are required.
20988 always_export_symbols=$always_export_symbols_CXX
20989
20990 # The commands to list exported symbols.
20991 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20992
20993 # The commands to extract the exported symbol list from a shared archive.
20994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20995
20996 # Symbols that should not be listed in the preloaded symbols.
20997 exclude_expsyms=$lt_exclude_expsyms_CXX
20998
20999 # Symbols that must always be exported.
21000 include_expsyms=$lt_include_expsyms_CXX
21001
21002 # ### END LIBTOOL TAG CONFIG: $tagname
21003
21004 __EOF__
21005
21006
21007 else
21008   # If there is no Makefile yet, we rely on a make rule to execute
21009   # `config.status --recheck' to rerun these tests and create the
21010   # libtool script then.
21011   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21012   if test -f "$ltmain_in"; then
21013     test -f Makefile && make "$ltmain"
21014   fi
21015 fi
21016
21017
21018 ac_ext=c
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024 CC=$lt_save_CC
21025 LDCXX=$LD
21026 LD=$lt_save_LD
21027 GCC=$lt_save_GCC
21028 with_gnu_ldcxx=$with_gnu_ld
21029 with_gnu_ld=$lt_save_with_gnu_ld
21030 lt_cv_path_LDCXX=$lt_cv_path_LD
21031 lt_cv_path_LD=$lt_save_path_LD
21032 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21033 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21034
21035         else
21036           tagname=""
21037         fi
21038         ;;
21039
21040       F77)
21041         if test -n "$F77" && test "X$F77" != "Xno"; then
21042
21043 ac_ext=f
21044 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21045 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21047
21048
21049 archive_cmds_need_lc_F77=no
21050 allow_undefined_flag_F77=
21051 always_export_symbols_F77=no
21052 archive_expsym_cmds_F77=
21053 export_dynamic_flag_spec_F77=
21054 hardcode_direct_F77=no
21055 hardcode_libdir_flag_spec_F77=
21056 hardcode_libdir_flag_spec_ld_F77=
21057 hardcode_libdir_separator_F77=
21058 hardcode_minus_L_F77=no
21059 hardcode_automatic_F77=no
21060 module_cmds_F77=
21061 module_expsym_cmds_F77=
21062 link_all_deplibs_F77=unknown
21063 old_archive_cmds_F77=$old_archive_cmds
21064 no_undefined_flag_F77=
21065 whole_archive_flag_spec_F77=
21066 enable_shared_with_static_runtimes_F77=no
21067
21068 # Source file extension for f77 test sources.
21069 ac_ext=f
21070
21071 # Object file extension for compiled f77 test sources.
21072 objext=o
21073 objext_F77=$objext
21074
21075 # Code to be used in simple compile tests
21076 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21077
21078 # Code to be used in simple link tests
21079 lt_simple_link_test_code="      program t\n      end\n"
21080
21081 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21082
21083 # If no C compiler was specified, use CC.
21084 LTCC=${LTCC-"$CC"}
21085
21086 # If no C compiler flags were specified, use CFLAGS.
21087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21088
21089 # Allow CC to be a program name with arguments.
21090 compiler=$CC
21091
21092
21093 # save warnings/boilerplate of simple test code
21094 ac_outfile=conftest.$ac_objext
21095 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21097 _lt_compiler_boilerplate=`cat conftest.err`
21098 $rm conftest*
21099
21100 ac_outfile=conftest.$ac_objext
21101 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21103 _lt_linker_boilerplate=`cat conftest.err`
21104 $rm conftest*
21105
21106
21107 # Allow CC to be a program name with arguments.
21108 lt_save_CC="$CC"
21109 CC=${F77-"f77"}
21110 compiler=$CC
21111 compiler_F77=$CC
21112 for cc_temp in $compiler""; do
21113   case $cc_temp in
21114     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21115     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21116     \-*) ;;
21117     *) break;;
21118   esac
21119 done
21120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21121
21122
21123 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21124 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21125 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21126 echo "${ECHO_T}$can_build_shared" >&6; }
21127
21128 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21129 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21130 test "$can_build_shared" = "no" && enable_shared=no
21131
21132 # On AIX, shared libraries and static libraries use the same namespace, and
21133 # are all built from PIC.
21134 case $host_os in
21135 aix3*)
21136   test "$enable_shared" = yes && enable_static=no
21137   if test -n "$RANLIB"; then
21138     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21139     postinstall_cmds='$RANLIB $lib'
21140   fi
21141   ;;
21142 aix4* | aix5*)
21143   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21144     test "$enable_shared" = yes && enable_static=no
21145   fi
21146   ;;
21147 esac
21148 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21149 echo "${ECHO_T}$enable_shared" >&6; }
21150
21151 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21152 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21153 # Make sure either enable_shared or enable_static is yes.
21154 test "$enable_shared" = yes || enable_static=yes
21155 { echo "$as_me:$LINENO: result: $enable_static" >&5
21156 echo "${ECHO_T}$enable_static" >&6; }
21157
21158 GCC_F77="$G77"
21159 LD_F77="$LD"
21160
21161 lt_prog_compiler_wl_F77=
21162 lt_prog_compiler_pic_F77=
21163 lt_prog_compiler_static_F77=
21164
21165 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21166 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21167
21168   if test "$GCC" = yes; then
21169     lt_prog_compiler_wl_F77='-Wl,'
21170     lt_prog_compiler_static_F77='-static'
21171
21172     case $host_os in
21173       aix*)
21174       # All AIX code is PIC.
21175       if test "$host_cpu" = ia64; then
21176         # AIX 5 now supports IA64 processor
21177         lt_prog_compiler_static_F77='-Bstatic'
21178       fi
21179       ;;
21180
21181     amigaos*)
21182       # FIXME: we need at least 68020 code to build shared libraries, but
21183       # adding the `-m68020' flag to GCC prevents building anything better,
21184       # like `-m68040'.
21185       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21186       ;;
21187
21188     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21189       # PIC is the default for these OSes.
21190       ;;
21191
21192     mingw* | pw32* | os2*)
21193       # This hack is so that the source file can tell whether it is being
21194       # built for inclusion in a dll (and should export symbols for example).
21195       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21196       ;;
21197
21198     darwin* | rhapsody*)
21199       # PIC is the default on this platform
21200       # Common symbols not allowed in MH_DYLIB files
21201       lt_prog_compiler_pic_F77='-fno-common'
21202       ;;
21203
21204     interix3*)
21205       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21206       # Instead, we relocate shared libraries at runtime.
21207       ;;
21208
21209     msdosdjgpp*)
21210       # Just because we use GCC doesn't mean we suddenly get shared libraries
21211       # on systems that don't support them.
21212       lt_prog_compiler_can_build_shared_F77=no
21213       enable_shared=no
21214       ;;
21215
21216     sysv4*MP*)
21217       if test -d /usr/nec; then
21218         lt_prog_compiler_pic_F77=-Kconform_pic
21219       fi
21220       ;;
21221
21222     hpux*)
21223       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21224       # not for PA HP-UX.
21225       case $host_cpu in
21226       hppa*64*|ia64*)
21227         # +Z the default
21228         ;;
21229       *)
21230         lt_prog_compiler_pic_F77='-fPIC'
21231         ;;
21232       esac
21233       ;;
21234
21235     *)
21236       lt_prog_compiler_pic_F77='-fPIC'
21237       ;;
21238     esac
21239   else
21240     # PORTME Check for flag to pass linker flags through the system compiler.
21241     case $host_os in
21242     aix*)
21243       lt_prog_compiler_wl_F77='-Wl,'
21244       if test "$host_cpu" = ia64; then
21245         # AIX 5 now supports IA64 processor
21246         lt_prog_compiler_static_F77='-Bstatic'
21247       else
21248         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21249       fi
21250       ;;
21251       darwin*)
21252         # PIC is the default on this platform
21253         # Common symbols not allowed in MH_DYLIB files
21254        case $cc_basename in
21255          xlc*)
21256          lt_prog_compiler_pic_F77='-qnocommon'
21257          lt_prog_compiler_wl_F77='-Wl,'
21258          ;;
21259        esac
21260        ;;
21261
21262     mingw* | pw32* | os2*)
21263       # This hack is so that the source file can tell whether it is being
21264       # built for inclusion in a dll (and should export symbols for example).
21265       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21266       ;;
21267
21268     hpux9* | hpux10* | hpux11*)
21269       lt_prog_compiler_wl_F77='-Wl,'
21270       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21271       # not for PA HP-UX.
21272       case $host_cpu in
21273       hppa*64*|ia64*)
21274         # +Z the default
21275         ;;
21276       *)
21277         lt_prog_compiler_pic_F77='+Z'
21278         ;;
21279       esac
21280       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21281       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21282       ;;
21283
21284     irix5* | irix6* | nonstopux*)
21285       lt_prog_compiler_wl_F77='-Wl,'
21286       # PIC (with -KPIC) is the default.
21287       lt_prog_compiler_static_F77='-non_shared'
21288       ;;
21289
21290     newsos6)
21291       lt_prog_compiler_pic_F77='-KPIC'
21292       lt_prog_compiler_static_F77='-Bstatic'
21293       ;;
21294
21295     linux*)
21296       case $cc_basename in
21297       icc* | ecc*)
21298         lt_prog_compiler_wl_F77='-Wl,'
21299         lt_prog_compiler_pic_F77='-KPIC'
21300         lt_prog_compiler_static_F77='-static'
21301         ;;
21302       pgcc* | pgf77* | pgf90* | pgf95*)
21303         # Portland Group compilers (*not* the Pentium gcc compiler,
21304         # which looks to be a dead project)
21305         lt_prog_compiler_wl_F77='-Wl,'
21306         lt_prog_compiler_pic_F77='-fpic'
21307         lt_prog_compiler_static_F77='-Bstatic'
21308         ;;
21309       ccc*)
21310         lt_prog_compiler_wl_F77='-Wl,'
21311         # All Alpha code is PIC.
21312         lt_prog_compiler_static_F77='-non_shared'
21313         ;;
21314       esac
21315       ;;
21316
21317     osf3* | osf4* | osf5*)
21318       lt_prog_compiler_wl_F77='-Wl,'
21319       # All OSF/1 code is PIC.
21320       lt_prog_compiler_static_F77='-non_shared'
21321       ;;
21322
21323     solaris*)
21324       lt_prog_compiler_pic_F77='-KPIC'
21325       lt_prog_compiler_static_F77='-Bstatic'
21326       case $cc_basename in
21327       f77* | f90* | f95*)
21328         lt_prog_compiler_wl_F77='-Qoption ld ';;
21329       *)
21330         lt_prog_compiler_wl_F77='-Wl,';;
21331       esac
21332       ;;
21333
21334     sunos4*)
21335       lt_prog_compiler_wl_F77='-Qoption ld '
21336       lt_prog_compiler_pic_F77='-PIC'
21337       lt_prog_compiler_static_F77='-Bstatic'
21338       ;;
21339
21340     sysv4 | sysv4.2uw2* | sysv4.3*)
21341       lt_prog_compiler_wl_F77='-Wl,'
21342       lt_prog_compiler_pic_F77='-KPIC'
21343       lt_prog_compiler_static_F77='-Bstatic'
21344       ;;
21345
21346     sysv4*MP*)
21347       if test -d /usr/nec ;then
21348         lt_prog_compiler_pic_F77='-Kconform_pic'
21349         lt_prog_compiler_static_F77='-Bstatic'
21350       fi
21351       ;;
21352
21353     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21354       lt_prog_compiler_wl_F77='-Wl,'
21355       lt_prog_compiler_pic_F77='-KPIC'
21356       lt_prog_compiler_static_F77='-Bstatic'
21357       ;;
21358
21359     unicos*)
21360       lt_prog_compiler_wl_F77='-Wl,'
21361       lt_prog_compiler_can_build_shared_F77=no
21362       ;;
21363
21364     uts4*)
21365       lt_prog_compiler_pic_F77='-pic'
21366       lt_prog_compiler_static_F77='-Bstatic'
21367       ;;
21368
21369     *)
21370       lt_prog_compiler_can_build_shared_F77=no
21371       ;;
21372     esac
21373   fi
21374
21375 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21376 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21377
21378 #
21379 # Check to make sure the PIC flag actually works.
21380 #
21381 if test -n "$lt_prog_compiler_pic_F77"; then
21382
21383 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21384 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21385 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21386   echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388   lt_prog_compiler_pic_works_F77=no
21389   ac_outfile=conftest.$ac_objext
21390    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21391    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21392    # Insert the option either (1) after the last *FLAGS variable, or
21393    # (2) before a word containing "conftest.", or (3) at the end.
21394    # Note that $ac_compile itself does not contain backslashes and begins
21395    # with a dollar sign (not a hyphen), so the echo should work correctly.
21396    # The option is referenced via a variable to avoid confusing sed.
21397    lt_compile=`echo "$ac_compile" | $SED \
21398    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21399    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21400    -e 's:$: $lt_compiler_flag:'`
21401    (eval echo "\"\$as_me:21401: $lt_compile\"" >&5)
21402    (eval "$lt_compile" 2>conftest.err)
21403    ac_status=$?
21404    cat conftest.err >&5
21405    echo "$as_me:21405: \$? = $ac_status" >&5
21406    if (exit $ac_status) && test -s "$ac_outfile"; then
21407      # The compiler can only warn and ignore the option if not recognized
21408      # So say no if there are warnings other than the usual output.
21409      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21410      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21411      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21412        lt_prog_compiler_pic_works_F77=yes
21413      fi
21414    fi
21415    $rm conftest*
21416
21417 fi
21418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21419 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21420
21421 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21422     case $lt_prog_compiler_pic_F77 in
21423      "" | " "*) ;;
21424      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21425      esac
21426 else
21427     lt_prog_compiler_pic_F77=
21428      lt_prog_compiler_can_build_shared_F77=no
21429 fi
21430
21431 fi
21432 case $host_os in
21433   # For platforms which do not support PIC, -DPIC is meaningless:
21434   *djgpp*)
21435     lt_prog_compiler_pic_F77=
21436     ;;
21437   *)
21438     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21439     ;;
21440 esac
21441
21442 #
21443 # Check to make sure the static flag actually works.
21444 #
21445 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21446 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21447 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21448 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21449   echo $ECHO_N "(cached) $ECHO_C" >&6
21450 else
21451   lt_prog_compiler_static_works_F77=no
21452    save_LDFLAGS="$LDFLAGS"
21453    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21454    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21455    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21456      # The linker can only warn and ignore the option if not recognized
21457      # So say no if there are warnings
21458      if test -s conftest.err; then
21459        # Append any errors to the config.log.
21460        cat conftest.err 1>&5
21461        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21462        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21463        if diff conftest.exp conftest.er2 >/dev/null; then
21464          lt_prog_compiler_static_works_F77=yes
21465        fi
21466      else
21467        lt_prog_compiler_static_works_F77=yes
21468      fi
21469    fi
21470    $rm conftest*
21471    LDFLAGS="$save_LDFLAGS"
21472
21473 fi
21474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21475 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21476
21477 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21478     :
21479 else
21480     lt_prog_compiler_static_F77=
21481 fi
21482
21483
21484 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21485 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21486 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21487   echo $ECHO_N "(cached) $ECHO_C" >&6
21488 else
21489   lt_cv_prog_compiler_c_o_F77=no
21490    $rm -r conftest 2>/dev/null
21491    mkdir conftest
21492    cd conftest
21493    mkdir out
21494    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21495
21496    lt_compiler_flag="-o out/conftest2.$ac_objext"
21497    # Insert the option either (1) after the last *FLAGS variable, or
21498    # (2) before a word containing "conftest.", or (3) at the end.
21499    # Note that $ac_compile itself does not contain backslashes and begins
21500    # with a dollar sign (not a hyphen), so the echo should work correctly.
21501    lt_compile=`echo "$ac_compile" | $SED \
21502    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21504    -e 's:$: $lt_compiler_flag:'`
21505    (eval echo "\"\$as_me:21505: $lt_compile\"" >&5)
21506    (eval "$lt_compile" 2>out/conftest.err)
21507    ac_status=$?
21508    cat out/conftest.err >&5
21509    echo "$as_me:21509: \$? = $ac_status" >&5
21510    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21511    then
21512      # The compiler can only warn and ignore the option if not recognized
21513      # So say no if there are warnings
21514      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21515      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21516      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21517        lt_cv_prog_compiler_c_o_F77=yes
21518      fi
21519    fi
21520    chmod u+w . 2>&5
21521    $rm conftest*
21522    # SGI C++ compiler will create directory out/ii_files/ for
21523    # template instantiation
21524    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21525    $rm out/* && rmdir out
21526    cd ..
21527    rmdir conftest
21528    $rm conftest*
21529
21530 fi
21531 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21532 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21533
21534
21535 hard_links="nottested"
21536 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21537   # do not overwrite the value of need_locks provided by the user
21538   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21539 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21540   hard_links=yes
21541   $rm conftest*
21542   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21543   touch conftest.a
21544   ln conftest.a conftest.b 2>&5 || hard_links=no
21545   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21546   { echo "$as_me:$LINENO: result: $hard_links" >&5
21547 echo "${ECHO_T}$hard_links" >&6; }
21548   if test "$hard_links" = no; then
21549     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21550 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21551     need_locks=warn
21552   fi
21553 else
21554   need_locks=no
21555 fi
21556
21557 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21558 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21559
21560   runpath_var=
21561   allow_undefined_flag_F77=
21562   enable_shared_with_static_runtimes_F77=no
21563   archive_cmds_F77=
21564   archive_expsym_cmds_F77=
21565   old_archive_From_new_cmds_F77=
21566   old_archive_from_expsyms_cmds_F77=
21567   export_dynamic_flag_spec_F77=
21568   whole_archive_flag_spec_F77=
21569   thread_safe_flag_spec_F77=
21570   hardcode_libdir_flag_spec_F77=
21571   hardcode_libdir_flag_spec_ld_F77=
21572   hardcode_libdir_separator_F77=
21573   hardcode_direct_F77=no
21574   hardcode_minus_L_F77=no
21575   hardcode_shlibpath_var_F77=unsupported
21576   link_all_deplibs_F77=unknown
21577   hardcode_automatic_F77=no
21578   module_cmds_F77=
21579   module_expsym_cmds_F77=
21580   always_export_symbols_F77=no
21581   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21582   # include_expsyms should be a list of space-separated symbols to be *always*
21583   # included in the symbol list
21584   include_expsyms_F77=
21585   # exclude_expsyms can be an extended regexp of symbols to exclude
21586   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21587   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21588   # as well as any symbol that contains `d'.
21589   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21590   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21591   # platforms (ab)use it in PIC code, but their linkers get confused if
21592   # the symbol is explicitly referenced.  Since portable code cannot
21593   # rely on this symbol name, it's probably fine to never include it in
21594   # preloaded symbol tables.
21595   extract_expsyms_cmds=
21596   # Just being paranoid about ensuring that cc_basename is set.
21597   for cc_temp in $compiler""; do
21598   case $cc_temp in
21599     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21600     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21601     \-*) ;;
21602     *) break;;
21603   esac
21604 done
21605 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21606
21607   case $host_os in
21608   cygwin* | mingw* | pw32*)
21609     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21610     # When not using gcc, we currently assume that we are using
21611     # Microsoft Visual C++.
21612     if test "$GCC" != yes; then
21613       with_gnu_ld=no
21614     fi
21615     ;;
21616   interix*)
21617     # we just hope/assume this is gcc and not c89 (= MSVC++)
21618     with_gnu_ld=yes
21619     ;;
21620   openbsd*)
21621     with_gnu_ld=no
21622     ;;
21623   esac
21624
21625   ld_shlibs_F77=yes
21626   if test "$with_gnu_ld" = yes; then
21627     # If archive_cmds runs LD, not CC, wlarc should be empty
21628     wlarc='${wl}'
21629
21630     # Set some defaults for GNU ld with shared library support. These
21631     # are reset later if shared libraries are not supported. Putting them
21632     # here allows them to be overridden if necessary.
21633     runpath_var=LD_RUN_PATH
21634     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21635     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21636     # ancient GNU ld didn't support --whole-archive et. al.
21637     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21638         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21639       else
21640         whole_archive_flag_spec_F77=
21641     fi
21642     supports_anon_versioning=no
21643     case `$LD -v 2>/dev/null` in
21644       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21645       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21646       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21647       *\ 2.11.*) ;; # other 2.11 versions
21648       *) supports_anon_versioning=yes ;;
21649     esac
21650
21651     # See if GNU ld supports shared libraries.
21652     case $host_os in
21653     aix3* | aix4* | aix5*)
21654       # On AIX/PPC, the GNU linker is very broken
21655       if test "$host_cpu" != ia64; then
21656         ld_shlibs_F77=no
21657         cat <<EOF 1>&2
21658
21659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21660 *** to be unable to reliably create shared libraries on AIX.
21661 *** Therefore, libtool is disabling shared libraries support.  If you
21662 *** really care for shared libraries, you may want to modify your PATH
21663 *** so that a non-GNU linker is found, and then restart.
21664
21665 EOF
21666       fi
21667       ;;
21668
21669     amigaos*)
21670       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)'
21671       hardcode_libdir_flag_spec_F77='-L$libdir'
21672       hardcode_minus_L_F77=yes
21673
21674       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21675       # that the semantics of dynamic libraries on AmigaOS, at least up
21676       # to version 4, is to share data among multiple programs linked
21677       # with the same dynamic library.  Since this doesn't match the
21678       # behavior of shared libraries on other platforms, we can't use
21679       # them.
21680       ld_shlibs_F77=no
21681       ;;
21682
21683     beos*)
21684       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21685         allow_undefined_flag_F77=unsupported
21686         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21687         # support --undefined.  This deserves some investigation.  FIXME
21688         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21689       else
21690         ld_shlibs_F77=no
21691       fi
21692       ;;
21693
21694     cygwin* | mingw* | pw32*)
21695       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21696       # as there is no search path for DLLs.
21697       hardcode_libdir_flag_spec_F77='-L$libdir'
21698       allow_undefined_flag_F77=unsupported
21699       always_export_symbols_F77=no
21700       enable_shared_with_static_runtimes_F77=yes
21701       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21702
21703       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21704         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21705         # If the export-symbols file already is a .def file (1st line
21706         # is EXPORTS), use it as is; otherwise, prepend...
21707         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21708           cp $export_symbols $output_objdir/$soname.def;
21709         else
21710           echo EXPORTS > $output_objdir/$soname.def;
21711           cat $export_symbols >> $output_objdir/$soname.def;
21712         fi~
21713         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21714       else
21715         ld_shlibs_F77=no
21716       fi
21717       ;;
21718
21719     interix3*)
21720       hardcode_direct_F77=no
21721       hardcode_shlibpath_var_F77=no
21722       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21723       export_dynamic_flag_spec_F77='${wl}-E'
21724       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21725       # Instead, shared libraries are loaded at an image base (0x10000000 by
21726       # default) and relocated if they conflict, which is a slow very memory
21727       # consuming and fragmenting process.  To avoid this, we pick a random,
21728       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21729       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21730       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'
21731       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'
21732       ;;
21733
21734     linux*)
21735       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21736         tmp_addflag=
21737         case $cc_basename,$host_cpu in
21738         pgcc*)                          # Portland Group C compiler
21739           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'
21740           tmp_addflag=' $pic_flag'
21741           ;;
21742         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21743           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'
21744           tmp_addflag=' $pic_flag -Mnomain' ;;
21745         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21746           tmp_addflag=' -i_dynamic' ;;
21747         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21748           tmp_addflag=' -i_dynamic -nofor_main' ;;
21749         ifc* | ifort*)                  # Intel Fortran compiler
21750           tmp_addflag=' -nofor_main' ;;
21751         esac
21752         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21753
21754         if test $supports_anon_versioning = yes; then
21755           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21756   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21757   $echo "local: *; };" >> $output_objdir/$libname.ver~
21758           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21759         fi
21760       else
21761         ld_shlibs_F77=no
21762       fi
21763       ;;
21764
21765     netbsd*)
21766       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21767         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21768         wlarc=
21769       else
21770         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21771         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21772       fi
21773       ;;
21774
21775     solaris*)
21776       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21777         ld_shlibs_F77=no
21778         cat <<EOF 1>&2
21779
21780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21781 *** create shared libraries on Solaris systems.  Therefore, libtool
21782 *** is disabling shared libraries support.  We urge you to upgrade GNU
21783 *** binutils to release 2.9.1 or newer.  Another option is to modify
21784 *** your PATH or compiler configuration so that the native linker is
21785 *** used, and then restart.
21786
21787 EOF
21788       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21789         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21790         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21791       else
21792         ld_shlibs_F77=no
21793       fi
21794       ;;
21795
21796     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21797       case `$LD -v 2>&1` in
21798         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21799         ld_shlibs_F77=no
21800         cat <<_LT_EOF 1>&2
21801
21802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21803 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21804 *** is disabling shared libraries support.  We urge you to upgrade GNU
21805 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21806 *** your PATH or compiler configuration so that the native linker is
21807 *** used, and then restart.
21808
21809 _LT_EOF
21810         ;;
21811         *)
21812           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21814             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21815             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21816           else
21817             ld_shlibs_F77=no
21818           fi
21819         ;;
21820       esac
21821       ;;
21822
21823     sunos4*)
21824       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21825       wlarc=
21826       hardcode_direct_F77=yes
21827       hardcode_shlibpath_var_F77=no
21828       ;;
21829
21830     *)
21831       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21832         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21833         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21834       else
21835         ld_shlibs_F77=no
21836       fi
21837       ;;
21838     esac
21839
21840     if test "$ld_shlibs_F77" = no; then
21841       runpath_var=
21842       hardcode_libdir_flag_spec_F77=
21843       export_dynamic_flag_spec_F77=
21844       whole_archive_flag_spec_F77=
21845     fi
21846   else
21847     # PORTME fill in a description of your system's linker (not GNU ld)
21848     case $host_os in
21849     aix3*)
21850       allow_undefined_flag_F77=unsupported
21851       always_export_symbols_F77=yes
21852       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'
21853       # Note: this linker hardcodes the directories in LIBPATH if there
21854       # are no directories specified by -L.
21855       hardcode_minus_L_F77=yes
21856       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21857         # Neither direct hardcoding nor static linking is supported with a
21858         # broken collect2.
21859         hardcode_direct_F77=unsupported
21860       fi
21861       ;;
21862
21863     aix4* | aix5*)
21864       if test "$host_cpu" = ia64; then
21865         # On IA64, the linker does run time linking by default, so we don't
21866         # have to do anything special.
21867         aix_use_runtimelinking=no
21868         exp_sym_flag='-Bexport'
21869         no_entry_flag=""
21870       else
21871         # If we're using GNU nm, then we don't want the "-C" option.
21872         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21873         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21874           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'
21875         else
21876           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'
21877         fi
21878         aix_use_runtimelinking=no
21879
21880         # Test if we are trying to use run time linking or normal
21881         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21882         # need to do runtime linking.
21883         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21884           for ld_flag in $LDFLAGS; do
21885           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21886             aix_use_runtimelinking=yes
21887             break
21888           fi
21889           done
21890           ;;
21891         esac
21892
21893         exp_sym_flag='-bexport'
21894         no_entry_flag='-bnoentry'
21895       fi
21896
21897       # When large executables or shared objects are built, AIX ld can
21898       # have problems creating the table of contents.  If linking a library
21899       # or program results in "error TOC overflow" add -mminimal-toc to
21900       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21901       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21902
21903       archive_cmds_F77=''
21904       hardcode_direct_F77=yes
21905       hardcode_libdir_separator_F77=':'
21906       link_all_deplibs_F77=yes
21907
21908       if test "$GCC" = yes; then
21909         case $host_os in aix4.[012]|aix4.[012].*)
21910         # We only want to do this on AIX 4.2 and lower, the check
21911         # below for broken collect2 doesn't work under 4.3+
21912           collect2name=`${CC} -print-prog-name=collect2`
21913           if test -f "$collect2name" && \
21914            strings "$collect2name" | grep resolve_lib_name >/dev/null
21915           then
21916           # We have reworked collect2
21917           hardcode_direct_F77=yes
21918           else
21919           # We have old collect2
21920           hardcode_direct_F77=unsupported
21921           # It fails to find uninstalled libraries when the uninstalled
21922           # path is not listed in the libpath.  Setting hardcode_minus_L
21923           # to unsupported forces relinking
21924           hardcode_minus_L_F77=yes
21925           hardcode_libdir_flag_spec_F77='-L$libdir'
21926           hardcode_libdir_separator_F77=
21927           fi
21928           ;;
21929         esac
21930         shared_flag='-shared'
21931         if test "$aix_use_runtimelinking" = yes; then
21932           shared_flag="$shared_flag "'${wl}-G'
21933         fi
21934       else
21935         # not using gcc
21936         if test "$host_cpu" = ia64; then
21937         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21938         # chokes on -Wl,-G. The following line is correct:
21939           shared_flag='-G'
21940         else
21941           if test "$aix_use_runtimelinking" = yes; then
21942             shared_flag='${wl}-G'
21943           else
21944             shared_flag='${wl}-bM:SRE'
21945           fi
21946         fi
21947       fi
21948
21949       # It seems that -bexpall does not export symbols beginning with
21950       # underscore (_), so it is better to generate a list of symbols to export.
21951       always_export_symbols_F77=yes
21952       if test "$aix_use_runtimelinking" = yes; then
21953         # Warning - without using the other runtime loading flags (-brtl),
21954         # -berok will link without error, but may produce a broken library.
21955         allow_undefined_flag_F77='-berok'
21956        # Determine the default libpath from the value encoded in an empty executable.
21957        cat >conftest.$ac_ext <<_ACEOF
21958       program main
21959
21960       end
21961 _ACEOF
21962 rm -f conftest.$ac_objext conftest$ac_exeext
21963 if { (ac_try="$ac_link"
21964 case "(($ac_try" in
21965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966   *) ac_try_echo=$ac_try;;
21967 esac
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969   (eval "$ac_link") 2>conftest.er1
21970   ac_status=$?
21971   grep -v '^ *+' conftest.er1 >conftest.err
21972   rm -f conftest.er1
21973   cat conftest.err >&5
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); } &&
21976          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21977   { (case "(($ac_try" in
21978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979   *) ac_try_echo=$ac_try;;
21980 esac
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982   (eval "$ac_try") 2>&5
21983   ac_status=$?
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); }; } &&
21986          { ac_try='test -s conftest$ac_exeext'
21987   { (case "(($ac_try" in
21988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989   *) ac_try_echo=$ac_try;;
21990 esac
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992   (eval "$ac_try") 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); }; }; then
21996
21997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21998 }'`
21999 # Check for a 64-bit object if we didn't find anything.
22000 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; }
22001 }'`; fi
22002 else
22003   echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006
22007 fi
22008
22009 rm -f core conftest.err conftest.$ac_objext \
22010       conftest$ac_exeext conftest.$ac_ext
22011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22012
22013        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22014         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"
22015        else
22016         if test "$host_cpu" = ia64; then
22017           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22018           allow_undefined_flag_F77="-z nodefs"
22019           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"
22020         else
22021          # Determine the default libpath from the value encoded in an empty executable.
22022          cat >conftest.$ac_ext <<_ACEOF
22023       program main
22024
22025       end
22026 _ACEOF
22027 rm -f conftest.$ac_objext conftest$ac_exeext
22028 if { (ac_try="$ac_link"
22029 case "(($ac_try" in
22030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031   *) ac_try_echo=$ac_try;;
22032 esac
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034   (eval "$ac_link") 2>conftest.er1
22035   ac_status=$?
22036   grep -v '^ *+' conftest.er1 >conftest.err
22037   rm -f conftest.er1
22038   cat conftest.err >&5
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); } &&
22041          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22042   { (case "(($ac_try" in
22043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044   *) ac_try_echo=$ac_try;;
22045 esac
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047   (eval "$ac_try") 2>&5
22048   ac_status=$?
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); }; } &&
22051          { ac_try='test -s conftest$ac_exeext'
22052   { (case "(($ac_try" in
22053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054   *) ac_try_echo=$ac_try;;
22055 esac
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057   (eval "$ac_try") 2>&5
22058   ac_status=$?
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); }; }; then
22061
22062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22063 }'`
22064 # Check for a 64-bit object if we didn't find anything.
22065 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; }
22066 }'`; fi
22067 else
22068   echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071
22072 fi
22073
22074 rm -f core conftest.err conftest.$ac_objext \
22075       conftest$ac_exeext conftest.$ac_ext
22076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22077
22078          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22079           # Warning - without using the other run time loading flags,
22080           # -berok will link without error, but may produce a broken library.
22081           no_undefined_flag_F77=' ${wl}-bernotok'
22082           allow_undefined_flag_F77=' ${wl}-berok'
22083           # Exported symbols can be pulled into shared objects from archives
22084           whole_archive_flag_spec_F77='$convenience'
22085           archive_cmds_need_lc_F77=yes
22086           # This is similar to how AIX traditionally builds its shared libraries.
22087           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'
22088         fi
22089       fi
22090       ;;
22091
22092     amigaos*)
22093       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)'
22094       hardcode_libdir_flag_spec_F77='-L$libdir'
22095       hardcode_minus_L_F77=yes
22096       # see comment about different semantics on the GNU ld section
22097       ld_shlibs_F77=no
22098       ;;
22099
22100     bsdi[45]*)
22101       export_dynamic_flag_spec_F77=-rdynamic
22102       ;;
22103
22104     cygwin* | mingw* | pw32*)
22105       # When not using gcc, we currently assume that we are using
22106       # Microsoft Visual C++.
22107       # hardcode_libdir_flag_spec is actually meaningless, as there is
22108       # no search path for DLLs.
22109       hardcode_libdir_flag_spec_F77=' '
22110       allow_undefined_flag_F77=unsupported
22111       # Tell ltmain to make .lib files, not .a files.
22112       libext=lib
22113       # Tell ltmain to make .dll files, not .so files.
22114       shrext_cmds=".dll"
22115       # FIXME: Setting linknames here is a bad hack.
22116       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22117       # The linker will automatically build a .lib file if we build a DLL.
22118       old_archive_From_new_cmds_F77='true'
22119       # FIXME: Should let the user specify the lib program.
22120       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22121       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22122       enable_shared_with_static_runtimes_F77=yes
22123       ;;
22124
22125     darwin* | rhapsody*)
22126       case $host_os in
22127         rhapsody* | darwin1.[012])
22128          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22129          ;;
22130        *) # Darwin 1.3 on
22131          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22132            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22133          else
22134            case ${MACOSX_DEPLOYMENT_TARGET} in
22135              10.[012])
22136                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22137                ;;
22138              10.*)
22139                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22140                ;;
22141            esac
22142          fi
22143          ;;
22144       esac
22145       archive_cmds_need_lc_F77=no
22146       hardcode_direct_F77=no
22147       hardcode_automatic_F77=yes
22148       hardcode_shlibpath_var_F77=unsupported
22149       whole_archive_flag_spec_F77=''
22150       link_all_deplibs_F77=yes
22151     if test "$GCC" = yes ; then
22152         output_verbose_link_cmd='echo'
22153         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22154       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22155       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22156       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}'
22157       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}'
22158     else
22159       case $cc_basename in
22160         xlc*)
22161          output_verbose_link_cmd='echo'
22162          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22163          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22164           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22165          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}'
22166           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}'
22167           ;;
22168        *)
22169          ld_shlibs_F77=no
22170           ;;
22171       esac
22172     fi
22173       ;;
22174
22175     dgux*)
22176       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22177       hardcode_libdir_flag_spec_F77='-L$libdir'
22178       hardcode_shlibpath_var_F77=no
22179       ;;
22180
22181     freebsd1*)
22182       ld_shlibs_F77=no
22183       ;;
22184
22185     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22186     # support.  Future versions do this automatically, but an explicit c++rt0.o
22187     # does not break anything, and helps significantly (at the cost of a little
22188     # extra space).
22189     freebsd2.2*)
22190       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22191       hardcode_libdir_flag_spec_F77='-R$libdir'
22192       hardcode_direct_F77=yes
22193       hardcode_shlibpath_var_F77=no
22194       ;;
22195
22196     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22197     freebsd2*)
22198       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22199       hardcode_direct_F77=yes
22200       hardcode_minus_L_F77=yes
22201       hardcode_shlibpath_var_F77=no
22202       ;;
22203
22204     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22205     freebsd* | kfreebsd*-gnu | dragonfly*)
22206       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22207       hardcode_libdir_flag_spec_F77='-R$libdir'
22208       hardcode_direct_F77=yes
22209       hardcode_shlibpath_var_F77=no
22210       ;;
22211
22212     hpux9*)
22213       if test "$GCC" = yes; then
22214         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'
22215       else
22216         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'
22217       fi
22218       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22219       hardcode_libdir_separator_F77=:
22220       hardcode_direct_F77=yes
22221
22222       # hardcode_minus_L: Not really in the search PATH,
22223       # but as the default location of the library.
22224       hardcode_minus_L_F77=yes
22225       export_dynamic_flag_spec_F77='${wl}-E'
22226       ;;
22227
22228     hpux10*)
22229       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22230         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22231       else
22232         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22233       fi
22234       if test "$with_gnu_ld" = no; then
22235         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22236         hardcode_libdir_separator_F77=:
22237
22238         hardcode_direct_F77=yes
22239         export_dynamic_flag_spec_F77='${wl}-E'
22240
22241         # hardcode_minus_L: Not really in the search PATH,
22242         # but as the default location of the library.
22243         hardcode_minus_L_F77=yes
22244       fi
22245       ;;
22246
22247     hpux11*)
22248       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22249         case $host_cpu in
22250         hppa*64*)
22251           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22252           ;;
22253         ia64*)
22254           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22255           ;;
22256         *)
22257           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22258           ;;
22259         esac
22260       else
22261         case $host_cpu in
22262         hppa*64*)
22263           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264           ;;
22265         ia64*)
22266           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22267           ;;
22268         *)
22269           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22270           ;;
22271         esac
22272       fi
22273       if test "$with_gnu_ld" = no; then
22274         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22275         hardcode_libdir_separator_F77=:
22276
22277         case $host_cpu in
22278         hppa*64*|ia64*)
22279           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22280           hardcode_direct_F77=no
22281           hardcode_shlibpath_var_F77=no
22282           ;;
22283         *)
22284           hardcode_direct_F77=yes
22285           export_dynamic_flag_spec_F77='${wl}-E'
22286
22287           # hardcode_minus_L: Not really in the search PATH,
22288           # but as the default location of the library.
22289           hardcode_minus_L_F77=yes
22290           ;;
22291         esac
22292       fi
22293       ;;
22294
22295     irix5* | irix6* | nonstopux*)
22296       if test "$GCC" = yes; then
22297         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'
22298       else
22299         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'
22300         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22301       fi
22302       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22303       hardcode_libdir_separator_F77=:
22304       link_all_deplibs_F77=yes
22305       ;;
22306
22307     netbsd*)
22308       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22309         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22310       else
22311         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22312       fi
22313       hardcode_libdir_flag_spec_F77='-R$libdir'
22314       hardcode_direct_F77=yes
22315       hardcode_shlibpath_var_F77=no
22316       ;;
22317
22318     newsos6)
22319       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22320       hardcode_direct_F77=yes
22321       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22322       hardcode_libdir_separator_F77=:
22323       hardcode_shlibpath_var_F77=no
22324       ;;
22325
22326     openbsd*)
22327       hardcode_direct_F77=yes
22328       hardcode_shlibpath_var_F77=no
22329       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22330         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22331         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22332         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22333         export_dynamic_flag_spec_F77='${wl}-E'
22334       else
22335        case $host_os in
22336          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22337            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22338            hardcode_libdir_flag_spec_F77='-R$libdir'
22339            ;;
22340          *)
22341            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22342            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22343            ;;
22344        esac
22345       fi
22346       ;;
22347
22348     os2*)
22349       hardcode_libdir_flag_spec_F77='-L$libdir'
22350       hardcode_minus_L_F77=yes
22351       allow_undefined_flag_F77=unsupported
22352       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'
22353       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22354       ;;
22355
22356     osf3*)
22357       if test "$GCC" = yes; then
22358         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22359         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'
22360       else
22361         allow_undefined_flag_F77=' -expect_unresolved \*'
22362         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'
22363       fi
22364       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22365       hardcode_libdir_separator_F77=:
22366       ;;
22367
22368     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22369       if test "$GCC" = yes; then
22370         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22371         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'
22372         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22373       else
22374         allow_undefined_flag_F77=' -expect_unresolved \*'
22375         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'
22376         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~
22377         $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'
22378
22379         # Both c and cxx compiler support -rpath directly
22380         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22381       fi
22382       hardcode_libdir_separator_F77=:
22383       ;;
22384
22385     solaris*)
22386       no_undefined_flag_F77=' -z text'
22387       if test "$GCC" = yes; then
22388         wlarc='${wl}'
22389         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22390         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22391           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22392       else
22393         wlarc=''
22394         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22395         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22396         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22397       fi
22398       hardcode_libdir_flag_spec_F77='-R$libdir'
22399       hardcode_shlibpath_var_F77=no
22400       case $host_os in
22401       solaris2.[0-5] | solaris2.[0-5].*) ;;
22402       *)
22403         # The compiler driver will combine linker options so we
22404         # cannot just pass the convience library names through
22405         # without $wl, iff we do not link with $LD.
22406         # Luckily, gcc supports the same syntax we need for Sun Studio.
22407         # Supported since Solaris 2.6 (maybe 2.5.1?)
22408         case $wlarc in
22409         '')
22410           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22411         *)
22412           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' ;;
22413         esac ;;
22414       esac
22415       link_all_deplibs_F77=yes
22416       ;;
22417
22418     sunos4*)
22419       if test "x$host_vendor" = xsequent; then
22420         # Use $CC to link under sequent, because it throws in some extra .o
22421         # files that make .init and .fini sections work.
22422         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22423       else
22424         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22425       fi
22426       hardcode_libdir_flag_spec_F77='-L$libdir'
22427       hardcode_direct_F77=yes
22428       hardcode_minus_L_F77=yes
22429       hardcode_shlibpath_var_F77=no
22430       ;;
22431
22432     sysv4)
22433       case $host_vendor in
22434         sni)
22435           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22436           hardcode_direct_F77=yes # is this really true???
22437         ;;
22438         siemens)
22439           ## LD is ld it makes a PLAMLIB
22440           ## CC just makes a GrossModule.
22441           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22442           reload_cmds_F77='$CC -r -o $output$reload_objs'
22443           hardcode_direct_F77=no
22444         ;;
22445         motorola)
22446           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22447           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22448         ;;
22449       esac
22450       runpath_var='LD_RUN_PATH'
22451       hardcode_shlibpath_var_F77=no
22452       ;;
22453
22454     sysv4.3*)
22455       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22456       hardcode_shlibpath_var_F77=no
22457       export_dynamic_flag_spec_F77='-Bexport'
22458       ;;
22459
22460     sysv4*MP*)
22461       if test -d /usr/nec; then
22462         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22463         hardcode_shlibpath_var_F77=no
22464         runpath_var=LD_RUN_PATH
22465         hardcode_runpath_var=yes
22466         ld_shlibs_F77=yes
22467       fi
22468       ;;
22469
22470     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22471       no_undefined_flag_F77='${wl}-z,text'
22472       archive_cmds_need_lc_F77=no
22473       hardcode_shlibpath_var_F77=no
22474       runpath_var='LD_RUN_PATH'
22475
22476       if test "$GCC" = yes; then
22477         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22478         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22479       else
22480         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22481         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22482       fi
22483       ;;
22484
22485     sysv5* | sco3.2v5* | sco5v6*)
22486       # Note: We can NOT use -z defs as we might desire, because we do not
22487       # link with -lc, and that would cause any symbols used from libc to
22488       # always be unresolved, which means just about no library would
22489       # ever link correctly.  If we're not using GNU ld we use -z text
22490       # though, which does catch some bad symbols but isn't as heavy-handed
22491       # as -z defs.
22492       no_undefined_flag_F77='${wl}-z,text'
22493       allow_undefined_flag_F77='${wl}-z,nodefs'
22494       archive_cmds_need_lc_F77=no
22495       hardcode_shlibpath_var_F77=no
22496       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22497       hardcode_libdir_separator_F77=':'
22498       link_all_deplibs_F77=yes
22499       export_dynamic_flag_spec_F77='${wl}-Bexport'
22500       runpath_var='LD_RUN_PATH'
22501
22502       if test "$GCC" = yes; then
22503         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22504         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22505       else
22506         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22507         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22508       fi
22509       ;;
22510
22511     uts4*)
22512       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22513       hardcode_libdir_flag_spec_F77='-L$libdir'
22514       hardcode_shlibpath_var_F77=no
22515       ;;
22516
22517     *)
22518       ld_shlibs_F77=no
22519       ;;
22520     esac
22521   fi
22522
22523 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22524 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22525 test "$ld_shlibs_F77" = no && can_build_shared=no
22526
22527 #
22528 # Do we need to explicitly link libc?
22529 #
22530 case "x$archive_cmds_need_lc_F77" in
22531 x|xyes)
22532   # Assume -lc should be added
22533   archive_cmds_need_lc_F77=yes
22534
22535   if test "$enable_shared" = yes && test "$GCC" = yes; then
22536     case $archive_cmds_F77 in
22537     *'~'*)
22538       # FIXME: we may have to deal with multi-command sequences.
22539       ;;
22540     '$CC '*)
22541       # Test whether the compiler implicitly links with -lc since on some
22542       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22543       # to ld, don't add -lc before -lgcc.
22544       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22546       $rm conftest*
22547       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22548
22549       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22550   (eval $ac_compile) 2>&5
22551   ac_status=$?
22552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553   (exit $ac_status); } 2>conftest.err; then
22554         soname=conftest
22555         lib=conftest
22556         libobjs=conftest.$ac_objext
22557         deplibs=
22558         wl=$lt_prog_compiler_wl_F77
22559         pic_flag=$lt_prog_compiler_pic_F77
22560         compiler_flags=-v
22561         linker_flags=-v
22562         verstring=
22563         output_objdir=.
22564         libname=conftest
22565         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22566         allow_undefined_flag_F77=
22567         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22568   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22569   ac_status=$?
22570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); }
22572         then
22573           archive_cmds_need_lc_F77=no
22574         else
22575           archive_cmds_need_lc_F77=yes
22576         fi
22577         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22578       else
22579         cat conftest.err 1>&5
22580       fi
22581       $rm conftest*
22582       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22583 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22584       ;;
22585     esac
22586   fi
22587   ;;
22588 esac
22589
22590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22592 library_names_spec=
22593 libname_spec='lib$name'
22594 soname_spec=
22595 shrext_cmds=".so"
22596 postinstall_cmds=
22597 postuninstall_cmds=
22598 finish_cmds=
22599 finish_eval=
22600 shlibpath_var=
22601 shlibpath_overrides_runpath=unknown
22602 version_type=none
22603 dynamic_linker="$host_os ld.so"
22604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22605 if test "$GCC" = yes; then
22606   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22607   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22608     # if the path contains ";" then we assume it to be the separator
22609     # otherwise default to the standard path separator (i.e. ":") - it is
22610     # assumed that no part of a normal pathname contains ";" but that should
22611     # okay in the real world where ";" in dirpaths is itself problematic.
22612     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22613   else
22614     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22615   fi
22616 else
22617   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22618 fi
22619 need_lib_prefix=unknown
22620 hardcode_into_libs=no
22621
22622 # when you set need_version to no, make sure it does not cause -set_version
22623 # flags to be left without arguments
22624 need_version=unknown
22625
22626 case $host_os in
22627 aix3*)
22628   version_type=linux
22629   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22630   shlibpath_var=LIBPATH
22631
22632   # AIX 3 has no versioning support, so we append a major version to the name.
22633   soname_spec='${libname}${release}${shared_ext}$major'
22634   ;;
22635
22636 aix4* | aix5*)
22637   version_type=linux
22638   need_lib_prefix=no
22639   need_version=no
22640   hardcode_into_libs=yes
22641   if test "$host_cpu" = ia64; then
22642     # AIX 5 supports IA64
22643     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22644     shlibpath_var=LD_LIBRARY_PATH
22645   else
22646     # With GCC up to 2.95.x, collect2 would create an import file
22647     # for dependence libraries.  The import file would start with
22648     # the line `#! .'.  This would cause the generated library to
22649     # depend on `.', always an invalid library.  This was fixed in
22650     # development snapshots of GCC prior to 3.0.
22651     case $host_os in
22652       aix4 | aix4.[01] | aix4.[01].*)
22653       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22654            echo ' yes '
22655            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22656         :
22657       else
22658         can_build_shared=no
22659       fi
22660       ;;
22661     esac
22662     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22663     # soname into executable. Probably we can add versioning support to
22664     # collect2, so additional links can be useful in future.
22665     if test "$aix_use_runtimelinking" = yes; then
22666       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22667       # instead of lib<name>.a to let people know that these are not
22668       # typical AIX shared libraries.
22669       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22670     else
22671       # We preserve .a as extension for shared libraries through AIX4.2
22672       # and later when we are not doing run time linking.
22673       library_names_spec='${libname}${release}.a $libname.a'
22674       soname_spec='${libname}${release}${shared_ext}$major'
22675     fi
22676     shlibpath_var=LIBPATH
22677   fi
22678   ;;
22679
22680 amigaos*)
22681   library_names_spec='$libname.ixlibrary $libname.a'
22682   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22683   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'
22684   ;;
22685
22686 beos*)
22687   library_names_spec='${libname}${shared_ext}'
22688   dynamic_linker="$host_os ld.so"
22689   shlibpath_var=LIBRARY_PATH
22690   ;;
22691
22692 bsdi[45]*)
22693   version_type=linux
22694   need_version=no
22695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696   soname_spec='${libname}${release}${shared_ext}$major'
22697   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22698   shlibpath_var=LD_LIBRARY_PATH
22699   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22700   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22701   # the default ld.so.conf also contains /usr/contrib/lib and
22702   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22703   # libtool to hard-code these into programs
22704   ;;
22705
22706 cygwin* | mingw* | pw32*)
22707   version_type=windows
22708   shrext_cmds=".dll"
22709   need_version=no
22710   need_lib_prefix=no
22711
22712   case $GCC,$host_os in
22713   yes,cygwin* | yes,mingw* | yes,pw32*)
22714     library_names_spec='$libname.dll.a'
22715     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22716     postinstall_cmds='base_file=`basename \${file}`~
22717       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22718       dldir=$destdir/`dirname \$dlpath`~
22719       test -d \$dldir || mkdir -p \$dldir~
22720       $install_prog $dir/$dlname \$dldir/$dlname~
22721       chmod a+x \$dldir/$dlname'
22722     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22723       dlpath=$dir/\$dldll~
22724        $rm \$dlpath'
22725     shlibpath_overrides_runpath=yes
22726
22727     case $host_os in
22728     cygwin*)
22729       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22730       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22731       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22732       ;;
22733     mingw*)
22734       # MinGW DLLs use traditional 'lib' prefix
22735       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22736       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22737       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22738         # It is most probably a Windows format PATH printed by
22739         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22740         # path with ; separators, and with drive letters. We can handle the
22741         # drive letters (cygwin fileutils understands them), so leave them,
22742         # especially as we might pass files found there to a mingw objdump,
22743         # which wouldn't understand a cygwinified path. Ahh.
22744         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22745       else
22746         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22747       fi
22748       ;;
22749     pw32*)
22750       # pw32 DLLs use 'pw' prefix rather than 'lib'
22751       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22752       ;;
22753     esac
22754     ;;
22755
22756   *)
22757     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22758     ;;
22759   esac
22760   dynamic_linker='Win32 ld.exe'
22761   # FIXME: first we should search . and the directory the executable is in
22762   shlibpath_var=PATH
22763   ;;
22764
22765 darwin* | rhapsody*)
22766   dynamic_linker="$host_os dyld"
22767   version_type=darwin
22768   need_lib_prefix=no
22769   need_version=no
22770   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22771   soname_spec='${libname}${release}${major}$shared_ext'
22772   shlibpath_overrides_runpath=yes
22773   shlibpath_var=DYLD_LIBRARY_PATH
22774   shrext_cmds='.dylib'
22775   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22776   if test "$GCC" = yes; then
22777     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"`
22778   else
22779     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22780   fi
22781   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22782   ;;
22783
22784 dgux*)
22785   version_type=linux
22786   need_lib_prefix=no
22787   need_version=no
22788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22789   soname_spec='${libname}${release}${shared_ext}$major'
22790   shlibpath_var=LD_LIBRARY_PATH
22791   ;;
22792
22793 freebsd1*)
22794   dynamic_linker=no
22795   ;;
22796
22797 kfreebsd*-gnu)
22798   version_type=linux
22799   need_lib_prefix=no
22800   need_version=no
22801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22802   soname_spec='${libname}${release}${shared_ext}$major'
22803   shlibpath_var=LD_LIBRARY_PATH
22804   shlibpath_overrides_runpath=no
22805   hardcode_into_libs=yes
22806   dynamic_linker='GNU ld.so'
22807   ;;
22808
22809 freebsd* | dragonfly*)
22810   # DragonFly does not have aout.  When/if they implement a new
22811   # versioning mechanism, adjust this.
22812   if test -x /usr/bin/objformat; then
22813     objformat=`/usr/bin/objformat`
22814   else
22815     case $host_os in
22816     freebsd[123]*) objformat=aout ;;
22817     *) objformat=elf ;;
22818     esac
22819   fi
22820   version_type=freebsd-$objformat
22821   case $version_type in
22822     freebsd-elf*)
22823       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22824       need_version=no
22825       need_lib_prefix=no
22826       ;;
22827     freebsd-*)
22828       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22829       need_version=yes
22830       ;;
22831   esac
22832   shlibpath_var=LD_LIBRARY_PATH
22833   case $host_os in
22834   freebsd2*)
22835     shlibpath_overrides_runpath=yes
22836     ;;
22837   freebsd3.[01]* | freebsdelf3.[01]*)
22838     shlibpath_overrides_runpath=yes
22839     hardcode_into_libs=yes
22840     ;;
22841   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22842   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22843     shlibpath_overrides_runpath=no
22844     hardcode_into_libs=yes
22845     ;;
22846   freebsd*) # from 4.6 on
22847     shlibpath_overrides_runpath=yes
22848     hardcode_into_libs=yes
22849     ;;
22850   esac
22851   ;;
22852
22853 gnu*)
22854   version_type=linux
22855   need_lib_prefix=no
22856   need_version=no
22857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22858   soname_spec='${libname}${release}${shared_ext}$major'
22859   shlibpath_var=LD_LIBRARY_PATH
22860   hardcode_into_libs=yes
22861   ;;
22862
22863 hpux9* | hpux10* | hpux11*)
22864   # Give a soname corresponding to the major version so that dld.sl refuses to
22865   # link against other versions.
22866   version_type=sunos
22867   need_lib_prefix=no
22868   need_version=no
22869   case $host_cpu in
22870   ia64*)
22871     shrext_cmds='.so'
22872     hardcode_into_libs=yes
22873     dynamic_linker="$host_os dld.so"
22874     shlibpath_var=LD_LIBRARY_PATH
22875     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877     soname_spec='${libname}${release}${shared_ext}$major'
22878     if test "X$HPUX_IA64_MODE" = X32; then
22879       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22880     else
22881       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22882     fi
22883     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22884     ;;
22885    hppa*64*)
22886      shrext_cmds='.sl'
22887      hardcode_into_libs=yes
22888      dynamic_linker="$host_os dld.sl"
22889      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22890      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22891      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22892      soname_spec='${libname}${release}${shared_ext}$major'
22893      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22894      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22895      ;;
22896    *)
22897     shrext_cmds='.sl'
22898     dynamic_linker="$host_os dld.sl"
22899     shlibpath_var=SHLIB_PATH
22900     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22902     soname_spec='${libname}${release}${shared_ext}$major'
22903     ;;
22904   esac
22905   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22906   postinstall_cmds='chmod 555 $lib'
22907   ;;
22908
22909 interix3*)
22910   version_type=linux
22911   need_lib_prefix=no
22912   need_version=no
22913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22914   soname_spec='${libname}${release}${shared_ext}$major'
22915   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22916   shlibpath_var=LD_LIBRARY_PATH
22917   shlibpath_overrides_runpath=no
22918   hardcode_into_libs=yes
22919   ;;
22920
22921 irix5* | irix6* | nonstopux*)
22922   case $host_os in
22923     nonstopux*) version_type=nonstopux ;;
22924     *)
22925         if test "$lt_cv_prog_gnu_ld" = yes; then
22926                 version_type=linux
22927         else
22928                 version_type=irix
22929         fi ;;
22930   esac
22931   need_lib_prefix=no
22932   need_version=no
22933   soname_spec='${libname}${release}${shared_ext}$major'
22934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22935   case $host_os in
22936   irix5* | nonstopux*)
22937     libsuff= shlibsuff=
22938     ;;
22939   *)
22940     case $LD in # libtool.m4 will add one of these switches to LD
22941     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22942       libsuff= shlibsuff= libmagic=32-bit;;
22943     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22944       libsuff=32 shlibsuff=N32 libmagic=N32;;
22945     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22946       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22947     *) libsuff= shlibsuff= libmagic=never-match;;
22948     esac
22949     ;;
22950   esac
22951   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22952   shlibpath_overrides_runpath=no
22953   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22954   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22955   hardcode_into_libs=yes
22956   ;;
22957
22958 # No shared lib support for Linux oldld, aout, or coff.
22959 linux*oldld* | linux*aout* | linux*coff*)
22960   dynamic_linker=no
22961   ;;
22962
22963 # This must be Linux ELF.
22964 linux*)
22965   version_type=linux
22966   need_lib_prefix=no
22967   need_version=no
22968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969   soname_spec='${libname}${release}${shared_ext}$major'
22970   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22971   shlibpath_var=LD_LIBRARY_PATH
22972   shlibpath_overrides_runpath=no
22973   # This implies no fast_install, which is unacceptable.
22974   # Some rework will be needed to allow for fast_install
22975   # before this can be enabled.
22976   hardcode_into_libs=yes
22977
22978   # Append ld.so.conf contents to the search path
22979   if test -f /etc/ld.so.conf; then
22980     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' ' '`
22981     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22982   fi
22983
22984   # We used to test for /lib/ld.so.1 and disable shared libraries on
22985   # powerpc, because MkLinux only supported shared libraries with the
22986   # GNU dynamic linker.  Since this was broken with cross compilers,
22987   # most powerpc-linux boxes support dynamic linking these days and
22988   # people can always --disable-shared, the test was removed, and we
22989   # assume the GNU/Linux dynamic linker is in use.
22990   dynamic_linker='GNU/Linux ld.so'
22991   ;;
22992
22993 knetbsd*-gnu)
22994   version_type=linux
22995   need_lib_prefix=no
22996   need_version=no
22997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22998   soname_spec='${libname}${release}${shared_ext}$major'
22999   shlibpath_var=LD_LIBRARY_PATH
23000   shlibpath_overrides_runpath=no
23001   hardcode_into_libs=yes
23002   dynamic_linker='GNU ld.so'
23003   ;;
23004
23005 netbsd*)
23006   version_type=sunos
23007   need_lib_prefix=no
23008   need_version=no
23009   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23011     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23012     dynamic_linker='NetBSD (a.out) ld.so'
23013   else
23014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23015     soname_spec='${libname}${release}${shared_ext}$major'
23016     dynamic_linker='NetBSD ld.elf_so'
23017   fi
23018   shlibpath_var=LD_LIBRARY_PATH
23019   shlibpath_overrides_runpath=yes
23020   hardcode_into_libs=yes
23021   ;;
23022
23023 newsos6)
23024   version_type=linux
23025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23026   shlibpath_var=LD_LIBRARY_PATH
23027   shlibpath_overrides_runpath=yes
23028   ;;
23029
23030 nto-qnx*)
23031   version_type=linux
23032   need_lib_prefix=no
23033   need_version=no
23034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035   soname_spec='${libname}${release}${shared_ext}$major'
23036   shlibpath_var=LD_LIBRARY_PATH
23037   shlibpath_overrides_runpath=yes
23038   ;;
23039
23040 openbsd*)
23041   version_type=sunos
23042   sys_lib_dlsearch_path_spec="/usr/lib"
23043   need_lib_prefix=no
23044   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23045   case $host_os in
23046     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23047     *)                         need_version=no  ;;
23048   esac
23049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23050   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23051   shlibpath_var=LD_LIBRARY_PATH
23052   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23053     case $host_os in
23054       openbsd2.[89] | openbsd2.[89].*)
23055         shlibpath_overrides_runpath=no
23056         ;;
23057       *)
23058         shlibpath_overrides_runpath=yes
23059         ;;
23060       esac
23061   else
23062     shlibpath_overrides_runpath=yes
23063   fi
23064   ;;
23065
23066 os2*)
23067   libname_spec='$name'
23068   shrext_cmds=".dll"
23069   need_lib_prefix=no
23070   library_names_spec='$libname${shared_ext} $libname.a'
23071   dynamic_linker='OS/2 ld.exe'
23072   shlibpath_var=LIBPATH
23073   ;;
23074
23075 osf3* | osf4* | osf5*)
23076   version_type=osf
23077   need_lib_prefix=no
23078   need_version=no
23079   soname_spec='${libname}${release}${shared_ext}$major'
23080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23081   shlibpath_var=LD_LIBRARY_PATH
23082   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23083   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23084   ;;
23085
23086 solaris*)
23087   version_type=linux
23088   need_lib_prefix=no
23089   need_version=no
23090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23091   soname_spec='${libname}${release}${shared_ext}$major'
23092   shlibpath_var=LD_LIBRARY_PATH
23093   shlibpath_overrides_runpath=yes
23094   hardcode_into_libs=yes
23095   # ldd complains unless libraries are executable
23096   postinstall_cmds='chmod +x $lib'
23097   ;;
23098
23099 sunos4*)
23100   version_type=sunos
23101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23102   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23103   shlibpath_var=LD_LIBRARY_PATH
23104   shlibpath_overrides_runpath=yes
23105   if test "$with_gnu_ld" = yes; then
23106     need_lib_prefix=no
23107   fi
23108   need_version=yes
23109   ;;
23110
23111 sysv4 | sysv4.3*)
23112   version_type=linux
23113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23114   soname_spec='${libname}${release}${shared_ext}$major'
23115   shlibpath_var=LD_LIBRARY_PATH
23116   case $host_vendor in
23117     sni)
23118       shlibpath_overrides_runpath=no
23119       need_lib_prefix=no
23120       export_dynamic_flag_spec='${wl}-Blargedynsym'
23121       runpath_var=LD_RUN_PATH
23122       ;;
23123     siemens)
23124       need_lib_prefix=no
23125       ;;
23126     motorola)
23127       need_lib_prefix=no
23128       need_version=no
23129       shlibpath_overrides_runpath=no
23130       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23131       ;;
23132   esac
23133   ;;
23134
23135 sysv4*MP*)
23136   if test -d /usr/nec ;then
23137     version_type=linux
23138     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23139     soname_spec='$libname${shared_ext}.$major'
23140     shlibpath_var=LD_LIBRARY_PATH
23141   fi
23142   ;;
23143
23144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23145   version_type=freebsd-elf
23146   need_lib_prefix=no
23147   need_version=no
23148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23149   soname_spec='${libname}${release}${shared_ext}$major'
23150   shlibpath_var=LD_LIBRARY_PATH
23151   hardcode_into_libs=yes
23152   if test "$with_gnu_ld" = yes; then
23153     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23154     shlibpath_overrides_runpath=no
23155   else
23156     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23157     shlibpath_overrides_runpath=yes
23158     case $host_os in
23159       sco3.2v5*)
23160         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23161         ;;
23162     esac
23163   fi
23164   sys_lib_dlsearch_path_spec='/usr/lib'
23165   ;;
23166
23167 uts4*)
23168   version_type=linux
23169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23170   soname_spec='${libname}${release}${shared_ext}$major'
23171   shlibpath_var=LD_LIBRARY_PATH
23172   ;;
23173
23174 *)
23175   dynamic_linker=no
23176   ;;
23177 esac
23178 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23179 echo "${ECHO_T}$dynamic_linker" >&6; }
23180 test "$dynamic_linker" = no && can_build_shared=no
23181
23182 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23183 if test "$GCC" = yes; then
23184   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23185 fi
23186
23187 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23188 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23189 hardcode_action_F77=
23190 if test -n "$hardcode_libdir_flag_spec_F77" || \
23191    test -n "$runpath_var_F77" || \
23192    test "X$hardcode_automatic_F77" = "Xyes" ; then
23193
23194   # We can hardcode non-existant directories.
23195   if test "$hardcode_direct_F77" != no &&
23196      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23197      # have to relink, otherwise we might link with an installed library
23198      # when we should be linking with a yet-to-be-installed one
23199      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23200      test "$hardcode_minus_L_F77" != no; then
23201     # Linking always hardcodes the temporary library directory.
23202     hardcode_action_F77=relink
23203   else
23204     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23205     hardcode_action_F77=immediate
23206   fi
23207 else
23208   # We cannot hardcode anything, or else we can only hardcode existing
23209   # directories.
23210   hardcode_action_F77=unsupported
23211 fi
23212 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23213 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23214
23215 if test "$hardcode_action_F77" = relink; then
23216   # Fast installation is not supported
23217   enable_fast_install=no
23218 elif test "$shlibpath_overrides_runpath" = yes ||
23219      test "$enable_shared" = no; then
23220   # Fast installation is not necessary
23221   enable_fast_install=needless
23222 fi
23223
23224
23225 # The else clause should only fire when bootstrapping the
23226 # libtool distribution, otherwise you forgot to ship ltmain.sh
23227 # with your package, and you will get complaints that there are
23228 # no rules to generate ltmain.sh.
23229 if test -f "$ltmain"; then
23230   # See if we are running on zsh, and set the options which allow our commands through
23231   # without removal of \ escapes.
23232   if test -n "${ZSH_VERSION+set}" ; then
23233     setopt NO_GLOB_SUBST
23234   fi
23235   # Now quote all the things that may contain metacharacters while being
23236   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23237   # variables and quote the copies for generation of the libtool script.
23238   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23239     SED SHELL STRIP \
23240     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23241     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23242     deplibs_check_method reload_flag reload_cmds need_locks \
23243     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23244     lt_cv_sys_global_symbol_to_c_name_address \
23245     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23246     old_postinstall_cmds old_postuninstall_cmds \
23247     compiler_F77 \
23248     CC_F77 \
23249     LD_F77 \
23250     lt_prog_compiler_wl_F77 \
23251     lt_prog_compiler_pic_F77 \
23252     lt_prog_compiler_static_F77 \
23253     lt_prog_compiler_no_builtin_flag_F77 \
23254     export_dynamic_flag_spec_F77 \
23255     thread_safe_flag_spec_F77 \
23256     whole_archive_flag_spec_F77 \
23257     enable_shared_with_static_runtimes_F77 \
23258     old_archive_cmds_F77 \
23259     old_archive_from_new_cmds_F77 \
23260     predep_objects_F77 \
23261     postdep_objects_F77 \
23262     predeps_F77 \
23263     postdeps_F77 \
23264     compiler_lib_search_path_F77 \
23265     archive_cmds_F77 \
23266     archive_expsym_cmds_F77 \
23267     postinstall_cmds_F77 \
23268     postuninstall_cmds_F77 \
23269     old_archive_from_expsyms_cmds_F77 \
23270     allow_undefined_flag_F77 \
23271     no_undefined_flag_F77 \
23272     export_symbols_cmds_F77 \
23273     hardcode_libdir_flag_spec_F77 \
23274     hardcode_libdir_flag_spec_ld_F77 \
23275     hardcode_libdir_separator_F77 \
23276     hardcode_automatic_F77 \
23277     module_cmds_F77 \
23278     module_expsym_cmds_F77 \
23279     lt_cv_prog_compiler_c_o_F77 \
23280     exclude_expsyms_F77 \
23281     include_expsyms_F77; do
23282
23283     case $var in
23284     old_archive_cmds_F77 | \
23285     old_archive_from_new_cmds_F77 | \
23286     archive_cmds_F77 | \
23287     archive_expsym_cmds_F77 | \
23288     module_cmds_F77 | \
23289     module_expsym_cmds_F77 | \
23290     old_archive_from_expsyms_cmds_F77 | \
23291     export_symbols_cmds_F77 | \
23292     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23293     postinstall_cmds | postuninstall_cmds | \
23294     old_postinstall_cmds | old_postuninstall_cmds | \
23295     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23296       # Double-quote double-evaled strings.
23297       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23298       ;;
23299     *)
23300       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23301       ;;
23302     esac
23303   done
23304
23305   case $lt_echo in
23306   *'\$0 --fallback-echo"')
23307     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23308     ;;
23309   esac
23310
23311 cfgfile="$ofile"
23312
23313   cat <<__EOF__ >> "$cfgfile"
23314 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23315
23316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23317
23318 # Shell to use when invoking shell scripts.
23319 SHELL=$lt_SHELL
23320
23321 # Whether or not to build shared libraries.
23322 build_libtool_libs=$enable_shared
23323
23324 # Whether or not to build static libraries.
23325 build_old_libs=$enable_static
23326
23327 # Whether or not to add -lc for building shared libraries.
23328 build_libtool_need_lc=$archive_cmds_need_lc_F77
23329
23330 # Whether or not to disallow shared libs when runtime libs are static
23331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23332
23333 # Whether or not to optimize for fast installation.
23334 fast_install=$enable_fast_install
23335
23336 # The host system.
23337 host_alias=$host_alias
23338 host=$host
23339 host_os=$host_os
23340
23341 # The build system.
23342 build_alias=$build_alias
23343 build=$build
23344 build_os=$build_os
23345
23346 # An echo program that does not interpret backslashes.
23347 echo=$lt_echo
23348
23349 # The archiver.
23350 AR=$lt_AR
23351 AR_FLAGS=$lt_AR_FLAGS
23352
23353 # A C compiler.
23354 LTCC=$lt_LTCC
23355
23356 # LTCC compiler flags.
23357 LTCFLAGS=$lt_LTCFLAGS
23358
23359 # A language-specific compiler.
23360 CC=$lt_compiler_F77
23361
23362 # Is the compiler the GNU C compiler?
23363 with_gcc=$GCC_F77
23364
23365 # An ERE matcher.
23366 EGREP=$lt_EGREP
23367
23368 # The linker used to build libraries.
23369 LD=$lt_LD_F77
23370
23371 # Whether we need hard or soft links.
23372 LN_S=$lt_LN_S
23373
23374 # A BSD-compatible nm program.
23375 NM=$lt_NM
23376
23377 # A symbol stripping program
23378 STRIP=$lt_STRIP
23379
23380 # Used to examine libraries when file_magic_cmd begins "file"
23381 MAGIC_CMD=$MAGIC_CMD
23382
23383 # Used on cygwin: DLL creation program.
23384 DLLTOOL="$DLLTOOL"
23385
23386 # Used on cygwin: object dumper.
23387 OBJDUMP="$OBJDUMP"
23388
23389 # Used on cygwin: assembler.
23390 AS="$AS"
23391
23392 # The name of the directory that contains temporary libtool files.
23393 objdir=$objdir
23394
23395 # How to create reloadable object files.
23396 reload_flag=$lt_reload_flag
23397 reload_cmds=$lt_reload_cmds
23398
23399 # How to pass a linker flag through the compiler.
23400 wl=$lt_lt_prog_compiler_wl_F77
23401
23402 # Object file suffix (normally "o").
23403 objext="$ac_objext"
23404
23405 # Old archive suffix (normally "a").
23406 libext="$libext"
23407
23408 # Shared library suffix (normally ".so").
23409 shrext_cmds='$shrext_cmds'
23410
23411 # Executable file suffix (normally "").
23412 exeext="$exeext"
23413
23414 # Additional compiler flags for building library objects.
23415 pic_flag=$lt_lt_prog_compiler_pic_F77
23416 pic_mode=$pic_mode
23417
23418 # What is the maximum length of a command?
23419 max_cmd_len=$lt_cv_sys_max_cmd_len
23420
23421 # Does compiler simultaneously support -c and -o options?
23422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23423
23424 # Must we lock files when doing compilation?
23425 need_locks=$lt_need_locks
23426
23427 # Do we need the lib prefix for modules?
23428 need_lib_prefix=$need_lib_prefix
23429
23430 # Do we need a version for libraries?
23431 need_version=$need_version
23432
23433 # Whether dlopen is supported.
23434 dlopen_support=$enable_dlopen
23435
23436 # Whether dlopen of programs is supported.
23437 dlopen_self=$enable_dlopen_self
23438
23439 # Whether dlopen of statically linked programs is supported.
23440 dlopen_self_static=$enable_dlopen_self_static
23441
23442 # Compiler flag to prevent dynamic linking.
23443 link_static_flag=$lt_lt_prog_compiler_static_F77
23444
23445 # Compiler flag to turn off builtin functions.
23446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23447
23448 # Compiler flag to allow reflexive dlopens.
23449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23450
23451 # Compiler flag to generate shared objects directly from archives.
23452 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23453
23454 # Compiler flag to generate thread-safe objects.
23455 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23456
23457 # Library versioning type.
23458 version_type=$version_type
23459
23460 # Format of library name prefix.
23461 libname_spec=$lt_libname_spec
23462
23463 # List of archive names.  First name is the real one, the rest are links.
23464 # The last name is the one that the linker finds with -lNAME.
23465 library_names_spec=$lt_library_names_spec
23466
23467 # The coded name of the library, if different from the real name.
23468 soname_spec=$lt_soname_spec
23469
23470 # Commands used to build and install an old-style archive.
23471 RANLIB=$lt_RANLIB
23472 old_archive_cmds=$lt_old_archive_cmds_F77
23473 old_postinstall_cmds=$lt_old_postinstall_cmds
23474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23475
23476 # Create an old-style archive from a shared archive.
23477 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23478
23479 # Create a temporary old-style archive to link instead of a shared archive.
23480 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23481
23482 # Commands used to build and install a shared archive.
23483 archive_cmds=$lt_archive_cmds_F77
23484 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23485 postinstall_cmds=$lt_postinstall_cmds
23486 postuninstall_cmds=$lt_postuninstall_cmds
23487
23488 # Commands used to build a loadable module (assumed same as above if empty)
23489 module_cmds=$lt_module_cmds_F77
23490 module_expsym_cmds=$lt_module_expsym_cmds_F77
23491
23492 # Commands to strip libraries.
23493 old_striplib=$lt_old_striplib
23494 striplib=$lt_striplib
23495
23496 # Dependencies to place before the objects being linked to create a
23497 # shared library.
23498 predep_objects=$lt_predep_objects_F77
23499
23500 # Dependencies to place after the objects being linked to create a
23501 # shared library.
23502 postdep_objects=$lt_postdep_objects_F77
23503
23504 # Dependencies to place before the objects being linked to create a
23505 # shared library.
23506 predeps=$lt_predeps_F77
23507
23508 # Dependencies to place after the objects being linked to create a
23509 # shared library.
23510 postdeps=$lt_postdeps_F77
23511
23512 # The library search path used internally by the compiler when linking
23513 # a shared library.
23514 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23515
23516 # Method to check whether dependent libraries are shared objects.
23517 deplibs_check_method=$lt_deplibs_check_method
23518
23519 # Command to use when deplibs_check_method == file_magic.
23520 file_magic_cmd=$lt_file_magic_cmd
23521
23522 # Flag that allows shared libraries with undefined symbols to be built.
23523 allow_undefined_flag=$lt_allow_undefined_flag_F77
23524
23525 # Flag that forces no undefined symbols.
23526 no_undefined_flag=$lt_no_undefined_flag_F77
23527
23528 # Commands used to finish a libtool library installation in a directory.
23529 finish_cmds=$lt_finish_cmds
23530
23531 # Same as above, but a single script fragment to be evaled but not shown.
23532 finish_eval=$lt_finish_eval
23533
23534 # Take the output of nm and produce a listing of raw symbols and C names.
23535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23536
23537 # Transform the output of nm in a proper C declaration
23538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23539
23540 # Transform the output of nm in a C name address pair
23541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23542
23543 # This is the shared library runtime path variable.
23544 runpath_var=$runpath_var
23545
23546 # This is the shared library path variable.
23547 shlibpath_var=$shlibpath_var
23548
23549 # Is shlibpath searched before the hard-coded library search path?
23550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23551
23552 # How to hardcode a shared library path into an executable.
23553 hardcode_action=$hardcode_action_F77
23554
23555 # Whether we should hardcode library paths into libraries.
23556 hardcode_into_libs=$hardcode_into_libs
23557
23558 # Flag to hardcode \$libdir into a binary during linking.
23559 # This must work even if \$libdir does not exist.
23560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23561
23562 # If ld is used when linking, flag to hardcode \$libdir into
23563 # a binary during linking. This must work even if \$libdir does
23564 # not exist.
23565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23566
23567 # Whether we need a single -rpath flag with a separated argument.
23568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23569
23570 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23571 # resulting binary.
23572 hardcode_direct=$hardcode_direct_F77
23573
23574 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23575 # resulting binary.
23576 hardcode_minus_L=$hardcode_minus_L_F77
23577
23578 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23579 # the resulting binary.
23580 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23581
23582 # Set to yes if building a shared library automatically hardcodes DIR into the library
23583 # and all subsequent libraries and executables linked against it.
23584 hardcode_automatic=$hardcode_automatic_F77
23585
23586 # Variables whose values should be saved in libtool wrapper scripts and
23587 # restored at relink time.
23588 variables_saved_for_relink="$variables_saved_for_relink"
23589
23590 # Whether libtool must link a program against all its dependency libraries.
23591 link_all_deplibs=$link_all_deplibs_F77
23592
23593 # Compile-time system search path for libraries
23594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23595
23596 # Run-time system search path for libraries
23597 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23598
23599 # Fix the shell variable \$srcfile for the compiler.
23600 fix_srcfile_path="$fix_srcfile_path_F77"
23601
23602 # Set to yes if exported symbols are required.
23603 always_export_symbols=$always_export_symbols_F77
23604
23605 # The commands to list exported symbols.
23606 export_symbols_cmds=$lt_export_symbols_cmds_F77
23607
23608 # The commands to extract the exported symbol list from a shared archive.
23609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23610
23611 # Symbols that should not be listed in the preloaded symbols.
23612 exclude_expsyms=$lt_exclude_expsyms_F77
23613
23614 # Symbols that must always be exported.
23615 include_expsyms=$lt_include_expsyms_F77
23616
23617 # ### END LIBTOOL TAG CONFIG: $tagname
23618
23619 __EOF__
23620
23621
23622 else
23623   # If there is no Makefile yet, we rely on a make rule to execute
23624   # `config.status --recheck' to rerun these tests and create the
23625   # libtool script then.
23626   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23627   if test -f "$ltmain_in"; then
23628     test -f Makefile && make "$ltmain"
23629   fi
23630 fi
23631
23632
23633 ac_ext=c
23634 ac_cpp='$CPP $CPPFLAGS'
23635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23638
23639 CC="$lt_save_CC"
23640
23641         else
23642           tagname=""
23643         fi
23644         ;;
23645
23646       GCJ)
23647         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23648           ac_ext=c
23649 ac_cpp='$CPP $CPPFLAGS'
23650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23653
23654
23655 # Source file extension for Java test sources.
23656 ac_ext=java
23657
23658 # Object file extension for compiled Java test sources.
23659 objext=o
23660 objext_GCJ=$objext
23661
23662 # Code to be used in simple compile tests
23663 lt_simple_compile_test_code="class foo {}\n"
23664
23665 # Code to be used in simple link tests
23666 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23667
23668 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23669
23670 # If no C compiler was specified, use CC.
23671 LTCC=${LTCC-"$CC"}
23672
23673 # If no C compiler flags were specified, use CFLAGS.
23674 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23675
23676 # Allow CC to be a program name with arguments.
23677 compiler=$CC
23678
23679
23680 # save warnings/boilerplate of simple test code
23681 ac_outfile=conftest.$ac_objext
23682 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23683 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23684 _lt_compiler_boilerplate=`cat conftest.err`
23685 $rm conftest*
23686
23687 ac_outfile=conftest.$ac_objext
23688 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23689 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23690 _lt_linker_boilerplate=`cat conftest.err`
23691 $rm conftest*
23692
23693
23694 # Allow CC to be a program name with arguments.
23695 lt_save_CC="$CC"
23696 CC=${GCJ-"gcj"}
23697 compiler=$CC
23698 compiler_GCJ=$CC
23699 for cc_temp in $compiler""; do
23700   case $cc_temp in
23701     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23702     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23703     \-*) ;;
23704     *) break;;
23705   esac
23706 done
23707 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23708
23709
23710 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23711 archive_cmds_need_lc_GCJ=no
23712
23713 old_archive_cmds_GCJ=$old_archive_cmds
23714
23715
23716 lt_prog_compiler_no_builtin_flag_GCJ=
23717
23718 if test "$GCC" = yes; then
23719   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23720
23721
23722 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23723 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23724 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23725   echo $ECHO_N "(cached) $ECHO_C" >&6
23726 else
23727   lt_cv_prog_compiler_rtti_exceptions=no
23728   ac_outfile=conftest.$ac_objext
23729    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23730    lt_compiler_flag="-fno-rtti -fno-exceptions"
23731    # Insert the option either (1) after the last *FLAGS variable, or
23732    # (2) before a word containing "conftest.", or (3) at the end.
23733    # Note that $ac_compile itself does not contain backslashes and begins
23734    # with a dollar sign (not a hyphen), so the echo should work correctly.
23735    # The option is referenced via a variable to avoid confusing sed.
23736    lt_compile=`echo "$ac_compile" | $SED \
23737    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23738    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23739    -e 's:$: $lt_compiler_flag:'`
23740    (eval echo "\"\$as_me:23740: $lt_compile\"" >&5)
23741    (eval "$lt_compile" 2>conftest.err)
23742    ac_status=$?
23743    cat conftest.err >&5
23744    echo "$as_me:23744: \$? = $ac_status" >&5
23745    if (exit $ac_status) && test -s "$ac_outfile"; then
23746      # The compiler can only warn and ignore the option if not recognized
23747      # So say no if there are warnings other than the usual output.
23748      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23749      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23750      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23751        lt_cv_prog_compiler_rtti_exceptions=yes
23752      fi
23753    fi
23754    $rm conftest*
23755
23756 fi
23757 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23758 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23759
23760 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23761     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23762 else
23763     :
23764 fi
23765
23766 fi
23767
23768 lt_prog_compiler_wl_GCJ=
23769 lt_prog_compiler_pic_GCJ=
23770 lt_prog_compiler_static_GCJ=
23771
23772 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23773 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23774
23775   if test "$GCC" = yes; then
23776     lt_prog_compiler_wl_GCJ='-Wl,'
23777     lt_prog_compiler_static_GCJ='-static'
23778
23779     case $host_os in
23780       aix*)
23781       # All AIX code is PIC.
23782       if test "$host_cpu" = ia64; then
23783         # AIX 5 now supports IA64 processor
23784         lt_prog_compiler_static_GCJ='-Bstatic'
23785       fi
23786       ;;
23787
23788     amigaos*)
23789       # FIXME: we need at least 68020 code to build shared libraries, but
23790       # adding the `-m68020' flag to GCC prevents building anything better,
23791       # like `-m68040'.
23792       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23793       ;;
23794
23795     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23796       # PIC is the default for these OSes.
23797       ;;
23798
23799     mingw* | pw32* | os2*)
23800       # This hack is so that the source file can tell whether it is being
23801       # built for inclusion in a dll (and should export symbols for example).
23802       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23803       ;;
23804
23805     darwin* | rhapsody*)
23806       # PIC is the default on this platform
23807       # Common symbols not allowed in MH_DYLIB files
23808       lt_prog_compiler_pic_GCJ='-fno-common'
23809       ;;
23810
23811     interix3*)
23812       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23813       # Instead, we relocate shared libraries at runtime.
23814       ;;
23815
23816     msdosdjgpp*)
23817       # Just because we use GCC doesn't mean we suddenly get shared libraries
23818       # on systems that don't support them.
23819       lt_prog_compiler_can_build_shared_GCJ=no
23820       enable_shared=no
23821       ;;
23822
23823     sysv4*MP*)
23824       if test -d /usr/nec; then
23825         lt_prog_compiler_pic_GCJ=-Kconform_pic
23826       fi
23827       ;;
23828
23829     hpux*)
23830       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23831       # not for PA HP-UX.
23832       case $host_cpu in
23833       hppa*64*|ia64*)
23834         # +Z the default
23835         ;;
23836       *)
23837         lt_prog_compiler_pic_GCJ='-fPIC'
23838         ;;
23839       esac
23840       ;;
23841
23842     *)
23843       lt_prog_compiler_pic_GCJ='-fPIC'
23844       ;;
23845     esac
23846   else
23847     # PORTME Check for flag to pass linker flags through the system compiler.
23848     case $host_os in
23849     aix*)
23850       lt_prog_compiler_wl_GCJ='-Wl,'
23851       if test "$host_cpu" = ia64; then
23852         # AIX 5 now supports IA64 processor
23853         lt_prog_compiler_static_GCJ='-Bstatic'
23854       else
23855         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23856       fi
23857       ;;
23858       darwin*)
23859         # PIC is the default on this platform
23860         # Common symbols not allowed in MH_DYLIB files
23861        case $cc_basename in
23862          xlc*)
23863          lt_prog_compiler_pic_GCJ='-qnocommon'
23864          lt_prog_compiler_wl_GCJ='-Wl,'
23865          ;;
23866        esac
23867        ;;
23868
23869     mingw* | pw32* | os2*)
23870       # This hack is so that the source file can tell whether it is being
23871       # built for inclusion in a dll (and should export symbols for example).
23872       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23873       ;;
23874
23875     hpux9* | hpux10* | hpux11*)
23876       lt_prog_compiler_wl_GCJ='-Wl,'
23877       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23878       # not for PA HP-UX.
23879       case $host_cpu in
23880       hppa*64*|ia64*)
23881         # +Z the default
23882         ;;
23883       *)
23884         lt_prog_compiler_pic_GCJ='+Z'
23885         ;;
23886       esac
23887       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23888       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23889       ;;
23890
23891     irix5* | irix6* | nonstopux*)
23892       lt_prog_compiler_wl_GCJ='-Wl,'
23893       # PIC (with -KPIC) is the default.
23894       lt_prog_compiler_static_GCJ='-non_shared'
23895       ;;
23896
23897     newsos6)
23898       lt_prog_compiler_pic_GCJ='-KPIC'
23899       lt_prog_compiler_static_GCJ='-Bstatic'
23900       ;;
23901
23902     linux*)
23903       case $cc_basename in
23904       icc* | ecc*)
23905         lt_prog_compiler_wl_GCJ='-Wl,'
23906         lt_prog_compiler_pic_GCJ='-KPIC'
23907         lt_prog_compiler_static_GCJ='-static'
23908         ;;
23909       pgcc* | pgf77* | pgf90* | pgf95*)
23910         # Portland Group compilers (*not* the Pentium gcc compiler,
23911         # which looks to be a dead project)
23912         lt_prog_compiler_wl_GCJ='-Wl,'
23913         lt_prog_compiler_pic_GCJ='-fpic'
23914         lt_prog_compiler_static_GCJ='-Bstatic'
23915         ;;
23916       ccc*)
23917         lt_prog_compiler_wl_GCJ='-Wl,'
23918         # All Alpha code is PIC.
23919         lt_prog_compiler_static_GCJ='-non_shared'
23920         ;;
23921       esac
23922       ;;
23923
23924     osf3* | osf4* | osf5*)
23925       lt_prog_compiler_wl_GCJ='-Wl,'
23926       # All OSF/1 code is PIC.
23927       lt_prog_compiler_static_GCJ='-non_shared'
23928       ;;
23929
23930     solaris*)
23931       lt_prog_compiler_pic_GCJ='-KPIC'
23932       lt_prog_compiler_static_GCJ='-Bstatic'
23933       case $cc_basename in
23934       f77* | f90* | f95*)
23935         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23936       *)
23937         lt_prog_compiler_wl_GCJ='-Wl,';;
23938       esac
23939       ;;
23940
23941     sunos4*)
23942       lt_prog_compiler_wl_GCJ='-Qoption ld '
23943       lt_prog_compiler_pic_GCJ='-PIC'
23944       lt_prog_compiler_static_GCJ='-Bstatic'
23945       ;;
23946
23947     sysv4 | sysv4.2uw2* | sysv4.3*)
23948       lt_prog_compiler_wl_GCJ='-Wl,'
23949       lt_prog_compiler_pic_GCJ='-KPIC'
23950       lt_prog_compiler_static_GCJ='-Bstatic'
23951       ;;
23952
23953     sysv4*MP*)
23954       if test -d /usr/nec ;then
23955         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23956         lt_prog_compiler_static_GCJ='-Bstatic'
23957       fi
23958       ;;
23959
23960     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23961       lt_prog_compiler_wl_GCJ='-Wl,'
23962       lt_prog_compiler_pic_GCJ='-KPIC'
23963       lt_prog_compiler_static_GCJ='-Bstatic'
23964       ;;
23965
23966     unicos*)
23967       lt_prog_compiler_wl_GCJ='-Wl,'
23968       lt_prog_compiler_can_build_shared_GCJ=no
23969       ;;
23970
23971     uts4*)
23972       lt_prog_compiler_pic_GCJ='-pic'
23973       lt_prog_compiler_static_GCJ='-Bstatic'
23974       ;;
23975
23976     *)
23977       lt_prog_compiler_can_build_shared_GCJ=no
23978       ;;
23979     esac
23980   fi
23981
23982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23983 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23984
23985 #
23986 # Check to make sure the PIC flag actually works.
23987 #
23988 if test -n "$lt_prog_compiler_pic_GCJ"; then
23989
23990 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23991 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23992 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23993   echo $ECHO_N "(cached) $ECHO_C" >&6
23994 else
23995   lt_prog_compiler_pic_works_GCJ=no
23996   ac_outfile=conftest.$ac_objext
23997    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23998    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23999    # Insert the option either (1) after the last *FLAGS variable, or
24000    # (2) before a word containing "conftest.", or (3) at the end.
24001    # Note that $ac_compile itself does not contain backslashes and begins
24002    # with a dollar sign (not a hyphen), so the echo should work correctly.
24003    # The option is referenced via a variable to avoid confusing sed.
24004    lt_compile=`echo "$ac_compile" | $SED \
24005    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24006    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24007    -e 's:$: $lt_compiler_flag:'`
24008    (eval echo "\"\$as_me:24008: $lt_compile\"" >&5)
24009    (eval "$lt_compile" 2>conftest.err)
24010    ac_status=$?
24011    cat conftest.err >&5
24012    echo "$as_me:24012: \$? = $ac_status" >&5
24013    if (exit $ac_status) && test -s "$ac_outfile"; then
24014      # The compiler can only warn and ignore the option if not recognized
24015      # So say no if there are warnings other than the usual output.
24016      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24017      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24018      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24019        lt_prog_compiler_pic_works_GCJ=yes
24020      fi
24021    fi
24022    $rm conftest*
24023
24024 fi
24025 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24026 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24027
24028 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24029     case $lt_prog_compiler_pic_GCJ in
24030      "" | " "*) ;;
24031      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24032      esac
24033 else
24034     lt_prog_compiler_pic_GCJ=
24035      lt_prog_compiler_can_build_shared_GCJ=no
24036 fi
24037
24038 fi
24039 case $host_os in
24040   # For platforms which do not support PIC, -DPIC is meaningless:
24041   *djgpp*)
24042     lt_prog_compiler_pic_GCJ=
24043     ;;
24044   *)
24045     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24046     ;;
24047 esac
24048
24049 #
24050 # Check to make sure the static flag actually works.
24051 #
24052 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24053 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24054 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24055 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24056   echo $ECHO_N "(cached) $ECHO_C" >&6
24057 else
24058   lt_prog_compiler_static_works_GCJ=no
24059    save_LDFLAGS="$LDFLAGS"
24060    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24061    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24062    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24063      # The linker can only warn and ignore the option if not recognized
24064      # So say no if there are warnings
24065      if test -s conftest.err; then
24066        # Append any errors to the config.log.
24067        cat conftest.err 1>&5
24068        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24069        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24070        if diff conftest.exp conftest.er2 >/dev/null; then
24071          lt_prog_compiler_static_works_GCJ=yes
24072        fi
24073      else
24074        lt_prog_compiler_static_works_GCJ=yes
24075      fi
24076    fi
24077    $rm conftest*
24078    LDFLAGS="$save_LDFLAGS"
24079
24080 fi
24081 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24082 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24083
24084 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24085     :
24086 else
24087     lt_prog_compiler_static_GCJ=
24088 fi
24089
24090
24091 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24092 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24093 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24094   echo $ECHO_N "(cached) $ECHO_C" >&6
24095 else
24096   lt_cv_prog_compiler_c_o_GCJ=no
24097    $rm -r conftest 2>/dev/null
24098    mkdir conftest
24099    cd conftest
24100    mkdir out
24101    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24102
24103    lt_compiler_flag="-o out/conftest2.$ac_objext"
24104    # Insert the option either (1) after the last *FLAGS variable, or
24105    # (2) before a word containing "conftest.", or (3) at the end.
24106    # Note that $ac_compile itself does not contain backslashes and begins
24107    # with a dollar sign (not a hyphen), so the echo should work correctly.
24108    lt_compile=`echo "$ac_compile" | $SED \
24109    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24110    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24111    -e 's:$: $lt_compiler_flag:'`
24112    (eval echo "\"\$as_me:24112: $lt_compile\"" >&5)
24113    (eval "$lt_compile" 2>out/conftest.err)
24114    ac_status=$?
24115    cat out/conftest.err >&5
24116    echo "$as_me:24116: \$? = $ac_status" >&5
24117    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24118    then
24119      # The compiler can only warn and ignore the option if not recognized
24120      # So say no if there are warnings
24121      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24122      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24123      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24124        lt_cv_prog_compiler_c_o_GCJ=yes
24125      fi
24126    fi
24127    chmod u+w . 2>&5
24128    $rm conftest*
24129    # SGI C++ compiler will create directory out/ii_files/ for
24130    # template instantiation
24131    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24132    $rm out/* && rmdir out
24133    cd ..
24134    rmdir conftest
24135    $rm conftest*
24136
24137 fi
24138 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24139 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24140
24141
24142 hard_links="nottested"
24143 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24144   # do not overwrite the value of need_locks provided by the user
24145   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24146 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24147   hard_links=yes
24148   $rm conftest*
24149   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24150   touch conftest.a
24151   ln conftest.a conftest.b 2>&5 || hard_links=no
24152   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24153   { echo "$as_me:$LINENO: result: $hard_links" >&5
24154 echo "${ECHO_T}$hard_links" >&6; }
24155   if test "$hard_links" = no; then
24156     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24157 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24158     need_locks=warn
24159   fi
24160 else
24161   need_locks=no
24162 fi
24163
24164 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24165 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24166
24167   runpath_var=
24168   allow_undefined_flag_GCJ=
24169   enable_shared_with_static_runtimes_GCJ=no
24170   archive_cmds_GCJ=
24171   archive_expsym_cmds_GCJ=
24172   old_archive_From_new_cmds_GCJ=
24173   old_archive_from_expsyms_cmds_GCJ=
24174   export_dynamic_flag_spec_GCJ=
24175   whole_archive_flag_spec_GCJ=
24176   thread_safe_flag_spec_GCJ=
24177   hardcode_libdir_flag_spec_GCJ=
24178   hardcode_libdir_flag_spec_ld_GCJ=
24179   hardcode_libdir_separator_GCJ=
24180   hardcode_direct_GCJ=no
24181   hardcode_minus_L_GCJ=no
24182   hardcode_shlibpath_var_GCJ=unsupported
24183   link_all_deplibs_GCJ=unknown
24184   hardcode_automatic_GCJ=no
24185   module_cmds_GCJ=
24186   module_expsym_cmds_GCJ=
24187   always_export_symbols_GCJ=no
24188   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24189   # include_expsyms should be a list of space-separated symbols to be *always*
24190   # included in the symbol list
24191   include_expsyms_GCJ=
24192   # exclude_expsyms can be an extended regexp of symbols to exclude
24193   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24194   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24195   # as well as any symbol that contains `d'.
24196   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24197   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24198   # platforms (ab)use it in PIC code, but their linkers get confused if
24199   # the symbol is explicitly referenced.  Since portable code cannot
24200   # rely on this symbol name, it's probably fine to never include it in
24201   # preloaded symbol tables.
24202   extract_expsyms_cmds=
24203   # Just being paranoid about ensuring that cc_basename is set.
24204   for cc_temp in $compiler""; do
24205   case $cc_temp in
24206     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24207     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24208     \-*) ;;
24209     *) break;;
24210   esac
24211 done
24212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24213
24214   case $host_os in
24215   cygwin* | mingw* | pw32*)
24216     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24217     # When not using gcc, we currently assume that we are using
24218     # Microsoft Visual C++.
24219     if test "$GCC" != yes; then
24220       with_gnu_ld=no
24221     fi
24222     ;;
24223   interix*)
24224     # we just hope/assume this is gcc and not c89 (= MSVC++)
24225     with_gnu_ld=yes
24226     ;;
24227   openbsd*)
24228     with_gnu_ld=no
24229     ;;
24230   esac
24231
24232   ld_shlibs_GCJ=yes
24233   if test "$with_gnu_ld" = yes; then
24234     # If archive_cmds runs LD, not CC, wlarc should be empty
24235     wlarc='${wl}'
24236
24237     # Set some defaults for GNU ld with shared library support. These
24238     # are reset later if shared libraries are not supported. Putting them
24239     # here allows them to be overridden if necessary.
24240     runpath_var=LD_RUN_PATH
24241     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24242     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24243     # ancient GNU ld didn't support --whole-archive et. al.
24244     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24245         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24246       else
24247         whole_archive_flag_spec_GCJ=
24248     fi
24249     supports_anon_versioning=no
24250     case `$LD -v 2>/dev/null` in
24251       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24252       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24253       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24254       *\ 2.11.*) ;; # other 2.11 versions
24255       *) supports_anon_versioning=yes ;;
24256     esac
24257
24258     # See if GNU ld supports shared libraries.
24259     case $host_os in
24260     aix3* | aix4* | aix5*)
24261       # On AIX/PPC, the GNU linker is very broken
24262       if test "$host_cpu" != ia64; then
24263         ld_shlibs_GCJ=no
24264         cat <<EOF 1>&2
24265
24266 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24267 *** to be unable to reliably create shared libraries on AIX.
24268 *** Therefore, libtool is disabling shared libraries support.  If you
24269 *** really care for shared libraries, you may want to modify your PATH
24270 *** so that a non-GNU linker is found, and then restart.
24271
24272 EOF
24273       fi
24274       ;;
24275
24276     amigaos*)
24277       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)'
24278       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24279       hardcode_minus_L_GCJ=yes
24280
24281       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24282       # that the semantics of dynamic libraries on AmigaOS, at least up
24283       # to version 4, is to share data among multiple programs linked
24284       # with the same dynamic library.  Since this doesn't match the
24285       # behavior of shared libraries on other platforms, we can't use
24286       # them.
24287       ld_shlibs_GCJ=no
24288       ;;
24289
24290     beos*)
24291       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24292         allow_undefined_flag_GCJ=unsupported
24293         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24294         # support --undefined.  This deserves some investigation.  FIXME
24295         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24296       else
24297         ld_shlibs_GCJ=no
24298       fi
24299       ;;
24300
24301     cygwin* | mingw* | pw32*)
24302       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24303       # as there is no search path for DLLs.
24304       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24305       allow_undefined_flag_GCJ=unsupported
24306       always_export_symbols_GCJ=no
24307       enable_shared_with_static_runtimes_GCJ=yes
24308       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24309
24310       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24311         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24312         # If the export-symbols file already is a .def file (1st line
24313         # is EXPORTS), use it as is; otherwise, prepend...
24314         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24315           cp $export_symbols $output_objdir/$soname.def;
24316         else
24317           echo EXPORTS > $output_objdir/$soname.def;
24318           cat $export_symbols >> $output_objdir/$soname.def;
24319         fi~
24320         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24321       else
24322         ld_shlibs_GCJ=no
24323       fi
24324       ;;
24325
24326     interix3*)
24327       hardcode_direct_GCJ=no
24328       hardcode_shlibpath_var_GCJ=no
24329       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24330       export_dynamic_flag_spec_GCJ='${wl}-E'
24331       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24332       # Instead, shared libraries are loaded at an image base (0x10000000 by
24333       # default) and relocated if they conflict, which is a slow very memory
24334       # consuming and fragmenting process.  To avoid this, we pick a random,
24335       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24336       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24337       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'
24338       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'
24339       ;;
24340
24341     linux*)
24342       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24343         tmp_addflag=
24344         case $cc_basename,$host_cpu in
24345         pgcc*)                          # Portland Group C compiler
24346           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'
24347           tmp_addflag=' $pic_flag'
24348           ;;
24349         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24350           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'
24351           tmp_addflag=' $pic_flag -Mnomain' ;;
24352         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24353           tmp_addflag=' -i_dynamic' ;;
24354         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24355           tmp_addflag=' -i_dynamic -nofor_main' ;;
24356         ifc* | ifort*)                  # Intel Fortran compiler
24357           tmp_addflag=' -nofor_main' ;;
24358         esac
24359         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24360
24361         if test $supports_anon_versioning = yes; then
24362           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24363   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24364   $echo "local: *; };" >> $output_objdir/$libname.ver~
24365           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24366         fi
24367       else
24368         ld_shlibs_GCJ=no
24369       fi
24370       ;;
24371
24372     netbsd*)
24373       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24374         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24375         wlarc=
24376       else
24377         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24378         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24379       fi
24380       ;;
24381
24382     solaris*)
24383       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24384         ld_shlibs_GCJ=no
24385         cat <<EOF 1>&2
24386
24387 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24388 *** create shared libraries on Solaris systems.  Therefore, libtool
24389 *** is disabling shared libraries support.  We urge you to upgrade GNU
24390 *** binutils to release 2.9.1 or newer.  Another option is to modify
24391 *** your PATH or compiler configuration so that the native linker is
24392 *** used, and then restart.
24393
24394 EOF
24395       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24396         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24397         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24398       else
24399         ld_shlibs_GCJ=no
24400       fi
24401       ;;
24402
24403     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24404       case `$LD -v 2>&1` in
24405         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24406         ld_shlibs_GCJ=no
24407         cat <<_LT_EOF 1>&2
24408
24409 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24410 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24411 *** is disabling shared libraries support.  We urge you to upgrade GNU
24412 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24413 *** your PATH or compiler configuration so that the native linker is
24414 *** used, and then restart.
24415
24416 _LT_EOF
24417         ;;
24418         *)
24419           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24420             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24421             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24422             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24423           else
24424             ld_shlibs_GCJ=no
24425           fi
24426         ;;
24427       esac
24428       ;;
24429
24430     sunos4*)
24431       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24432       wlarc=
24433       hardcode_direct_GCJ=yes
24434       hardcode_shlibpath_var_GCJ=no
24435       ;;
24436
24437     *)
24438       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24439         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24440         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24441       else
24442         ld_shlibs_GCJ=no
24443       fi
24444       ;;
24445     esac
24446
24447     if test "$ld_shlibs_GCJ" = no; then
24448       runpath_var=
24449       hardcode_libdir_flag_spec_GCJ=
24450       export_dynamic_flag_spec_GCJ=
24451       whole_archive_flag_spec_GCJ=
24452     fi
24453   else
24454     # PORTME fill in a description of your system's linker (not GNU ld)
24455     case $host_os in
24456     aix3*)
24457       allow_undefined_flag_GCJ=unsupported
24458       always_export_symbols_GCJ=yes
24459       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'
24460       # Note: this linker hardcodes the directories in LIBPATH if there
24461       # are no directories specified by -L.
24462       hardcode_minus_L_GCJ=yes
24463       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24464         # Neither direct hardcoding nor static linking is supported with a
24465         # broken collect2.
24466         hardcode_direct_GCJ=unsupported
24467       fi
24468       ;;
24469
24470     aix4* | aix5*)
24471       if test "$host_cpu" = ia64; then
24472         # On IA64, the linker does run time linking by default, so we don't
24473         # have to do anything special.
24474         aix_use_runtimelinking=no
24475         exp_sym_flag='-Bexport'
24476         no_entry_flag=""
24477       else
24478         # If we're using GNU nm, then we don't want the "-C" option.
24479         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24480         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24481           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'
24482         else
24483           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'
24484         fi
24485         aix_use_runtimelinking=no
24486
24487         # Test if we are trying to use run time linking or normal
24488         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24489         # need to do runtime linking.
24490         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24491           for ld_flag in $LDFLAGS; do
24492           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24493             aix_use_runtimelinking=yes
24494             break
24495           fi
24496           done
24497           ;;
24498         esac
24499
24500         exp_sym_flag='-bexport'
24501         no_entry_flag='-bnoentry'
24502       fi
24503
24504       # When large executables or shared objects are built, AIX ld can
24505       # have problems creating the table of contents.  If linking a library
24506       # or program results in "error TOC overflow" add -mminimal-toc to
24507       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24508       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24509
24510       archive_cmds_GCJ=''
24511       hardcode_direct_GCJ=yes
24512       hardcode_libdir_separator_GCJ=':'
24513       link_all_deplibs_GCJ=yes
24514
24515       if test "$GCC" = yes; then
24516         case $host_os in aix4.[012]|aix4.[012].*)
24517         # We only want to do this on AIX 4.2 and lower, the check
24518         # below for broken collect2 doesn't work under 4.3+
24519           collect2name=`${CC} -print-prog-name=collect2`
24520           if test -f "$collect2name" && \
24521            strings "$collect2name" | grep resolve_lib_name >/dev/null
24522           then
24523           # We have reworked collect2
24524           hardcode_direct_GCJ=yes
24525           else
24526           # We have old collect2
24527           hardcode_direct_GCJ=unsupported
24528           # It fails to find uninstalled libraries when the uninstalled
24529           # path is not listed in the libpath.  Setting hardcode_minus_L
24530           # to unsupported forces relinking
24531           hardcode_minus_L_GCJ=yes
24532           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24533           hardcode_libdir_separator_GCJ=
24534           fi
24535           ;;
24536         esac
24537         shared_flag='-shared'
24538         if test "$aix_use_runtimelinking" = yes; then
24539           shared_flag="$shared_flag "'${wl}-G'
24540         fi
24541       else
24542         # not using gcc
24543         if test "$host_cpu" = ia64; then
24544         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24545         # chokes on -Wl,-G. The following line is correct:
24546           shared_flag='-G'
24547         else
24548           if test "$aix_use_runtimelinking" = yes; then
24549             shared_flag='${wl}-G'
24550           else
24551             shared_flag='${wl}-bM:SRE'
24552           fi
24553         fi
24554       fi
24555
24556       # It seems that -bexpall does not export symbols beginning with
24557       # underscore (_), so it is better to generate a list of symbols to export.
24558       always_export_symbols_GCJ=yes
24559       if test "$aix_use_runtimelinking" = yes; then
24560         # Warning - without using the other runtime loading flags (-brtl),
24561         # -berok will link without error, but may produce a broken library.
24562         allow_undefined_flag_GCJ='-berok'
24563        # Determine the default libpath from the value encoded in an empty executable.
24564        cat >conftest.$ac_ext <<_ACEOF
24565 /* confdefs.h.  */
24566 _ACEOF
24567 cat confdefs.h >>conftest.$ac_ext
24568 cat >>conftest.$ac_ext <<_ACEOF
24569 /* end confdefs.h.  */
24570
24571 int
24572 main ()
24573 {
24574
24575   ;
24576   return 0;
24577 }
24578 _ACEOF
24579 rm -f conftest.$ac_objext conftest$ac_exeext
24580 if { (ac_try="$ac_link"
24581 case "(($ac_try" in
24582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583   *) ac_try_echo=$ac_try;;
24584 esac
24585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24586   (eval "$ac_link") 2>conftest.er1
24587   ac_status=$?
24588   grep -v '^ *+' conftest.er1 >conftest.err
24589   rm -f conftest.er1
24590   cat conftest.err >&5
24591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592   (exit $ac_status); } &&
24593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24594   { (case "(($ac_try" in
24595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596   *) ac_try_echo=$ac_try;;
24597 esac
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599   (eval "$ac_try") 2>&5
24600   ac_status=$?
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); }; } &&
24603          { ac_try='test -s conftest$ac_exeext'
24604   { (case "(($ac_try" in
24605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24606   *) ac_try_echo=$ac_try;;
24607 esac
24608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24609   (eval "$ac_try") 2>&5
24610   ac_status=$?
24611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612   (exit $ac_status); }; }; then
24613
24614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24615 }'`
24616 # Check for a 64-bit object if we didn't find anything.
24617 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; }
24618 }'`; fi
24619 else
24620   echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24622
24623
24624 fi
24625
24626 rm -f core conftest.err conftest.$ac_objext \
24627       conftest$ac_exeext conftest.$ac_ext
24628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24629
24630        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24631         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"
24632        else
24633         if test "$host_cpu" = ia64; then
24634           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24635           allow_undefined_flag_GCJ="-z nodefs"
24636           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"
24637         else
24638          # Determine the default libpath from the value encoded in an empty executable.
24639          cat >conftest.$ac_ext <<_ACEOF
24640 /* confdefs.h.  */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h.  */
24645
24646 int
24647 main ()
24648 {
24649
24650   ;
24651   return 0;
24652 }
24653 _ACEOF
24654 rm -f conftest.$ac_objext conftest$ac_exeext
24655 if { (ac_try="$ac_link"
24656 case "(($ac_try" in
24657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658   *) ac_try_echo=$ac_try;;
24659 esac
24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661   (eval "$ac_link") 2>conftest.er1
24662   ac_status=$?
24663   grep -v '^ *+' conftest.er1 >conftest.err
24664   rm -f conftest.er1
24665   cat conftest.err >&5
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); } &&
24668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24669   { (case "(($ac_try" in
24670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671   *) ac_try_echo=$ac_try;;
24672 esac
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674   (eval "$ac_try") 2>&5
24675   ac_status=$?
24676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); }; } &&
24678          { ac_try='test -s conftest$ac_exeext'
24679   { (case "(($ac_try" in
24680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681   *) ac_try_echo=$ac_try;;
24682 esac
24683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24684   (eval "$ac_try") 2>&5
24685   ac_status=$?
24686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687   (exit $ac_status); }; }; then
24688
24689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24690 }'`
24691 # Check for a 64-bit object if we didn't find anything.
24692 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; }
24693 }'`; fi
24694 else
24695   echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24697
24698
24699 fi
24700
24701 rm -f core conftest.err conftest.$ac_objext \
24702       conftest$ac_exeext conftest.$ac_ext
24703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24704
24705          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24706           # Warning - without using the other run time loading flags,
24707           # -berok will link without error, but may produce a broken library.
24708           no_undefined_flag_GCJ=' ${wl}-bernotok'
24709           allow_undefined_flag_GCJ=' ${wl}-berok'
24710           # Exported symbols can be pulled into shared objects from archives
24711           whole_archive_flag_spec_GCJ='$convenience'
24712           archive_cmds_need_lc_GCJ=yes
24713           # This is similar to how AIX traditionally builds its shared libraries.
24714           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'
24715         fi
24716       fi
24717       ;;
24718
24719     amigaos*)
24720       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)'
24721       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24722       hardcode_minus_L_GCJ=yes
24723       # see comment about different semantics on the GNU ld section
24724       ld_shlibs_GCJ=no
24725       ;;
24726
24727     bsdi[45]*)
24728       export_dynamic_flag_spec_GCJ=-rdynamic
24729       ;;
24730
24731     cygwin* | mingw* | pw32*)
24732       # When not using gcc, we currently assume that we are using
24733       # Microsoft Visual C++.
24734       # hardcode_libdir_flag_spec is actually meaningless, as there is
24735       # no search path for DLLs.
24736       hardcode_libdir_flag_spec_GCJ=' '
24737       allow_undefined_flag_GCJ=unsupported
24738       # Tell ltmain to make .lib files, not .a files.
24739       libext=lib
24740       # Tell ltmain to make .dll files, not .so files.
24741       shrext_cmds=".dll"
24742       # FIXME: Setting linknames here is a bad hack.
24743       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24744       # The linker will automatically build a .lib file if we build a DLL.
24745       old_archive_From_new_cmds_GCJ='true'
24746       # FIXME: Should let the user specify the lib program.
24747       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24748       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24749       enable_shared_with_static_runtimes_GCJ=yes
24750       ;;
24751
24752     darwin* | rhapsody*)
24753       case $host_os in
24754         rhapsody* | darwin1.[012])
24755          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24756          ;;
24757        *) # Darwin 1.3 on
24758          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24759            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24760          else
24761            case ${MACOSX_DEPLOYMENT_TARGET} in
24762              10.[012])
24763                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24764                ;;
24765              10.*)
24766                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24767                ;;
24768            esac
24769          fi
24770          ;;
24771       esac
24772       archive_cmds_need_lc_GCJ=no
24773       hardcode_direct_GCJ=no
24774       hardcode_automatic_GCJ=yes
24775       hardcode_shlibpath_var_GCJ=unsupported
24776       whole_archive_flag_spec_GCJ=''
24777       link_all_deplibs_GCJ=yes
24778     if test "$GCC" = yes ; then
24779         output_verbose_link_cmd='echo'
24780         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24781       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24782       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24783       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}'
24784       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}'
24785     else
24786       case $cc_basename in
24787         xlc*)
24788          output_verbose_link_cmd='echo'
24789          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24790          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24791           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24792          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}'
24793           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}'
24794           ;;
24795        *)
24796          ld_shlibs_GCJ=no
24797           ;;
24798       esac
24799     fi
24800       ;;
24801
24802     dgux*)
24803       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24804       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24805       hardcode_shlibpath_var_GCJ=no
24806       ;;
24807
24808     freebsd1*)
24809       ld_shlibs_GCJ=no
24810       ;;
24811
24812     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24813     # support.  Future versions do this automatically, but an explicit c++rt0.o
24814     # does not break anything, and helps significantly (at the cost of a little
24815     # extra space).
24816     freebsd2.2*)
24817       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24818       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24819       hardcode_direct_GCJ=yes
24820       hardcode_shlibpath_var_GCJ=no
24821       ;;
24822
24823     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24824     freebsd2*)
24825       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24826       hardcode_direct_GCJ=yes
24827       hardcode_minus_L_GCJ=yes
24828       hardcode_shlibpath_var_GCJ=no
24829       ;;
24830
24831     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24832     freebsd* | kfreebsd*-gnu | dragonfly*)
24833       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24834       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24835       hardcode_direct_GCJ=yes
24836       hardcode_shlibpath_var_GCJ=no
24837       ;;
24838
24839     hpux9*)
24840       if test "$GCC" = yes; then
24841         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'
24842       else
24843         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'
24844       fi
24845       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24846       hardcode_libdir_separator_GCJ=:
24847       hardcode_direct_GCJ=yes
24848
24849       # hardcode_minus_L: Not really in the search PATH,
24850       # but as the default location of the library.
24851       hardcode_minus_L_GCJ=yes
24852       export_dynamic_flag_spec_GCJ='${wl}-E'
24853       ;;
24854
24855     hpux10*)
24856       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24857         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24858       else
24859         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24860       fi
24861       if test "$with_gnu_ld" = no; then
24862         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24863         hardcode_libdir_separator_GCJ=:
24864
24865         hardcode_direct_GCJ=yes
24866         export_dynamic_flag_spec_GCJ='${wl}-E'
24867
24868         # hardcode_minus_L: Not really in the search PATH,
24869         # but as the default location of the library.
24870         hardcode_minus_L_GCJ=yes
24871       fi
24872       ;;
24873
24874     hpux11*)
24875       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24876         case $host_cpu in
24877         hppa*64*)
24878           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24879           ;;
24880         ia64*)
24881           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24882           ;;
24883         *)
24884           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24885           ;;
24886         esac
24887       else
24888         case $host_cpu in
24889         hppa*64*)
24890           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891           ;;
24892         ia64*)
24893           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24894           ;;
24895         *)
24896           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24897           ;;
24898         esac
24899       fi
24900       if test "$with_gnu_ld" = no; then
24901         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24902         hardcode_libdir_separator_GCJ=:
24903
24904         case $host_cpu in
24905         hppa*64*|ia64*)
24906           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24907           hardcode_direct_GCJ=no
24908           hardcode_shlibpath_var_GCJ=no
24909           ;;
24910         *)
24911           hardcode_direct_GCJ=yes
24912           export_dynamic_flag_spec_GCJ='${wl}-E'
24913
24914           # hardcode_minus_L: Not really in the search PATH,
24915           # but as the default location of the library.
24916           hardcode_minus_L_GCJ=yes
24917           ;;
24918         esac
24919       fi
24920       ;;
24921
24922     irix5* | irix6* | nonstopux*)
24923       if test "$GCC" = yes; then
24924         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'
24925       else
24926         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'
24927         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24928       fi
24929       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24930       hardcode_libdir_separator_GCJ=:
24931       link_all_deplibs_GCJ=yes
24932       ;;
24933
24934     netbsd*)
24935       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24936         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24937       else
24938         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24939       fi
24940       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24941       hardcode_direct_GCJ=yes
24942       hardcode_shlibpath_var_GCJ=no
24943       ;;
24944
24945     newsos6)
24946       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24947       hardcode_direct_GCJ=yes
24948       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24949       hardcode_libdir_separator_GCJ=:
24950       hardcode_shlibpath_var_GCJ=no
24951       ;;
24952
24953     openbsd*)
24954       hardcode_direct_GCJ=yes
24955       hardcode_shlibpath_var_GCJ=no
24956       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24957         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24958         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24959         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24960         export_dynamic_flag_spec_GCJ='${wl}-E'
24961       else
24962        case $host_os in
24963          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24964            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24965            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24966            ;;
24967          *)
24968            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24969            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24970            ;;
24971        esac
24972       fi
24973       ;;
24974
24975     os2*)
24976       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24977       hardcode_minus_L_GCJ=yes
24978       allow_undefined_flag_GCJ=unsupported
24979       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'
24980       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24981       ;;
24982
24983     osf3*)
24984       if test "$GCC" = yes; then
24985         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24986         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'
24987       else
24988         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24989         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'
24990       fi
24991       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24992       hardcode_libdir_separator_GCJ=:
24993       ;;
24994
24995     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24996       if test "$GCC" = yes; then
24997         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24998         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'
24999         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25000       else
25001         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25002         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'
25003         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~
25004         $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'
25005
25006         # Both c and cxx compiler support -rpath directly
25007         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25008       fi
25009       hardcode_libdir_separator_GCJ=:
25010       ;;
25011
25012     solaris*)
25013       no_undefined_flag_GCJ=' -z text'
25014       if test "$GCC" = yes; then
25015         wlarc='${wl}'
25016         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25017         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25018           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25019       else
25020         wlarc=''
25021         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25022         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25023         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25024       fi
25025       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25026       hardcode_shlibpath_var_GCJ=no
25027       case $host_os in
25028       solaris2.[0-5] | solaris2.[0-5].*) ;;
25029       *)
25030         # The compiler driver will combine linker options so we
25031         # cannot just pass the convience library names through
25032         # without $wl, iff we do not link with $LD.
25033         # Luckily, gcc supports the same syntax we need for Sun Studio.
25034         # Supported since Solaris 2.6 (maybe 2.5.1?)
25035         case $wlarc in
25036         '')
25037           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25038         *)
25039           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' ;;
25040         esac ;;
25041       esac
25042       link_all_deplibs_GCJ=yes
25043       ;;
25044
25045     sunos4*)
25046       if test "x$host_vendor" = xsequent; then
25047         # Use $CC to link under sequent, because it throws in some extra .o
25048         # files that make .init and .fini sections work.
25049         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25050       else
25051         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25052       fi
25053       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25054       hardcode_direct_GCJ=yes
25055       hardcode_minus_L_GCJ=yes
25056       hardcode_shlibpath_var_GCJ=no
25057       ;;
25058
25059     sysv4)
25060       case $host_vendor in
25061         sni)
25062           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25063           hardcode_direct_GCJ=yes # is this really true???
25064         ;;
25065         siemens)
25066           ## LD is ld it makes a PLAMLIB
25067           ## CC just makes a GrossModule.
25068           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25069           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25070           hardcode_direct_GCJ=no
25071         ;;
25072         motorola)
25073           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25074           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25075         ;;
25076       esac
25077       runpath_var='LD_RUN_PATH'
25078       hardcode_shlibpath_var_GCJ=no
25079       ;;
25080
25081     sysv4.3*)
25082       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25083       hardcode_shlibpath_var_GCJ=no
25084       export_dynamic_flag_spec_GCJ='-Bexport'
25085       ;;
25086
25087     sysv4*MP*)
25088       if test -d /usr/nec; then
25089         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25090         hardcode_shlibpath_var_GCJ=no
25091         runpath_var=LD_RUN_PATH
25092         hardcode_runpath_var=yes
25093         ld_shlibs_GCJ=yes
25094       fi
25095       ;;
25096
25097     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25098       no_undefined_flag_GCJ='${wl}-z,text'
25099       archive_cmds_need_lc_GCJ=no
25100       hardcode_shlibpath_var_GCJ=no
25101       runpath_var='LD_RUN_PATH'
25102
25103       if test "$GCC" = yes; then
25104         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25105         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25106       else
25107         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25108         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25109       fi
25110       ;;
25111
25112     sysv5* | sco3.2v5* | sco5v6*)
25113       # Note: We can NOT use -z defs as we might desire, because we do not
25114       # link with -lc, and that would cause any symbols used from libc to
25115       # always be unresolved, which means just about no library would
25116       # ever link correctly.  If we're not using GNU ld we use -z text
25117       # though, which does catch some bad symbols but isn't as heavy-handed
25118       # as -z defs.
25119       no_undefined_flag_GCJ='${wl}-z,text'
25120       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25121       archive_cmds_need_lc_GCJ=no
25122       hardcode_shlibpath_var_GCJ=no
25123       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25124       hardcode_libdir_separator_GCJ=':'
25125       link_all_deplibs_GCJ=yes
25126       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25127       runpath_var='LD_RUN_PATH'
25128
25129       if test "$GCC" = yes; then
25130         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25131         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25132       else
25133         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25134         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25135       fi
25136       ;;
25137
25138     uts4*)
25139       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25140       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25141       hardcode_shlibpath_var_GCJ=no
25142       ;;
25143
25144     *)
25145       ld_shlibs_GCJ=no
25146       ;;
25147     esac
25148   fi
25149
25150 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25151 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25152 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25153
25154 #
25155 # Do we need to explicitly link libc?
25156 #
25157 case "x$archive_cmds_need_lc_GCJ" in
25158 x|xyes)
25159   # Assume -lc should be added
25160   archive_cmds_need_lc_GCJ=yes
25161
25162   if test "$enable_shared" = yes && test "$GCC" = yes; then
25163     case $archive_cmds_GCJ in
25164     *'~'*)
25165       # FIXME: we may have to deal with multi-command sequences.
25166       ;;
25167     '$CC '*)
25168       # Test whether the compiler implicitly links with -lc since on some
25169       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25170       # to ld, don't add -lc before -lgcc.
25171       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25172 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25173       $rm conftest*
25174       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25175
25176       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25177   (eval $ac_compile) 2>&5
25178   ac_status=$?
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); } 2>conftest.err; then
25181         soname=conftest
25182         lib=conftest
25183         libobjs=conftest.$ac_objext
25184         deplibs=
25185         wl=$lt_prog_compiler_wl_GCJ
25186         pic_flag=$lt_prog_compiler_pic_GCJ
25187         compiler_flags=-v
25188         linker_flags=-v
25189         verstring=
25190         output_objdir=.
25191         libname=conftest
25192         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25193         allow_undefined_flag_GCJ=
25194         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25195   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25196   ac_status=$?
25197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); }
25199         then
25200           archive_cmds_need_lc_GCJ=no
25201         else
25202           archive_cmds_need_lc_GCJ=yes
25203         fi
25204         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25205       else
25206         cat conftest.err 1>&5
25207       fi
25208       $rm conftest*
25209       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25210 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25211       ;;
25212     esac
25213   fi
25214   ;;
25215 esac
25216
25217 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25219 library_names_spec=
25220 libname_spec='lib$name'
25221 soname_spec=
25222 shrext_cmds=".so"
25223 postinstall_cmds=
25224 postuninstall_cmds=
25225 finish_cmds=
25226 finish_eval=
25227 shlibpath_var=
25228 shlibpath_overrides_runpath=unknown
25229 version_type=none
25230 dynamic_linker="$host_os ld.so"
25231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25232 if test "$GCC" = yes; then
25233   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25234   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25235     # if the path contains ";" then we assume it to be the separator
25236     # otherwise default to the standard path separator (i.e. ":") - it is
25237     # assumed that no part of a normal pathname contains ";" but that should
25238     # okay in the real world where ";" in dirpaths is itself problematic.
25239     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25240   else
25241     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25242   fi
25243 else
25244   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25245 fi
25246 need_lib_prefix=unknown
25247 hardcode_into_libs=no
25248
25249 # when you set need_version to no, make sure it does not cause -set_version
25250 # flags to be left without arguments
25251 need_version=unknown
25252
25253 case $host_os in
25254 aix3*)
25255   version_type=linux
25256   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25257   shlibpath_var=LIBPATH
25258
25259   # AIX 3 has no versioning support, so we append a major version to the name.
25260   soname_spec='${libname}${release}${shared_ext}$major'
25261   ;;
25262
25263 aix4* | aix5*)
25264   version_type=linux
25265   need_lib_prefix=no
25266   need_version=no
25267   hardcode_into_libs=yes
25268   if test "$host_cpu" = ia64; then
25269     # AIX 5 supports IA64
25270     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25271     shlibpath_var=LD_LIBRARY_PATH
25272   else
25273     # With GCC up to 2.95.x, collect2 would create an import file
25274     # for dependence libraries.  The import file would start with
25275     # the line `#! .'.  This would cause the generated library to
25276     # depend on `.', always an invalid library.  This was fixed in
25277     # development snapshots of GCC prior to 3.0.
25278     case $host_os in
25279       aix4 | aix4.[01] | aix4.[01].*)
25280       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25281            echo ' yes '
25282            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25283         :
25284       else
25285         can_build_shared=no
25286       fi
25287       ;;
25288     esac
25289     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25290     # soname into executable. Probably we can add versioning support to
25291     # collect2, so additional links can be useful in future.
25292     if test "$aix_use_runtimelinking" = yes; then
25293       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25294       # instead of lib<name>.a to let people know that these are not
25295       # typical AIX shared libraries.
25296       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25297     else
25298       # We preserve .a as extension for shared libraries through AIX4.2
25299       # and later when we are not doing run time linking.
25300       library_names_spec='${libname}${release}.a $libname.a'
25301       soname_spec='${libname}${release}${shared_ext}$major'
25302     fi
25303     shlibpath_var=LIBPATH
25304   fi
25305   ;;
25306
25307 amigaos*)
25308   library_names_spec='$libname.ixlibrary $libname.a'
25309   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25310   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'
25311   ;;
25312
25313 beos*)
25314   library_names_spec='${libname}${shared_ext}'
25315   dynamic_linker="$host_os ld.so"
25316   shlibpath_var=LIBRARY_PATH
25317   ;;
25318
25319 bsdi[45]*)
25320   version_type=linux
25321   need_version=no
25322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25323   soname_spec='${libname}${release}${shared_ext}$major'
25324   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25325   shlibpath_var=LD_LIBRARY_PATH
25326   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25327   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25328   # the default ld.so.conf also contains /usr/contrib/lib and
25329   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25330   # libtool to hard-code these into programs
25331   ;;
25332
25333 cygwin* | mingw* | pw32*)
25334   version_type=windows
25335   shrext_cmds=".dll"
25336   need_version=no
25337   need_lib_prefix=no
25338
25339   case $GCC,$host_os in
25340   yes,cygwin* | yes,mingw* | yes,pw32*)
25341     library_names_spec='$libname.dll.a'
25342     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25343     postinstall_cmds='base_file=`basename \${file}`~
25344       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25345       dldir=$destdir/`dirname \$dlpath`~
25346       test -d \$dldir || mkdir -p \$dldir~
25347       $install_prog $dir/$dlname \$dldir/$dlname~
25348       chmod a+x \$dldir/$dlname'
25349     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25350       dlpath=$dir/\$dldll~
25351        $rm \$dlpath'
25352     shlibpath_overrides_runpath=yes
25353
25354     case $host_os in
25355     cygwin*)
25356       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25357       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25358       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25359       ;;
25360     mingw*)
25361       # MinGW DLLs use traditional 'lib' prefix
25362       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25363       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25364       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25365         # It is most probably a Windows format PATH printed by
25366         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25367         # path with ; separators, and with drive letters. We can handle the
25368         # drive letters (cygwin fileutils understands them), so leave them,
25369         # especially as we might pass files found there to a mingw objdump,
25370         # which wouldn't understand a cygwinified path. Ahh.
25371         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25372       else
25373         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25374       fi
25375       ;;
25376     pw32*)
25377       # pw32 DLLs use 'pw' prefix rather than 'lib'
25378       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25379       ;;
25380     esac
25381     ;;
25382
25383   *)
25384     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25385     ;;
25386   esac
25387   dynamic_linker='Win32 ld.exe'
25388   # FIXME: first we should search . and the directory the executable is in
25389   shlibpath_var=PATH
25390   ;;
25391
25392 darwin* | rhapsody*)
25393   dynamic_linker="$host_os dyld"
25394   version_type=darwin
25395   need_lib_prefix=no
25396   need_version=no
25397   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25398   soname_spec='${libname}${release}${major}$shared_ext'
25399   shlibpath_overrides_runpath=yes
25400   shlibpath_var=DYLD_LIBRARY_PATH
25401   shrext_cmds='.dylib'
25402   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25403   if test "$GCC" = yes; then
25404     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"`
25405   else
25406     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25407   fi
25408   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25409   ;;
25410
25411 dgux*)
25412   version_type=linux
25413   need_lib_prefix=no
25414   need_version=no
25415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25416   soname_spec='${libname}${release}${shared_ext}$major'
25417   shlibpath_var=LD_LIBRARY_PATH
25418   ;;
25419
25420 freebsd1*)
25421   dynamic_linker=no
25422   ;;
25423
25424 kfreebsd*-gnu)
25425   version_type=linux
25426   need_lib_prefix=no
25427   need_version=no
25428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25429   soname_spec='${libname}${release}${shared_ext}$major'
25430   shlibpath_var=LD_LIBRARY_PATH
25431   shlibpath_overrides_runpath=no
25432   hardcode_into_libs=yes
25433   dynamic_linker='GNU ld.so'
25434   ;;
25435
25436 freebsd* | dragonfly*)
25437   # DragonFly does not have aout.  When/if they implement a new
25438   # versioning mechanism, adjust this.
25439   if test -x /usr/bin/objformat; then
25440     objformat=`/usr/bin/objformat`
25441   else
25442     case $host_os in
25443     freebsd[123]*) objformat=aout ;;
25444     *) objformat=elf ;;
25445     esac
25446   fi
25447   version_type=freebsd-$objformat
25448   case $version_type in
25449     freebsd-elf*)
25450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25451       need_version=no
25452       need_lib_prefix=no
25453       ;;
25454     freebsd-*)
25455       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25456       need_version=yes
25457       ;;
25458   esac
25459   shlibpath_var=LD_LIBRARY_PATH
25460   case $host_os in
25461   freebsd2*)
25462     shlibpath_overrides_runpath=yes
25463     ;;
25464   freebsd3.[01]* | freebsdelf3.[01]*)
25465     shlibpath_overrides_runpath=yes
25466     hardcode_into_libs=yes
25467     ;;
25468   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25469   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25470     shlibpath_overrides_runpath=no
25471     hardcode_into_libs=yes
25472     ;;
25473   freebsd*) # from 4.6 on
25474     shlibpath_overrides_runpath=yes
25475     hardcode_into_libs=yes
25476     ;;
25477   esac
25478   ;;
25479
25480 gnu*)
25481   version_type=linux
25482   need_lib_prefix=no
25483   need_version=no
25484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25485   soname_spec='${libname}${release}${shared_ext}$major'
25486   shlibpath_var=LD_LIBRARY_PATH
25487   hardcode_into_libs=yes
25488   ;;
25489
25490 hpux9* | hpux10* | hpux11*)
25491   # Give a soname corresponding to the major version so that dld.sl refuses to
25492   # link against other versions.
25493   version_type=sunos
25494   need_lib_prefix=no
25495   need_version=no
25496   case $host_cpu in
25497   ia64*)
25498     shrext_cmds='.so'
25499     hardcode_into_libs=yes
25500     dynamic_linker="$host_os dld.so"
25501     shlibpath_var=LD_LIBRARY_PATH
25502     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504     soname_spec='${libname}${release}${shared_ext}$major'
25505     if test "X$HPUX_IA64_MODE" = X32; then
25506       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25507     else
25508       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25509     fi
25510     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25511     ;;
25512    hppa*64*)
25513      shrext_cmds='.sl'
25514      hardcode_into_libs=yes
25515      dynamic_linker="$host_os dld.sl"
25516      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25517      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25518      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25519      soname_spec='${libname}${release}${shared_ext}$major'
25520      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25521      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25522      ;;
25523    *)
25524     shrext_cmds='.sl'
25525     dynamic_linker="$host_os dld.sl"
25526     shlibpath_var=SHLIB_PATH
25527     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25529     soname_spec='${libname}${release}${shared_ext}$major'
25530     ;;
25531   esac
25532   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25533   postinstall_cmds='chmod 555 $lib'
25534   ;;
25535
25536 interix3*)
25537   version_type=linux
25538   need_lib_prefix=no
25539   need_version=no
25540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25541   soname_spec='${libname}${release}${shared_ext}$major'
25542   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25543   shlibpath_var=LD_LIBRARY_PATH
25544   shlibpath_overrides_runpath=no
25545   hardcode_into_libs=yes
25546   ;;
25547
25548 irix5* | irix6* | nonstopux*)
25549   case $host_os in
25550     nonstopux*) version_type=nonstopux ;;
25551     *)
25552         if test "$lt_cv_prog_gnu_ld" = yes; then
25553                 version_type=linux
25554         else
25555                 version_type=irix
25556         fi ;;
25557   esac
25558   need_lib_prefix=no
25559   need_version=no
25560   soname_spec='${libname}${release}${shared_ext}$major'
25561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25562   case $host_os in
25563   irix5* | nonstopux*)
25564     libsuff= shlibsuff=
25565     ;;
25566   *)
25567     case $LD in # libtool.m4 will add one of these switches to LD
25568     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25569       libsuff= shlibsuff= libmagic=32-bit;;
25570     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25571       libsuff=32 shlibsuff=N32 libmagic=N32;;
25572     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25573       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25574     *) libsuff= shlibsuff= libmagic=never-match;;
25575     esac
25576     ;;
25577   esac
25578   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25579   shlibpath_overrides_runpath=no
25580   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25581   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25582   hardcode_into_libs=yes
25583   ;;
25584
25585 # No shared lib support for Linux oldld, aout, or coff.
25586 linux*oldld* | linux*aout* | linux*coff*)
25587   dynamic_linker=no
25588   ;;
25589
25590 # This must be Linux ELF.
25591 linux*)
25592   version_type=linux
25593   need_lib_prefix=no
25594   need_version=no
25595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596   soname_spec='${libname}${release}${shared_ext}$major'
25597   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25598   shlibpath_var=LD_LIBRARY_PATH
25599   shlibpath_overrides_runpath=no
25600   # This implies no fast_install, which is unacceptable.
25601   # Some rework will be needed to allow for fast_install
25602   # before this can be enabled.
25603   hardcode_into_libs=yes
25604
25605   # Append ld.so.conf contents to the search path
25606   if test -f /etc/ld.so.conf; then
25607     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' ' '`
25608     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25609   fi
25610
25611   # We used to test for /lib/ld.so.1 and disable shared libraries on
25612   # powerpc, because MkLinux only supported shared libraries with the
25613   # GNU dynamic linker.  Since this was broken with cross compilers,
25614   # most powerpc-linux boxes support dynamic linking these days and
25615   # people can always --disable-shared, the test was removed, and we
25616   # assume the GNU/Linux dynamic linker is in use.
25617   dynamic_linker='GNU/Linux ld.so'
25618   ;;
25619
25620 knetbsd*-gnu)
25621   version_type=linux
25622   need_lib_prefix=no
25623   need_version=no
25624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25625   soname_spec='${libname}${release}${shared_ext}$major'
25626   shlibpath_var=LD_LIBRARY_PATH
25627   shlibpath_overrides_runpath=no
25628   hardcode_into_libs=yes
25629   dynamic_linker='GNU ld.so'
25630   ;;
25631
25632 netbsd*)
25633   version_type=sunos
25634   need_lib_prefix=no
25635   need_version=no
25636   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25638     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25639     dynamic_linker='NetBSD (a.out) ld.so'
25640   else
25641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25642     soname_spec='${libname}${release}${shared_ext}$major'
25643     dynamic_linker='NetBSD ld.elf_so'
25644   fi
25645   shlibpath_var=LD_LIBRARY_PATH
25646   shlibpath_overrides_runpath=yes
25647   hardcode_into_libs=yes
25648   ;;
25649
25650 newsos6)
25651   version_type=linux
25652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25653   shlibpath_var=LD_LIBRARY_PATH
25654   shlibpath_overrides_runpath=yes
25655   ;;
25656
25657 nto-qnx*)
25658   version_type=linux
25659   need_lib_prefix=no
25660   need_version=no
25661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25662   soname_spec='${libname}${release}${shared_ext}$major'
25663   shlibpath_var=LD_LIBRARY_PATH
25664   shlibpath_overrides_runpath=yes
25665   ;;
25666
25667 openbsd*)
25668   version_type=sunos
25669   sys_lib_dlsearch_path_spec="/usr/lib"
25670   need_lib_prefix=no
25671   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25672   case $host_os in
25673     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25674     *)                         need_version=no  ;;
25675   esac
25676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25677   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25678   shlibpath_var=LD_LIBRARY_PATH
25679   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25680     case $host_os in
25681       openbsd2.[89] | openbsd2.[89].*)
25682         shlibpath_overrides_runpath=no
25683         ;;
25684       *)
25685         shlibpath_overrides_runpath=yes
25686         ;;
25687       esac
25688   else
25689     shlibpath_overrides_runpath=yes
25690   fi
25691   ;;
25692
25693 os2*)
25694   libname_spec='$name'
25695   shrext_cmds=".dll"
25696   need_lib_prefix=no
25697   library_names_spec='$libname${shared_ext} $libname.a'
25698   dynamic_linker='OS/2 ld.exe'
25699   shlibpath_var=LIBPATH
25700   ;;
25701
25702 osf3* | osf4* | osf5*)
25703   version_type=osf
25704   need_lib_prefix=no
25705   need_version=no
25706   soname_spec='${libname}${release}${shared_ext}$major'
25707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25708   shlibpath_var=LD_LIBRARY_PATH
25709   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25710   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25711   ;;
25712
25713 solaris*)
25714   version_type=linux
25715   need_lib_prefix=no
25716   need_version=no
25717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25718   soname_spec='${libname}${release}${shared_ext}$major'
25719   shlibpath_var=LD_LIBRARY_PATH
25720   shlibpath_overrides_runpath=yes
25721   hardcode_into_libs=yes
25722   # ldd complains unless libraries are executable
25723   postinstall_cmds='chmod +x $lib'
25724   ;;
25725
25726 sunos4*)
25727   version_type=sunos
25728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25729   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25730   shlibpath_var=LD_LIBRARY_PATH
25731   shlibpath_overrides_runpath=yes
25732   if test "$with_gnu_ld" = yes; then
25733     need_lib_prefix=no
25734   fi
25735   need_version=yes
25736   ;;
25737
25738 sysv4 | sysv4.3*)
25739   version_type=linux
25740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25741   soname_spec='${libname}${release}${shared_ext}$major'
25742   shlibpath_var=LD_LIBRARY_PATH
25743   case $host_vendor in
25744     sni)
25745       shlibpath_overrides_runpath=no
25746       need_lib_prefix=no
25747       export_dynamic_flag_spec='${wl}-Blargedynsym'
25748       runpath_var=LD_RUN_PATH
25749       ;;
25750     siemens)
25751       need_lib_prefix=no
25752       ;;
25753     motorola)
25754       need_lib_prefix=no
25755       need_version=no
25756       shlibpath_overrides_runpath=no
25757       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25758       ;;
25759   esac
25760   ;;
25761
25762 sysv4*MP*)
25763   if test -d /usr/nec ;then
25764     version_type=linux
25765     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25766     soname_spec='$libname${shared_ext}.$major'
25767     shlibpath_var=LD_LIBRARY_PATH
25768   fi
25769   ;;
25770
25771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25772   version_type=freebsd-elf
25773   need_lib_prefix=no
25774   need_version=no
25775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25776   soname_spec='${libname}${release}${shared_ext}$major'
25777   shlibpath_var=LD_LIBRARY_PATH
25778   hardcode_into_libs=yes
25779   if test "$with_gnu_ld" = yes; then
25780     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25781     shlibpath_overrides_runpath=no
25782   else
25783     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25784     shlibpath_overrides_runpath=yes
25785     case $host_os in
25786       sco3.2v5*)
25787         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25788         ;;
25789     esac
25790   fi
25791   sys_lib_dlsearch_path_spec='/usr/lib'
25792   ;;
25793
25794 uts4*)
25795   version_type=linux
25796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25797   soname_spec='${libname}${release}${shared_ext}$major'
25798   shlibpath_var=LD_LIBRARY_PATH
25799   ;;
25800
25801 *)
25802   dynamic_linker=no
25803   ;;
25804 esac
25805 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25806 echo "${ECHO_T}$dynamic_linker" >&6; }
25807 test "$dynamic_linker" = no && can_build_shared=no
25808
25809 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25810 if test "$GCC" = yes; then
25811   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25812 fi
25813
25814 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25815 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25816 hardcode_action_GCJ=
25817 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25818    test -n "$runpath_var_GCJ" || \
25819    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25820
25821   # We can hardcode non-existant directories.
25822   if test "$hardcode_direct_GCJ" != no &&
25823      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25824      # have to relink, otherwise we might link with an installed library
25825      # when we should be linking with a yet-to-be-installed one
25826      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25827      test "$hardcode_minus_L_GCJ" != no; then
25828     # Linking always hardcodes the temporary library directory.
25829     hardcode_action_GCJ=relink
25830   else
25831     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25832     hardcode_action_GCJ=immediate
25833   fi
25834 else
25835   # We cannot hardcode anything, or else we can only hardcode existing
25836   # directories.
25837   hardcode_action_GCJ=unsupported
25838 fi
25839 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25840 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25841
25842 if test "$hardcode_action_GCJ" = relink; then
25843   # Fast installation is not supported
25844   enable_fast_install=no
25845 elif test "$shlibpath_overrides_runpath" = yes ||
25846      test "$enable_shared" = no; then
25847   # Fast installation is not necessary
25848   enable_fast_install=needless
25849 fi
25850
25851
25852 # The else clause should only fire when bootstrapping the
25853 # libtool distribution, otherwise you forgot to ship ltmain.sh
25854 # with your package, and you will get complaints that there are
25855 # no rules to generate ltmain.sh.
25856 if test -f "$ltmain"; then
25857   # See if we are running on zsh, and set the options which allow our commands through
25858   # without removal of \ escapes.
25859   if test -n "${ZSH_VERSION+set}" ; then
25860     setopt NO_GLOB_SUBST
25861   fi
25862   # Now quote all the things that may contain metacharacters while being
25863   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25864   # variables and quote the copies for generation of the libtool script.
25865   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25866     SED SHELL STRIP \
25867     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25868     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25869     deplibs_check_method reload_flag reload_cmds need_locks \
25870     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25871     lt_cv_sys_global_symbol_to_c_name_address \
25872     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25873     old_postinstall_cmds old_postuninstall_cmds \
25874     compiler_GCJ \
25875     CC_GCJ \
25876     LD_GCJ \
25877     lt_prog_compiler_wl_GCJ \
25878     lt_prog_compiler_pic_GCJ \
25879     lt_prog_compiler_static_GCJ \
25880     lt_prog_compiler_no_builtin_flag_GCJ \
25881     export_dynamic_flag_spec_GCJ \
25882     thread_safe_flag_spec_GCJ \
25883     whole_archive_flag_spec_GCJ \
25884     enable_shared_with_static_runtimes_GCJ \
25885     old_archive_cmds_GCJ \
25886     old_archive_from_new_cmds_GCJ \
25887     predep_objects_GCJ \
25888     postdep_objects_GCJ \
25889     predeps_GCJ \
25890     postdeps_GCJ \
25891     compiler_lib_search_path_GCJ \
25892     archive_cmds_GCJ \
25893     archive_expsym_cmds_GCJ \
25894     postinstall_cmds_GCJ \
25895     postuninstall_cmds_GCJ \
25896     old_archive_from_expsyms_cmds_GCJ \
25897     allow_undefined_flag_GCJ \
25898     no_undefined_flag_GCJ \
25899     export_symbols_cmds_GCJ \
25900     hardcode_libdir_flag_spec_GCJ \
25901     hardcode_libdir_flag_spec_ld_GCJ \
25902     hardcode_libdir_separator_GCJ \
25903     hardcode_automatic_GCJ \
25904     module_cmds_GCJ \
25905     module_expsym_cmds_GCJ \
25906     lt_cv_prog_compiler_c_o_GCJ \
25907     exclude_expsyms_GCJ \
25908     include_expsyms_GCJ; do
25909
25910     case $var in
25911     old_archive_cmds_GCJ | \
25912     old_archive_from_new_cmds_GCJ | \
25913     archive_cmds_GCJ | \
25914     archive_expsym_cmds_GCJ | \
25915     module_cmds_GCJ | \
25916     module_expsym_cmds_GCJ | \
25917     old_archive_from_expsyms_cmds_GCJ | \
25918     export_symbols_cmds_GCJ | \
25919     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25920     postinstall_cmds | postuninstall_cmds | \
25921     old_postinstall_cmds | old_postuninstall_cmds | \
25922     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25923       # Double-quote double-evaled strings.
25924       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25925       ;;
25926     *)
25927       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25928       ;;
25929     esac
25930   done
25931
25932   case $lt_echo in
25933   *'\$0 --fallback-echo"')
25934     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25935     ;;
25936   esac
25937
25938 cfgfile="$ofile"
25939
25940   cat <<__EOF__ >> "$cfgfile"
25941 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25942
25943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25944
25945 # Shell to use when invoking shell scripts.
25946 SHELL=$lt_SHELL
25947
25948 # Whether or not to build shared libraries.
25949 build_libtool_libs=$enable_shared
25950
25951 # Whether or not to build static libraries.
25952 build_old_libs=$enable_static
25953
25954 # Whether or not to add -lc for building shared libraries.
25955 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25956
25957 # Whether or not to disallow shared libs when runtime libs are static
25958 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25959
25960 # Whether or not to optimize for fast installation.
25961 fast_install=$enable_fast_install
25962
25963 # The host system.
25964 host_alias=$host_alias
25965 host=$host
25966 host_os=$host_os
25967
25968 # The build system.
25969 build_alias=$build_alias
25970 build=$build
25971 build_os=$build_os
25972
25973 # An echo program that does not interpret backslashes.
25974 echo=$lt_echo
25975
25976 # The archiver.
25977 AR=$lt_AR
25978 AR_FLAGS=$lt_AR_FLAGS
25979
25980 # A C compiler.
25981 LTCC=$lt_LTCC
25982
25983 # LTCC compiler flags.
25984 LTCFLAGS=$lt_LTCFLAGS
25985
25986 # A language-specific compiler.
25987 CC=$lt_compiler_GCJ
25988
25989 # Is the compiler the GNU C compiler?
25990 with_gcc=$GCC_GCJ
25991
25992 # An ERE matcher.
25993 EGREP=$lt_EGREP
25994
25995 # The linker used to build libraries.
25996 LD=$lt_LD_GCJ
25997
25998 # Whether we need hard or soft links.
25999 LN_S=$lt_LN_S
26000
26001 # A BSD-compatible nm program.
26002 NM=$lt_NM
26003
26004 # A symbol stripping program
26005 STRIP=$lt_STRIP
26006
26007 # Used to examine libraries when file_magic_cmd begins "file"
26008 MAGIC_CMD=$MAGIC_CMD
26009
26010 # Used on cygwin: DLL creation program.
26011 DLLTOOL="$DLLTOOL"
26012
26013 # Used on cygwin: object dumper.
26014 OBJDUMP="$OBJDUMP"
26015
26016 # Used on cygwin: assembler.
26017 AS="$AS"
26018
26019 # The name of the directory that contains temporary libtool files.
26020 objdir=$objdir
26021
26022 # How to create reloadable object files.
26023 reload_flag=$lt_reload_flag
26024 reload_cmds=$lt_reload_cmds
26025
26026 # How to pass a linker flag through the compiler.
26027 wl=$lt_lt_prog_compiler_wl_GCJ
26028
26029 # Object file suffix (normally "o").
26030 objext="$ac_objext"
26031
26032 # Old archive suffix (normally "a").
26033 libext="$libext"
26034
26035 # Shared library suffix (normally ".so").
26036 shrext_cmds='$shrext_cmds'
26037
26038 # Executable file suffix (normally "").
26039 exeext="$exeext"
26040
26041 # Additional compiler flags for building library objects.
26042 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26043 pic_mode=$pic_mode
26044
26045 # What is the maximum length of a command?
26046 max_cmd_len=$lt_cv_sys_max_cmd_len
26047
26048 # Does compiler simultaneously support -c and -o options?
26049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26050
26051 # Must we lock files when doing compilation?
26052 need_locks=$lt_need_locks
26053
26054 # Do we need the lib prefix for modules?
26055 need_lib_prefix=$need_lib_prefix
26056
26057 # Do we need a version for libraries?
26058 need_version=$need_version
26059
26060 # Whether dlopen is supported.
26061 dlopen_support=$enable_dlopen
26062
26063 # Whether dlopen of programs is supported.
26064 dlopen_self=$enable_dlopen_self
26065
26066 # Whether dlopen of statically linked programs is supported.
26067 dlopen_self_static=$enable_dlopen_self_static
26068
26069 # Compiler flag to prevent dynamic linking.
26070 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26071
26072 # Compiler flag to turn off builtin functions.
26073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26074
26075 # Compiler flag to allow reflexive dlopens.
26076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26077
26078 # Compiler flag to generate shared objects directly from archives.
26079 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26080
26081 # Compiler flag to generate thread-safe objects.
26082 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26083
26084 # Library versioning type.
26085 version_type=$version_type
26086
26087 # Format of library name prefix.
26088 libname_spec=$lt_libname_spec
26089
26090 # List of archive names.  First name is the real one, the rest are links.
26091 # The last name is the one that the linker finds with -lNAME.
26092 library_names_spec=$lt_library_names_spec
26093
26094 # The coded name of the library, if different from the real name.
26095 soname_spec=$lt_soname_spec
26096
26097 # Commands used to build and install an old-style archive.
26098 RANLIB=$lt_RANLIB
26099 old_archive_cmds=$lt_old_archive_cmds_GCJ
26100 old_postinstall_cmds=$lt_old_postinstall_cmds
26101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26102
26103 # Create an old-style archive from a shared archive.
26104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26105
26106 # Create a temporary old-style archive to link instead of a shared archive.
26107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26108
26109 # Commands used to build and install a shared archive.
26110 archive_cmds=$lt_archive_cmds_GCJ
26111 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26112 postinstall_cmds=$lt_postinstall_cmds
26113 postuninstall_cmds=$lt_postuninstall_cmds
26114
26115 # Commands used to build a loadable module (assumed same as above if empty)
26116 module_cmds=$lt_module_cmds_GCJ
26117 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26118
26119 # Commands to strip libraries.
26120 old_striplib=$lt_old_striplib
26121 striplib=$lt_striplib
26122
26123 # Dependencies to place before the objects being linked to create a
26124 # shared library.
26125 predep_objects=$lt_predep_objects_GCJ
26126
26127 # Dependencies to place after the objects being linked to create a
26128 # shared library.
26129 postdep_objects=$lt_postdep_objects_GCJ
26130
26131 # Dependencies to place before the objects being linked to create a
26132 # shared library.
26133 predeps=$lt_predeps_GCJ
26134
26135 # Dependencies to place after the objects being linked to create a
26136 # shared library.
26137 postdeps=$lt_postdeps_GCJ
26138
26139 # The library search path used internally by the compiler when linking
26140 # a shared library.
26141 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26142
26143 # Method to check whether dependent libraries are shared objects.
26144 deplibs_check_method=$lt_deplibs_check_method
26145
26146 # Command to use when deplibs_check_method == file_magic.
26147 file_magic_cmd=$lt_file_magic_cmd
26148
26149 # Flag that allows shared libraries with undefined symbols to be built.
26150 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26151
26152 # Flag that forces no undefined symbols.
26153 no_undefined_flag=$lt_no_undefined_flag_GCJ
26154
26155 # Commands used to finish a libtool library installation in a directory.
26156 finish_cmds=$lt_finish_cmds
26157
26158 # Same as above, but a single script fragment to be evaled but not shown.
26159 finish_eval=$lt_finish_eval
26160
26161 # Take the output of nm and produce a listing of raw symbols and C names.
26162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26163
26164 # Transform the output of nm in a proper C declaration
26165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26166
26167 # Transform the output of nm in a C name address pair
26168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26169
26170 # This is the shared library runtime path variable.
26171 runpath_var=$runpath_var
26172
26173 # This is the shared library path variable.
26174 shlibpath_var=$shlibpath_var
26175
26176 # Is shlibpath searched before the hard-coded library search path?
26177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26178
26179 # How to hardcode a shared library path into an executable.
26180 hardcode_action=$hardcode_action_GCJ
26181
26182 # Whether we should hardcode library paths into libraries.
26183 hardcode_into_libs=$hardcode_into_libs
26184
26185 # Flag to hardcode \$libdir into a binary during linking.
26186 # This must work even if \$libdir does not exist.
26187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26188
26189 # If ld is used when linking, flag to hardcode \$libdir into
26190 # a binary during linking. This must work even if \$libdir does
26191 # not exist.
26192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26193
26194 # Whether we need a single -rpath flag with a separated argument.
26195 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26196
26197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26198 # resulting binary.
26199 hardcode_direct=$hardcode_direct_GCJ
26200
26201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26202 # resulting binary.
26203 hardcode_minus_L=$hardcode_minus_L_GCJ
26204
26205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26206 # the resulting binary.
26207 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26208
26209 # Set to yes if building a shared library automatically hardcodes DIR into the library
26210 # and all subsequent libraries and executables linked against it.
26211 hardcode_automatic=$hardcode_automatic_GCJ
26212
26213 # Variables whose values should be saved in libtool wrapper scripts and
26214 # restored at relink time.
26215 variables_saved_for_relink="$variables_saved_for_relink"
26216
26217 # Whether libtool must link a program against all its dependency libraries.
26218 link_all_deplibs=$link_all_deplibs_GCJ
26219
26220 # Compile-time system search path for libraries
26221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26222
26223 # Run-time system search path for libraries
26224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26225
26226 # Fix the shell variable \$srcfile for the compiler.
26227 fix_srcfile_path="$fix_srcfile_path_GCJ"
26228
26229 # Set to yes if exported symbols are required.
26230 always_export_symbols=$always_export_symbols_GCJ
26231
26232 # The commands to list exported symbols.
26233 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26234
26235 # The commands to extract the exported symbol list from a shared archive.
26236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26237
26238 # Symbols that should not be listed in the preloaded symbols.
26239 exclude_expsyms=$lt_exclude_expsyms_GCJ
26240
26241 # Symbols that must always be exported.
26242 include_expsyms=$lt_include_expsyms_GCJ
26243
26244 # ### END LIBTOOL TAG CONFIG: $tagname
26245
26246 __EOF__
26247
26248
26249 else
26250   # If there is no Makefile yet, we rely on a make rule to execute
26251   # `config.status --recheck' to rerun these tests and create the
26252   # libtool script then.
26253   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26254   if test -f "$ltmain_in"; then
26255     test -f Makefile && make "$ltmain"
26256   fi
26257 fi
26258
26259
26260 ac_ext=c
26261 ac_cpp='$CPP $CPPFLAGS'
26262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26265
26266 CC="$lt_save_CC"
26267
26268         else
26269           tagname=""
26270         fi
26271         ;;
26272
26273       RC)
26274         ac_ext=c
26275 ac_cpp='$CPP $CPPFLAGS'
26276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26279
26280
26281 # Source file extension for RC test sources.
26282 ac_ext=rc
26283
26284 # Object file extension for compiled RC test sources.
26285 objext=o
26286 objext_RC=$objext
26287
26288 # Code to be used in simple compile tests
26289 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26290
26291 # Code to be used in simple link tests
26292 lt_simple_link_test_code="$lt_simple_compile_test_code"
26293
26294 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26295
26296 # If no C compiler was specified, use CC.
26297 LTCC=${LTCC-"$CC"}
26298
26299 # If no C compiler flags were specified, use CFLAGS.
26300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26301
26302 # Allow CC to be a program name with arguments.
26303 compiler=$CC
26304
26305
26306 # save warnings/boilerplate of simple test code
26307 ac_outfile=conftest.$ac_objext
26308 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26310 _lt_compiler_boilerplate=`cat conftest.err`
26311 $rm conftest*
26312
26313 ac_outfile=conftest.$ac_objext
26314 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26316 _lt_linker_boilerplate=`cat conftest.err`
26317 $rm conftest*
26318
26319
26320 # Allow CC to be a program name with arguments.
26321 lt_save_CC="$CC"
26322 CC=${RC-"windres"}
26323 compiler=$CC
26324 compiler_RC=$CC
26325 for cc_temp in $compiler""; do
26326   case $cc_temp in
26327     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26328     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26329     \-*) ;;
26330     *) break;;
26331   esac
26332 done
26333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26334
26335 lt_cv_prog_compiler_c_o_RC=yes
26336
26337 # The else clause should only fire when bootstrapping the
26338 # libtool distribution, otherwise you forgot to ship ltmain.sh
26339 # with your package, and you will get complaints that there are
26340 # no rules to generate ltmain.sh.
26341 if test -f "$ltmain"; then
26342   # See if we are running on zsh, and set the options which allow our commands through
26343   # without removal of \ escapes.
26344   if test -n "${ZSH_VERSION+set}" ; then
26345     setopt NO_GLOB_SUBST
26346   fi
26347   # Now quote all the things that may contain metacharacters while being
26348   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26349   # variables and quote the copies for generation of the libtool script.
26350   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26351     SED SHELL STRIP \
26352     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26353     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26354     deplibs_check_method reload_flag reload_cmds need_locks \
26355     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26356     lt_cv_sys_global_symbol_to_c_name_address \
26357     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26358     old_postinstall_cmds old_postuninstall_cmds \
26359     compiler_RC \
26360     CC_RC \
26361     LD_RC \
26362     lt_prog_compiler_wl_RC \
26363     lt_prog_compiler_pic_RC \
26364     lt_prog_compiler_static_RC \
26365     lt_prog_compiler_no_builtin_flag_RC \
26366     export_dynamic_flag_spec_RC \
26367     thread_safe_flag_spec_RC \
26368     whole_archive_flag_spec_RC \
26369     enable_shared_with_static_runtimes_RC \
26370     old_archive_cmds_RC \
26371     old_archive_from_new_cmds_RC \
26372     predep_objects_RC \
26373     postdep_objects_RC \
26374     predeps_RC \
26375     postdeps_RC \
26376     compiler_lib_search_path_RC \
26377     archive_cmds_RC \
26378     archive_expsym_cmds_RC \
26379     postinstall_cmds_RC \
26380     postuninstall_cmds_RC \
26381     old_archive_from_expsyms_cmds_RC \
26382     allow_undefined_flag_RC \
26383     no_undefined_flag_RC \
26384     export_symbols_cmds_RC \
26385     hardcode_libdir_flag_spec_RC \
26386     hardcode_libdir_flag_spec_ld_RC \
26387     hardcode_libdir_separator_RC \
26388     hardcode_automatic_RC \
26389     module_cmds_RC \
26390     module_expsym_cmds_RC \
26391     lt_cv_prog_compiler_c_o_RC \
26392     exclude_expsyms_RC \
26393     include_expsyms_RC; do
26394
26395     case $var in
26396     old_archive_cmds_RC | \
26397     old_archive_from_new_cmds_RC | \
26398     archive_cmds_RC | \
26399     archive_expsym_cmds_RC | \
26400     module_cmds_RC | \
26401     module_expsym_cmds_RC | \
26402     old_archive_from_expsyms_cmds_RC | \
26403     export_symbols_cmds_RC | \
26404     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26405     postinstall_cmds | postuninstall_cmds | \
26406     old_postinstall_cmds | old_postuninstall_cmds | \
26407     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26408       # Double-quote double-evaled strings.
26409       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26410       ;;
26411     *)
26412       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26413       ;;
26414     esac
26415   done
26416
26417   case $lt_echo in
26418   *'\$0 --fallback-echo"')
26419     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26420     ;;
26421   esac
26422
26423 cfgfile="$ofile"
26424
26425   cat <<__EOF__ >> "$cfgfile"
26426 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26427
26428 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26429
26430 # Shell to use when invoking shell scripts.
26431 SHELL=$lt_SHELL
26432
26433 # Whether or not to build shared libraries.
26434 build_libtool_libs=$enable_shared
26435
26436 # Whether or not to build static libraries.
26437 build_old_libs=$enable_static
26438
26439 # Whether or not to add -lc for building shared libraries.
26440 build_libtool_need_lc=$archive_cmds_need_lc_RC
26441
26442 # Whether or not to disallow shared libs when runtime libs are static
26443 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26444
26445 # Whether or not to optimize for fast installation.
26446 fast_install=$enable_fast_install
26447
26448 # The host system.
26449 host_alias=$host_alias
26450 host=$host
26451 host_os=$host_os
26452
26453 # The build system.
26454 build_alias=$build_alias
26455 build=$build
26456 build_os=$build_os
26457
26458 # An echo program that does not interpret backslashes.
26459 echo=$lt_echo
26460
26461 # The archiver.
26462 AR=$lt_AR
26463 AR_FLAGS=$lt_AR_FLAGS
26464
26465 # A C compiler.
26466 LTCC=$lt_LTCC
26467
26468 # LTCC compiler flags.
26469 LTCFLAGS=$lt_LTCFLAGS
26470
26471 # A language-specific compiler.
26472 CC=$lt_compiler_RC
26473
26474 # Is the compiler the GNU C compiler?
26475 with_gcc=$GCC_RC
26476
26477 # An ERE matcher.
26478 EGREP=$lt_EGREP
26479
26480 # The linker used to build libraries.
26481 LD=$lt_LD_RC
26482
26483 # Whether we need hard or soft links.
26484 LN_S=$lt_LN_S
26485
26486 # A BSD-compatible nm program.
26487 NM=$lt_NM
26488
26489 # A symbol stripping program
26490 STRIP=$lt_STRIP
26491
26492 # Used to examine libraries when file_magic_cmd begins "file"
26493 MAGIC_CMD=$MAGIC_CMD
26494
26495 # Used on cygwin: DLL creation program.
26496 DLLTOOL="$DLLTOOL"
26497
26498 # Used on cygwin: object dumper.
26499 OBJDUMP="$OBJDUMP"
26500
26501 # Used on cygwin: assembler.
26502 AS="$AS"
26503
26504 # The name of the directory that contains temporary libtool files.
26505 objdir=$objdir
26506
26507 # How to create reloadable object files.
26508 reload_flag=$lt_reload_flag
26509 reload_cmds=$lt_reload_cmds
26510
26511 # How to pass a linker flag through the compiler.
26512 wl=$lt_lt_prog_compiler_wl_RC
26513
26514 # Object file suffix (normally "o").
26515 objext="$ac_objext"
26516
26517 # Old archive suffix (normally "a").
26518 libext="$libext"
26519
26520 # Shared library suffix (normally ".so").
26521 shrext_cmds='$shrext_cmds'
26522
26523 # Executable file suffix (normally "").
26524 exeext="$exeext"
26525
26526 # Additional compiler flags for building library objects.
26527 pic_flag=$lt_lt_prog_compiler_pic_RC
26528 pic_mode=$pic_mode
26529
26530 # What is the maximum length of a command?
26531 max_cmd_len=$lt_cv_sys_max_cmd_len
26532
26533 # Does compiler simultaneously support -c and -o options?
26534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26535
26536 # Must we lock files when doing compilation?
26537 need_locks=$lt_need_locks
26538
26539 # Do we need the lib prefix for modules?
26540 need_lib_prefix=$need_lib_prefix
26541
26542 # Do we need a version for libraries?
26543 need_version=$need_version
26544
26545 # Whether dlopen is supported.
26546 dlopen_support=$enable_dlopen
26547
26548 # Whether dlopen of programs is supported.
26549 dlopen_self=$enable_dlopen_self
26550
26551 # Whether dlopen of statically linked programs is supported.
26552 dlopen_self_static=$enable_dlopen_self_static
26553
26554 # Compiler flag to prevent dynamic linking.
26555 link_static_flag=$lt_lt_prog_compiler_static_RC
26556
26557 # Compiler flag to turn off builtin functions.
26558 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26559
26560 # Compiler flag to allow reflexive dlopens.
26561 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26562
26563 # Compiler flag to generate shared objects directly from archives.
26564 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26565
26566 # Compiler flag to generate thread-safe objects.
26567 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26568
26569 # Library versioning type.
26570 version_type=$version_type
26571
26572 # Format of library name prefix.
26573 libname_spec=$lt_libname_spec
26574
26575 # List of archive names.  First name is the real one, the rest are links.
26576 # The last name is the one that the linker finds with -lNAME.
26577 library_names_spec=$lt_library_names_spec
26578
26579 # The coded name of the library, if different from the real name.
26580 soname_spec=$lt_soname_spec
26581
26582 # Commands used to build and install an old-style archive.
26583 RANLIB=$lt_RANLIB
26584 old_archive_cmds=$lt_old_archive_cmds_RC
26585 old_postinstall_cmds=$lt_old_postinstall_cmds
26586 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26587
26588 # Create an old-style archive from a shared archive.
26589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26590
26591 # Create a temporary old-style archive to link instead of a shared archive.
26592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26593
26594 # Commands used to build and install a shared archive.
26595 archive_cmds=$lt_archive_cmds_RC
26596 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26597 postinstall_cmds=$lt_postinstall_cmds
26598 postuninstall_cmds=$lt_postuninstall_cmds
26599
26600 # Commands used to build a loadable module (assumed same as above if empty)
26601 module_cmds=$lt_module_cmds_RC
26602 module_expsym_cmds=$lt_module_expsym_cmds_RC
26603
26604 # Commands to strip libraries.
26605 old_striplib=$lt_old_striplib
26606 striplib=$lt_striplib
26607
26608 # Dependencies to place before the objects being linked to create a
26609 # shared library.
26610 predep_objects=$lt_predep_objects_RC
26611
26612 # Dependencies to place after the objects being linked to create a
26613 # shared library.
26614 postdep_objects=$lt_postdep_objects_RC
26615
26616 # Dependencies to place before the objects being linked to create a
26617 # shared library.
26618 predeps=$lt_predeps_RC
26619
26620 # Dependencies to place after the objects being linked to create a
26621 # shared library.
26622 postdeps=$lt_postdeps_RC
26623
26624 # The library search path used internally by the compiler when linking
26625 # a shared library.
26626 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26627
26628 # Method to check whether dependent libraries are shared objects.
26629 deplibs_check_method=$lt_deplibs_check_method
26630
26631 # Command to use when deplibs_check_method == file_magic.
26632 file_magic_cmd=$lt_file_magic_cmd
26633
26634 # Flag that allows shared libraries with undefined symbols to be built.
26635 allow_undefined_flag=$lt_allow_undefined_flag_RC
26636
26637 # Flag that forces no undefined symbols.
26638 no_undefined_flag=$lt_no_undefined_flag_RC
26639
26640 # Commands used to finish a libtool library installation in a directory.
26641 finish_cmds=$lt_finish_cmds
26642
26643 # Same as above, but a single script fragment to be evaled but not shown.
26644 finish_eval=$lt_finish_eval
26645
26646 # Take the output of nm and produce a listing of raw symbols and C names.
26647 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26648
26649 # Transform the output of nm in a proper C declaration
26650 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26651
26652 # Transform the output of nm in a C name address pair
26653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26654
26655 # This is the shared library runtime path variable.
26656 runpath_var=$runpath_var
26657
26658 # This is the shared library path variable.
26659 shlibpath_var=$shlibpath_var
26660
26661 # Is shlibpath searched before the hard-coded library search path?
26662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26663
26664 # How to hardcode a shared library path into an executable.
26665 hardcode_action=$hardcode_action_RC
26666
26667 # Whether we should hardcode library paths into libraries.
26668 hardcode_into_libs=$hardcode_into_libs
26669
26670 # Flag to hardcode \$libdir into a binary during linking.
26671 # This must work even if \$libdir does not exist.
26672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26673
26674 # If ld is used when linking, flag to hardcode \$libdir into
26675 # a binary during linking. This must work even if \$libdir does
26676 # not exist.
26677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26678
26679 # Whether we need a single -rpath flag with a separated argument.
26680 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26681
26682 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26683 # resulting binary.
26684 hardcode_direct=$hardcode_direct_RC
26685
26686 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26687 # resulting binary.
26688 hardcode_minus_L=$hardcode_minus_L_RC
26689
26690 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26691 # the resulting binary.
26692 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26693
26694 # Set to yes if building a shared library automatically hardcodes DIR into the library
26695 # and all subsequent libraries and executables linked against it.
26696 hardcode_automatic=$hardcode_automatic_RC
26697
26698 # Variables whose values should be saved in libtool wrapper scripts and
26699 # restored at relink time.
26700 variables_saved_for_relink="$variables_saved_for_relink"
26701
26702 # Whether libtool must link a program against all its dependency libraries.
26703 link_all_deplibs=$link_all_deplibs_RC
26704
26705 # Compile-time system search path for libraries
26706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26707
26708 # Run-time system search path for libraries
26709 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26710
26711 # Fix the shell variable \$srcfile for the compiler.
26712 fix_srcfile_path="$fix_srcfile_path_RC"
26713
26714 # Set to yes if exported symbols are required.
26715 always_export_symbols=$always_export_symbols_RC
26716
26717 # The commands to list exported symbols.
26718 export_symbols_cmds=$lt_export_symbols_cmds_RC
26719
26720 # The commands to extract the exported symbol list from a shared archive.
26721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26722
26723 # Symbols that should not be listed in the preloaded symbols.
26724 exclude_expsyms=$lt_exclude_expsyms_RC
26725
26726 # Symbols that must always be exported.
26727 include_expsyms=$lt_include_expsyms_RC
26728
26729 # ### END LIBTOOL TAG CONFIG: $tagname
26730
26731 __EOF__
26732
26733
26734 else
26735   # If there is no Makefile yet, we rely on a make rule to execute
26736   # `config.status --recheck' to rerun these tests and create the
26737   # libtool script then.
26738   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26739   if test -f "$ltmain_in"; then
26740     test -f Makefile && make "$ltmain"
26741   fi
26742 fi
26743
26744
26745 ac_ext=c
26746 ac_cpp='$CPP $CPPFLAGS'
26747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26750
26751 CC="$lt_save_CC"
26752
26753         ;;
26754
26755       *)
26756         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26757 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26758    { (exit 1); exit 1; }; }
26759         ;;
26760       esac
26761
26762       # Append the new tag name to the list of available tags.
26763       if test -n "$tagname" ; then
26764       available_tags="$available_tags $tagname"
26765     fi
26766     fi
26767   done
26768   IFS="$lt_save_ifs"
26769
26770   # Now substitute the updated list of available tags.
26771   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26772     mv "${ofile}T" "$ofile"
26773     chmod +x "$ofile"
26774   else
26775     rm -f "${ofile}T"
26776     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26777 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26778    { (exit 1); exit 1; }; }
26779   fi
26780 fi
26781
26782
26783
26784 # This can be used to rebuild libtool when needed
26785 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26786
26787 # Always use our own libtool.
26788 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26789
26790 # Prevent multiple expansion
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812 if test "$lt_cv_dlopen_self" = "yes" ; then
26813
26814 cat >>confdefs.h <<\_ACEOF
26815 #define CAN_DLOPEN_SELF 1
26816 _ACEOF
26817
26818 fi
26819
26820
26821 if test "$WITH_LLVMGCCDIR" = "default" ; then
26822   LLVMGCC="llvm-gcc${EXEEXT}"
26823   LLVMGXX="llvm-g++${EXEEXT}"
26824   LLVMGCCCOMMAND="$LLVMGCC"
26825   LLVMGXXCOMMAND="$LLVMGXX"
26826   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26827
26828   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26829
26830   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26831 set dummy $LLVMGCC; ac_word=$2
26832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26834 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26835   echo $ECHO_N "(cached) $ECHO_C" >&6
26836 else
26837   case $LLVMGCC in
26838   [\\/]* | ?:[\\/]*)
26839   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26840   ;;
26841   *)
26842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26843 for as_dir in $PATH
26844 do
26845   IFS=$as_save_IFS
26846   test -z "$as_dir" && as_dir=.
26847   for ac_exec_ext in '' $ac_executable_extensions; do
26848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26849     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26851     break 2
26852   fi
26853 done
26854 done
26855 IFS=$as_save_IFS
26856
26857   ;;
26858 esac
26859 fi
26860 LLVMGCC=$ac_cv_path_LLVMGCC
26861 if test -n "$LLVMGCC"; then
26862   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26863 echo "${ECHO_T}$LLVMGCC" >&6; }
26864 else
26865   { echo "$as_me:$LINENO: result: no" >&5
26866 echo "${ECHO_T}no" >&6; }
26867 fi
26868
26869
26870   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26871 set dummy $LLVMGXX; ac_word=$2
26872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26874 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26875   echo $ECHO_N "(cached) $ECHO_C" >&6
26876 else
26877   case $LLVMGXX in
26878   [\\/]* | ?:[\\/]*)
26879   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26880   ;;
26881   *)
26882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26883 for as_dir in $PATH
26884 do
26885   IFS=$as_save_IFS
26886   test -z "$as_dir" && as_dir=.
26887   for ac_exec_ext in '' $ac_executable_extensions; do
26888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26889     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26891     break 2
26892   fi
26893 done
26894 done
26895 IFS=$as_save_IFS
26896
26897   ;;
26898 esac
26899 fi
26900 LLVMGXX=$ac_cv_path_LLVMGXX
26901 if test -n "$LLVMGXX"; then
26902   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26903 echo "${ECHO_T}$LLVMGXX" >&6; }
26904 else
26905   { echo "$as_me:$LINENO: result: no" >&5
26906 echo "${ECHO_T}no" >&6; }
26907 fi
26908
26909
26910 else
26911   if test -z "$LLVMGCC"; then
26912     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26913     LLVMGCCCOMMAND="$LLVMGCC"
26914   fi
26915   if test -z "$LLVMGXX"; then
26916     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26917     LLVMGXXCOMMAND="$LLVMGXX"
26918   fi
26919
26920   LLVMGCC=$LLVMGCC
26921
26922   LLVMGXX=$LLVMGXX
26923
26924   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26925
26926   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26927
26928 fi
26929
26930
26931 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26932 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26933
26934 ICC=no
26935 IXX=no
26936 case $CC in
26937   icc*|icpc*)
26938     ICC=yes
26939     IXX=yes
26940     ;;
26941    *)
26942     ;;
26943 esac
26944
26945 if test "$GCC" != "yes" && test "$ICC" != "yes"
26946 then
26947   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26948 echo "$as_me: error: gcc|icc required but not found" >&2;}
26949    { (exit 1); exit 1; }; }
26950 fi
26951
26952 if test "$GXX" != "yes" && test "$IXX" != "yes"
26953 then
26954   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26955 echo "$as_me: error: g++|icc required but not found" >&2;}
26956    { (exit 1); exit 1; }; }
26957 fi
26958
26959 if test "$GCC" = "yes"
26960 then
26961   cat >conftest.$ac_ext <<_ACEOF
26962 #if !defined(__GNUC__) || __GNUC__ < 3
26963 #error Unsupported GCC version
26964 #endif
26965
26966 _ACEOF
26967 rm -f conftest.$ac_objext
26968 if { (ac_try="$ac_compile"
26969 case "(($ac_try" in
26970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971   *) ac_try_echo=$ac_try;;
26972 esac
26973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974   (eval "$ac_compile") 2>conftest.er1
26975   ac_status=$?
26976   grep -v '^ *+' conftest.er1 >conftest.err
26977   rm -f conftest.er1
26978   cat conftest.err >&5
26979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980   (exit $ac_status); } &&
26981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26982   { (case "(($ac_try" in
26983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984   *) ac_try_echo=$ac_try;;
26985 esac
26986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987   (eval "$ac_try") 2>&5
26988   ac_status=$?
26989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990   (exit $ac_status); }; } &&
26991          { ac_try='test -s conftest.$ac_objext'
26992   { (case "(($ac_try" in
26993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994   *) ac_try_echo=$ac_try;;
26995 esac
26996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997   (eval "$ac_try") 2>&5
26998   ac_status=$?
26999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); }; }; then
27001   :
27002 else
27003   echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27005
27006         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27007 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27008    { (exit 1); exit 1; }; }
27009 fi
27010
27011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27012 fi
27013
27014 if test -z "$llvm_cv_gnu_make_command"
27015 then
27016   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27017 echo "$as_me: error: GNU Make required but not found" >&2;}
27018    { (exit 1); exit 1; }; }
27019 fi
27020
27021 { echo "$as_me:$LINENO: result: ok" >&5
27022 echo "${ECHO_T}ok" >&6; }
27023
27024
27025
27026 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27027 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27028 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27029   echo $ECHO_N "(cached) $ECHO_C" >&6
27030 else
27031   ac_check_lib_save_LIBS=$LIBS
27032 LIBS="-lelf  $LIBS"
27033 cat >conftest.$ac_ext <<_ACEOF
27034 /* confdefs.h.  */
27035 _ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h.  */
27039
27040 /* Override any GCC internal prototype to avoid an error.
27041    Use char because int might match the return type of a GCC
27042    builtin and then its argument prototype would still apply.  */
27043 #ifdef __cplusplus
27044 extern "C"
27045 #endif
27046 char elf_begin ();
27047 int
27048 main ()
27049 {
27050 return elf_begin ();
27051   ;
27052   return 0;
27053 }
27054 _ACEOF
27055 rm -f conftest.$ac_objext conftest$ac_exeext
27056 if { (ac_try="$ac_link"
27057 case "(($ac_try" in
27058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059   *) ac_try_echo=$ac_try;;
27060 esac
27061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062   (eval "$ac_link") 2>conftest.er1
27063   ac_status=$?
27064   grep -v '^ *+' conftest.er1 >conftest.err
27065   rm -f conftest.er1
27066   cat conftest.err >&5
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); } &&
27069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27070   { (case "(($ac_try" in
27071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072   *) ac_try_echo=$ac_try;;
27073 esac
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075   (eval "$ac_try") 2>&5
27076   ac_status=$?
27077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078   (exit $ac_status); }; } &&
27079          { ac_try='test -s conftest$ac_exeext'
27080   { (case "(($ac_try" in
27081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082   *) ac_try_echo=$ac_try;;
27083 esac
27084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085   (eval "$ac_try") 2>&5
27086   ac_status=$?
27087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088   (exit $ac_status); }; }; then
27089   ac_cv_lib_elf_elf_begin=yes
27090 else
27091   echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27093
27094         ac_cv_lib_elf_elf_begin=no
27095 fi
27096
27097 rm -f core conftest.err conftest.$ac_objext \
27098       conftest$ac_exeext conftest.$ac_ext
27099 LIBS=$ac_check_lib_save_LIBS
27100 fi
27101 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27102 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27103 if test $ac_cv_lib_elf_elf_begin = yes; then
27104   cat >>confdefs.h <<_ACEOF
27105 #define HAVE_LIBELF 1
27106 _ACEOF
27107
27108   LIBS="-lelf $LIBS"
27109
27110 fi
27111
27112
27113 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27114 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27115 if test "${ac_cv_lib_m_sin+set}" = set; then
27116   echo $ECHO_N "(cached) $ECHO_C" >&6
27117 else
27118   ac_check_lib_save_LIBS=$LIBS
27119 LIBS="-lm  $LIBS"
27120 cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h.  */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h.  */
27126
27127 /* Override any GCC internal prototype to avoid an error.
27128    Use char because int might match the return type of a GCC
27129    builtin and then its argument prototype would still apply.  */
27130 #ifdef __cplusplus
27131 extern "C"
27132 #endif
27133 char sin ();
27134 int
27135 main ()
27136 {
27137 return sin ();
27138   ;
27139   return 0;
27140 }
27141 _ACEOF
27142 rm -f conftest.$ac_objext conftest$ac_exeext
27143 if { (ac_try="$ac_link"
27144 case "(($ac_try" in
27145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27146   *) ac_try_echo=$ac_try;;
27147 esac
27148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27149   (eval "$ac_link") 2>conftest.er1
27150   ac_status=$?
27151   grep -v '^ *+' conftest.er1 >conftest.err
27152   rm -f conftest.er1
27153   cat conftest.err >&5
27154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155   (exit $ac_status); } &&
27156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27157   { (case "(($ac_try" in
27158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27159   *) ac_try_echo=$ac_try;;
27160 esac
27161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27162   (eval "$ac_try") 2>&5
27163   ac_status=$?
27164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165   (exit $ac_status); }; } &&
27166          { ac_try='test -s conftest$ac_exeext'
27167   { (case "(($ac_try" in
27168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169   *) ac_try_echo=$ac_try;;
27170 esac
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172   (eval "$ac_try") 2>&5
27173   ac_status=$?
27174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175   (exit $ac_status); }; }; then
27176   ac_cv_lib_m_sin=yes
27177 else
27178   echo "$as_me: failed program was:" >&5
27179 sed 's/^/| /' conftest.$ac_ext >&5
27180
27181         ac_cv_lib_m_sin=no
27182 fi
27183
27184 rm -f core conftest.err conftest.$ac_objext \
27185       conftest$ac_exeext conftest.$ac_ext
27186 LIBS=$ac_check_lib_save_LIBS
27187 fi
27188 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27189 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27190 if test $ac_cv_lib_m_sin = yes; then
27191   cat >>confdefs.h <<_ACEOF
27192 #define HAVE_LIBM 1
27193 _ACEOF
27194
27195   LIBS="-lm $LIBS"
27196
27197 fi
27198
27199 if test "$llvm_cv_os_type" = "MingW" ; then
27200
27201 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27202 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27203 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27204   echo $ECHO_N "(cached) $ECHO_C" >&6
27205 else
27206   ac_check_lib_save_LIBS=$LIBS
27207 LIBS="-limagehlp  $LIBS"
27208 cat >conftest.$ac_ext <<_ACEOF
27209 /* confdefs.h.  */
27210 _ACEOF
27211 cat confdefs.h >>conftest.$ac_ext
27212 cat >>conftest.$ac_ext <<_ACEOF
27213 /* end confdefs.h.  */
27214
27215
27216 int
27217 main ()
27218 {
27219 return main ();
27220   ;
27221   return 0;
27222 }
27223 _ACEOF
27224 rm -f conftest.$ac_objext conftest$ac_exeext
27225 if { (ac_try="$ac_link"
27226 case "(($ac_try" in
27227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228   *) ac_try_echo=$ac_try;;
27229 esac
27230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231   (eval "$ac_link") 2>conftest.er1
27232   ac_status=$?
27233   grep -v '^ *+' conftest.er1 >conftest.err
27234   rm -f conftest.er1
27235   cat conftest.err >&5
27236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237   (exit $ac_status); } &&
27238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27239   { (case "(($ac_try" in
27240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241   *) ac_try_echo=$ac_try;;
27242 esac
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244   (eval "$ac_try") 2>&5
27245   ac_status=$?
27246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247   (exit $ac_status); }; } &&
27248          { ac_try='test -s conftest$ac_exeext'
27249   { (case "(($ac_try" in
27250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251   *) ac_try_echo=$ac_try;;
27252 esac
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254   (eval "$ac_try") 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); }; }; then
27258   ac_cv_lib_imagehlp_main=yes
27259 else
27260   echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27262
27263         ac_cv_lib_imagehlp_main=no
27264 fi
27265
27266 rm -f core conftest.err conftest.$ac_objext \
27267       conftest$ac_exeext conftest.$ac_ext
27268 LIBS=$ac_check_lib_save_LIBS
27269 fi
27270 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27271 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27272 if test $ac_cv_lib_imagehlp_main = yes; then
27273   cat >>confdefs.h <<_ACEOF
27274 #define HAVE_LIBIMAGEHLP 1
27275 _ACEOF
27276
27277   LIBS="-limagehlp $LIBS"
27278
27279 fi
27280
27281
27282 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27283 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27284 if test "${ac_cv_lib_psapi_main+set}" = set; then
27285   echo $ECHO_N "(cached) $ECHO_C" >&6
27286 else
27287   ac_check_lib_save_LIBS=$LIBS
27288 LIBS="-lpsapi  $LIBS"
27289 cat >conftest.$ac_ext <<_ACEOF
27290 /* confdefs.h.  */
27291 _ACEOF
27292 cat confdefs.h >>conftest.$ac_ext
27293 cat >>conftest.$ac_ext <<_ACEOF
27294 /* end confdefs.h.  */
27295
27296
27297 int
27298 main ()
27299 {
27300 return main ();
27301   ;
27302   return 0;
27303 }
27304 _ACEOF
27305 rm -f conftest.$ac_objext conftest$ac_exeext
27306 if { (ac_try="$ac_link"
27307 case "(($ac_try" in
27308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309   *) ac_try_echo=$ac_try;;
27310 esac
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312   (eval "$ac_link") 2>conftest.er1
27313   ac_status=$?
27314   grep -v '^ *+' conftest.er1 >conftest.err
27315   rm -f conftest.er1
27316   cat conftest.err >&5
27317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318   (exit $ac_status); } &&
27319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27320   { (case "(($ac_try" in
27321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322   *) ac_try_echo=$ac_try;;
27323 esac
27324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325   (eval "$ac_try") 2>&5
27326   ac_status=$?
27327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328   (exit $ac_status); }; } &&
27329          { ac_try='test -s conftest$ac_exeext'
27330   { (case "(($ac_try" in
27331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27332   *) ac_try_echo=$ac_try;;
27333 esac
27334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27335   (eval "$ac_try") 2>&5
27336   ac_status=$?
27337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338   (exit $ac_status); }; }; then
27339   ac_cv_lib_psapi_main=yes
27340 else
27341   echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27343
27344         ac_cv_lib_psapi_main=no
27345 fi
27346
27347 rm -f core conftest.err conftest.$ac_objext \
27348       conftest$ac_exeext conftest.$ac_ext
27349 LIBS=$ac_check_lib_save_LIBS
27350 fi
27351 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27352 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27353 if test $ac_cv_lib_psapi_main = yes; then
27354   cat >>confdefs.h <<_ACEOF
27355 #define HAVE_LIBPSAPI 1
27356 _ACEOF
27357
27358   LIBS="-lpsapi $LIBS"
27359
27360 fi
27361
27362 fi
27363
27364 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27365 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27366 if test "${ac_cv_search_dlopen+set}" = set; then
27367   echo $ECHO_N "(cached) $ECHO_C" >&6
27368 else
27369   ac_func_search_save_LIBS=$LIBS
27370 cat >conftest.$ac_ext <<_ACEOF
27371 /* confdefs.h.  */
27372 _ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h.  */
27376
27377 /* Override any GCC internal prototype to avoid an error.
27378    Use char because int might match the return type of a GCC
27379    builtin and then its argument prototype would still apply.  */
27380 #ifdef __cplusplus
27381 extern "C"
27382 #endif
27383 char dlopen ();
27384 int
27385 main ()
27386 {
27387 return dlopen ();
27388   ;
27389   return 0;
27390 }
27391 _ACEOF
27392 for ac_lib in '' dl; do
27393   if test -z "$ac_lib"; then
27394     ac_res="none required"
27395   else
27396     ac_res=-l$ac_lib
27397     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27398   fi
27399   rm -f conftest.$ac_objext conftest$ac_exeext
27400 if { (ac_try="$ac_link"
27401 case "(($ac_try" in
27402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403   *) ac_try_echo=$ac_try;;
27404 esac
27405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406   (eval "$ac_link") 2>conftest.er1
27407   ac_status=$?
27408   grep -v '^ *+' conftest.er1 >conftest.err
27409   rm -f conftest.er1
27410   cat conftest.err >&5
27411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412   (exit $ac_status); } &&
27413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27414   { (case "(($ac_try" in
27415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416   *) ac_try_echo=$ac_try;;
27417 esac
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419   (eval "$ac_try") 2>&5
27420   ac_status=$?
27421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422   (exit $ac_status); }; } &&
27423          { ac_try='test -s conftest$ac_exeext'
27424   { (case "(($ac_try" in
27425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426   *) ac_try_echo=$ac_try;;
27427 esac
27428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429   (eval "$ac_try") 2>&5
27430   ac_status=$?
27431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432   (exit $ac_status); }; }; then
27433   ac_cv_search_dlopen=$ac_res
27434 else
27435   echo "$as_me: failed program was:" >&5
27436 sed 's/^/| /' conftest.$ac_ext >&5
27437
27438
27439 fi
27440
27441 rm -f core conftest.err conftest.$ac_objext \
27442       conftest$ac_exeext
27443   if test "${ac_cv_search_dlopen+set}" = set; then
27444   break
27445 fi
27446 done
27447 if test "${ac_cv_search_dlopen+set}" = set; then
27448   :
27449 else
27450   ac_cv_search_dlopen=no
27451 fi
27452 rm conftest.$ac_ext
27453 LIBS=$ac_func_search_save_LIBS
27454 fi
27455 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27456 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27457 ac_res=$ac_cv_search_dlopen
27458 if test "$ac_res" != no; then
27459   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27460
27461 cat >>confdefs.h <<\_ACEOF
27462 #define HAVE_DLOPEN 1
27463 _ACEOF
27464
27465 else
27466   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27467 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27468 fi
27469
27470
27471 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27472 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27473 if test "${ac_cv_search_ffi_call+set}" = set; then
27474   echo $ECHO_N "(cached) $ECHO_C" >&6
27475 else
27476   ac_func_search_save_LIBS=$LIBS
27477 cat >conftest.$ac_ext <<_ACEOF
27478 /* confdefs.h.  */
27479 _ACEOF
27480 cat confdefs.h >>conftest.$ac_ext
27481 cat >>conftest.$ac_ext <<_ACEOF
27482 /* end confdefs.h.  */
27483
27484 /* Override any GCC internal prototype to avoid an error.
27485    Use char because int might match the return type of a GCC
27486    builtin and then its argument prototype would still apply.  */
27487 #ifdef __cplusplus
27488 extern "C"
27489 #endif
27490 char ffi_call ();
27491 int
27492 main ()
27493 {
27494 return ffi_call ();
27495   ;
27496   return 0;
27497 }
27498 _ACEOF
27499 for ac_lib in '' ffi; do
27500   if test -z "$ac_lib"; then
27501     ac_res="none required"
27502   else
27503     ac_res=-l$ac_lib
27504     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27505   fi
27506   rm -f conftest.$ac_objext conftest$ac_exeext
27507 if { (ac_try="$ac_link"
27508 case "(($ac_try" in
27509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510   *) ac_try_echo=$ac_try;;
27511 esac
27512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513   (eval "$ac_link") 2>conftest.er1
27514   ac_status=$?
27515   grep -v '^ *+' conftest.er1 >conftest.err
27516   rm -f conftest.er1
27517   cat conftest.err >&5
27518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); } &&
27520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27521   { (case "(($ac_try" in
27522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27523   *) ac_try_echo=$ac_try;;
27524 esac
27525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27526   (eval "$ac_try") 2>&5
27527   ac_status=$?
27528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529   (exit $ac_status); }; } &&
27530          { ac_try='test -s conftest$ac_exeext'
27531   { (case "(($ac_try" in
27532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533   *) ac_try_echo=$ac_try;;
27534 esac
27535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27536   (eval "$ac_try") 2>&5
27537   ac_status=$?
27538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539   (exit $ac_status); }; }; then
27540   ac_cv_search_ffi_call=$ac_res
27541 else
27542   echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27544
27545
27546 fi
27547
27548 rm -f core conftest.err conftest.$ac_objext \
27549       conftest$ac_exeext
27550   if test "${ac_cv_search_ffi_call+set}" = set; then
27551   break
27552 fi
27553 done
27554 if test "${ac_cv_search_ffi_call+set}" = set; then
27555   :
27556 else
27557   ac_cv_search_ffi_call=no
27558 fi
27559 rm conftest.$ac_ext
27560 LIBS=$ac_func_search_save_LIBS
27561 fi
27562 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27563 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27564 ac_res=$ac_cv_search_ffi_call
27565 if test "$ac_res" != no; then
27566   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27567
27568 cat >>confdefs.h <<\_ACEOF
27569 #define HAVE_FFI_CALL 1
27570 _ACEOF
27571
27572 else
27573   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27574 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27575 fi
27576
27577
27578 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27579 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27580 if test "${ac_cv_search_mallinfo+set}" = set; then
27581   echo $ECHO_N "(cached) $ECHO_C" >&6
27582 else
27583   ac_func_search_save_LIBS=$LIBS
27584 cat >conftest.$ac_ext <<_ACEOF
27585 /* confdefs.h.  */
27586 _ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h.  */
27590
27591 /* Override any GCC internal prototype to avoid an error.
27592    Use char because int might match the return type of a GCC
27593    builtin and then its argument prototype would still apply.  */
27594 #ifdef __cplusplus
27595 extern "C"
27596 #endif
27597 char mallinfo ();
27598 int
27599 main ()
27600 {
27601 return mallinfo ();
27602   ;
27603   return 0;
27604 }
27605 _ACEOF
27606 for ac_lib in '' malloc; do
27607   if test -z "$ac_lib"; then
27608     ac_res="none required"
27609   else
27610     ac_res=-l$ac_lib
27611     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27612   fi
27613   rm -f conftest.$ac_objext conftest$ac_exeext
27614 if { (ac_try="$ac_link"
27615 case "(($ac_try" in
27616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617   *) ac_try_echo=$ac_try;;
27618 esac
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620   (eval "$ac_link") 2>conftest.er1
27621   ac_status=$?
27622   grep -v '^ *+' conftest.er1 >conftest.err
27623   rm -f conftest.er1
27624   cat conftest.err >&5
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } &&
27627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27628   { (case "(($ac_try" in
27629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27630   *) ac_try_echo=$ac_try;;
27631 esac
27632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27633   (eval "$ac_try") 2>&5
27634   ac_status=$?
27635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636   (exit $ac_status); }; } &&
27637          { ac_try='test -s conftest$ac_exeext'
27638   { (case "(($ac_try" in
27639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640   *) ac_try_echo=$ac_try;;
27641 esac
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643   (eval "$ac_try") 2>&5
27644   ac_status=$?
27645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646   (exit $ac_status); }; }; then
27647   ac_cv_search_mallinfo=$ac_res
27648 else
27649   echo "$as_me: failed program was:" >&5
27650 sed 's/^/| /' conftest.$ac_ext >&5
27651
27652
27653 fi
27654
27655 rm -f core conftest.err conftest.$ac_objext \
27656       conftest$ac_exeext
27657   if test "${ac_cv_search_mallinfo+set}" = set; then
27658   break
27659 fi
27660 done
27661 if test "${ac_cv_search_mallinfo+set}" = set; then
27662   :
27663 else
27664   ac_cv_search_mallinfo=no
27665 fi
27666 rm conftest.$ac_ext
27667 LIBS=$ac_func_search_save_LIBS
27668 fi
27669 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27670 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27671 ac_res=$ac_cv_search_mallinfo
27672 if test "$ac_res" != no; then
27673   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27674
27675 cat >>confdefs.h <<\_ACEOF
27676 #define HAVE_MALLINFO 1
27677 _ACEOF
27678
27679 fi
27680
27681
27682 if test "$ENABLE_THREADS" -eq 1 ; then
27683
27684 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27685 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27686 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27687   echo $ECHO_N "(cached) $ECHO_C" >&6
27688 else
27689   ac_check_lib_save_LIBS=$LIBS
27690 LIBS="-lpthread  $LIBS"
27691 cat >conftest.$ac_ext <<_ACEOF
27692 /* confdefs.h.  */
27693 _ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h.  */
27697
27698 /* Override any GCC internal prototype to avoid an error.
27699    Use char because int might match the return type of a GCC
27700    builtin and then its argument prototype would still apply.  */
27701 #ifdef __cplusplus
27702 extern "C"
27703 #endif
27704 char pthread_mutex_init ();
27705 int
27706 main ()
27707 {
27708 return pthread_mutex_init ();
27709   ;
27710   return 0;
27711 }
27712 _ACEOF
27713 rm -f conftest.$ac_objext conftest$ac_exeext
27714 if { (ac_try="$ac_link"
27715 case "(($ac_try" in
27716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717   *) ac_try_echo=$ac_try;;
27718 esac
27719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720   (eval "$ac_link") 2>conftest.er1
27721   ac_status=$?
27722   grep -v '^ *+' conftest.er1 >conftest.err
27723   rm -f conftest.er1
27724   cat conftest.err >&5
27725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726   (exit $ac_status); } &&
27727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27728   { (case "(($ac_try" in
27729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27730   *) ac_try_echo=$ac_try;;
27731 esac
27732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27733   (eval "$ac_try") 2>&5
27734   ac_status=$?
27735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736   (exit $ac_status); }; } &&
27737          { ac_try='test -s conftest$ac_exeext'
27738   { (case "(($ac_try" in
27739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740   *) ac_try_echo=$ac_try;;
27741 esac
27742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743   (eval "$ac_try") 2>&5
27744   ac_status=$?
27745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746   (exit $ac_status); }; }; then
27747   ac_cv_lib_pthread_pthread_mutex_init=yes
27748 else
27749   echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27751
27752         ac_cv_lib_pthread_pthread_mutex_init=no
27753 fi
27754
27755 rm -f core conftest.err conftest.$ac_objext \
27756       conftest$ac_exeext conftest.$ac_ext
27757 LIBS=$ac_check_lib_save_LIBS
27758 fi
27759 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27760 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27761 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27762   cat >>confdefs.h <<_ACEOF
27763 #define HAVE_LIBPTHREAD 1
27764 _ACEOF
27765
27766   LIBS="-lpthread $LIBS"
27767
27768 fi
27769
27770   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27771 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27772 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27773   echo $ECHO_N "(cached) $ECHO_C" >&6
27774 else
27775   ac_func_search_save_LIBS=$LIBS
27776 cat >conftest.$ac_ext <<_ACEOF
27777 /* confdefs.h.  */
27778 _ACEOF
27779 cat confdefs.h >>conftest.$ac_ext
27780 cat >>conftest.$ac_ext <<_ACEOF
27781 /* end confdefs.h.  */
27782
27783 /* Override any GCC internal prototype to avoid an error.
27784    Use char because int might match the return type of a GCC
27785    builtin and then its argument prototype would still apply.  */
27786 #ifdef __cplusplus
27787 extern "C"
27788 #endif
27789 char pthread_mutex_lock ();
27790 int
27791 main ()
27792 {
27793 return pthread_mutex_lock ();
27794   ;
27795   return 0;
27796 }
27797 _ACEOF
27798 for ac_lib in '' pthread; do
27799   if test -z "$ac_lib"; then
27800     ac_res="none required"
27801   else
27802     ac_res=-l$ac_lib
27803     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27804   fi
27805   rm -f conftest.$ac_objext conftest$ac_exeext
27806 if { (ac_try="$ac_link"
27807 case "(($ac_try" in
27808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809   *) ac_try_echo=$ac_try;;
27810 esac
27811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812   (eval "$ac_link") 2>conftest.er1
27813   ac_status=$?
27814   grep -v '^ *+' conftest.er1 >conftest.err
27815   rm -f conftest.er1
27816   cat conftest.err >&5
27817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818   (exit $ac_status); } &&
27819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27820   { (case "(($ac_try" in
27821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822   *) ac_try_echo=$ac_try;;
27823 esac
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825   (eval "$ac_try") 2>&5
27826   ac_status=$?
27827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828   (exit $ac_status); }; } &&
27829          { ac_try='test -s conftest$ac_exeext'
27830   { (case "(($ac_try" in
27831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832   *) ac_try_echo=$ac_try;;
27833 esac
27834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835   (eval "$ac_try") 2>&5
27836   ac_status=$?
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); }; }; then
27839   ac_cv_search_pthread_mutex_lock=$ac_res
27840 else
27841   echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27843
27844
27845 fi
27846
27847 rm -f core conftest.err conftest.$ac_objext \
27848       conftest$ac_exeext
27849   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27850   break
27851 fi
27852 done
27853 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27854   :
27855 else
27856   ac_cv_search_pthread_mutex_lock=no
27857 fi
27858 rm conftest.$ac_ext
27859 LIBS=$ac_func_search_save_LIBS
27860 fi
27861 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27862 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27863 ac_res=$ac_cv_search_pthread_mutex_lock
27864 if test "$ac_res" != no; then
27865   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27866
27867 cat >>confdefs.h <<\_ACEOF
27868 #define HAVE_PTHREAD_MUTEX_LOCK 1
27869 _ACEOF
27870
27871 fi
27872
27873 fi
27874
27875
27876 # Check whether --with-udis86 was given.
27877 if test "${with_udis86+set}" = set; then
27878   withval=$with_udis86;
27879       USE_UDIS86=1
27880
27881       case "$withval" in
27882         /usr/lib|yes) ;;
27883         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27884       esac
27885
27886 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27887 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27888 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27889   echo $ECHO_N "(cached) $ECHO_C" >&6
27890 else
27891   ac_check_lib_save_LIBS=$LIBS
27892 LIBS="-ludis86  $LIBS"
27893 cat >conftest.$ac_ext <<_ACEOF
27894 /* confdefs.h.  */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h.  */
27899
27900 /* Override any GCC internal prototype to avoid an error.
27901    Use char because int might match the return type of a GCC
27902    builtin and then its argument prototype would still apply.  */
27903 #ifdef __cplusplus
27904 extern "C"
27905 #endif
27906 char ud_init ();
27907 int
27908 main ()
27909 {
27910 return ud_init ();
27911   ;
27912   return 0;
27913 }
27914 _ACEOF
27915 rm -f conftest.$ac_objext conftest$ac_exeext
27916 if { (ac_try="$ac_link"
27917 case "(($ac_try" in
27918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27919   *) ac_try_echo=$ac_try;;
27920 esac
27921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27922   (eval "$ac_link") 2>conftest.er1
27923   ac_status=$?
27924   grep -v '^ *+' conftest.er1 >conftest.err
27925   rm -f conftest.er1
27926   cat conftest.err >&5
27927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928   (exit $ac_status); } &&
27929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27930   { (case "(($ac_try" in
27931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932   *) ac_try_echo=$ac_try;;
27933 esac
27934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935   (eval "$ac_try") 2>&5
27936   ac_status=$?
27937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938   (exit $ac_status); }; } &&
27939          { ac_try='test -s conftest$ac_exeext'
27940   { (case "(($ac_try" in
27941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27942   *) ac_try_echo=$ac_try;;
27943 esac
27944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27945   (eval "$ac_try") 2>&5
27946   ac_status=$?
27947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948   (exit $ac_status); }; }; then
27949   ac_cv_lib_udis86_ud_init=yes
27950 else
27951   echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27953
27954         ac_cv_lib_udis86_ud_init=no
27955 fi
27956
27957 rm -f core conftest.err conftest.$ac_objext \
27958       conftest$ac_exeext conftest.$ac_ext
27959 LIBS=$ac_check_lib_save_LIBS
27960 fi
27961 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27962 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27963 if test $ac_cv_lib_udis86_ud_init = yes; then
27964   cat >>confdefs.h <<_ACEOF
27965 #define HAVE_LIBUDIS86 1
27966 _ACEOF
27967
27968   LIBS="-ludis86 $LIBS"
27969
27970 else
27971
27972         echo "Error! You need to have libudis86 around."
27973         exit -1
27974
27975 fi
27976
27977
27978 else
27979   USE_UDIS86=0
27980
27981 fi
27982
27983
27984 cat >>confdefs.h <<_ACEOF
27985 #define USE_UDIS86 $USE_UDIS86
27986 _ACEOF
27987
27988
27989
27990
27991
27992
27993
27994
27995 ac_header_dirent=no
27996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27997   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27998 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28001   echo $ECHO_N "(cached) $ECHO_C" >&6
28002 else
28003   cat >conftest.$ac_ext <<_ACEOF
28004 /* confdefs.h.  */
28005 _ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h.  */
28009 #include <sys/types.h>
28010 #include <$ac_hdr>
28011
28012 int
28013 main ()
28014 {
28015 if ((DIR *) 0)
28016 return 0;
28017   ;
28018   return 0;
28019 }
28020 _ACEOF
28021 rm -f conftest.$ac_objext
28022 if { (ac_try="$ac_compile"
28023 case "(($ac_try" in
28024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025   *) ac_try_echo=$ac_try;;
28026 esac
28027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28028   (eval "$ac_compile") 2>conftest.er1
28029   ac_status=$?
28030   grep -v '^ *+' conftest.er1 >conftest.err
28031   rm -f conftest.er1
28032   cat conftest.err >&5
28033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034   (exit $ac_status); } &&
28035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28036   { (case "(($ac_try" in
28037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038   *) ac_try_echo=$ac_try;;
28039 esac
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041   (eval "$ac_try") 2>&5
28042   ac_status=$?
28043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044   (exit $ac_status); }; } &&
28045          { ac_try='test -s conftest.$ac_objext'
28046   { (case "(($ac_try" in
28047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048   *) ac_try_echo=$ac_try;;
28049 esac
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051   (eval "$ac_try") 2>&5
28052   ac_status=$?
28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054   (exit $ac_status); }; }; then
28055   eval "$as_ac_Header=yes"
28056 else
28057   echo "$as_me: failed program was:" >&5
28058 sed 's/^/| /' conftest.$ac_ext >&5
28059
28060         eval "$as_ac_Header=no"
28061 fi
28062
28063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28064 fi
28065 ac_res=`eval echo '${'$as_ac_Header'}'`
28066                { echo "$as_me:$LINENO: result: $ac_res" >&5
28067 echo "${ECHO_T}$ac_res" >&6; }
28068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28069   cat >>confdefs.h <<_ACEOF
28070 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28071 _ACEOF
28072
28073 ac_header_dirent=$ac_hdr; break
28074 fi
28075
28076 done
28077 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28078 if test $ac_header_dirent = dirent.h; then
28079   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28080 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28081 if test "${ac_cv_search_opendir+set}" = set; then
28082   echo $ECHO_N "(cached) $ECHO_C" >&6
28083 else
28084   ac_func_search_save_LIBS=$LIBS
28085 cat >conftest.$ac_ext <<_ACEOF
28086 /* confdefs.h.  */
28087 _ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h.  */
28091
28092 /* Override any GCC internal prototype to avoid an error.
28093    Use char because int might match the return type of a GCC
28094    builtin and then its argument prototype would still apply.  */
28095 #ifdef __cplusplus
28096 extern "C"
28097 #endif
28098 char opendir ();
28099 int
28100 main ()
28101 {
28102 return opendir ();
28103   ;
28104   return 0;
28105 }
28106 _ACEOF
28107 for ac_lib in '' dir; do
28108   if test -z "$ac_lib"; then
28109     ac_res="none required"
28110   else
28111     ac_res=-l$ac_lib
28112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28113   fi
28114   rm -f conftest.$ac_objext conftest$ac_exeext
28115 if { (ac_try="$ac_link"
28116 case "(($ac_try" in
28117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118   *) ac_try_echo=$ac_try;;
28119 esac
28120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121   (eval "$ac_link") 2>conftest.er1
28122   ac_status=$?
28123   grep -v '^ *+' conftest.er1 >conftest.err
28124   rm -f conftest.er1
28125   cat conftest.err >&5
28126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127   (exit $ac_status); } &&
28128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28129   { (case "(($ac_try" in
28130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131   *) ac_try_echo=$ac_try;;
28132 esac
28133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134   (eval "$ac_try") 2>&5
28135   ac_status=$?
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); }; } &&
28138          { ac_try='test -s conftest$ac_exeext'
28139   { (case "(($ac_try" in
28140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141   *) ac_try_echo=$ac_try;;
28142 esac
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144   (eval "$ac_try") 2>&5
28145   ac_status=$?
28146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147   (exit $ac_status); }; }; then
28148   ac_cv_search_opendir=$ac_res
28149 else
28150   echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28152
28153
28154 fi
28155
28156 rm -f core conftest.err conftest.$ac_objext \
28157       conftest$ac_exeext
28158   if test "${ac_cv_search_opendir+set}" = set; then
28159   break
28160 fi
28161 done
28162 if test "${ac_cv_search_opendir+set}" = set; then
28163   :
28164 else
28165   ac_cv_search_opendir=no
28166 fi
28167 rm conftest.$ac_ext
28168 LIBS=$ac_func_search_save_LIBS
28169 fi
28170 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28171 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28172 ac_res=$ac_cv_search_opendir
28173 if test "$ac_res" != no; then
28174   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28175
28176 fi
28177
28178 else
28179   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28180 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28181 if test "${ac_cv_search_opendir+set}" = set; then
28182   echo $ECHO_N "(cached) $ECHO_C" >&6
28183 else
28184   ac_func_search_save_LIBS=$LIBS
28185 cat >conftest.$ac_ext <<_ACEOF
28186 /* confdefs.h.  */
28187 _ACEOF
28188 cat confdefs.h >>conftest.$ac_ext
28189 cat >>conftest.$ac_ext <<_ACEOF
28190 /* end confdefs.h.  */
28191
28192 /* Override any GCC internal prototype to avoid an error.
28193    Use char because int might match the return type of a GCC
28194    builtin and then its argument prototype would still apply.  */
28195 #ifdef __cplusplus
28196 extern "C"
28197 #endif
28198 char opendir ();
28199 int
28200 main ()
28201 {
28202 return opendir ();
28203   ;
28204   return 0;
28205 }
28206 _ACEOF
28207 for ac_lib in '' x; do
28208   if test -z "$ac_lib"; then
28209     ac_res="none required"
28210   else
28211     ac_res=-l$ac_lib
28212     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28213   fi
28214   rm -f conftest.$ac_objext conftest$ac_exeext
28215 if { (ac_try="$ac_link"
28216 case "(($ac_try" in
28217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218   *) ac_try_echo=$ac_try;;
28219 esac
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221   (eval "$ac_link") 2>conftest.er1
28222   ac_status=$?
28223   grep -v '^ *+' conftest.er1 >conftest.err
28224   rm -f conftest.er1
28225   cat conftest.err >&5
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); } &&
28228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28229   { (case "(($ac_try" in
28230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231   *) ac_try_echo=$ac_try;;
28232 esac
28233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234   (eval "$ac_try") 2>&5
28235   ac_status=$?
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); }; } &&
28238          { ac_try='test -s conftest$ac_exeext'
28239   { (case "(($ac_try" in
28240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241   *) ac_try_echo=$ac_try;;
28242 esac
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244   (eval "$ac_try") 2>&5
28245   ac_status=$?
28246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247   (exit $ac_status); }; }; then
28248   ac_cv_search_opendir=$ac_res
28249 else
28250   echo "$as_me: failed program was:" >&5
28251 sed 's/^/| /' conftest.$ac_ext >&5
28252
28253
28254 fi
28255
28256 rm -f core conftest.err conftest.$ac_objext \
28257       conftest$ac_exeext
28258   if test "${ac_cv_search_opendir+set}" = set; then
28259   break
28260 fi
28261 done
28262 if test "${ac_cv_search_opendir+set}" = set; then
28263   :
28264 else
28265   ac_cv_search_opendir=no
28266 fi
28267 rm conftest.$ac_ext
28268 LIBS=$ac_func_search_save_LIBS
28269 fi
28270 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28271 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28272 ac_res=$ac_cv_search_opendir
28273 if test "$ac_res" != no; then
28274   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28275
28276 fi
28277
28278 fi
28279
28280 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28281 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28282 if test "${ac_cv_header_mmap_anon+set}" = set; then
28283   echo $ECHO_N "(cached) $ECHO_C" >&6
28284 else
28285    ac_ext=c
28286 ac_cpp='$CPP $CPPFLAGS'
28287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28290
28291   cat >conftest.$ac_ext <<_ACEOF
28292 /* confdefs.h.  */
28293 _ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h.  */
28297 #include <sys/mman.h>
28298 #include <unistd.h>
28299 #include <fcntl.h>
28300 int
28301 main ()
28302 {
28303 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28304   ;
28305   return 0;
28306 }
28307 _ACEOF
28308 rm -f conftest.$ac_objext
28309 if { (ac_try="$ac_compile"
28310 case "(($ac_try" in
28311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312   *) ac_try_echo=$ac_try;;
28313 esac
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315   (eval "$ac_compile") 2>conftest.er1
28316   ac_status=$?
28317   grep -v '^ *+' conftest.er1 >conftest.err
28318   rm -f conftest.er1
28319   cat conftest.err >&5
28320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); } &&
28322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28323   { (case "(($ac_try" in
28324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325   *) ac_try_echo=$ac_try;;
28326 esac
28327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328   (eval "$ac_try") 2>&5
28329   ac_status=$?
28330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331   (exit $ac_status); }; } &&
28332          { ac_try='test -s conftest.$ac_objext'
28333   { (case "(($ac_try" in
28334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28335   *) ac_try_echo=$ac_try;;
28336 esac
28337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28338   (eval "$ac_try") 2>&5
28339   ac_status=$?
28340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341   (exit $ac_status); }; }; then
28342   ac_cv_header_mmap_anon=yes
28343 else
28344   echo "$as_me: failed program was:" >&5
28345 sed 's/^/| /' conftest.$ac_ext >&5
28346
28347         ac_cv_header_mmap_anon=no
28348 fi
28349
28350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28351   ac_ext=c
28352 ac_cpp='$CPP $CPPFLAGS'
28353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28356
28357
28358 fi
28359 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28360 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28361 if test "$ac_cv_header_mmap_anon" = yes; then
28362
28363 cat >>confdefs.h <<\_ACEOF
28364 #define HAVE_MMAP_ANONYMOUS 1
28365 _ACEOF
28366
28367 fi
28368
28369 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28370 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28371 if test "${ac_cv_header_stat_broken+set}" = set; then
28372   echo $ECHO_N "(cached) $ECHO_C" >&6
28373 else
28374   cat >conftest.$ac_ext <<_ACEOF
28375 /* confdefs.h.  */
28376 _ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h.  */
28380 #include <sys/types.h>
28381 #include <sys/stat.h>
28382
28383 #if defined S_ISBLK && defined S_IFDIR
28384 # if S_ISBLK (S_IFDIR)
28385 You lose.
28386 # endif
28387 #endif
28388
28389 #if defined S_ISBLK && defined S_IFCHR
28390 # if S_ISBLK (S_IFCHR)
28391 You lose.
28392 # endif
28393 #endif
28394
28395 #if defined S_ISLNK && defined S_IFREG
28396 # if S_ISLNK (S_IFREG)
28397 You lose.
28398 # endif
28399 #endif
28400
28401 #if defined S_ISSOCK && defined S_IFREG
28402 # if S_ISSOCK (S_IFREG)
28403 You lose.
28404 # endif
28405 #endif
28406
28407 _ACEOF
28408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28409   $EGREP "You lose" >/dev/null 2>&1; then
28410   ac_cv_header_stat_broken=yes
28411 else
28412   ac_cv_header_stat_broken=no
28413 fi
28414 rm -f conftest*
28415
28416 fi
28417 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28418 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28419 if test $ac_cv_header_stat_broken = yes; then
28420
28421 cat >>confdefs.h <<\_ACEOF
28422 #define STAT_MACROS_BROKEN 1
28423 _ACEOF
28424
28425 fi
28426
28427 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28428 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28429 if test "${ac_cv_header_stdc+set}" = set; then
28430   echo $ECHO_N "(cached) $ECHO_C" >&6
28431 else
28432   cat >conftest.$ac_ext <<_ACEOF
28433 /* confdefs.h.  */
28434 _ACEOF
28435 cat confdefs.h >>conftest.$ac_ext
28436 cat >>conftest.$ac_ext <<_ACEOF
28437 /* end confdefs.h.  */
28438 #include <stdlib.h>
28439 #include <stdarg.h>
28440 #include <string.h>
28441 #include <float.h>
28442
28443 int
28444 main ()
28445 {
28446
28447   ;
28448   return 0;
28449 }
28450 _ACEOF
28451 rm -f conftest.$ac_objext
28452 if { (ac_try="$ac_compile"
28453 case "(($ac_try" in
28454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455   *) ac_try_echo=$ac_try;;
28456 esac
28457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458   (eval "$ac_compile") 2>conftest.er1
28459   ac_status=$?
28460   grep -v '^ *+' conftest.er1 >conftest.err
28461   rm -f conftest.er1
28462   cat conftest.err >&5
28463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464   (exit $ac_status); } &&
28465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28466   { (case "(($ac_try" in
28467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28468   *) ac_try_echo=$ac_try;;
28469 esac
28470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471   (eval "$ac_try") 2>&5
28472   ac_status=$?
28473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474   (exit $ac_status); }; } &&
28475          { ac_try='test -s conftest.$ac_objext'
28476   { (case "(($ac_try" in
28477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478   *) ac_try_echo=$ac_try;;
28479 esac
28480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481   (eval "$ac_try") 2>&5
28482   ac_status=$?
28483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484   (exit $ac_status); }; }; then
28485   ac_cv_header_stdc=yes
28486 else
28487   echo "$as_me: failed program was:" >&5
28488 sed 's/^/| /' conftest.$ac_ext >&5
28489
28490         ac_cv_header_stdc=no
28491 fi
28492
28493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28494
28495 if test $ac_cv_header_stdc = yes; then
28496   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28497   cat >conftest.$ac_ext <<_ACEOF
28498 /* confdefs.h.  */
28499 _ACEOF
28500 cat confdefs.h >>conftest.$ac_ext
28501 cat >>conftest.$ac_ext <<_ACEOF
28502 /* end confdefs.h.  */
28503 #include <string.h>
28504
28505 _ACEOF
28506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28507   $EGREP "memchr" >/dev/null 2>&1; then
28508   :
28509 else
28510   ac_cv_header_stdc=no
28511 fi
28512 rm -f conftest*
28513
28514 fi
28515
28516 if test $ac_cv_header_stdc = yes; then
28517   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28518   cat >conftest.$ac_ext <<_ACEOF
28519 /* confdefs.h.  */
28520 _ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h.  */
28524 #include <stdlib.h>
28525
28526 _ACEOF
28527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28528   $EGREP "free" >/dev/null 2>&1; then
28529   :
28530 else
28531   ac_cv_header_stdc=no
28532 fi
28533 rm -f conftest*
28534
28535 fi
28536
28537 if test $ac_cv_header_stdc = yes; then
28538   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28539   if test "$cross_compiling" = yes; then
28540   :
28541 else
28542   cat >conftest.$ac_ext <<_ACEOF
28543 /* confdefs.h.  */
28544 _ACEOF
28545 cat confdefs.h >>conftest.$ac_ext
28546 cat >>conftest.$ac_ext <<_ACEOF
28547 /* end confdefs.h.  */
28548 #include <ctype.h>
28549 #include <stdlib.h>
28550 #if ((' ' & 0x0FF) == 0x020)
28551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28553 #else
28554 # define ISLOWER(c) \
28555                    (('a' <= (c) && (c) <= 'i') \
28556                      || ('j' <= (c) && (c) <= 'r') \
28557                      || ('s' <= (c) && (c) <= 'z'))
28558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28559 #endif
28560
28561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28562 int
28563 main ()
28564 {
28565   int i;
28566   for (i = 0; i < 256; i++)
28567     if (XOR (islower (i), ISLOWER (i))
28568         || toupper (i) != TOUPPER (i))
28569       return 2;
28570   return 0;
28571 }
28572 _ACEOF
28573 rm -f conftest$ac_exeext
28574 if { (ac_try="$ac_link"
28575 case "(($ac_try" in
28576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28577   *) ac_try_echo=$ac_try;;
28578 esac
28579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28580   (eval "$ac_link") 2>&5
28581   ac_status=$?
28582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28584   { (case "(($ac_try" in
28585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586   *) ac_try_echo=$ac_try;;
28587 esac
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589   (eval "$ac_try") 2>&5
28590   ac_status=$?
28591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592   (exit $ac_status); }; }; then
28593   :
28594 else
28595   echo "$as_me: program exited with status $ac_status" >&5
28596 echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.$ac_ext >&5
28598
28599 ( exit $ac_status )
28600 ac_cv_header_stdc=no
28601 fi
28602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28603 fi
28604
28605
28606 fi
28607 fi
28608 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28609 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28610 if test $ac_cv_header_stdc = yes; then
28611
28612 cat >>confdefs.h <<\_ACEOF
28613 #define STDC_HEADERS 1
28614 _ACEOF
28615
28616 fi
28617
28618 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28619 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28620 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28621   echo $ECHO_N "(cached) $ECHO_C" >&6
28622 else
28623   cat >conftest.$ac_ext <<_ACEOF
28624 /* confdefs.h.  */
28625 _ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h.  */
28629 #include <sys/types.h>
28630 #include <sys/wait.h>
28631 #ifndef WEXITSTATUS
28632 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28633 #endif
28634 #ifndef WIFEXITED
28635 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28636 #endif
28637
28638 int
28639 main ()
28640 {
28641   int s;
28642   wait (&s);
28643   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28644   ;
28645   return 0;
28646 }
28647 _ACEOF
28648 rm -f conftest.$ac_objext
28649 if { (ac_try="$ac_compile"
28650 case "(($ac_try" in
28651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652   *) ac_try_echo=$ac_try;;
28653 esac
28654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28655   (eval "$ac_compile") 2>conftest.er1
28656   ac_status=$?
28657   grep -v '^ *+' conftest.er1 >conftest.err
28658   rm -f conftest.er1
28659   cat conftest.err >&5
28660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661   (exit $ac_status); } &&
28662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28663   { (case "(($ac_try" in
28664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665   *) ac_try_echo=$ac_try;;
28666 esac
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668   (eval "$ac_try") 2>&5
28669   ac_status=$?
28670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671   (exit $ac_status); }; } &&
28672          { ac_try='test -s conftest.$ac_objext'
28673   { (case "(($ac_try" in
28674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675   *) ac_try_echo=$ac_try;;
28676 esac
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678   (eval "$ac_try") 2>&5
28679   ac_status=$?
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); }; }; then
28682   ac_cv_header_sys_wait_h=yes
28683 else
28684   echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28686
28687         ac_cv_header_sys_wait_h=no
28688 fi
28689
28690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28691 fi
28692 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28693 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28694 if test $ac_cv_header_sys_wait_h = yes; then
28695
28696 cat >>confdefs.h <<\_ACEOF
28697 #define HAVE_SYS_WAIT_H 1
28698 _ACEOF
28699
28700 fi
28701
28702 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28703 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28704 if test "${ac_cv_header_time+set}" = set; then
28705   echo $ECHO_N "(cached) $ECHO_C" >&6
28706 else
28707   cat >conftest.$ac_ext <<_ACEOF
28708 /* confdefs.h.  */
28709 _ACEOF
28710 cat confdefs.h >>conftest.$ac_ext
28711 cat >>conftest.$ac_ext <<_ACEOF
28712 /* end confdefs.h.  */
28713 #include <sys/types.h>
28714 #include <sys/time.h>
28715 #include <time.h>
28716
28717 int
28718 main ()
28719 {
28720 if ((struct tm *) 0)
28721 return 0;
28722   ;
28723   return 0;
28724 }
28725 _ACEOF
28726 rm -f conftest.$ac_objext
28727 if { (ac_try="$ac_compile"
28728 case "(($ac_try" in
28729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730   *) ac_try_echo=$ac_try;;
28731 esac
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733   (eval "$ac_compile") 2>conftest.er1
28734   ac_status=$?
28735   grep -v '^ *+' conftest.er1 >conftest.err
28736   rm -f conftest.er1
28737   cat conftest.err >&5
28738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739   (exit $ac_status); } &&
28740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28741   { (case "(($ac_try" in
28742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28743   *) ac_try_echo=$ac_try;;
28744 esac
28745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28746   (eval "$ac_try") 2>&5
28747   ac_status=$?
28748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749   (exit $ac_status); }; } &&
28750          { ac_try='test -s conftest.$ac_objext'
28751   { (case "(($ac_try" in
28752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753   *) ac_try_echo=$ac_try;;
28754 esac
28755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756   (eval "$ac_try") 2>&5
28757   ac_status=$?
28758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759   (exit $ac_status); }; }; then
28760   ac_cv_header_time=yes
28761 else
28762   echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28764
28765         ac_cv_header_time=no
28766 fi
28767
28768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769 fi
28770 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28771 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28772 if test $ac_cv_header_time = yes; then
28773
28774 cat >>confdefs.h <<\_ACEOF
28775 #define TIME_WITH_SYS_TIME 1
28776 _ACEOF
28777
28778 fi
28779
28780
28781
28782
28783
28784
28785
28786
28787 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28788 do
28789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28791   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28794   echo $ECHO_N "(cached) $ECHO_C" >&6
28795 fi
28796 ac_res=`eval echo '${'$as_ac_Header'}'`
28797                { echo "$as_me:$LINENO: result: $ac_res" >&5
28798 echo "${ECHO_T}$ac_res" >&6; }
28799 else
28800   # Is the header compilable?
28801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28803 cat >conftest.$ac_ext <<_ACEOF
28804 /* confdefs.h.  */
28805 _ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h.  */
28809 $ac_includes_default
28810 #include <$ac_header>
28811 _ACEOF
28812 rm -f conftest.$ac_objext
28813 if { (ac_try="$ac_compile"
28814 case "(($ac_try" in
28815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816   *) ac_try_echo=$ac_try;;
28817 esac
28818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819   (eval "$ac_compile") 2>conftest.er1
28820   ac_status=$?
28821   grep -v '^ *+' conftest.er1 >conftest.err
28822   rm -f conftest.er1
28823   cat conftest.err >&5
28824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825   (exit $ac_status); } &&
28826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28827   { (case "(($ac_try" in
28828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829   *) ac_try_echo=$ac_try;;
28830 esac
28831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832   (eval "$ac_try") 2>&5
28833   ac_status=$?
28834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835   (exit $ac_status); }; } &&
28836          { ac_try='test -s conftest.$ac_objext'
28837   { (case "(($ac_try" in
28838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28839   *) ac_try_echo=$ac_try;;
28840 esac
28841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842   (eval "$ac_try") 2>&5
28843   ac_status=$?
28844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845   (exit $ac_status); }; }; then
28846   ac_header_compiler=yes
28847 else
28848   echo "$as_me: failed program was:" >&5
28849 sed 's/^/| /' conftest.$ac_ext >&5
28850
28851         ac_header_compiler=no
28852 fi
28853
28854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28856 echo "${ECHO_T}$ac_header_compiler" >&6; }
28857
28858 # Is the header present?
28859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28861 cat >conftest.$ac_ext <<_ACEOF
28862 /* confdefs.h.  */
28863 _ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h.  */
28867 #include <$ac_header>
28868 _ACEOF
28869 if { (ac_try="$ac_cpp conftest.$ac_ext"
28870 case "(($ac_try" in
28871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872   *) ac_try_echo=$ac_try;;
28873 esac
28874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28876   ac_status=$?
28877   grep -v '^ *+' conftest.er1 >conftest.err
28878   rm -f conftest.er1
28879   cat conftest.err >&5
28880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881   (exit $ac_status); } >/dev/null; then
28882   if test -s conftest.err; then
28883     ac_cpp_err=$ac_c_preproc_warn_flag
28884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28885   else
28886     ac_cpp_err=
28887   fi
28888 else
28889   ac_cpp_err=yes
28890 fi
28891 if test -z "$ac_cpp_err"; then
28892   ac_header_preproc=yes
28893 else
28894   echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28896
28897   ac_header_preproc=no
28898 fi
28899
28900 rm -f conftest.err conftest.$ac_ext
28901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28902 echo "${ECHO_T}$ac_header_preproc" >&6; }
28903
28904 # So?  What about this header?
28905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28906   yes:no: )
28907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28911     ac_header_preproc=yes
28912     ;;
28913   no:yes:* )
28914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28926     ( cat <<\_ASBOX
28927 ## ----------------------------------- ##
28928 ## Report this to llvmbugs@cs.uiuc.edu ##
28929 ## ----------------------------------- ##
28930 _ASBOX
28931      ) | sed "s/^/$as_me: WARNING:     /" >&2
28932     ;;
28933 esac
28934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28937   echo $ECHO_N "(cached) $ECHO_C" >&6
28938 else
28939   eval "$as_ac_Header=\$ac_header_preproc"
28940 fi
28941 ac_res=`eval echo '${'$as_ac_Header'}'`
28942                { echo "$as_me:$LINENO: result: $ac_res" >&5
28943 echo "${ECHO_T}$ac_res" >&6; }
28944
28945 fi
28946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28947   cat >>confdefs.h <<_ACEOF
28948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28949 _ACEOF
28950
28951 fi
28952
28953 done
28954
28955
28956
28957
28958
28959
28960
28961 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
28962 do
28963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28965   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28968   echo $ECHO_N "(cached) $ECHO_C" >&6
28969 fi
28970 ac_res=`eval echo '${'$as_ac_Header'}'`
28971                { echo "$as_me:$LINENO: result: $ac_res" >&5
28972 echo "${ECHO_T}$ac_res" >&6; }
28973 else
28974   # Is the header compilable?
28975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28977 cat >conftest.$ac_ext <<_ACEOF
28978 /* confdefs.h.  */
28979 _ACEOF
28980 cat confdefs.h >>conftest.$ac_ext
28981 cat >>conftest.$ac_ext <<_ACEOF
28982 /* end confdefs.h.  */
28983 $ac_includes_default
28984 #include <$ac_header>
28985 _ACEOF
28986 rm -f conftest.$ac_objext
28987 if { (ac_try="$ac_compile"
28988 case "(($ac_try" in
28989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28990   *) ac_try_echo=$ac_try;;
28991 esac
28992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28993   (eval "$ac_compile") 2>conftest.er1
28994   ac_status=$?
28995   grep -v '^ *+' conftest.er1 >conftest.err
28996   rm -f conftest.er1
28997   cat conftest.err >&5
28998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999   (exit $ac_status); } &&
29000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29001   { (case "(($ac_try" in
29002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003   *) ac_try_echo=$ac_try;;
29004 esac
29005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29006   (eval "$ac_try") 2>&5
29007   ac_status=$?
29008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009   (exit $ac_status); }; } &&
29010          { ac_try='test -s conftest.$ac_objext'
29011   { (case "(($ac_try" in
29012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29013   *) ac_try_echo=$ac_try;;
29014 esac
29015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29016   (eval "$ac_try") 2>&5
29017   ac_status=$?
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); }; }; then
29020   ac_header_compiler=yes
29021 else
29022   echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.$ac_ext >&5
29024
29025         ac_header_compiler=no
29026 fi
29027
29028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29030 echo "${ECHO_T}$ac_header_compiler" >&6; }
29031
29032 # Is the header present?
29033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29035 cat >conftest.$ac_ext <<_ACEOF
29036 /* confdefs.h.  */
29037 _ACEOF
29038 cat confdefs.h >>conftest.$ac_ext
29039 cat >>conftest.$ac_ext <<_ACEOF
29040 /* end confdefs.h.  */
29041 #include <$ac_header>
29042 _ACEOF
29043 if { (ac_try="$ac_cpp conftest.$ac_ext"
29044 case "(($ac_try" in
29045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29046   *) ac_try_echo=$ac_try;;
29047 esac
29048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29050   ac_status=$?
29051   grep -v '^ *+' conftest.er1 >conftest.err
29052   rm -f conftest.er1
29053   cat conftest.err >&5
29054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055   (exit $ac_status); } >/dev/null; then
29056   if test -s conftest.err; then
29057     ac_cpp_err=$ac_c_preproc_warn_flag
29058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29059   else
29060     ac_cpp_err=
29061   fi
29062 else
29063   ac_cpp_err=yes
29064 fi
29065 if test -z "$ac_cpp_err"; then
29066   ac_header_preproc=yes
29067 else
29068   echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29070
29071   ac_header_preproc=no
29072 fi
29073
29074 rm -f conftest.err conftest.$ac_ext
29075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29076 echo "${ECHO_T}$ac_header_preproc" >&6; }
29077
29078 # So?  What about this header?
29079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29080   yes:no: )
29081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29085     ac_header_preproc=yes
29086     ;;
29087   no:yes:* )
29088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29090     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29091 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29092     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29094     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29095 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29098     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29100     ( cat <<\_ASBOX
29101 ## ----------------------------------- ##
29102 ## Report this to llvmbugs@cs.uiuc.edu ##
29103 ## ----------------------------------- ##
29104 _ASBOX
29105      ) | sed "s/^/$as_me: WARNING:     /" >&2
29106     ;;
29107 esac
29108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29111   echo $ECHO_N "(cached) $ECHO_C" >&6
29112 else
29113   eval "$as_ac_Header=\$ac_header_preproc"
29114 fi
29115 ac_res=`eval echo '${'$as_ac_Header'}'`
29116                { echo "$as_me:$LINENO: result: $ac_res" >&5
29117 echo "${ECHO_T}$ac_res" >&6; }
29118
29119 fi
29120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29121   cat >>confdefs.h <<_ACEOF
29122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29123 _ACEOF
29124
29125 fi
29126
29127 done
29128
29129
29130
29131 for ac_header in utime.h windows.h
29132 do
29133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29135   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29138   echo $ECHO_N "(cached) $ECHO_C" >&6
29139 fi
29140 ac_res=`eval echo '${'$as_ac_Header'}'`
29141                { echo "$as_me:$LINENO: result: $ac_res" >&5
29142 echo "${ECHO_T}$ac_res" >&6; }
29143 else
29144   # Is the header compilable?
29145 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29147 cat >conftest.$ac_ext <<_ACEOF
29148 /* confdefs.h.  */
29149 _ACEOF
29150 cat confdefs.h >>conftest.$ac_ext
29151 cat >>conftest.$ac_ext <<_ACEOF
29152 /* end confdefs.h.  */
29153 $ac_includes_default
29154 #include <$ac_header>
29155 _ACEOF
29156 rm -f conftest.$ac_objext
29157 if { (ac_try="$ac_compile"
29158 case "(($ac_try" in
29159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160   *) ac_try_echo=$ac_try;;
29161 esac
29162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163   (eval "$ac_compile") 2>conftest.er1
29164   ac_status=$?
29165   grep -v '^ *+' conftest.er1 >conftest.err
29166   rm -f conftest.er1
29167   cat conftest.err >&5
29168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169   (exit $ac_status); } &&
29170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29171   { (case "(($ac_try" in
29172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173   *) ac_try_echo=$ac_try;;
29174 esac
29175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176   (eval "$ac_try") 2>&5
29177   ac_status=$?
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); }; } &&
29180          { ac_try='test -s conftest.$ac_objext'
29181   { (case "(($ac_try" in
29182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29183   *) ac_try_echo=$ac_try;;
29184 esac
29185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29186   (eval "$ac_try") 2>&5
29187   ac_status=$?
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); }; }; then
29190   ac_header_compiler=yes
29191 else
29192   echo "$as_me: failed program was:" >&5
29193 sed 's/^/| /' conftest.$ac_ext >&5
29194
29195         ac_header_compiler=no
29196 fi
29197
29198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29200 echo "${ECHO_T}$ac_header_compiler" >&6; }
29201
29202 # Is the header present?
29203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29205 cat >conftest.$ac_ext <<_ACEOF
29206 /* confdefs.h.  */
29207 _ACEOF
29208 cat confdefs.h >>conftest.$ac_ext
29209 cat >>conftest.$ac_ext <<_ACEOF
29210 /* end confdefs.h.  */
29211 #include <$ac_header>
29212 _ACEOF
29213 if { (ac_try="$ac_cpp conftest.$ac_ext"
29214 case "(($ac_try" in
29215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216   *) ac_try_echo=$ac_try;;
29217 esac
29218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29220   ac_status=$?
29221   grep -v '^ *+' conftest.er1 >conftest.err
29222   rm -f conftest.er1
29223   cat conftest.err >&5
29224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225   (exit $ac_status); } >/dev/null; then
29226   if test -s conftest.err; then
29227     ac_cpp_err=$ac_c_preproc_warn_flag
29228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29229   else
29230     ac_cpp_err=
29231   fi
29232 else
29233   ac_cpp_err=yes
29234 fi
29235 if test -z "$ac_cpp_err"; then
29236   ac_header_preproc=yes
29237 else
29238   echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29240
29241   ac_header_preproc=no
29242 fi
29243
29244 rm -f conftest.err conftest.$ac_ext
29245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29246 echo "${ECHO_T}$ac_header_preproc" >&6; }
29247
29248 # So?  What about this header?
29249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29250   yes:no: )
29251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29255     ac_header_preproc=yes
29256     ;;
29257   no:yes:* )
29258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29270     ( cat <<\_ASBOX
29271 ## ----------------------------------- ##
29272 ## Report this to llvmbugs@cs.uiuc.edu ##
29273 ## ----------------------------------- ##
29274 _ASBOX
29275      ) | sed "s/^/$as_me: WARNING:     /" >&2
29276     ;;
29277 esac
29278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29281   echo $ECHO_N "(cached) $ECHO_C" >&6
29282 else
29283   eval "$as_ac_Header=\$ac_header_preproc"
29284 fi
29285 ac_res=`eval echo '${'$as_ac_Header'}'`
29286                { echo "$as_me:$LINENO: result: $ac_res" >&5
29287 echo "${ECHO_T}$ac_res" >&6; }
29288
29289 fi
29290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29291   cat >>confdefs.h <<_ACEOF
29292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29293 _ACEOF
29294
29295 fi
29296
29297 done
29298
29299
29300
29301
29302
29303 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29304 do
29305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29307   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29310   echo $ECHO_N "(cached) $ECHO_C" >&6
29311 fi
29312 ac_res=`eval echo '${'$as_ac_Header'}'`
29313                { echo "$as_me:$LINENO: result: $ac_res" >&5
29314 echo "${ECHO_T}$ac_res" >&6; }
29315 else
29316   # Is the header compilable?
29317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29319 cat >conftest.$ac_ext <<_ACEOF
29320 /* confdefs.h.  */
29321 _ACEOF
29322 cat confdefs.h >>conftest.$ac_ext
29323 cat >>conftest.$ac_ext <<_ACEOF
29324 /* end confdefs.h.  */
29325 $ac_includes_default
29326 #include <$ac_header>
29327 _ACEOF
29328 rm -f conftest.$ac_objext
29329 if { (ac_try="$ac_compile"
29330 case "(($ac_try" in
29331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332   *) ac_try_echo=$ac_try;;
29333 esac
29334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335   (eval "$ac_compile") 2>conftest.er1
29336   ac_status=$?
29337   grep -v '^ *+' conftest.er1 >conftest.err
29338   rm -f conftest.er1
29339   cat conftest.err >&5
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); } &&
29342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29343   { (case "(($ac_try" in
29344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345   *) ac_try_echo=$ac_try;;
29346 esac
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348   (eval "$ac_try") 2>&5
29349   ac_status=$?
29350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351   (exit $ac_status); }; } &&
29352          { ac_try='test -s conftest.$ac_objext'
29353   { (case "(($ac_try" in
29354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355   *) ac_try_echo=$ac_try;;
29356 esac
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358   (eval "$ac_try") 2>&5
29359   ac_status=$?
29360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361   (exit $ac_status); }; }; then
29362   ac_header_compiler=yes
29363 else
29364   echo "$as_me: failed program was:" >&5
29365 sed 's/^/| /' conftest.$ac_ext >&5
29366
29367         ac_header_compiler=no
29368 fi
29369
29370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29372 echo "${ECHO_T}$ac_header_compiler" >&6; }
29373
29374 # Is the header present?
29375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29377 cat >conftest.$ac_ext <<_ACEOF
29378 /* confdefs.h.  */
29379 _ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h.  */
29383 #include <$ac_header>
29384 _ACEOF
29385 if { (ac_try="$ac_cpp conftest.$ac_ext"
29386 case "(($ac_try" in
29387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388   *) ac_try_echo=$ac_try;;
29389 esac
29390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29392   ac_status=$?
29393   grep -v '^ *+' conftest.er1 >conftest.err
29394   rm -f conftest.er1
29395   cat conftest.err >&5
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); } >/dev/null; then
29398   if test -s conftest.err; then
29399     ac_cpp_err=$ac_c_preproc_warn_flag
29400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29401   else
29402     ac_cpp_err=
29403   fi
29404 else
29405   ac_cpp_err=yes
29406 fi
29407 if test -z "$ac_cpp_err"; then
29408   ac_header_preproc=yes
29409 else
29410   echo "$as_me: failed program was:" >&5
29411 sed 's/^/| /' conftest.$ac_ext >&5
29412
29413   ac_header_preproc=no
29414 fi
29415
29416 rm -f conftest.err conftest.$ac_ext
29417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29418 echo "${ECHO_T}$ac_header_preproc" >&6; }
29419
29420 # So?  What about this header?
29421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29422   yes:no: )
29423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29427     ac_header_preproc=yes
29428     ;;
29429   no:yes:* )
29430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29442     ( cat <<\_ASBOX
29443 ## ----------------------------------- ##
29444 ## Report this to llvmbugs@cs.uiuc.edu ##
29445 ## ----------------------------------- ##
29446 _ASBOX
29447      ) | sed "s/^/$as_me: WARNING:     /" >&2
29448     ;;
29449 esac
29450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29453   echo $ECHO_N "(cached) $ECHO_C" >&6
29454 else
29455   eval "$as_ac_Header=\$ac_header_preproc"
29456 fi
29457 ac_res=`eval echo '${'$as_ac_Header'}'`
29458                { echo "$as_me:$LINENO: result: $ac_res" >&5
29459 echo "${ECHO_T}$ac_res" >&6; }
29460
29461 fi
29462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29463   cat >>confdefs.h <<_ACEOF
29464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29465 _ACEOF
29466
29467 fi
29468
29469 done
29470
29471
29472
29473
29474
29475 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29476 do
29477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29479   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29482   echo $ECHO_N "(cached) $ECHO_C" >&6
29483 fi
29484 ac_res=`eval echo '${'$as_ac_Header'}'`
29485                { echo "$as_me:$LINENO: result: $ac_res" >&5
29486 echo "${ECHO_T}$ac_res" >&6; }
29487 else
29488   # Is the header compilable?
29489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29491 cat >conftest.$ac_ext <<_ACEOF
29492 /* confdefs.h.  */
29493 _ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h.  */
29497 $ac_includes_default
29498 #include <$ac_header>
29499 _ACEOF
29500 rm -f conftest.$ac_objext
29501 if { (ac_try="$ac_compile"
29502 case "(($ac_try" in
29503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504   *) ac_try_echo=$ac_try;;
29505 esac
29506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507   (eval "$ac_compile") 2>conftest.er1
29508   ac_status=$?
29509   grep -v '^ *+' conftest.er1 >conftest.err
29510   rm -f conftest.er1
29511   cat conftest.err >&5
29512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513   (exit $ac_status); } &&
29514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29515   { (case "(($ac_try" in
29516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517   *) ac_try_echo=$ac_try;;
29518 esac
29519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520   (eval "$ac_try") 2>&5
29521   ac_status=$?
29522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523   (exit $ac_status); }; } &&
29524          { ac_try='test -s conftest.$ac_objext'
29525   { (case "(($ac_try" in
29526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527   *) ac_try_echo=$ac_try;;
29528 esac
29529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530   (eval "$ac_try") 2>&5
29531   ac_status=$?
29532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533   (exit $ac_status); }; }; then
29534   ac_header_compiler=yes
29535 else
29536   echo "$as_me: failed program was:" >&5
29537 sed 's/^/| /' conftest.$ac_ext >&5
29538
29539         ac_header_compiler=no
29540 fi
29541
29542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29544 echo "${ECHO_T}$ac_header_compiler" >&6; }
29545
29546 # Is the header present?
29547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29549 cat >conftest.$ac_ext <<_ACEOF
29550 /* confdefs.h.  */
29551 _ACEOF
29552 cat confdefs.h >>conftest.$ac_ext
29553 cat >>conftest.$ac_ext <<_ACEOF
29554 /* end confdefs.h.  */
29555 #include <$ac_header>
29556 _ACEOF
29557 if { (ac_try="$ac_cpp conftest.$ac_ext"
29558 case "(($ac_try" in
29559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560   *) ac_try_echo=$ac_try;;
29561 esac
29562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29564   ac_status=$?
29565   grep -v '^ *+' conftest.er1 >conftest.err
29566   rm -f conftest.er1
29567   cat conftest.err >&5
29568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569   (exit $ac_status); } >/dev/null; then
29570   if test -s conftest.err; then
29571     ac_cpp_err=$ac_c_preproc_warn_flag
29572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29573   else
29574     ac_cpp_err=
29575   fi
29576 else
29577   ac_cpp_err=yes
29578 fi
29579 if test -z "$ac_cpp_err"; then
29580   ac_header_preproc=yes
29581 else
29582   echo "$as_me: failed program was:" >&5
29583 sed 's/^/| /' conftest.$ac_ext >&5
29584
29585   ac_header_preproc=no
29586 fi
29587
29588 rm -f conftest.err conftest.$ac_ext
29589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29590 echo "${ECHO_T}$ac_header_preproc" >&6; }
29591
29592 # So?  What about this header?
29593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29594   yes:no: )
29595     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29599     ac_header_preproc=yes
29600     ;;
29601   no:yes:* )
29602     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29604     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29605 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29606     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29608     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29609 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29612     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29614     ( cat <<\_ASBOX
29615 ## ----------------------------------- ##
29616 ## Report this to llvmbugs@cs.uiuc.edu ##
29617 ## ----------------------------------- ##
29618 _ASBOX
29619      ) | sed "s/^/$as_me: WARNING:     /" >&2
29620     ;;
29621 esac
29622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625   echo $ECHO_N "(cached) $ECHO_C" >&6
29626 else
29627   eval "$as_ac_Header=\$ac_header_preproc"
29628 fi
29629 ac_res=`eval echo '${'$as_ac_Header'}'`
29630                { echo "$as_me:$LINENO: result: $ac_res" >&5
29631 echo "${ECHO_T}$ac_res" >&6; }
29632
29633 fi
29634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29635   cat >>confdefs.h <<_ACEOF
29636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29637 _ACEOF
29638
29639 fi
29640
29641 done
29642
29643 if test "$ENABLE_THREADS" -eq 1 ; then
29644
29645 for ac_header in pthread.h
29646 do
29647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29652   echo $ECHO_N "(cached) $ECHO_C" >&6
29653 fi
29654 ac_res=`eval echo '${'$as_ac_Header'}'`
29655                { echo "$as_me:$LINENO: result: $ac_res" >&5
29656 echo "${ECHO_T}$ac_res" >&6; }
29657 else
29658   # Is the header compilable?
29659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29661 cat >conftest.$ac_ext <<_ACEOF
29662 /* confdefs.h.  */
29663 _ACEOF
29664 cat confdefs.h >>conftest.$ac_ext
29665 cat >>conftest.$ac_ext <<_ACEOF
29666 /* end confdefs.h.  */
29667 $ac_includes_default
29668 #include <$ac_header>
29669 _ACEOF
29670 rm -f conftest.$ac_objext
29671 if { (ac_try="$ac_compile"
29672 case "(($ac_try" in
29673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674   *) ac_try_echo=$ac_try;;
29675 esac
29676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677   (eval "$ac_compile") 2>conftest.er1
29678   ac_status=$?
29679   grep -v '^ *+' conftest.er1 >conftest.err
29680   rm -f conftest.er1
29681   cat conftest.err >&5
29682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683   (exit $ac_status); } &&
29684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29685   { (case "(($ac_try" in
29686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687   *) ac_try_echo=$ac_try;;
29688 esac
29689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690   (eval "$ac_try") 2>&5
29691   ac_status=$?
29692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693   (exit $ac_status); }; } &&
29694          { ac_try='test -s conftest.$ac_objext'
29695   { (case "(($ac_try" in
29696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697   *) ac_try_echo=$ac_try;;
29698 esac
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700   (eval "$ac_try") 2>&5
29701   ac_status=$?
29702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); }; }; then
29704   ac_header_compiler=yes
29705 else
29706   echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.$ac_ext >&5
29708
29709         ac_header_compiler=no
29710 fi
29711
29712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29714 echo "${ECHO_T}$ac_header_compiler" >&6; }
29715
29716 # Is the header present?
29717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29719 cat >conftest.$ac_ext <<_ACEOF
29720 /* confdefs.h.  */
29721 _ACEOF
29722 cat confdefs.h >>conftest.$ac_ext
29723 cat >>conftest.$ac_ext <<_ACEOF
29724 /* end confdefs.h.  */
29725 #include <$ac_header>
29726 _ACEOF
29727 if { (ac_try="$ac_cpp conftest.$ac_ext"
29728 case "(($ac_try" in
29729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730   *) ac_try_echo=$ac_try;;
29731 esac
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29734   ac_status=$?
29735   grep -v '^ *+' conftest.er1 >conftest.err
29736   rm -f conftest.er1
29737   cat conftest.err >&5
29738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739   (exit $ac_status); } >/dev/null; then
29740   if test -s conftest.err; then
29741     ac_cpp_err=$ac_c_preproc_warn_flag
29742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29743   else
29744     ac_cpp_err=
29745   fi
29746 else
29747   ac_cpp_err=yes
29748 fi
29749 if test -z "$ac_cpp_err"; then
29750   ac_header_preproc=yes
29751 else
29752   echo "$as_me: failed program was:" >&5
29753 sed 's/^/| /' conftest.$ac_ext >&5
29754
29755   ac_header_preproc=no
29756 fi
29757
29758 rm -f conftest.err conftest.$ac_ext
29759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29760 echo "${ECHO_T}$ac_header_preproc" >&6; }
29761
29762 # So?  What about this header?
29763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29764   yes:no: )
29765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29769     ac_header_preproc=yes
29770     ;;
29771   no:yes:* )
29772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29774     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29775 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29776     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29778     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29779 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29782     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29784     ( cat <<\_ASBOX
29785 ## ----------------------------------- ##
29786 ## Report this to llvmbugs@cs.uiuc.edu ##
29787 ## ----------------------------------- ##
29788 _ASBOX
29789      ) | sed "s/^/$as_me: WARNING:     /" >&2
29790     ;;
29791 esac
29792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29795   echo $ECHO_N "(cached) $ECHO_C" >&6
29796 else
29797   eval "$as_ac_Header=\$ac_header_preproc"
29798 fi
29799 ac_res=`eval echo '${'$as_ac_Header'}'`
29800                { echo "$as_me:$LINENO: result: $ac_res" >&5
29801 echo "${ECHO_T}$ac_res" >&6; }
29802
29803 fi
29804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29805   cat >>confdefs.h <<_ACEOF
29806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29807 _ACEOF
29808  HAVE_PTHREAD=1
29809
29810 else
29811   HAVE_PTHREAD=0
29812
29813 fi
29814
29815 done
29816
29817 else
29818   HAVE_PTHREAD=0
29819
29820 fi
29821
29822
29823
29824 for ac_header in ffi.h ffi/ffi.h
29825 do
29826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29828   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29831   echo $ECHO_N "(cached) $ECHO_C" >&6
29832 fi
29833 ac_res=`eval echo '${'$as_ac_Header'}'`
29834                { echo "$as_me:$LINENO: result: $ac_res" >&5
29835 echo "${ECHO_T}$ac_res" >&6; }
29836 else
29837   # Is the header compilable?
29838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29840 cat >conftest.$ac_ext <<_ACEOF
29841 /* confdefs.h.  */
29842 _ACEOF
29843 cat confdefs.h >>conftest.$ac_ext
29844 cat >>conftest.$ac_ext <<_ACEOF
29845 /* end confdefs.h.  */
29846 $ac_includes_default
29847 #include <$ac_header>
29848 _ACEOF
29849 rm -f conftest.$ac_objext
29850 if { (ac_try="$ac_compile"
29851 case "(($ac_try" in
29852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853   *) ac_try_echo=$ac_try;;
29854 esac
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856   (eval "$ac_compile") 2>conftest.er1
29857   ac_status=$?
29858   grep -v '^ *+' conftest.er1 >conftest.err
29859   rm -f conftest.er1
29860   cat conftest.err >&5
29861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862   (exit $ac_status); } &&
29863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29864   { (case "(($ac_try" in
29865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866   *) ac_try_echo=$ac_try;;
29867 esac
29868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869   (eval "$ac_try") 2>&5
29870   ac_status=$?
29871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872   (exit $ac_status); }; } &&
29873          { ac_try='test -s conftest.$ac_objext'
29874   { (case "(($ac_try" in
29875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876   *) ac_try_echo=$ac_try;;
29877 esac
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879   (eval "$ac_try") 2>&5
29880   ac_status=$?
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); }; }; then
29883   ac_header_compiler=yes
29884 else
29885   echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.$ac_ext >&5
29887
29888         ac_header_compiler=no
29889 fi
29890
29891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29893 echo "${ECHO_T}$ac_header_compiler" >&6; }
29894
29895 # Is the header present?
29896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29898 cat >conftest.$ac_ext <<_ACEOF
29899 /* confdefs.h.  */
29900 _ACEOF
29901 cat confdefs.h >>conftest.$ac_ext
29902 cat >>conftest.$ac_ext <<_ACEOF
29903 /* end confdefs.h.  */
29904 #include <$ac_header>
29905 _ACEOF
29906 if { (ac_try="$ac_cpp conftest.$ac_ext"
29907 case "(($ac_try" in
29908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909   *) ac_try_echo=$ac_try;;
29910 esac
29911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29913   ac_status=$?
29914   grep -v '^ *+' conftest.er1 >conftest.err
29915   rm -f conftest.er1
29916   cat conftest.err >&5
29917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918   (exit $ac_status); } >/dev/null; then
29919   if test -s conftest.err; then
29920     ac_cpp_err=$ac_c_preproc_warn_flag
29921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29922   else
29923     ac_cpp_err=
29924   fi
29925 else
29926   ac_cpp_err=yes
29927 fi
29928 if test -z "$ac_cpp_err"; then
29929   ac_header_preproc=yes
29930 else
29931   echo "$as_me: failed program was:" >&5
29932 sed 's/^/| /' conftest.$ac_ext >&5
29933
29934   ac_header_preproc=no
29935 fi
29936
29937 rm -f conftest.err conftest.$ac_ext
29938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29939 echo "${ECHO_T}$ac_header_preproc" >&6; }
29940
29941 # So?  What about this header?
29942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29943   yes:no: )
29944     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29948     ac_header_preproc=yes
29949     ;;
29950   no:yes:* )
29951     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29953     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29954 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29955     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29957     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29958 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29961     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29963     ( cat <<\_ASBOX
29964 ## ----------------------------------- ##
29965 ## Report this to llvmbugs@cs.uiuc.edu ##
29966 ## ----------------------------------- ##
29967 _ASBOX
29968      ) | sed "s/^/$as_me: WARNING:     /" >&2
29969     ;;
29970 esac
29971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29974   echo $ECHO_N "(cached) $ECHO_C" >&6
29975 else
29976   eval "$as_ac_Header=\$ac_header_preproc"
29977 fi
29978 ac_res=`eval echo '${'$as_ac_Header'}'`
29979                { echo "$as_me:$LINENO: result: $ac_res" >&5
29980 echo "${ECHO_T}$ac_res" >&6; }
29981
29982 fi
29983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29984   cat >>confdefs.h <<_ACEOF
29985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29986 _ACEOF
29987
29988 fi
29989
29990 done
29991
29992
29993
29994
29995   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29996 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29997 if test "${ac_cv_huge_val_sanity+set}" = set; then
29998   echo $ECHO_N "(cached) $ECHO_C" >&6
29999 else
30000
30001     ac_ext=cpp
30002 ac_cpp='$CXXCPP $CPPFLAGS'
30003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30006
30007     CXXFLAGS=-pedantic
30008     if test "$cross_compiling" = yes; then
30009   ac_cv_huge_val_sanity=yes
30010 else
30011   cat >conftest.$ac_ext <<_ACEOF
30012 /* confdefs.h.  */
30013 _ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h.  */
30017 #include <math.h>
30018 int
30019 main ()
30020 {
30021 double x = HUGE_VAL; return x != x;
30022   ;
30023   return 0;
30024 }
30025 _ACEOF
30026 rm -f conftest$ac_exeext
30027 if { (ac_try="$ac_link"
30028 case "(($ac_try" in
30029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030   *) ac_try_echo=$ac_try;;
30031 esac
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033   (eval "$ac_link") 2>&5
30034   ac_status=$?
30035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30037   { (case "(($ac_try" in
30038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039   *) ac_try_echo=$ac_try;;
30040 esac
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042   (eval "$ac_try") 2>&5
30043   ac_status=$?
30044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045   (exit $ac_status); }; }; then
30046   ac_cv_huge_val_sanity=yes
30047 else
30048   echo "$as_me: program exited with status $ac_status" >&5
30049 echo "$as_me: failed program was:" >&5
30050 sed 's/^/| /' conftest.$ac_ext >&5
30051
30052 ( exit $ac_status )
30053 ac_cv_huge_val_sanity=no
30054 fi
30055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30056 fi
30057
30058
30059     ac_ext=c
30060 ac_cpp='$CPP $CPPFLAGS'
30061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30064
30065
30066 fi
30067 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30068 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30069   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30070
30071
30072 { echo "$as_me:$LINENO: checking for pid_t" >&5
30073 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30074 if test "${ac_cv_type_pid_t+set}" = set; then
30075   echo $ECHO_N "(cached) $ECHO_C" >&6
30076 else
30077   cat >conftest.$ac_ext <<_ACEOF
30078 /* confdefs.h.  */
30079 _ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h.  */
30083 $ac_includes_default
30084 typedef pid_t ac__type_new_;
30085 int
30086 main ()
30087 {
30088 if ((ac__type_new_ *) 0)
30089   return 0;
30090 if (sizeof (ac__type_new_))
30091   return 0;
30092   ;
30093   return 0;
30094 }
30095 _ACEOF
30096 rm -f conftest.$ac_objext
30097 if { (ac_try="$ac_compile"
30098 case "(($ac_try" in
30099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30100   *) ac_try_echo=$ac_try;;
30101 esac
30102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30103   (eval "$ac_compile") 2>conftest.er1
30104   ac_status=$?
30105   grep -v '^ *+' conftest.er1 >conftest.err
30106   rm -f conftest.er1
30107   cat conftest.err >&5
30108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109   (exit $ac_status); } &&
30110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30111   { (case "(($ac_try" in
30112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113   *) ac_try_echo=$ac_try;;
30114 esac
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116   (eval "$ac_try") 2>&5
30117   ac_status=$?
30118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119   (exit $ac_status); }; } &&
30120          { ac_try='test -s conftest.$ac_objext'
30121   { (case "(($ac_try" in
30122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123   *) ac_try_echo=$ac_try;;
30124 esac
30125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126   (eval "$ac_try") 2>&5
30127   ac_status=$?
30128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129   (exit $ac_status); }; }; then
30130   ac_cv_type_pid_t=yes
30131 else
30132   echo "$as_me: failed program was:" >&5
30133 sed 's/^/| /' conftest.$ac_ext >&5
30134
30135         ac_cv_type_pid_t=no
30136 fi
30137
30138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30139 fi
30140 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30141 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30142 if test $ac_cv_type_pid_t = yes; then
30143   :
30144 else
30145
30146 cat >>confdefs.h <<_ACEOF
30147 #define pid_t int
30148 _ACEOF
30149
30150 fi
30151
30152 { echo "$as_me:$LINENO: checking for size_t" >&5
30153 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30154 if test "${ac_cv_type_size_t+set}" = set; then
30155   echo $ECHO_N "(cached) $ECHO_C" >&6
30156 else
30157   cat >conftest.$ac_ext <<_ACEOF
30158 /* confdefs.h.  */
30159 _ACEOF
30160 cat confdefs.h >>conftest.$ac_ext
30161 cat >>conftest.$ac_ext <<_ACEOF
30162 /* end confdefs.h.  */
30163 $ac_includes_default
30164 typedef size_t ac__type_new_;
30165 int
30166 main ()
30167 {
30168 if ((ac__type_new_ *) 0)
30169   return 0;
30170 if (sizeof (ac__type_new_))
30171   return 0;
30172   ;
30173   return 0;
30174 }
30175 _ACEOF
30176 rm -f conftest.$ac_objext
30177 if { (ac_try="$ac_compile"
30178 case "(($ac_try" in
30179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30180   *) ac_try_echo=$ac_try;;
30181 esac
30182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30183   (eval "$ac_compile") 2>conftest.er1
30184   ac_status=$?
30185   grep -v '^ *+' conftest.er1 >conftest.err
30186   rm -f conftest.er1
30187   cat conftest.err >&5
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); } &&
30190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30191   { (case "(($ac_try" in
30192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193   *) ac_try_echo=$ac_try;;
30194 esac
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196   (eval "$ac_try") 2>&5
30197   ac_status=$?
30198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199   (exit $ac_status); }; } &&
30200          { ac_try='test -s conftest.$ac_objext'
30201   { (case "(($ac_try" in
30202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203   *) ac_try_echo=$ac_try;;
30204 esac
30205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206   (eval "$ac_try") 2>&5
30207   ac_status=$?
30208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209   (exit $ac_status); }; }; then
30210   ac_cv_type_size_t=yes
30211 else
30212   echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30214
30215         ac_cv_type_size_t=no
30216 fi
30217
30218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30219 fi
30220 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30221 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30222 if test $ac_cv_type_size_t = yes; then
30223   :
30224 else
30225
30226 cat >>confdefs.h <<_ACEOF
30227 #define size_t unsigned int
30228 _ACEOF
30229
30230 fi
30231
30232 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30233 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30234 if test "${ac_cv_type_signal+set}" = set; then
30235   echo $ECHO_N "(cached) $ECHO_C" >&6
30236 else
30237   cat >conftest.$ac_ext <<_ACEOF
30238 /* confdefs.h.  */
30239 _ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h.  */
30243 #include <sys/types.h>
30244 #include <signal.h>
30245
30246 int
30247 main ()
30248 {
30249 return *(signal (0, 0)) (0) == 1;
30250   ;
30251   return 0;
30252 }
30253 _ACEOF
30254 rm -f conftest.$ac_objext
30255 if { (ac_try="$ac_compile"
30256 case "(($ac_try" in
30257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258   *) ac_try_echo=$ac_try;;
30259 esac
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261   (eval "$ac_compile") 2>conftest.er1
30262   ac_status=$?
30263   grep -v '^ *+' conftest.er1 >conftest.err
30264   rm -f conftest.er1
30265   cat conftest.err >&5
30266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267   (exit $ac_status); } &&
30268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269   { (case "(($ac_try" in
30270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271   *) ac_try_echo=$ac_try;;
30272 esac
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274   (eval "$ac_try") 2>&5
30275   ac_status=$?
30276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277   (exit $ac_status); }; } &&
30278          { ac_try='test -s conftest.$ac_objext'
30279   { (case "(($ac_try" in
30280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281   *) ac_try_echo=$ac_try;;
30282 esac
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284   (eval "$ac_try") 2>&5
30285   ac_status=$?
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); }; }; then
30288   ac_cv_type_signal=int
30289 else
30290   echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30292
30293         ac_cv_type_signal=void
30294 fi
30295
30296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30297 fi
30298 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30299 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30300
30301 cat >>confdefs.h <<_ACEOF
30302 #define RETSIGTYPE $ac_cv_type_signal
30303 _ACEOF
30304
30305
30306 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30307 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30308 if test "${ac_cv_struct_tm+set}" = set; then
30309   echo $ECHO_N "(cached) $ECHO_C" >&6
30310 else
30311   cat >conftest.$ac_ext <<_ACEOF
30312 /* confdefs.h.  */
30313 _ACEOF
30314 cat confdefs.h >>conftest.$ac_ext
30315 cat >>conftest.$ac_ext <<_ACEOF
30316 /* end confdefs.h.  */
30317 #include <sys/types.h>
30318 #include <time.h>
30319
30320 int
30321 main ()
30322 {
30323 struct tm *tp; tp->tm_sec;
30324   ;
30325   return 0;
30326 }
30327 _ACEOF
30328 rm -f conftest.$ac_objext
30329 if { (ac_try="$ac_compile"
30330 case "(($ac_try" in
30331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30332   *) ac_try_echo=$ac_try;;
30333 esac
30334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30335   (eval "$ac_compile") 2>conftest.er1
30336   ac_status=$?
30337   grep -v '^ *+' conftest.er1 >conftest.err
30338   rm -f conftest.er1
30339   cat conftest.err >&5
30340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341   (exit $ac_status); } &&
30342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30343   { (case "(($ac_try" in
30344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345   *) ac_try_echo=$ac_try;;
30346 esac
30347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348   (eval "$ac_try") 2>&5
30349   ac_status=$?
30350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); }; } &&
30352          { ac_try='test -s conftest.$ac_objext'
30353   { (case "(($ac_try" in
30354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355   *) ac_try_echo=$ac_try;;
30356 esac
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358   (eval "$ac_try") 2>&5
30359   ac_status=$?
30360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361   (exit $ac_status); }; }; then
30362   ac_cv_struct_tm=time.h
30363 else
30364   echo "$as_me: failed program was:" >&5
30365 sed 's/^/| /' conftest.$ac_ext >&5
30366
30367         ac_cv_struct_tm=sys/time.h
30368 fi
30369
30370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30371 fi
30372 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30373 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30374 if test $ac_cv_struct_tm = sys/time.h; then
30375
30376 cat >>confdefs.h <<\_ACEOF
30377 #define TM_IN_SYS_TIME 1
30378 _ACEOF
30379
30380 fi
30381
30382 { echo "$as_me:$LINENO: checking for int64_t" >&5
30383 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30384 if test "${ac_cv_type_int64_t+set}" = set; then
30385   echo $ECHO_N "(cached) $ECHO_C" >&6
30386 else
30387   cat >conftest.$ac_ext <<_ACEOF
30388 /* confdefs.h.  */
30389 _ACEOF
30390 cat confdefs.h >>conftest.$ac_ext
30391 cat >>conftest.$ac_ext <<_ACEOF
30392 /* end confdefs.h.  */
30393 $ac_includes_default
30394 typedef int64_t ac__type_new_;
30395 int
30396 main ()
30397 {
30398 if ((ac__type_new_ *) 0)
30399   return 0;
30400 if (sizeof (ac__type_new_))
30401   return 0;
30402   ;
30403   return 0;
30404 }
30405 _ACEOF
30406 rm -f conftest.$ac_objext
30407 if { (ac_try="$ac_compile"
30408 case "(($ac_try" in
30409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410   *) ac_try_echo=$ac_try;;
30411 esac
30412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413   (eval "$ac_compile") 2>conftest.er1
30414   ac_status=$?
30415   grep -v '^ *+' conftest.er1 >conftest.err
30416   rm -f conftest.er1
30417   cat conftest.err >&5
30418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419   (exit $ac_status); } &&
30420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30421   { (case "(($ac_try" in
30422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423   *) ac_try_echo=$ac_try;;
30424 esac
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426   (eval "$ac_try") 2>&5
30427   ac_status=$?
30428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429   (exit $ac_status); }; } &&
30430          { ac_try='test -s conftest.$ac_objext'
30431   { (case "(($ac_try" in
30432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30433   *) ac_try_echo=$ac_try;;
30434 esac
30435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30436   (eval "$ac_try") 2>&5
30437   ac_status=$?
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); }; }; then
30440   ac_cv_type_int64_t=yes
30441 else
30442   echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30444
30445         ac_cv_type_int64_t=no
30446 fi
30447
30448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30449 fi
30450 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30451 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30452 if test $ac_cv_type_int64_t = yes; then
30453
30454 cat >>confdefs.h <<_ACEOF
30455 #define HAVE_INT64_T 1
30456 _ACEOF
30457
30458
30459 else
30460   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30461 echo "$as_me: error: Type int64_t required but not found" >&2;}
30462    { (exit 1); exit 1; }; }
30463 fi
30464
30465 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30466 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30467 if test "${ac_cv_type_uint64_t+set}" = set; then
30468   echo $ECHO_N "(cached) $ECHO_C" >&6
30469 else
30470   cat >conftest.$ac_ext <<_ACEOF
30471 /* confdefs.h.  */
30472 _ACEOF
30473 cat confdefs.h >>conftest.$ac_ext
30474 cat >>conftest.$ac_ext <<_ACEOF
30475 /* end confdefs.h.  */
30476 $ac_includes_default
30477 typedef uint64_t ac__type_new_;
30478 int
30479 main ()
30480 {
30481 if ((ac__type_new_ *) 0)
30482   return 0;
30483 if (sizeof (ac__type_new_))
30484   return 0;
30485   ;
30486   return 0;
30487 }
30488 _ACEOF
30489 rm -f conftest.$ac_objext
30490 if { (ac_try="$ac_compile"
30491 case "(($ac_try" in
30492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493   *) ac_try_echo=$ac_try;;
30494 esac
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496   (eval "$ac_compile") 2>conftest.er1
30497   ac_status=$?
30498   grep -v '^ *+' conftest.er1 >conftest.err
30499   rm -f conftest.er1
30500   cat conftest.err >&5
30501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502   (exit $ac_status); } &&
30503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30504   { (case "(($ac_try" in
30505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30506   *) ac_try_echo=$ac_try;;
30507 esac
30508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30509   (eval "$ac_try") 2>&5
30510   ac_status=$?
30511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512   (exit $ac_status); }; } &&
30513          { ac_try='test -s conftest.$ac_objext'
30514   { (case "(($ac_try" in
30515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30516   *) ac_try_echo=$ac_try;;
30517 esac
30518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519   (eval "$ac_try") 2>&5
30520   ac_status=$?
30521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522   (exit $ac_status); }; }; then
30523   ac_cv_type_uint64_t=yes
30524 else
30525   echo "$as_me: failed program was:" >&5
30526 sed 's/^/| /' conftest.$ac_ext >&5
30527
30528         ac_cv_type_uint64_t=no
30529 fi
30530
30531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30532 fi
30533 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30534 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30535 if test $ac_cv_type_uint64_t = yes; then
30536
30537 cat >>confdefs.h <<_ACEOF
30538 #define HAVE_UINT64_T 1
30539 _ACEOF
30540
30541
30542 else
30543   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30544 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30545 if test "${ac_cv_type_u_int64_t+set}" = set; then
30546   echo $ECHO_N "(cached) $ECHO_C" >&6
30547 else
30548   cat >conftest.$ac_ext <<_ACEOF
30549 /* confdefs.h.  */
30550 _ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h.  */
30554 $ac_includes_default
30555 typedef u_int64_t ac__type_new_;
30556 int
30557 main ()
30558 {
30559 if ((ac__type_new_ *) 0)
30560   return 0;
30561 if (sizeof (ac__type_new_))
30562   return 0;
30563   ;
30564   return 0;
30565 }
30566 _ACEOF
30567 rm -f conftest.$ac_objext
30568 if { (ac_try="$ac_compile"
30569 case "(($ac_try" in
30570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571   *) ac_try_echo=$ac_try;;
30572 esac
30573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574   (eval "$ac_compile") 2>conftest.er1
30575   ac_status=$?
30576   grep -v '^ *+' conftest.er1 >conftest.err
30577   rm -f conftest.er1
30578   cat conftest.err >&5
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); } &&
30581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30582   { (case "(($ac_try" in
30583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584   *) ac_try_echo=$ac_try;;
30585 esac
30586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587   (eval "$ac_try") 2>&5
30588   ac_status=$?
30589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590   (exit $ac_status); }; } &&
30591          { ac_try='test -s conftest.$ac_objext'
30592   { (case "(($ac_try" in
30593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594   *) ac_try_echo=$ac_try;;
30595 esac
30596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597   (eval "$ac_try") 2>&5
30598   ac_status=$?
30599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600   (exit $ac_status); }; }; then
30601   ac_cv_type_u_int64_t=yes
30602 else
30603   echo "$as_me: failed program was:" >&5
30604 sed 's/^/| /' conftest.$ac_ext >&5
30605
30606         ac_cv_type_u_int64_t=no
30607 fi
30608
30609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30610 fi
30611 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30612 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30613 if test $ac_cv_type_u_int64_t = yes; then
30614
30615 cat >>confdefs.h <<_ACEOF
30616 #define HAVE_U_INT64_T 1
30617 _ACEOF
30618
30619
30620 else
30621   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30622 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30623    { (exit 1); exit 1; }; }
30624 fi
30625
30626 fi
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30638 do
30639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30643   echo $ECHO_N "(cached) $ECHO_C" >&6
30644 else
30645   cat >conftest.$ac_ext <<_ACEOF
30646 /* confdefs.h.  */
30647 _ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h.  */
30651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30653 #define $ac_func innocuous_$ac_func
30654
30655 /* System header to define __stub macros and hopefully few prototypes,
30656     which can conflict with char $ac_func (); below.
30657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30658     <limits.h> exists even on freestanding compilers.  */
30659
30660 #ifdef __STDC__
30661 # include <limits.h>
30662 #else
30663 # include <assert.h>
30664 #endif
30665
30666 #undef $ac_func
30667
30668 /* Override any GCC internal prototype to avoid an error.
30669    Use char because int might match the return type of a GCC
30670    builtin and then its argument prototype would still apply.  */
30671 #ifdef __cplusplus
30672 extern "C"
30673 #endif
30674 char $ac_func ();
30675 /* The GNU C library defines this for functions which it implements
30676     to always fail with ENOSYS.  Some functions are actually named
30677     something starting with __ and the normal name is an alias.  */
30678 #if defined __stub_$ac_func || defined __stub___$ac_func
30679 choke me
30680 #endif
30681
30682 int
30683 main ()
30684 {
30685 return $ac_func ();
30686   ;
30687   return 0;
30688 }
30689 _ACEOF
30690 rm -f conftest.$ac_objext conftest$ac_exeext
30691 if { (ac_try="$ac_link"
30692 case "(($ac_try" in
30693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30694   *) ac_try_echo=$ac_try;;
30695 esac
30696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30697   (eval "$ac_link") 2>conftest.er1
30698   ac_status=$?
30699   grep -v '^ *+' conftest.er1 >conftest.err
30700   rm -f conftest.er1
30701   cat conftest.err >&5
30702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703   (exit $ac_status); } &&
30704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30705   { (case "(($ac_try" in
30706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30707   *) ac_try_echo=$ac_try;;
30708 esac
30709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30710   (eval "$ac_try") 2>&5
30711   ac_status=$?
30712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713   (exit $ac_status); }; } &&
30714          { ac_try='test -s conftest$ac_exeext'
30715   { (case "(($ac_try" in
30716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717   *) ac_try_echo=$ac_try;;
30718 esac
30719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720   (eval "$ac_try") 2>&5
30721   ac_status=$?
30722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723   (exit $ac_status); }; }; then
30724   eval "$as_ac_var=yes"
30725 else
30726   echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30728
30729         eval "$as_ac_var=no"
30730 fi
30731
30732 rm -f core conftest.err conftest.$ac_objext \
30733       conftest$ac_exeext conftest.$ac_ext
30734 fi
30735 ac_res=`eval echo '${'$as_ac_var'}'`
30736                { echo "$as_me:$LINENO: result: $ac_res" >&5
30737 echo "${ECHO_T}$ac_res" >&6; }
30738 if test `eval echo '${'$as_ac_var'}'` = yes; then
30739   cat >>confdefs.h <<_ACEOF
30740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30741 _ACEOF
30742
30743 fi
30744 done
30745
30746
30747
30748
30749
30750 for ac_func in powf fmodf strtof round
30751 do
30752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30756   echo $ECHO_N "(cached) $ECHO_C" >&6
30757 else
30758   cat >conftest.$ac_ext <<_ACEOF
30759 /* confdefs.h.  */
30760 _ACEOF
30761 cat confdefs.h >>conftest.$ac_ext
30762 cat >>conftest.$ac_ext <<_ACEOF
30763 /* end confdefs.h.  */
30764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30766 #define $ac_func innocuous_$ac_func
30767
30768 /* System header to define __stub macros and hopefully few prototypes,
30769     which can conflict with char $ac_func (); below.
30770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30771     <limits.h> exists even on freestanding compilers.  */
30772
30773 #ifdef __STDC__
30774 # include <limits.h>
30775 #else
30776 # include <assert.h>
30777 #endif
30778
30779 #undef $ac_func
30780
30781 /* Override any GCC internal prototype to avoid an error.
30782    Use char because int might match the return type of a GCC
30783    builtin and then its argument prototype would still apply.  */
30784 #ifdef __cplusplus
30785 extern "C"
30786 #endif
30787 char $ac_func ();
30788 /* The GNU C library defines this for functions which it implements
30789     to always fail with ENOSYS.  Some functions are actually named
30790     something starting with __ and the normal name is an alias.  */
30791 #if defined __stub_$ac_func || defined __stub___$ac_func
30792 choke me
30793 #endif
30794
30795 int
30796 main ()
30797 {
30798 return $ac_func ();
30799   ;
30800   return 0;
30801 }
30802 _ACEOF
30803 rm -f conftest.$ac_objext conftest$ac_exeext
30804 if { (ac_try="$ac_link"
30805 case "(($ac_try" in
30806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807   *) ac_try_echo=$ac_try;;
30808 esac
30809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810   (eval "$ac_link") 2>conftest.er1
30811   ac_status=$?
30812   grep -v '^ *+' conftest.er1 >conftest.err
30813   rm -f conftest.er1
30814   cat conftest.err >&5
30815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816   (exit $ac_status); } &&
30817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30818   { (case "(($ac_try" in
30819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820   *) ac_try_echo=$ac_try;;
30821 esac
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823   (eval "$ac_try") 2>&5
30824   ac_status=$?
30825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826   (exit $ac_status); }; } &&
30827          { ac_try='test -s conftest$ac_exeext'
30828   { (case "(($ac_try" in
30829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830   *) ac_try_echo=$ac_try;;
30831 esac
30832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833   (eval "$ac_try") 2>&5
30834   ac_status=$?
30835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836   (exit $ac_status); }; }; then
30837   eval "$as_ac_var=yes"
30838 else
30839   echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30841
30842         eval "$as_ac_var=no"
30843 fi
30844
30845 rm -f core conftest.err conftest.$ac_objext \
30846       conftest$ac_exeext conftest.$ac_ext
30847 fi
30848 ac_res=`eval echo '${'$as_ac_var'}'`
30849                { echo "$as_me:$LINENO: result: $ac_res" >&5
30850 echo "${ECHO_T}$ac_res" >&6; }
30851 if test `eval echo '${'$as_ac_var'}'` = yes; then
30852   cat >>confdefs.h <<_ACEOF
30853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30854 _ACEOF
30855
30856 fi
30857 done
30858
30859
30860
30861
30862
30863
30864 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30865 do
30866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30870   echo $ECHO_N "(cached) $ECHO_C" >&6
30871 else
30872   cat >conftest.$ac_ext <<_ACEOF
30873 /* confdefs.h.  */
30874 _ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h.  */
30878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30880 #define $ac_func innocuous_$ac_func
30881
30882 /* System header to define __stub macros and hopefully few prototypes,
30883     which can conflict with char $ac_func (); below.
30884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30885     <limits.h> exists even on freestanding compilers.  */
30886
30887 #ifdef __STDC__
30888 # include <limits.h>
30889 #else
30890 # include <assert.h>
30891 #endif
30892
30893 #undef $ac_func
30894
30895 /* Override any GCC internal prototype to avoid an error.
30896    Use char because int might match the return type of a GCC
30897    builtin and then its argument prototype would still apply.  */
30898 #ifdef __cplusplus
30899 extern "C"
30900 #endif
30901 char $ac_func ();
30902 /* The GNU C library defines this for functions which it implements
30903     to always fail with ENOSYS.  Some functions are actually named
30904     something starting with __ and the normal name is an alias.  */
30905 #if defined __stub_$ac_func || defined __stub___$ac_func
30906 choke me
30907 #endif
30908
30909 int
30910 main ()
30911 {
30912 return $ac_func ();
30913   ;
30914   return 0;
30915 }
30916 _ACEOF
30917 rm -f conftest.$ac_objext conftest$ac_exeext
30918 if { (ac_try="$ac_link"
30919 case "(($ac_try" in
30920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30921   *) ac_try_echo=$ac_try;;
30922 esac
30923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30924   (eval "$ac_link") 2>conftest.er1
30925   ac_status=$?
30926   grep -v '^ *+' conftest.er1 >conftest.err
30927   rm -f conftest.er1
30928   cat conftest.err >&5
30929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930   (exit $ac_status); } &&
30931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30932   { (case "(($ac_try" in
30933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30934   *) ac_try_echo=$ac_try;;
30935 esac
30936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30937   (eval "$ac_try") 2>&5
30938   ac_status=$?
30939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940   (exit $ac_status); }; } &&
30941          { ac_try='test -s conftest$ac_exeext'
30942   { (case "(($ac_try" in
30943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944   *) ac_try_echo=$ac_try;;
30945 esac
30946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947   (eval "$ac_try") 2>&5
30948   ac_status=$?
30949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950   (exit $ac_status); }; }; then
30951   eval "$as_ac_var=yes"
30952 else
30953   echo "$as_me: failed program was:" >&5
30954 sed 's/^/| /' conftest.$ac_ext >&5
30955
30956         eval "$as_ac_var=no"
30957 fi
30958
30959 rm -f core conftest.err conftest.$ac_objext \
30960       conftest$ac_exeext conftest.$ac_ext
30961 fi
30962 ac_res=`eval echo '${'$as_ac_var'}'`
30963                { echo "$as_me:$LINENO: result: $ac_res" >&5
30964 echo "${ECHO_T}$ac_res" >&6; }
30965 if test `eval echo '${'$as_ac_var'}'` = yes; then
30966   cat >>confdefs.h <<_ACEOF
30967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30968 _ACEOF
30969
30970 fi
30971 done
30972
30973
30974
30975
30976 for ac_func in isatty mkdtemp mkstemp
30977 do
30978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30982   echo $ECHO_N "(cached) $ECHO_C" >&6
30983 else
30984   cat >conftest.$ac_ext <<_ACEOF
30985 /* confdefs.h.  */
30986 _ACEOF
30987 cat confdefs.h >>conftest.$ac_ext
30988 cat >>conftest.$ac_ext <<_ACEOF
30989 /* end confdefs.h.  */
30990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30992 #define $ac_func innocuous_$ac_func
30993
30994 /* System header to define __stub macros and hopefully few prototypes,
30995     which can conflict with char $ac_func (); below.
30996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30997     <limits.h> exists even on freestanding compilers.  */
30998
30999 #ifdef __STDC__
31000 # include <limits.h>
31001 #else
31002 # include <assert.h>
31003 #endif
31004
31005 #undef $ac_func
31006
31007 /* Override any GCC internal prototype to avoid an error.
31008    Use char because int might match the return type of a GCC
31009    builtin and then its argument prototype would still apply.  */
31010 #ifdef __cplusplus
31011 extern "C"
31012 #endif
31013 char $ac_func ();
31014 /* The GNU C library defines this for functions which it implements
31015     to always fail with ENOSYS.  Some functions are actually named
31016     something starting with __ and the normal name is an alias.  */
31017 #if defined __stub_$ac_func || defined __stub___$ac_func
31018 choke me
31019 #endif
31020
31021 int
31022 main ()
31023 {
31024 return $ac_func ();
31025   ;
31026   return 0;
31027 }
31028 _ACEOF
31029 rm -f conftest.$ac_objext conftest$ac_exeext
31030 if { (ac_try="$ac_link"
31031 case "(($ac_try" in
31032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033   *) ac_try_echo=$ac_try;;
31034 esac
31035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036   (eval "$ac_link") 2>conftest.er1
31037   ac_status=$?
31038   grep -v '^ *+' conftest.er1 >conftest.err
31039   rm -f conftest.er1
31040   cat conftest.err >&5
31041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042   (exit $ac_status); } &&
31043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31044   { (case "(($ac_try" in
31045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046   *) ac_try_echo=$ac_try;;
31047 esac
31048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049   (eval "$ac_try") 2>&5
31050   ac_status=$?
31051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052   (exit $ac_status); }; } &&
31053          { ac_try='test -s conftest$ac_exeext'
31054   { (case "(($ac_try" in
31055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056   *) ac_try_echo=$ac_try;;
31057 esac
31058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059   (eval "$ac_try") 2>&5
31060   ac_status=$?
31061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062   (exit $ac_status); }; }; then
31063   eval "$as_ac_var=yes"
31064 else
31065   echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31067
31068         eval "$as_ac_var=no"
31069 fi
31070
31071 rm -f core conftest.err conftest.$ac_objext \
31072       conftest$ac_exeext conftest.$ac_ext
31073 fi
31074 ac_res=`eval echo '${'$as_ac_var'}'`
31075                { echo "$as_me:$LINENO: result: $ac_res" >&5
31076 echo "${ECHO_T}$ac_res" >&6; }
31077 if test `eval echo '${'$as_ac_var'}'` = yes; then
31078   cat >>confdefs.h <<_ACEOF
31079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31080 _ACEOF
31081
31082 fi
31083 done
31084
31085
31086
31087
31088
31089
31090
31091
31092 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31093 do
31094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31098   echo $ECHO_N "(cached) $ECHO_C" >&6
31099 else
31100   cat >conftest.$ac_ext <<_ACEOF
31101 /* confdefs.h.  */
31102 _ACEOF
31103 cat confdefs.h >>conftest.$ac_ext
31104 cat >>conftest.$ac_ext <<_ACEOF
31105 /* end confdefs.h.  */
31106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31108 #define $ac_func innocuous_$ac_func
31109
31110 /* System header to define __stub macros and hopefully few prototypes,
31111     which can conflict with char $ac_func (); below.
31112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31113     <limits.h> exists even on freestanding compilers.  */
31114
31115 #ifdef __STDC__
31116 # include <limits.h>
31117 #else
31118 # include <assert.h>
31119 #endif
31120
31121 #undef $ac_func
31122
31123 /* Override any GCC internal prototype to avoid an error.
31124    Use char because int might match the return type of a GCC
31125    builtin and then its argument prototype would still apply.  */
31126 #ifdef __cplusplus
31127 extern "C"
31128 #endif
31129 char $ac_func ();
31130 /* The GNU C library defines this for functions which it implements
31131     to always fail with ENOSYS.  Some functions are actually named
31132     something starting with __ and the normal name is an alias.  */
31133 #if defined __stub_$ac_func || defined __stub___$ac_func
31134 choke me
31135 #endif
31136
31137 int
31138 main ()
31139 {
31140 return $ac_func ();
31141   ;
31142   return 0;
31143 }
31144 _ACEOF
31145 rm -f conftest.$ac_objext conftest$ac_exeext
31146 if { (ac_try="$ac_link"
31147 case "(($ac_try" in
31148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149   *) ac_try_echo=$ac_try;;
31150 esac
31151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152   (eval "$ac_link") 2>conftest.er1
31153   ac_status=$?
31154   grep -v '^ *+' conftest.er1 >conftest.err
31155   rm -f conftest.er1
31156   cat conftest.err >&5
31157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158   (exit $ac_status); } &&
31159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31160   { (case "(($ac_try" in
31161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162   *) ac_try_echo=$ac_try;;
31163 esac
31164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165   (eval "$ac_try") 2>&5
31166   ac_status=$?
31167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168   (exit $ac_status); }; } &&
31169          { ac_try='test -s conftest$ac_exeext'
31170   { (case "(($ac_try" in
31171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31172   *) ac_try_echo=$ac_try;;
31173 esac
31174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31175   (eval "$ac_try") 2>&5
31176   ac_status=$?
31177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178   (exit $ac_status); }; }; then
31179   eval "$as_ac_var=yes"
31180 else
31181   echo "$as_me: failed program was:" >&5
31182 sed 's/^/| /' conftest.$ac_ext >&5
31183
31184         eval "$as_ac_var=no"
31185 fi
31186
31187 rm -f core conftest.err conftest.$ac_objext \
31188       conftest$ac_exeext conftest.$ac_ext
31189 fi
31190 ac_res=`eval echo '${'$as_ac_var'}'`
31191                { echo "$as_me:$LINENO: result: $ac_res" >&5
31192 echo "${ECHO_T}$ac_res" >&6; }
31193 if test `eval echo '${'$as_ac_var'}'` = yes; then
31194   cat >>confdefs.h <<_ACEOF
31195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31196 _ACEOF
31197
31198 fi
31199 done
31200
31201
31202
31203
31204
31205 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31206 do
31207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31211   echo $ECHO_N "(cached) $ECHO_C" >&6
31212 else
31213   cat >conftest.$ac_ext <<_ACEOF
31214 /* confdefs.h.  */
31215 _ACEOF
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h.  */
31219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31221 #define $ac_func innocuous_$ac_func
31222
31223 /* System header to define __stub macros and hopefully few prototypes,
31224     which can conflict with char $ac_func (); below.
31225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31226     <limits.h> exists even on freestanding compilers.  */
31227
31228 #ifdef __STDC__
31229 # include <limits.h>
31230 #else
31231 # include <assert.h>
31232 #endif
31233
31234 #undef $ac_func
31235
31236 /* Override any GCC internal prototype to avoid an error.
31237    Use char because int might match the return type of a GCC
31238    builtin and then its argument prototype would still apply.  */
31239 #ifdef __cplusplus
31240 extern "C"
31241 #endif
31242 char $ac_func ();
31243 /* The GNU C library defines this for functions which it implements
31244     to always fail with ENOSYS.  Some functions are actually named
31245     something starting with __ and the normal name is an alias.  */
31246 #if defined __stub_$ac_func || defined __stub___$ac_func
31247 choke me
31248 #endif
31249
31250 int
31251 main ()
31252 {
31253 return $ac_func ();
31254   ;
31255   return 0;
31256 }
31257 _ACEOF
31258 rm -f conftest.$ac_objext conftest$ac_exeext
31259 if { (ac_try="$ac_link"
31260 case "(($ac_try" in
31261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31262   *) ac_try_echo=$ac_try;;
31263 esac
31264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31265   (eval "$ac_link") 2>conftest.er1
31266   ac_status=$?
31267   grep -v '^ *+' conftest.er1 >conftest.err
31268   rm -f conftest.er1
31269   cat conftest.err >&5
31270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31271   (exit $ac_status); } &&
31272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31273   { (case "(($ac_try" in
31274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275   *) ac_try_echo=$ac_try;;
31276 esac
31277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278   (eval "$ac_try") 2>&5
31279   ac_status=$?
31280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281   (exit $ac_status); }; } &&
31282          { ac_try='test -s conftest$ac_exeext'
31283   { (case "(($ac_try" in
31284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285   *) ac_try_echo=$ac_try;;
31286 esac
31287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288   (eval "$ac_try") 2>&5
31289   ac_status=$?
31290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291   (exit $ac_status); }; }; then
31292   eval "$as_ac_var=yes"
31293 else
31294   echo "$as_me: failed program was:" >&5
31295 sed 's/^/| /' conftest.$ac_ext >&5
31296
31297         eval "$as_ac_var=no"
31298 fi
31299
31300 rm -f core conftest.err conftest.$ac_objext \
31301       conftest$ac_exeext conftest.$ac_ext
31302 fi
31303 ac_res=`eval echo '${'$as_ac_var'}'`
31304                { echo "$as_me:$LINENO: result: $ac_res" >&5
31305 echo "${ECHO_T}$ac_res" >&6; }
31306 if test `eval echo '${'$as_ac_var'}'` = yes; then
31307   cat >>confdefs.h <<_ACEOF
31308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31309 _ACEOF
31310
31311 fi
31312 done
31313
31314
31315
31316
31317
31318 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31319 do
31320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31324   echo $ECHO_N "(cached) $ECHO_C" >&6
31325 else
31326   cat >conftest.$ac_ext <<_ACEOF
31327 /* confdefs.h.  */
31328 _ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h.  */
31332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31334 #define $ac_func innocuous_$ac_func
31335
31336 /* System header to define __stub macros and hopefully few prototypes,
31337     which can conflict with char $ac_func (); below.
31338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31339     <limits.h> exists even on freestanding compilers.  */
31340
31341 #ifdef __STDC__
31342 # include <limits.h>
31343 #else
31344 # include <assert.h>
31345 #endif
31346
31347 #undef $ac_func
31348
31349 /* Override any GCC internal prototype to avoid an error.
31350    Use char because int might match the return type of a GCC
31351    builtin and then its argument prototype would still apply.  */
31352 #ifdef __cplusplus
31353 extern "C"
31354 #endif
31355 char $ac_func ();
31356 /* The GNU C library defines this for functions which it implements
31357     to always fail with ENOSYS.  Some functions are actually named
31358     something starting with __ and the normal name is an alias.  */
31359 #if defined __stub_$ac_func || defined __stub___$ac_func
31360 choke me
31361 #endif
31362
31363 int
31364 main ()
31365 {
31366 return $ac_func ();
31367   ;
31368   return 0;
31369 }
31370 _ACEOF
31371 rm -f conftest.$ac_objext conftest$ac_exeext
31372 if { (ac_try="$ac_link"
31373 case "(($ac_try" in
31374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375   *) ac_try_echo=$ac_try;;
31376 esac
31377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378   (eval "$ac_link") 2>conftest.er1
31379   ac_status=$?
31380   grep -v '^ *+' conftest.er1 >conftest.err
31381   rm -f conftest.er1
31382   cat conftest.err >&5
31383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384   (exit $ac_status); } &&
31385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31386   { (case "(($ac_try" in
31387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31388   *) ac_try_echo=$ac_try;;
31389 esac
31390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31391   (eval "$ac_try") 2>&5
31392   ac_status=$?
31393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394   (exit $ac_status); }; } &&
31395          { ac_try='test -s conftest$ac_exeext'
31396   { (case "(($ac_try" in
31397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398   *) ac_try_echo=$ac_try;;
31399 esac
31400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401   (eval "$ac_try") 2>&5
31402   ac_status=$?
31403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404   (exit $ac_status); }; }; then
31405   eval "$as_ac_var=yes"
31406 else
31407   echo "$as_me: failed program was:" >&5
31408 sed 's/^/| /' conftest.$ac_ext >&5
31409
31410         eval "$as_ac_var=no"
31411 fi
31412
31413 rm -f core conftest.err conftest.$ac_objext \
31414       conftest$ac_exeext conftest.$ac_ext
31415 fi
31416 ac_res=`eval echo '${'$as_ac_var'}'`
31417                { echo "$as_me:$LINENO: result: $ac_res" >&5
31418 echo "${ECHO_T}$ac_res" >&6; }
31419 if test `eval echo '${'$as_ac_var'}'` = yes; then
31420   cat >>confdefs.h <<_ACEOF
31421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31422 _ACEOF
31423
31424 fi
31425 done
31426
31427 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31428 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31429 if test "${llvm_cv_c_printf_a+set}" = set; then
31430   echo $ECHO_N "(cached) $ECHO_C" >&6
31431 else
31432   ac_ext=c
31433 ac_cpp='$CPP $CPPFLAGS'
31434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31437
31438  if test "$cross_compiling" = yes; then
31439   llvmac_cv_c_printf_a=no
31440 else
31441   cat >conftest.$ac_ext <<_ACEOF
31442
31443   /* confdefs.h.  */
31444 _ACEOF
31445 cat confdefs.h >>conftest.$ac_ext
31446 cat >>conftest.$ac_ext <<_ACEOF
31447 /* end confdefs.h.  */
31448
31449 #include <stdio.h>
31450 #include <stdlib.h>
31451
31452 int
31453 main ()
31454 {
31455
31456 volatile double A, B;
31457 char Buffer[100];
31458 A = 1;
31459 A /= 10.0;
31460 sprintf(Buffer, "%a", A);
31461 B = atof(Buffer);
31462 if (A != B)
31463   return (1);
31464 if (A != 0x1.999999999999ap-4)
31465   return (1);
31466 return (0);
31467   ;
31468   return 0;
31469 }
31470 _ACEOF
31471 rm -f conftest$ac_exeext
31472 if { (ac_try="$ac_link"
31473 case "(($ac_try" in
31474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475   *) ac_try_echo=$ac_try;;
31476 esac
31477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31478   (eval "$ac_link") 2>&5
31479   ac_status=$?
31480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31482   { (case "(($ac_try" in
31483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484   *) ac_try_echo=$ac_try;;
31485 esac
31486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487   (eval "$ac_try") 2>&5
31488   ac_status=$?
31489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490   (exit $ac_status); }; }; then
31491   llvm_cv_c_printf_a=yes
31492 else
31493   echo "$as_me: program exited with status $ac_status" >&5
31494 echo "$as_me: failed program was:" >&5
31495 sed 's/^/| /' conftest.$ac_ext >&5
31496
31497 ( exit $ac_status )
31498 llvmac_cv_c_printf_a=no
31499 fi
31500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31501 fi
31502
31503
31504  ac_ext=c
31505 ac_cpp='$CPP $CPPFLAGS'
31506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31509
31510 fi
31511 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31512 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31513  if test "$llvm_cv_c_printf_a" = "yes"; then
31514
31515 cat >>confdefs.h <<\_ACEOF
31516 #define HAVE_PRINTF_A 1
31517 _ACEOF
31518
31519  fi
31520
31521 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31522 # for constant arguments.  Useless!
31523 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31524 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31525 if test "${ac_cv_working_alloca_h+set}" = set; then
31526   echo $ECHO_N "(cached) $ECHO_C" >&6
31527 else
31528   cat >conftest.$ac_ext <<_ACEOF
31529 /* confdefs.h.  */
31530 _ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h.  */
31534 #include <alloca.h>
31535 int
31536 main ()
31537 {
31538 char *p = (char *) alloca (2 * sizeof (int));
31539                           if (p) return 0;
31540   ;
31541   return 0;
31542 }
31543 _ACEOF
31544 rm -f conftest.$ac_objext conftest$ac_exeext
31545 if { (ac_try="$ac_link"
31546 case "(($ac_try" in
31547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31548   *) ac_try_echo=$ac_try;;
31549 esac
31550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31551   (eval "$ac_link") 2>conftest.er1
31552   ac_status=$?
31553   grep -v '^ *+' conftest.er1 >conftest.err
31554   rm -f conftest.er1
31555   cat conftest.err >&5
31556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557   (exit $ac_status); } &&
31558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31559   { (case "(($ac_try" in
31560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561   *) ac_try_echo=$ac_try;;
31562 esac
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564   (eval "$ac_try") 2>&5
31565   ac_status=$?
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); }; } &&
31568          { ac_try='test -s conftest$ac_exeext'
31569   { (case "(($ac_try" in
31570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571   *) ac_try_echo=$ac_try;;
31572 esac
31573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574   (eval "$ac_try") 2>&5
31575   ac_status=$?
31576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577   (exit $ac_status); }; }; then
31578   ac_cv_working_alloca_h=yes
31579 else
31580   echo "$as_me: failed program was:" >&5
31581 sed 's/^/| /' conftest.$ac_ext >&5
31582
31583         ac_cv_working_alloca_h=no
31584 fi
31585
31586 rm -f core conftest.err conftest.$ac_objext \
31587       conftest$ac_exeext conftest.$ac_ext
31588 fi
31589 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31590 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31591 if test $ac_cv_working_alloca_h = yes; then
31592
31593 cat >>confdefs.h <<\_ACEOF
31594 #define HAVE_ALLOCA_H 1
31595 _ACEOF
31596
31597 fi
31598
31599 { echo "$as_me:$LINENO: checking for alloca" >&5
31600 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31601 if test "${ac_cv_func_alloca_works+set}" = set; then
31602   echo $ECHO_N "(cached) $ECHO_C" >&6
31603 else
31604   cat >conftest.$ac_ext <<_ACEOF
31605 /* confdefs.h.  */
31606 _ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h.  */
31610 #ifdef __GNUC__
31611 # define alloca __builtin_alloca
31612 #else
31613 # ifdef _MSC_VER
31614 #  include <malloc.h>
31615 #  define alloca _alloca
31616 # else
31617 #  if HAVE_ALLOCA_H
31618 #   include <alloca.h>
31619 #  else
31620 #   ifdef _AIX
31621  #pragma alloca
31622 #   else
31623 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31624 char *alloca ();
31625 #    endif
31626 #   endif
31627 #  endif
31628 # endif
31629 #endif
31630
31631 int
31632 main ()
31633 {
31634 char *p = (char *) alloca (1);
31635                                     if (p) return 0;
31636   ;
31637   return 0;
31638 }
31639 _ACEOF
31640 rm -f conftest.$ac_objext conftest$ac_exeext
31641 if { (ac_try="$ac_link"
31642 case "(($ac_try" in
31643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644   *) ac_try_echo=$ac_try;;
31645 esac
31646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647   (eval "$ac_link") 2>conftest.er1
31648   ac_status=$?
31649   grep -v '^ *+' conftest.er1 >conftest.err
31650   rm -f conftest.er1
31651   cat conftest.err >&5
31652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653   (exit $ac_status); } &&
31654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31655   { (case "(($ac_try" in
31656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657   *) ac_try_echo=$ac_try;;
31658 esac
31659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660   (eval "$ac_try") 2>&5
31661   ac_status=$?
31662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663   (exit $ac_status); }; } &&
31664          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
31674   ac_cv_func_alloca_works=yes
31675 else
31676   echo "$as_me: failed program was:" >&5
31677 sed 's/^/| /' conftest.$ac_ext >&5
31678
31679         ac_cv_func_alloca_works=no
31680 fi
31681
31682 rm -f core conftest.err conftest.$ac_objext \
31683       conftest$ac_exeext conftest.$ac_ext
31684 fi
31685 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31686 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31687
31688 if test $ac_cv_func_alloca_works = yes; then
31689
31690 cat >>confdefs.h <<\_ACEOF
31691 #define HAVE_ALLOCA 1
31692 _ACEOF
31693
31694 else
31695   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31696 # that cause trouble.  Some versions do not even contain alloca or
31697 # contain a buggy version.  If you still want to use their alloca,
31698 # use ar to extract alloca.o from them instead of compiling alloca.c.
31699
31700 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31701
31702 cat >>confdefs.h <<\_ACEOF
31703 #define C_ALLOCA 1
31704 _ACEOF
31705
31706
31707 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31708 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31709 if test "${ac_cv_os_cray+set}" = set; then
31710   echo $ECHO_N "(cached) $ECHO_C" >&6
31711 else
31712   cat >conftest.$ac_ext <<_ACEOF
31713 /* confdefs.h.  */
31714 _ACEOF
31715 cat confdefs.h >>conftest.$ac_ext
31716 cat >>conftest.$ac_ext <<_ACEOF
31717 /* end confdefs.h.  */
31718 #if defined CRAY && ! defined CRAY2
31719 webecray
31720 #else
31721 wenotbecray
31722 #endif
31723
31724 _ACEOF
31725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31726   $EGREP "webecray" >/dev/null 2>&1; then
31727   ac_cv_os_cray=yes
31728 else
31729   ac_cv_os_cray=no
31730 fi
31731 rm -f conftest*
31732
31733 fi
31734 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31735 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31736 if test $ac_cv_os_cray = yes; then
31737   for ac_func in _getb67 GETB67 getb67; do
31738     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31742   echo $ECHO_N "(cached) $ECHO_C" >&6
31743 else
31744   cat >conftest.$ac_ext <<_ACEOF
31745 /* confdefs.h.  */
31746 _ACEOF
31747 cat confdefs.h >>conftest.$ac_ext
31748 cat >>conftest.$ac_ext <<_ACEOF
31749 /* end confdefs.h.  */
31750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31752 #define $ac_func innocuous_$ac_func
31753
31754 /* System header to define __stub macros and hopefully few prototypes,
31755     which can conflict with char $ac_func (); below.
31756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31757     <limits.h> exists even on freestanding compilers.  */
31758
31759 #ifdef __STDC__
31760 # include <limits.h>
31761 #else
31762 # include <assert.h>
31763 #endif
31764
31765 #undef $ac_func
31766
31767 /* Override any GCC internal prototype to avoid an error.
31768    Use char because int might match the return type of a GCC
31769    builtin and then its argument prototype would still apply.  */
31770 #ifdef __cplusplus
31771 extern "C"
31772 #endif
31773 char $ac_func ();
31774 /* The GNU C library defines this for functions which it implements
31775     to always fail with ENOSYS.  Some functions are actually named
31776     something starting with __ and the normal name is an alias.  */
31777 #if defined __stub_$ac_func || defined __stub___$ac_func
31778 choke me
31779 #endif
31780
31781 int
31782 main ()
31783 {
31784 return $ac_func ();
31785   ;
31786   return 0;
31787 }
31788 _ACEOF
31789 rm -f conftest.$ac_objext conftest$ac_exeext
31790 if { (ac_try="$ac_link"
31791 case "(($ac_try" in
31792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793   *) ac_try_echo=$ac_try;;
31794 esac
31795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796   (eval "$ac_link") 2>conftest.er1
31797   ac_status=$?
31798   grep -v '^ *+' conftest.er1 >conftest.err
31799   rm -f conftest.er1
31800   cat conftest.err >&5
31801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802   (exit $ac_status); } &&
31803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31804   { (case "(($ac_try" in
31805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806   *) ac_try_echo=$ac_try;;
31807 esac
31808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31809   (eval "$ac_try") 2>&5
31810   ac_status=$?
31811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812   (exit $ac_status); }; } &&
31813          { ac_try='test -s conftest$ac_exeext'
31814   { (case "(($ac_try" in
31815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816   *) ac_try_echo=$ac_try;;
31817 esac
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819   (eval "$ac_try") 2>&5
31820   ac_status=$?
31821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822   (exit $ac_status); }; }; then
31823   eval "$as_ac_var=yes"
31824 else
31825   echo "$as_me: failed program was:" >&5
31826 sed 's/^/| /' conftest.$ac_ext >&5
31827
31828         eval "$as_ac_var=no"
31829 fi
31830
31831 rm -f core conftest.err conftest.$ac_objext \
31832       conftest$ac_exeext conftest.$ac_ext
31833 fi
31834 ac_res=`eval echo '${'$as_ac_var'}'`
31835                { echo "$as_me:$LINENO: result: $ac_res" >&5
31836 echo "${ECHO_T}$ac_res" >&6; }
31837 if test `eval echo '${'$as_ac_var'}'` = yes; then
31838
31839 cat >>confdefs.h <<_ACEOF
31840 #define CRAY_STACKSEG_END $ac_func
31841 _ACEOF
31842
31843     break
31844 fi
31845
31846   done
31847 fi
31848
31849 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31850 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31851 if test "${ac_cv_c_stack_direction+set}" = set; then
31852   echo $ECHO_N "(cached) $ECHO_C" >&6
31853 else
31854   if test "$cross_compiling" = yes; then
31855   ac_cv_c_stack_direction=0
31856 else
31857   cat >conftest.$ac_ext <<_ACEOF
31858 /* confdefs.h.  */
31859 _ACEOF
31860 cat confdefs.h >>conftest.$ac_ext
31861 cat >>conftest.$ac_ext <<_ACEOF
31862 /* end confdefs.h.  */
31863 $ac_includes_default
31864 int
31865 find_stack_direction ()
31866 {
31867   static char *addr = 0;
31868   auto char dummy;
31869   if (addr == 0)
31870     {
31871       addr = &dummy;
31872       return find_stack_direction ();
31873     }
31874   else
31875     return (&dummy > addr) ? 1 : -1;
31876 }
31877
31878 int
31879 main ()
31880 {
31881   return find_stack_direction () < 0;
31882 }
31883 _ACEOF
31884 rm -f conftest$ac_exeext
31885 if { (ac_try="$ac_link"
31886 case "(($ac_try" in
31887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888   *) ac_try_echo=$ac_try;;
31889 esac
31890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891   (eval "$ac_link") 2>&5
31892   ac_status=$?
31893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31895   { (case "(($ac_try" in
31896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897   *) ac_try_echo=$ac_try;;
31898 esac
31899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900   (eval "$ac_try") 2>&5
31901   ac_status=$?
31902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903   (exit $ac_status); }; }; then
31904   ac_cv_c_stack_direction=1
31905 else
31906   echo "$as_me: program exited with status $ac_status" >&5
31907 echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31909
31910 ( exit $ac_status )
31911 ac_cv_c_stack_direction=-1
31912 fi
31913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31914 fi
31915
31916
31917 fi
31918 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31919 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31920
31921 cat >>confdefs.h <<_ACEOF
31922 #define STACK_DIRECTION $ac_cv_c_stack_direction
31923 _ACEOF
31924
31925
31926 fi
31927
31928
31929 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31930 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31931 if test "${ac_cv_func_rand48+set}" = set; then
31932   echo $ECHO_N "(cached) $ECHO_C" >&6
31933 else
31934   ac_ext=cpp
31935 ac_cpp='$CXXCPP $CPPFLAGS'
31936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31939
31940    cat >conftest.$ac_ext <<_ACEOF
31941 /* confdefs.h.  */
31942 _ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h.  */
31946 #include <stdlib.h>
31947 int
31948 main ()
31949 {
31950 srand48(0);lrand48();drand48();
31951   ;
31952   return 0;
31953 }
31954 _ACEOF
31955 rm -f conftest.$ac_objext
31956 if { (ac_try="$ac_compile"
31957 case "(($ac_try" in
31958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959   *) ac_try_echo=$ac_try;;
31960 esac
31961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31962   (eval "$ac_compile") 2>conftest.er1
31963   ac_status=$?
31964   grep -v '^ *+' conftest.er1 >conftest.err
31965   rm -f conftest.er1
31966   cat conftest.err >&5
31967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968   (exit $ac_status); } &&
31969          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31970   { (case "(($ac_try" in
31971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31972   *) ac_try_echo=$ac_try;;
31973 esac
31974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31975   (eval "$ac_try") 2>&5
31976   ac_status=$?
31977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978   (exit $ac_status); }; } &&
31979          { ac_try='test -s conftest.$ac_objext'
31980   { (case "(($ac_try" in
31981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982   *) ac_try_echo=$ac_try;;
31983 esac
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985   (eval "$ac_try") 2>&5
31986   ac_status=$?
31987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988   (exit $ac_status); }; }; then
31989   ac_cv_func_rand48=yes
31990 else
31991   echo "$as_me: failed program was:" >&5
31992 sed 's/^/| /' conftest.$ac_ext >&5
31993
31994         ac_cv_func_rand48=no
31995 fi
31996
31997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31998   ac_ext=c
31999 ac_cpp='$CPP $CPPFLAGS'
32000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32003
32004 fi
32005 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32006 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32007
32008 if test "$ac_cv_func_rand48" = "yes" ; then
32009
32010 cat >>confdefs.h <<\_ACEOF
32011 #define HAVE_RAND48 1
32012 _ACEOF
32013
32014 fi
32015
32016
32017 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32018 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32019 if test "${ac_cv_cxx_namespaces+set}" = set; then
32020   echo $ECHO_N "(cached) $ECHO_C" >&6
32021 else
32022   ac_ext=cpp
32023 ac_cpp='$CXXCPP $CPPFLAGS'
32024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32027
32028  cat >conftest.$ac_ext <<_ACEOF
32029 /* confdefs.h.  */
32030 _ACEOF
32031 cat confdefs.h >>conftest.$ac_ext
32032 cat >>conftest.$ac_ext <<_ACEOF
32033 /* end confdefs.h.  */
32034 namespace Outer { namespace Inner { int i = 0; }}
32035 int
32036 main ()
32037 {
32038 using namespace Outer::Inner; return i;
32039   ;
32040   return 0;
32041 }
32042 _ACEOF
32043 rm -f conftest.$ac_objext
32044 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32051   ac_status=$?
32052   grep -v '^ *+' conftest.er1 >conftest.err
32053   rm -f conftest.er1
32054   cat conftest.err >&5
32055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056   (exit $ac_status); } &&
32057          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32058   { (case "(($ac_try" in
32059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32060   *) ac_try_echo=$ac_try;;
32061 esac
32062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32063   (eval "$ac_try") 2>&5
32064   ac_status=$?
32065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066   (exit $ac_status); }; } &&
32067          { ac_try='test -s conftest.$ac_objext'
32068   { (case "(($ac_try" in
32069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070   *) ac_try_echo=$ac_try;;
32071 esac
32072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073   (eval "$ac_try") 2>&5
32074   ac_status=$?
32075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076   (exit $ac_status); }; }; then
32077   ac_cv_cxx_namespaces=yes
32078 else
32079   echo "$as_me: failed program was:" >&5
32080 sed 's/^/| /' conftest.$ac_ext >&5
32081
32082         ac_cv_cxx_namespaces=no
32083 fi
32084
32085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32086  ac_ext=c
32087 ac_cpp='$CPP $CPPFLAGS'
32088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32091
32092
32093 fi
32094 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32095 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32096 if test "$ac_cv_cxx_namespaces" = yes; then
32097
32098 cat >>confdefs.h <<\_ACEOF
32099 #define HAVE_NAMESPACES
32100 _ACEOF
32101
32102 fi
32103
32104 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32105 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32106 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32107   echo $ECHO_N "(cached) $ECHO_C" >&6
32108 else
32109
32110   ac_ext=cpp
32111 ac_cpp='$CXXCPP $CPPFLAGS'
32112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32115
32116   cat >conftest.$ac_ext <<_ACEOF
32117 /* confdefs.h.  */
32118 _ACEOF
32119 cat confdefs.h >>conftest.$ac_ext
32120 cat >>conftest.$ac_ext <<_ACEOF
32121 /* end confdefs.h.  */
32122 #include <iterator>
32123 #ifdef HAVE_NAMESPACES
32124 using namespace std;
32125 #endif
32126 int
32127 main ()
32128 {
32129 iterator<int,int,int> t; return 0;
32130   ;
32131   return 0;
32132 }
32133 _ACEOF
32134 rm -f conftest.$ac_objext
32135 if { (ac_try="$ac_compile"
32136 case "(($ac_try" in
32137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138   *) ac_try_echo=$ac_try;;
32139 esac
32140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141   (eval "$ac_compile") 2>conftest.er1
32142   ac_status=$?
32143   grep -v '^ *+' conftest.er1 >conftest.err
32144   rm -f conftest.er1
32145   cat conftest.err >&5
32146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147   (exit $ac_status); } &&
32148          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32149   { (case "(($ac_try" in
32150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151   *) ac_try_echo=$ac_try;;
32152 esac
32153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154   (eval "$ac_try") 2>&5
32155   ac_status=$?
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); }; } &&
32158          { ac_try='test -s conftest.$ac_objext'
32159   { (case "(($ac_try" in
32160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161   *) ac_try_echo=$ac_try;;
32162 esac
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164   (eval "$ac_try") 2>&5
32165   ac_status=$?
32166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167   (exit $ac_status); }; }; then
32168   ac_cv_cxx_have_std_iterator=yes
32169 else
32170   echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.$ac_ext >&5
32172
32173         ac_cv_cxx_have_std_iterator=no
32174 fi
32175
32176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32177   ac_ext=c
32178 ac_cpp='$CPP $CPPFLAGS'
32179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32182
32183
32184 fi
32185 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32186 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32187 if test "$ac_cv_cxx_have_std_iterator" = yes
32188 then
32189
32190 cat >>confdefs.h <<\_ACEOF
32191 #define HAVE_STD_ITERATOR 1
32192 _ACEOF
32193
32194 else
32195
32196 cat >>confdefs.h <<\_ACEOF
32197 #define HAVE_STD_ITERATOR 0
32198 _ACEOF
32199
32200 fi
32201
32202 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32203 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32204 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32205   echo $ECHO_N "(cached) $ECHO_C" >&6
32206 else
32207
32208   ac_ext=cpp
32209 ac_cpp='$CXXCPP $CPPFLAGS'
32210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32213
32214   cat >conftest.$ac_ext <<_ACEOF
32215 /* confdefs.h.  */
32216 _ACEOF
32217 cat confdefs.h >>conftest.$ac_ext
32218 cat >>conftest.$ac_ext <<_ACEOF
32219 /* end confdefs.h.  */
32220 #include <iterator>
32221 #ifdef HAVE_NAMESPACES
32222 using namespace std;
32223 #endif
32224 int
32225 main ()
32226 {
32227 bidirectional_iterator<int,int> t; return 0;
32228   ;
32229   return 0;
32230 }
32231 _ACEOF
32232 rm -f conftest.$ac_objext
32233 if { (ac_try="$ac_compile"
32234 case "(($ac_try" in
32235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32236   *) ac_try_echo=$ac_try;;
32237 esac
32238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32239   (eval "$ac_compile") 2>conftest.er1
32240   ac_status=$?
32241   grep -v '^ *+' conftest.er1 >conftest.err
32242   rm -f conftest.er1
32243   cat conftest.err >&5
32244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245   (exit $ac_status); } &&
32246          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32247   { (case "(($ac_try" in
32248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32249   *) ac_try_echo=$ac_try;;
32250 esac
32251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32252   (eval "$ac_try") 2>&5
32253   ac_status=$?
32254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32255   (exit $ac_status); }; } &&
32256          { ac_try='test -s conftest.$ac_objext'
32257   { (case "(($ac_try" in
32258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32259   *) ac_try_echo=$ac_try;;
32260 esac
32261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262   (eval "$ac_try") 2>&5
32263   ac_status=$?
32264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265   (exit $ac_status); }; }; then
32266   ac_cv_cxx_have_bi_iterator=yes
32267 else
32268   echo "$as_me: failed program was:" >&5
32269 sed 's/^/| /' conftest.$ac_ext >&5
32270
32271         ac_cv_cxx_have_bi_iterator=no
32272 fi
32273
32274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32275   ac_ext=c
32276 ac_cpp='$CPP $CPPFLAGS'
32277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32280
32281
32282 fi
32283 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32284 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32285 if test "$ac_cv_cxx_have_bi_iterator" = yes
32286 then
32287
32288 cat >>confdefs.h <<\_ACEOF
32289 #define HAVE_BI_ITERATOR 1
32290 _ACEOF
32291
32292 else
32293
32294 cat >>confdefs.h <<\_ACEOF
32295 #define HAVE_BI_ITERATOR 0
32296 _ACEOF
32297
32298 fi
32299
32300 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32301 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32302 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32303   echo $ECHO_N "(cached) $ECHO_C" >&6
32304 else
32305
32306   ac_ext=cpp
32307 ac_cpp='$CXXCPP $CPPFLAGS'
32308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32311
32312   cat >conftest.$ac_ext <<_ACEOF
32313 /* confdefs.h.  */
32314 _ACEOF
32315 cat confdefs.h >>conftest.$ac_ext
32316 cat >>conftest.$ac_ext <<_ACEOF
32317 /* end confdefs.h.  */
32318 #include <iterator>
32319 #ifdef HAVE_NAMESPACES
32320 using namespace std;
32321 #endif
32322 int
32323 main ()
32324 {
32325 forward_iterator<int,int> t; return 0;
32326   ;
32327   return 0;
32328 }
32329 _ACEOF
32330 rm -f conftest.$ac_objext
32331 if { (ac_try="$ac_compile"
32332 case "(($ac_try" in
32333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32334   *) ac_try_echo=$ac_try;;
32335 esac
32336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32337   (eval "$ac_compile") 2>conftest.er1
32338   ac_status=$?
32339   grep -v '^ *+' conftest.er1 >conftest.err
32340   rm -f conftest.er1
32341   cat conftest.err >&5
32342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343   (exit $ac_status); } &&
32344          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32345   { (case "(($ac_try" in
32346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347   *) ac_try_echo=$ac_try;;
32348 esac
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350   (eval "$ac_try") 2>&5
32351   ac_status=$?
32352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353   (exit $ac_status); }; } &&
32354          { ac_try='test -s conftest.$ac_objext'
32355   { (case "(($ac_try" in
32356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357   *) ac_try_echo=$ac_try;;
32358 esac
32359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32360   (eval "$ac_try") 2>&5
32361   ac_status=$?
32362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363   (exit $ac_status); }; }; then
32364   ac_cv_cxx_have_fwd_iterator=yes
32365 else
32366   echo "$as_me: failed program was:" >&5
32367 sed 's/^/| /' conftest.$ac_ext >&5
32368
32369         ac_cv_cxx_have_fwd_iterator=no
32370 fi
32371
32372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32373   ac_ext=c
32374 ac_cpp='$CPP $CPPFLAGS'
32375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32378
32379
32380 fi
32381 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32382 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32383 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32384 then
32385
32386 cat >>confdefs.h <<\_ACEOF
32387 #define HAVE_FWD_ITERATOR 1
32388 _ACEOF
32389
32390 else
32391
32392 cat >>confdefs.h <<\_ACEOF
32393 #define HAVE_FWD_ITERATOR 0
32394 _ACEOF
32395
32396 fi
32397
32398
32399 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32400 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32401 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32402   echo $ECHO_N "(cached) $ECHO_C" >&6
32403 else
32404   ac_ext=cpp
32405 ac_cpp='$CXXCPP $CPPFLAGS'
32406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32409
32410    cat >conftest.$ac_ext <<_ACEOF
32411 /* confdefs.h.  */
32412 _ACEOF
32413 cat confdefs.h >>conftest.$ac_ext
32414 cat >>conftest.$ac_ext <<_ACEOF
32415 /* end confdefs.h.  */
32416 #include <math.h>
32417 int
32418 main ()
32419 {
32420 float f; isnan(f);
32421   ;
32422   return 0;
32423 }
32424 _ACEOF
32425 rm -f conftest.$ac_objext
32426 if { (ac_try="$ac_compile"
32427 case "(($ac_try" in
32428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32429   *) ac_try_echo=$ac_try;;
32430 esac
32431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32432   (eval "$ac_compile") 2>conftest.er1
32433   ac_status=$?
32434   grep -v '^ *+' conftest.er1 >conftest.err
32435   rm -f conftest.er1
32436   cat conftest.err >&5
32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438   (exit $ac_status); } &&
32439          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32440   { (case "(($ac_try" in
32441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442   *) ac_try_echo=$ac_try;;
32443 esac
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445   (eval "$ac_try") 2>&5
32446   ac_status=$?
32447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448   (exit $ac_status); }; } &&
32449          { ac_try='test -s conftest.$ac_objext'
32450   { (case "(($ac_try" in
32451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452   *) ac_try_echo=$ac_try;;
32453 esac
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455   (eval "$ac_try") 2>&5
32456   ac_status=$?
32457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458   (exit $ac_status); }; }; then
32459   ac_cv_func_isnan_in_math_h=yes
32460 else
32461   echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32463
32464         ac_cv_func_isnan_in_math_h=no
32465 fi
32466
32467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32468   ac_ext=c
32469 ac_cpp='$CPP $CPPFLAGS'
32470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32473
32474 fi
32475 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32476 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32477
32478
32479 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32480
32481 cat >>confdefs.h <<\_ACEOF
32482 #define HAVE_ISNAN_IN_MATH_H 1
32483 _ACEOF
32484
32485 fi
32486
32487 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32488 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32489 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32490   echo $ECHO_N "(cached) $ECHO_C" >&6
32491 else
32492   ac_ext=cpp
32493 ac_cpp='$CXXCPP $CPPFLAGS'
32494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32497
32498    cat >conftest.$ac_ext <<_ACEOF
32499 /* confdefs.h.  */
32500 _ACEOF
32501 cat confdefs.h >>conftest.$ac_ext
32502 cat >>conftest.$ac_ext <<_ACEOF
32503 /* end confdefs.h.  */
32504 #include <cmath>
32505 int
32506 main ()
32507 {
32508 float f; isnan(f);
32509   ;
32510   return 0;
32511 }
32512 _ACEOF
32513 rm -f conftest.$ac_objext
32514 if { (ac_try="$ac_compile"
32515 case "(($ac_try" in
32516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517   *) ac_try_echo=$ac_try;;
32518 esac
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520   (eval "$ac_compile") 2>conftest.er1
32521   ac_status=$?
32522   grep -v '^ *+' conftest.er1 >conftest.err
32523   rm -f conftest.er1
32524   cat conftest.err >&5
32525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526   (exit $ac_status); } &&
32527          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32537          { ac_try='test -s conftest.$ac_objext'
32538   { (case "(($ac_try" in
32539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540   *) ac_try_echo=$ac_try;;
32541 esac
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543   (eval "$ac_try") 2>&5
32544   ac_status=$?
32545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546   (exit $ac_status); }; }; then
32547   ac_cv_func_isnan_in_cmath=yes
32548 else
32549   echo "$as_me: failed program was:" >&5
32550 sed 's/^/| /' conftest.$ac_ext >&5
32551
32552         ac_cv_func_isnan_in_cmath=no
32553 fi
32554
32555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32556   ac_ext=c
32557 ac_cpp='$CPP $CPPFLAGS'
32558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32561
32562 fi
32563 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32564 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32565
32566 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32567
32568 cat >>confdefs.h <<\_ACEOF
32569 #define HAVE_ISNAN_IN_CMATH 1
32570 _ACEOF
32571
32572 fi
32573
32574 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32575 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32576 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32577   echo $ECHO_N "(cached) $ECHO_C" >&6
32578 else
32579   ac_ext=cpp
32580 ac_cpp='$CXXCPP $CPPFLAGS'
32581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32584
32585    cat >conftest.$ac_ext <<_ACEOF
32586 /* confdefs.h.  */
32587 _ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h.  */
32591 #include <cmath>
32592 int
32593 main ()
32594 {
32595 float f; std::isnan(f);
32596   ;
32597   return 0;
32598 }
32599 _ACEOF
32600 rm -f conftest.$ac_objext
32601 if { (ac_try="$ac_compile"
32602 case "(($ac_try" in
32603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604   *) ac_try_echo=$ac_try;;
32605 esac
32606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32607   (eval "$ac_compile") 2>conftest.er1
32608   ac_status=$?
32609   grep -v '^ *+' conftest.er1 >conftest.err
32610   rm -f conftest.er1
32611   cat conftest.err >&5
32612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613   (exit $ac_status); } &&
32614          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32615   { (case "(($ac_try" in
32616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617   *) ac_try_echo=$ac_try;;
32618 esac
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620   (eval "$ac_try") 2>&5
32621   ac_status=$?
32622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623   (exit $ac_status); }; } &&
32624          { ac_try='test -s conftest.$ac_objext'
32625   { (case "(($ac_try" in
32626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32627   *) ac_try_echo=$ac_try;;
32628 esac
32629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32630   (eval "$ac_try") 2>&5
32631   ac_status=$?
32632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633   (exit $ac_status); }; }; then
32634   ac_cv_func_std_isnan_in_cmath=yes
32635 else
32636   echo "$as_me: failed program was:" >&5
32637 sed 's/^/| /' conftest.$ac_ext >&5
32638
32639         ac_cv_func_std_isnan_in_cmath=no
32640 fi
32641
32642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32643   ac_ext=c
32644 ac_cpp='$CPP $CPPFLAGS'
32645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32648
32649 fi
32650 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32651 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32652
32653 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32654
32655 cat >>confdefs.h <<\_ACEOF
32656 #define HAVE_STD_ISNAN_IN_CMATH 1
32657 _ACEOF
32658
32659 fi
32660
32661
32662 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32663 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32664 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32665   echo $ECHO_N "(cached) $ECHO_C" >&6
32666 else
32667   ac_ext=cpp
32668 ac_cpp='$CXXCPP $CPPFLAGS'
32669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32672
32673    cat >conftest.$ac_ext <<_ACEOF
32674 /* confdefs.h.  */
32675 _ACEOF
32676 cat confdefs.h >>conftest.$ac_ext
32677 cat >>conftest.$ac_ext <<_ACEOF
32678 /* end confdefs.h.  */
32679 #include <math.h>
32680 int
32681 main ()
32682 {
32683 float f; isinf(f);
32684   ;
32685   return 0;
32686 }
32687 _ACEOF
32688 rm -f conftest.$ac_objext
32689 if { (ac_try="$ac_compile"
32690 case "(($ac_try" in
32691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692   *) ac_try_echo=$ac_try;;
32693 esac
32694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695   (eval "$ac_compile") 2>conftest.er1
32696   ac_status=$?
32697   grep -v '^ *+' conftest.er1 >conftest.err
32698   rm -f conftest.er1
32699   cat conftest.err >&5
32700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701   (exit $ac_status); } &&
32702          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32703   { (case "(($ac_try" in
32704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705   *) ac_try_echo=$ac_try;;
32706 esac
32707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708   (eval "$ac_try") 2>&5
32709   ac_status=$?
32710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711   (exit $ac_status); }; } &&
32712          { ac_try='test -s conftest.$ac_objext'
32713   { (case "(($ac_try" in
32714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715   *) ac_try_echo=$ac_try;;
32716 esac
32717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718   (eval "$ac_try") 2>&5
32719   ac_status=$?
32720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721   (exit $ac_status); }; }; then
32722   ac_cv_func_isinf_in_math_h=yes
32723 else
32724   echo "$as_me: failed program was:" >&5
32725 sed 's/^/| /' conftest.$ac_ext >&5
32726
32727         ac_cv_func_isinf_in_math_h=no
32728 fi
32729
32730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32731   ac_ext=c
32732 ac_cpp='$CPP $CPPFLAGS'
32733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32736
32737 fi
32738 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32739 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32740
32741 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32742
32743 cat >>confdefs.h <<\_ACEOF
32744 #define HAVE_ISINF_IN_MATH_H 1
32745 _ACEOF
32746
32747 fi
32748
32749 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32750 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32751 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32752   echo $ECHO_N "(cached) $ECHO_C" >&6
32753 else
32754   ac_ext=cpp
32755 ac_cpp='$CXXCPP $CPPFLAGS'
32756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32759
32760    cat >conftest.$ac_ext <<_ACEOF
32761 /* confdefs.h.  */
32762 _ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h.  */
32766 #include <cmath>
32767 int
32768 main ()
32769 {
32770 float f; isinf(f);
32771   ;
32772   return 0;
32773 }
32774 _ACEOF
32775 rm -f conftest.$ac_objext
32776 if { (ac_try="$ac_compile"
32777 case "(($ac_try" in
32778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779   *) ac_try_echo=$ac_try;;
32780 esac
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782   (eval "$ac_compile") 2>conftest.er1
32783   ac_status=$?
32784   grep -v '^ *+' conftest.er1 >conftest.err
32785   rm -f conftest.er1
32786   cat conftest.err >&5
32787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); } &&
32789          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790   { (case "(($ac_try" in
32791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792   *) ac_try_echo=$ac_try;;
32793 esac
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795   (eval "$ac_try") 2>&5
32796   ac_status=$?
32797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798   (exit $ac_status); }; } &&
32799          { ac_try='test -s conftest.$ac_objext'
32800   { (case "(($ac_try" in
32801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802   *) ac_try_echo=$ac_try;;
32803 esac
32804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805   (eval "$ac_try") 2>&5
32806   ac_status=$?
32807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808   (exit $ac_status); }; }; then
32809   ac_cv_func_isinf_in_cmath=yes
32810 else
32811   echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32813
32814         ac_cv_func_isinf_in_cmath=no
32815 fi
32816
32817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32818   ac_ext=c
32819 ac_cpp='$CPP $CPPFLAGS'
32820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32823
32824 fi
32825 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32826 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32827
32828 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32829
32830 cat >>confdefs.h <<\_ACEOF
32831 #define HAVE_ISINF_IN_CMATH 1
32832 _ACEOF
32833
32834 fi
32835
32836 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32837 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32838 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32839   echo $ECHO_N "(cached) $ECHO_C" >&6
32840 else
32841   ac_ext=cpp
32842 ac_cpp='$CXXCPP $CPPFLAGS'
32843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32846
32847    cat >conftest.$ac_ext <<_ACEOF
32848 /* confdefs.h.  */
32849 _ACEOF
32850 cat confdefs.h >>conftest.$ac_ext
32851 cat >>conftest.$ac_ext <<_ACEOF
32852 /* end confdefs.h.  */
32853 #include <cmath>
32854 int
32855 main ()
32856 {
32857 float f; std::isinf(f)}
32858   ;
32859   return 0;
32860 }
32861 _ACEOF
32862 rm -f conftest.$ac_objext
32863 if { (ac_try="$ac_compile"
32864 case "(($ac_try" in
32865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32866   *) ac_try_echo=$ac_try;;
32867 esac
32868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32869   (eval "$ac_compile") 2>conftest.er1
32870   ac_status=$?
32871   grep -v '^ *+' conftest.er1 >conftest.err
32872   rm -f conftest.er1
32873   cat conftest.err >&5
32874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875   (exit $ac_status); } &&
32876          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32877   { (case "(($ac_try" in
32878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879   *) ac_try_echo=$ac_try;;
32880 esac
32881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882   (eval "$ac_try") 2>&5
32883   ac_status=$?
32884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885   (exit $ac_status); }; } &&
32886          { ac_try='test -s conftest.$ac_objext'
32887   { (case "(($ac_try" in
32888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32889   *) ac_try_echo=$ac_try;;
32890 esac
32891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32892   (eval "$ac_try") 2>&5
32893   ac_status=$?
32894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895   (exit $ac_status); }; }; then
32896   ac_cv_func_std_isinf_in_cmath=yes
32897 else
32898   echo "$as_me: failed program was:" >&5
32899 sed 's/^/| /' conftest.$ac_ext >&5
32900
32901         ac_cv_func_std_isinf_in_cmath=no
32902 fi
32903
32904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32905   ac_ext=c
32906 ac_cpp='$CPP $CPPFLAGS'
32907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32910
32911 fi
32912 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32913 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32914
32915 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32916
32917 cat >>confdefs.h <<\_ACEOF
32918 #define HAVE_STD_ISINF_IN_CMATH 1
32919 _ACEOF
32920
32921 fi
32922
32923 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32924 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32925 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32926   echo $ECHO_N "(cached) $ECHO_C" >&6
32927 else
32928   ac_ext=cpp
32929 ac_cpp='$CXXCPP $CPPFLAGS'
32930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32933
32934    cat >conftest.$ac_ext <<_ACEOF
32935 /* confdefs.h.  */
32936 _ACEOF
32937 cat confdefs.h >>conftest.$ac_ext
32938 cat >>conftest.$ac_ext <<_ACEOF
32939 /* end confdefs.h.  */
32940 #include <ieeefp.h>
32941 int
32942 main ()
32943 {
32944 float f; finite(f);
32945   ;
32946   return 0;
32947 }
32948 _ACEOF
32949 rm -f conftest.$ac_objext
32950 if { (ac_try="$ac_compile"
32951 case "(($ac_try" in
32952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32953   *) ac_try_echo=$ac_try;;
32954 esac
32955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32956   (eval "$ac_compile") 2>conftest.er1
32957   ac_status=$?
32958   grep -v '^ *+' conftest.er1 >conftest.err
32959   rm -f conftest.er1
32960   cat conftest.err >&5
32961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32962   (exit $ac_status); } &&
32963          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32964   { (case "(($ac_try" in
32965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32966   *) ac_try_echo=$ac_try;;
32967 esac
32968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32969   (eval "$ac_try") 2>&5
32970   ac_status=$?
32971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972   (exit $ac_status); }; } &&
32973          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
32983   ac_cv_func_finite_in_ieeefp_h=yes
32984 else
32985   echo "$as_me: failed program was:" >&5
32986 sed 's/^/| /' conftest.$ac_ext >&5
32987
32988         ac_cv_func_finite_in_ieeefp_h=no
32989 fi
32990
32991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32992   ac_ext=c
32993 ac_cpp='$CPP $CPPFLAGS'
32994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32997
32998 fi
32999 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33000 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33001
33002 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33003
33004 cat >>confdefs.h <<\_ACEOF
33005 #define HAVE_FINITE_IN_IEEEFP_H 1
33006 _ACEOF
33007
33008 fi
33009
33010
33011
33012 if test "$llvm_cv_platform_type" = "Unix" ; then
33013
33014
33015 for ac_header in stdlib.h unistd.h
33016 do
33017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33019   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33022   echo $ECHO_N "(cached) $ECHO_C" >&6
33023 fi
33024 ac_res=`eval echo '${'$as_ac_Header'}'`
33025                { echo "$as_me:$LINENO: result: $ac_res" >&5
33026 echo "${ECHO_T}$ac_res" >&6; }
33027 else
33028   # Is the header compilable?
33029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
33038 #include <$ac_header>
33039 _ACEOF
33040 rm -f conftest.$ac_objext
33041 if { (ac_try="$ac_compile"
33042 case "(($ac_try" in
33043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044   *) ac_try_echo=$ac_try;;
33045 esac
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047   (eval "$ac_compile") 2>conftest.er1
33048   ac_status=$?
33049   grep -v '^ *+' conftest.er1 >conftest.err
33050   rm -f conftest.er1
33051   cat conftest.err >&5
33052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053   (exit $ac_status); } &&
33054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33055   { (case "(($ac_try" in
33056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057   *) ac_try_echo=$ac_try;;
33058 esac
33059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060   (eval "$ac_try") 2>&5
33061   ac_status=$?
33062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063   (exit $ac_status); }; } &&
33064          { ac_try='test -s conftest.$ac_objext'
33065   { (case "(($ac_try" in
33066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067   *) ac_try_echo=$ac_try;;
33068 esac
33069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070   (eval "$ac_try") 2>&5
33071   ac_status=$?
33072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073   (exit $ac_status); }; }; then
33074   ac_header_compiler=yes
33075 else
33076   echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33078
33079         ac_header_compiler=no
33080 fi
33081
33082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33084 echo "${ECHO_T}$ac_header_compiler" >&6; }
33085
33086 # Is the header present?
33087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33089 cat >conftest.$ac_ext <<_ACEOF
33090 /* confdefs.h.  */
33091 _ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h.  */
33095 #include <$ac_header>
33096 _ACEOF
33097 if { (ac_try="$ac_cpp conftest.$ac_ext"
33098 case "(($ac_try" in
33099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100   *) ac_try_echo=$ac_try;;
33101 esac
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33104   ac_status=$?
33105   grep -v '^ *+' conftest.er1 >conftest.err
33106   rm -f conftest.er1
33107   cat conftest.err >&5
33108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109   (exit $ac_status); } >/dev/null; then
33110   if test -s conftest.err; then
33111     ac_cpp_err=$ac_c_preproc_warn_flag
33112     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33113   else
33114     ac_cpp_err=
33115   fi
33116 else
33117   ac_cpp_err=yes
33118 fi
33119 if test -z "$ac_cpp_err"; then
33120   ac_header_preproc=yes
33121 else
33122   echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33124
33125   ac_header_preproc=no
33126 fi
33127
33128 rm -f conftest.err conftest.$ac_ext
33129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33130 echo "${ECHO_T}$ac_header_preproc" >&6; }
33131
33132 # So?  What about this header?
33133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33134   yes:no: )
33135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33139     ac_header_preproc=yes
33140     ;;
33141   no:yes:* )
33142     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33144     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33145 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33146     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33148     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33149 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33152     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33154     ( cat <<\_ASBOX
33155 ## ----------------------------------- ##
33156 ## Report this to llvmbugs@cs.uiuc.edu ##
33157 ## ----------------------------------- ##
33158 _ASBOX
33159      ) | sed "s/^/$as_me: WARNING:     /" >&2
33160     ;;
33161 esac
33162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33165   echo $ECHO_N "(cached) $ECHO_C" >&6
33166 else
33167   eval "$as_ac_Header=\$ac_header_preproc"
33168 fi
33169 ac_res=`eval echo '${'$as_ac_Header'}'`
33170                { echo "$as_me:$LINENO: result: $ac_res" >&5
33171 echo "${ECHO_T}$ac_res" >&6; }
33172
33173 fi
33174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33175   cat >>confdefs.h <<_ACEOF
33176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33177 _ACEOF
33178
33179 fi
33180
33181 done
33182
33183
33184 for ac_func in getpagesize
33185 do
33186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33190   echo $ECHO_N "(cached) $ECHO_C" >&6
33191 else
33192   cat >conftest.$ac_ext <<_ACEOF
33193 /* confdefs.h.  */
33194 _ACEOF
33195 cat confdefs.h >>conftest.$ac_ext
33196 cat >>conftest.$ac_ext <<_ACEOF
33197 /* end confdefs.h.  */
33198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33200 #define $ac_func innocuous_$ac_func
33201
33202 /* System header to define __stub macros and hopefully few prototypes,
33203     which can conflict with char $ac_func (); below.
33204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33205     <limits.h> exists even on freestanding compilers.  */
33206
33207 #ifdef __STDC__
33208 # include <limits.h>
33209 #else
33210 # include <assert.h>
33211 #endif
33212
33213 #undef $ac_func
33214
33215 /* Override any GCC internal prototype to avoid an error.
33216    Use char because int might match the return type of a GCC
33217    builtin and then its argument prototype would still apply.  */
33218 #ifdef __cplusplus
33219 extern "C"
33220 #endif
33221 char $ac_func ();
33222 /* The GNU C library defines this for functions which it implements
33223     to always fail with ENOSYS.  Some functions are actually named
33224     something starting with __ and the normal name is an alias.  */
33225 #if defined __stub_$ac_func || defined __stub___$ac_func
33226 choke me
33227 #endif
33228
33229 int
33230 main ()
33231 {
33232 return $ac_func ();
33233   ;
33234   return 0;
33235 }
33236 _ACEOF
33237 rm -f conftest.$ac_objext conftest$ac_exeext
33238 if { (ac_try="$ac_link"
33239 case "(($ac_try" in
33240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241   *) ac_try_echo=$ac_try;;
33242 esac
33243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244   (eval "$ac_link") 2>conftest.er1
33245   ac_status=$?
33246   grep -v '^ *+' conftest.er1 >conftest.err
33247   rm -f conftest.er1
33248   cat conftest.err >&5
33249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); } &&
33251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33252   { (case "(($ac_try" in
33253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33254   *) ac_try_echo=$ac_try;;
33255 esac
33256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33257   (eval "$ac_try") 2>&5
33258   ac_status=$?
33259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260   (exit $ac_status); }; } &&
33261          { ac_try='test -s conftest$ac_exeext'
33262   { (case "(($ac_try" in
33263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264   *) ac_try_echo=$ac_try;;
33265 esac
33266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267   (eval "$ac_try") 2>&5
33268   ac_status=$?
33269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270   (exit $ac_status); }; }; then
33271   eval "$as_ac_var=yes"
33272 else
33273   echo "$as_me: failed program was:" >&5
33274 sed 's/^/| /' conftest.$ac_ext >&5
33275
33276         eval "$as_ac_var=no"
33277 fi
33278
33279 rm -f core conftest.err conftest.$ac_objext \
33280       conftest$ac_exeext conftest.$ac_ext
33281 fi
33282 ac_res=`eval echo '${'$as_ac_var'}'`
33283                { echo "$as_me:$LINENO: result: $ac_res" >&5
33284 echo "${ECHO_T}$ac_res" >&6; }
33285 if test `eval echo '${'$as_ac_var'}'` = yes; then
33286   cat >>confdefs.h <<_ACEOF
33287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33288 _ACEOF
33289
33290 fi
33291 done
33292
33293 { echo "$as_me:$LINENO: checking for working mmap" >&5
33294 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33295 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33296   echo $ECHO_N "(cached) $ECHO_C" >&6
33297 else
33298   if test "$cross_compiling" = yes; then
33299   ac_cv_func_mmap_fixed_mapped=no
33300 else
33301   cat >conftest.$ac_ext <<_ACEOF
33302 /* confdefs.h.  */
33303 _ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h.  */
33307 $ac_includes_default
33308 /* malloc might have been renamed as rpl_malloc. */
33309 #undef malloc
33310
33311 /* Thanks to Mike Haertel and Jim Avera for this test.
33312    Here is a matrix of mmap possibilities:
33313         mmap private not fixed
33314         mmap private fixed at somewhere currently unmapped
33315         mmap private fixed at somewhere already mapped
33316         mmap shared not fixed
33317         mmap shared fixed at somewhere currently unmapped
33318         mmap shared fixed at somewhere already mapped
33319    For private mappings, we should verify that changes cannot be read()
33320    back from the file, nor mmap's back from the file at a different
33321    address.  (There have been systems where private was not correctly
33322    implemented like the infamous i386 svr4.0, and systems where the
33323    VM page cache was not coherent with the file system buffer cache
33324    like early versions of FreeBSD and possibly contemporary NetBSD.)
33325    For shared mappings, we should conversely verify that changes get
33326    propagated back to all the places they're supposed to be.
33327
33328    Grep wants private fixed already mapped.
33329    The main things grep needs to know about mmap are:
33330    * does it exist and is it safe to write into the mmap'd area
33331    * how to use it (BSD variants)  */
33332
33333 #include <fcntl.h>
33334 #include <sys/mman.h>
33335
33336 #if !STDC_HEADERS && !HAVE_STDLIB_H
33337 char *malloc ();
33338 #endif
33339
33340 /* This mess was copied from the GNU getpagesize.h.  */
33341 #if !HAVE_GETPAGESIZE
33342 /* Assume that all systems that can run configure have sys/param.h.  */
33343 # if !HAVE_SYS_PARAM_H
33344 #  define HAVE_SYS_PARAM_H 1
33345 # endif
33346
33347 # ifdef _SC_PAGESIZE
33348 #  define getpagesize() sysconf(_SC_PAGESIZE)
33349 # else /* no _SC_PAGESIZE */
33350 #  if HAVE_SYS_PARAM_H
33351 #   include <sys/param.h>
33352 #   ifdef EXEC_PAGESIZE
33353 #    define getpagesize() EXEC_PAGESIZE
33354 #   else /* no EXEC_PAGESIZE */
33355 #    ifdef NBPG
33356 #     define getpagesize() NBPG * CLSIZE
33357 #     ifndef CLSIZE
33358 #      define CLSIZE 1
33359 #     endif /* no CLSIZE */
33360 #    else /* no NBPG */
33361 #     ifdef NBPC
33362 #      define getpagesize() NBPC
33363 #     else /* no NBPC */
33364 #      ifdef PAGESIZE
33365 #       define getpagesize() PAGESIZE
33366 #      endif /* PAGESIZE */
33367 #     endif /* no NBPC */
33368 #    endif /* no NBPG */
33369 #   endif /* no EXEC_PAGESIZE */
33370 #  else /* no HAVE_SYS_PARAM_H */
33371 #   define getpagesize() 8192   /* punt totally */
33372 #  endif /* no HAVE_SYS_PARAM_H */
33373 # endif /* no _SC_PAGESIZE */
33374
33375 #endif /* no HAVE_GETPAGESIZE */
33376
33377 int
33378 main ()
33379 {
33380   char *data, *data2, *data3;
33381   int i, pagesize;
33382   int fd;
33383
33384   pagesize = getpagesize ();
33385
33386   /* First, make a file with some known garbage in it. */
33387   data = (char *) malloc (pagesize);
33388   if (!data)
33389     return 1;
33390   for (i = 0; i < pagesize; ++i)
33391     *(data + i) = rand ();
33392   umask (0);
33393   fd = creat ("conftest.mmap", 0600);
33394   if (fd < 0)
33395     return 1;
33396   if (write (fd, data, pagesize) != pagesize)
33397     return 1;
33398   close (fd);
33399
33400   /* Next, try to mmap the file at a fixed address which already has
33401      something else allocated at it.  If we can, also make sure that
33402      we see the same garbage.  */
33403   fd = open ("conftest.mmap", O_RDWR);
33404   if (fd < 0)
33405     return 1;
33406   data2 = (char *) malloc (2 * pagesize);
33407   if (!data2)
33408     return 1;
33409   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33410   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33411                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33412     return 1;
33413   for (i = 0; i < pagesize; ++i)
33414     if (*(data + i) != *(data2 + i))
33415       return 1;
33416
33417   /* Finally, make sure that changes to the mapped area do not
33418      percolate back to the file as seen by read().  (This is a bug on
33419      some variants of i386 svr4.0.)  */
33420   for (i = 0; i < pagesize; ++i)
33421     *(data2 + i) = *(data2 + i) + 1;
33422   data3 = (char *) malloc (pagesize);
33423   if (!data3)
33424     return 1;
33425   if (read (fd, data3, pagesize) != pagesize)
33426     return 1;
33427   for (i = 0; i < pagesize; ++i)
33428     if (*(data + i) != *(data3 + i))
33429       return 1;
33430   close (fd);
33431   return 0;
33432 }
33433 _ACEOF
33434 rm -f conftest$ac_exeext
33435 if { (ac_try="$ac_link"
33436 case "(($ac_try" in
33437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438   *) ac_try_echo=$ac_try;;
33439 esac
33440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441   (eval "$ac_link") 2>&5
33442   ac_status=$?
33443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33445   { (case "(($ac_try" in
33446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447   *) ac_try_echo=$ac_try;;
33448 esac
33449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450   (eval "$ac_try") 2>&5
33451   ac_status=$?
33452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453   (exit $ac_status); }; }; then
33454   ac_cv_func_mmap_fixed_mapped=yes
33455 else
33456   echo "$as_me: program exited with status $ac_status" >&5
33457 echo "$as_me: failed program was:" >&5
33458 sed 's/^/| /' conftest.$ac_ext >&5
33459
33460 ( exit $ac_status )
33461 ac_cv_func_mmap_fixed_mapped=no
33462 fi
33463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33464 fi
33465
33466
33467 fi
33468 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33469 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33470 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33471
33472 cat >>confdefs.h <<\_ACEOF
33473 #define HAVE_MMAP 1
33474 _ACEOF
33475
33476 fi
33477 rm -f conftest.mmap
33478
33479   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33480 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33481 if test "${ac_cv_func_mmap_file+set}" = set; then
33482   echo $ECHO_N "(cached) $ECHO_C" >&6
33483 else
33484    ac_ext=c
33485 ac_cpp='$CPP $CPPFLAGS'
33486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33489
33490   if test "$cross_compiling" = yes; then
33491   ac_cv_func_mmap_file=no
33492 else
33493   cat >conftest.$ac_ext <<_ACEOF
33494
33495     /* confdefs.h.  */
33496 _ACEOF
33497 cat confdefs.h >>conftest.$ac_ext
33498 cat >>conftest.$ac_ext <<_ACEOF
33499 /* end confdefs.h.  */
33500
33501 #include <sys/types.h>
33502 #include <sys/mman.h>
33503 #include <fcntl.h>
33504
33505 int
33506 main ()
33507 {
33508
33509   int fd;
33510   fd = creat ("foo",0777);
33511   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33512   unlink ("foo");
33513   return (fd != (int) MAP_FAILED);
33514   ;
33515   return 0;
33516 }
33517 _ACEOF
33518 rm -f conftest$ac_exeext
33519 if { (ac_try="$ac_link"
33520 case "(($ac_try" in
33521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33522   *) ac_try_echo=$ac_try;;
33523 esac
33524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33525   (eval "$ac_link") 2>&5
33526   ac_status=$?
33527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33529   { (case "(($ac_try" in
33530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33531   *) ac_try_echo=$ac_try;;
33532 esac
33533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33534   (eval "$ac_try") 2>&5
33535   ac_status=$?
33536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537   (exit $ac_status); }; }; then
33538   ac_cv_func_mmap_file=yes
33539 else
33540   echo "$as_me: program exited with status $ac_status" >&5
33541 echo "$as_me: failed program was:" >&5
33542 sed 's/^/| /' conftest.$ac_ext >&5
33543
33544 ( exit $ac_status )
33545 ac_cv_func_mmap_file=no
33546 fi
33547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33548 fi
33549
33550
33551   ac_ext=c
33552 ac_cpp='$CPP $CPPFLAGS'
33553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33556
33557
33558 fi
33559 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33560 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33561 if test "$ac_cv_func_mmap_file" = yes; then
33562
33563 cat >>confdefs.h <<\_ACEOF
33564 #define HAVE_MMAP_FILE
33565 _ACEOF
33566
33567    MMAP_FILE=yes
33568
33569 fi
33570
33571   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33572 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33573 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33574   echo $ECHO_N "(cached) $ECHO_C" >&6
33575 else
33576   if test "$llvm_cv_os_type" = "Interix" ; then
33577    ac_cv_need_dev_zero_for_mmap=yes
33578  else
33579    ac_cv_need_dev_zero_for_mmap=no
33580  fi
33581
33582 fi
33583 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33584 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33585 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33586
33587 cat >>confdefs.h <<\_ACEOF
33588 #define NEED_DEV_ZERO_FOR_MMAP 1
33589 _ACEOF
33590
33591 fi
33592
33593   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33594   then
33595     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33596 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33597   fi
33598   if test "$ac_cv_func_mmap_file" = "no"
33599   then
33600     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33601 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33602   fi
33603 fi
33604
33605 if test "$ENABLE_THREADS" -eq 1 ; then
33606   { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33607 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33608   cat >conftest.$ac_ext <<_ACEOF
33609 /* confdefs.h.  */
33610 _ACEOF
33611 cat confdefs.h >>conftest.$ac_ext
33612 cat >>conftest.$ac_ext <<_ACEOF
33613 /* end confdefs.h.  */
33614 int main() {
33615               volatile unsigned long val = 1;
33616               __sync_synchronize();
33617               __sync_val_compare_and_swap(&val, 1, 0);
33618               return 0;
33619             }
33620
33621 _ACEOF
33622 rm -f conftest.$ac_objext conftest$ac_exeext
33623 if { (ac_try="$ac_link"
33624 case "(($ac_try" in
33625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33626   *) ac_try_echo=$ac_try;;
33627 esac
33628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33629   (eval "$ac_link") 2>conftest.er1
33630   ac_status=$?
33631   grep -v '^ *+' conftest.er1 >conftest.err
33632   rm -f conftest.er1
33633   cat conftest.err >&5
33634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635   (exit $ac_status); } &&
33636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33637   { (case "(($ac_try" in
33638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33639   *) ac_try_echo=$ac_try;;
33640 esac
33641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33642   (eval "$ac_try") 2>&5
33643   ac_status=$?
33644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645   (exit $ac_status); }; } &&
33646          { ac_try='test -s conftest$ac_exeext'
33647   { (case "(($ac_try" in
33648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33649   *) ac_try_echo=$ac_try;;
33650 esac
33651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33652   (eval "$ac_try") 2>&5
33653   ac_status=$?
33654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); }; }; then
33656   { echo "$as_me:$LINENO: result: yes" >&5
33657 echo "${ECHO_T}yes" >&6; }
33658 else
33659   echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33661
33662         { echo "$as_me:$LINENO: result: no" >&5
33663 echo "${ECHO_T}no" >&6; }
33664         ENABLE_THREADS=0
33665
33666         { echo "$as_me:$LINENO: WARNING: Threading support disabled because atomic builtins are missing" >&5
33667 echo "$as_me: WARNING: Threading support disabled because atomic builtins are missing" >&2;}
33668 fi
33669
33670 rm -f core conftest.err conftest.$ac_objext \
33671       conftest$ac_exeext conftest.$ac_ext
33672 fi
33673
33674
33675 cat >>confdefs.h <<_ACEOF
33676 #define ENABLE_THREADS $ENABLE_THREADS
33677 _ACEOF
33678
33679
33680
33681
33682 for ac_func in __dso_handle
33683 do
33684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33688   echo $ECHO_N "(cached) $ECHO_C" >&6
33689 else
33690   cat >conftest.$ac_ext <<_ACEOF
33691 /* confdefs.h.  */
33692 _ACEOF
33693 cat confdefs.h >>conftest.$ac_ext
33694 cat >>conftest.$ac_ext <<_ACEOF
33695 /* end confdefs.h.  */
33696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33698 #define $ac_func innocuous_$ac_func
33699
33700 /* System header to define __stub macros and hopefully few prototypes,
33701     which can conflict with char $ac_func (); below.
33702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33703     <limits.h> exists even on freestanding compilers.  */
33704
33705 #ifdef __STDC__
33706 # include <limits.h>
33707 #else
33708 # include <assert.h>
33709 #endif
33710
33711 #undef $ac_func
33712
33713 /* Override any GCC internal prototype to avoid an error.
33714    Use char because int might match the return type of a GCC
33715    builtin and then its argument prototype would still apply.  */
33716 #ifdef __cplusplus
33717 extern "C"
33718 #endif
33719 char $ac_func ();
33720 /* The GNU C library defines this for functions which it implements
33721     to always fail with ENOSYS.  Some functions are actually named
33722     something starting with __ and the normal name is an alias.  */
33723 #if defined __stub_$ac_func || defined __stub___$ac_func
33724 choke me
33725 #endif
33726
33727 int
33728 main ()
33729 {
33730 return $ac_func ();
33731   ;
33732   return 0;
33733 }
33734 _ACEOF
33735 rm -f conftest.$ac_objext conftest$ac_exeext
33736 if { (ac_try="$ac_link"
33737 case "(($ac_try" in
33738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739   *) ac_try_echo=$ac_try;;
33740 esac
33741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742   (eval "$ac_link") 2>conftest.er1
33743   ac_status=$?
33744   grep -v '^ *+' conftest.er1 >conftest.err
33745   rm -f conftest.er1
33746   cat conftest.err >&5
33747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748   (exit $ac_status); } &&
33749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33750   { (case "(($ac_try" in
33751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752   *) ac_try_echo=$ac_try;;
33753 esac
33754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755   (eval "$ac_try") 2>&5
33756   ac_status=$?
33757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758   (exit $ac_status); }; } &&
33759          { ac_try='test -s conftest$ac_exeext'
33760   { (case "(($ac_try" in
33761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762   *) ac_try_echo=$ac_try;;
33763 esac
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765   (eval "$ac_try") 2>&5
33766   ac_status=$?
33767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768   (exit $ac_status); }; }; then
33769   eval "$as_ac_var=yes"
33770 else
33771   echo "$as_me: failed program was:" >&5
33772 sed 's/^/| /' conftest.$ac_ext >&5
33773
33774         eval "$as_ac_var=no"
33775 fi
33776
33777 rm -f core conftest.err conftest.$ac_objext \
33778       conftest$ac_exeext conftest.$ac_ext
33779 fi
33780 ac_res=`eval echo '${'$as_ac_var'}'`
33781                { echo "$as_me:$LINENO: result: $ac_res" >&5
33782 echo "${ECHO_T}$ac_res" >&6; }
33783 if test `eval echo '${'$as_ac_var'}'` = yes; then
33784   cat >>confdefs.h <<_ACEOF
33785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33786 _ACEOF
33787
33788 fi
33789 done
33790
33791
33792 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33793 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33794 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33795   echo $ECHO_N "(cached) $ECHO_C" >&6
33796 else
33797   llvm_cv_llvmgcc_sanity="no"
33798 if test -x "$LLVMGCC" ; then
33799   cp /dev/null conftest.c
33800   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33801       grep 'target datalayout =' > /dev/null 2>&1
33802   if test $? -eq 0 ; then
33803     llvm_cv_llvmgcc_sanity="yes"
33804   fi
33805   rm conftest.c
33806 fi
33807 fi
33808 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33809 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33810
33811 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33812   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33813 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33814   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33815   LLVMCC1=$llvmcc1path
33816
33817   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33818   LLVMCC1PLUS=$llvmcc1pluspath
33819
33820   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33821   LLVMGCCDIR=$llvmgccdir
33822
33823   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33824   LLVMGCCLIBEXEC=$llvmgcclibexec
33825
33826   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33827   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33828   LLVMGCC_VERSION=$llvmgccversion
33829
33830   LLVMGCC_MAJVERS=$llvmgccmajvers
33831
33832   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33833   LLVMGCC_LANGS=$llvmgcclangs
33834
33835   { echo "$as_me:$LINENO: result: ok" >&5
33836 echo "${ECHO_T}ok" >&6; }
33837 fi
33838
33839 SHLIBEXT=$libltdl_cv_shlibext
33840
33841
33842 # Translate the various configuration directories and other basic
33843 # information into substitutions that will end up in Makefile.config.in
33844 # that these configured values can be used by the makefiles
33845 if test "${prefix}" = "NONE" ; then
33846   prefix="/usr/local"
33847 fi
33848 eval LLVM_PREFIX="${prefix}";
33849 eval LLVM_BINDIR="${prefix}/bin";
33850 eval LLVM_LIBDIR="${prefix}/lib";
33851 eval LLVM_DATADIR="${prefix}/share/llvm";
33852 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33853 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33854 eval LLVM_INCLUDEDIR="${prefix}/include";
33855 eval LLVM_INFODIR="${prefix}/info";
33856 eval LLVM_MANDIR="${prefix}/man";
33857 LLVM_CONFIGTIME=`date`
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869 # Place the various directores into the config.h file as #defines so that we
33870 # can know about the installation paths within LLVM.
33871
33872 cat >>confdefs.h <<_ACEOF
33873 #define LLVM_PREFIX "$LLVM_PREFIX"
33874 _ACEOF
33875
33876
33877 cat >>confdefs.h <<_ACEOF
33878 #define LLVM_BINDIR "$LLVM_BINDIR"
33879 _ACEOF
33880
33881
33882 cat >>confdefs.h <<_ACEOF
33883 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33884 _ACEOF
33885
33886
33887 cat >>confdefs.h <<_ACEOF
33888 #define LLVM_DATADIR "$LLVM_DATADIR"
33889 _ACEOF
33890
33891
33892 cat >>confdefs.h <<_ACEOF
33893 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33894 _ACEOF
33895
33896
33897 cat >>confdefs.h <<_ACEOF
33898 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33899 _ACEOF
33900
33901
33902 cat >>confdefs.h <<_ACEOF
33903 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33904 _ACEOF
33905
33906
33907 cat >>confdefs.h <<_ACEOF
33908 #define LLVM_INFODIR "$LLVM_INFODIR"
33909 _ACEOF
33910
33911
33912 cat >>confdefs.h <<_ACEOF
33913 #define LLVM_MANDIR "$LLVM_MANDIR"
33914 _ACEOF
33915
33916
33917 cat >>confdefs.h <<_ACEOF
33918 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33919 _ACEOF
33920
33921
33922 cat >>confdefs.h <<_ACEOF
33923 #define LLVM_HOSTTRIPLE "$host"
33924 _ACEOF
33925
33926
33927 # Determine which bindings to build.
33928 if test "$BINDINGS_TO_BUILD" = auto ; then
33929   BINDINGS_TO_BUILD=""
33930   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33931     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33932   fi
33933 fi
33934 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33935
33936
33937 # This isn't really configurey, but it avoids having to repeat the list in
33938 # other files.
33939 ALL_BINDINGS=ocaml
33940
33941
33942 # Do any work necessary to ensure that bindings have what they need.
33943 binding_prereqs_failed=0
33944 for a_binding in $BINDINGS_TO_BUILD ; do
33945   case "$a_binding" in
33946   ocaml)
33947     if test "x$OCAMLC" = x ; then
33948       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33949 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33950       binding_prereqs_failed=1
33951     fi
33952     if test "x$OCAMLDEP" = x ; then
33953       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33954 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33955       binding_prereqs_failed=1
33956     fi
33957     if test "x$OCAMLOPT" = x ; then
33958       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33959 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33960           fi
33961     if test "x$with_ocaml_libdir" != xauto ; then
33962       OCAML_LIBDIR=$with_ocaml_libdir
33963
33964     else
33965       ocaml_stdlib="`"$OCAMLC" -where`"
33966       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33967       then
33968         # ocaml stdlib is beneath our prefix; use stdlib
33969         OCAML_LIBDIR=$ocaml_stdlib
33970
33971       else
33972         # ocaml stdlib is outside our prefix; use libdir/ocaml
33973         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33974
33975       fi
33976     fi
33977     ;;
33978   esac
33979 done
33980 if test "$binding_prereqs_failed" = 1 ; then
33981   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33982 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33983    { (exit 1); exit 1; }; }
33984 fi
33985
33986 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33987 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33988 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33989   echo $ECHO_N "(cached) $ECHO_C" >&6
33990 else
33991    ac_ext=cpp
33992 ac_cpp='$CXXCPP $CPPFLAGS'
33993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33996
33997   oldcxxflags="$CXXFLAGS"
33998   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33999   cat >conftest.$ac_ext <<_ACEOF
34000 /* confdefs.h.  */
34001 _ACEOF
34002 cat confdefs.h >>conftest.$ac_ext
34003 cat >>conftest.$ac_ext <<_ACEOF
34004 /* end confdefs.h.  */
34005
34006 int
34007 main ()
34008 {
34009
34010   ;
34011   return 0;
34012 }
34013 _ACEOF
34014 rm -f conftest.$ac_objext
34015 if { (ac_try="$ac_compile"
34016 case "(($ac_try" in
34017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018   *) ac_try_echo=$ac_try;;
34019 esac
34020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021   (eval "$ac_compile") 2>conftest.er1
34022   ac_status=$?
34023   grep -v '^ *+' conftest.er1 >conftest.err
34024   rm -f conftest.er1
34025   cat conftest.err >&5
34026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027   (exit $ac_status); } &&
34028          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34029   { (case "(($ac_try" in
34030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34031   *) ac_try_echo=$ac_try;;
34032 esac
34033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34034   (eval "$ac_try") 2>&5
34035   ac_status=$?
34036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037   (exit $ac_status); }; } &&
34038          { ac_try='test -s conftest.$ac_objext'
34039   { (case "(($ac_try" in
34040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34041   *) ac_try_echo=$ac_try;;
34042 esac
34043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34044   (eval "$ac_try") 2>&5
34045   ac_status=$?
34046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047   (exit $ac_status); }; }; then
34048   llvm_cv_cxx_visibility_inlines_hidden=yes
34049 else
34050   echo "$as_me: failed program was:" >&5
34051 sed 's/^/| /' conftest.$ac_ext >&5
34052
34053         llvm_cv_cxx_visibility_inlines_hidden=no
34054 fi
34055
34056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34057   CXXFLAGS="$oldcxxflags"
34058   ac_ext=c
34059 ac_cpp='$CPP $CPPFLAGS'
34060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34063
34064
34065 fi
34066 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34067 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34068 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34069   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34070
34071 else
34072   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34073
34074 fi
34075
34076
34077 if test "$llvm_cv_link_use_r" = "yes" ; then
34078   RPATH="-Wl,-R"
34079 else
34080   RPATH="-Wl,-rpath"
34081 fi
34082
34083
34084 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34085   RDYNAMIC="-Wl,-export-dynamic"
34086 else
34087   RDYNAMIC=""
34088 fi
34089
34090
34091
34092 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34093
34094 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34095
34096 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34097
34098
34099 ac_config_files="$ac_config_files Makefile.config"
34100
34101
34102 ac_config_files="$ac_config_files llvm.spec"
34103
34104
34105 ac_config_files="$ac_config_files docs/doxygen.cfg"
34106
34107
34108 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34109
34110
34111 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34112
34113
34114 ac_config_commands="$ac_config_commands setup"
34115
34116 ac_config_commands="$ac_config_commands Makefile"
34117
34118
34119 ac_config_commands="$ac_config_commands Makefile.common"
34120
34121
34122 ac_config_commands="$ac_config_commands examples/Makefile"
34123
34124
34125 ac_config_commands="$ac_config_commands lib/Makefile"
34126
34127
34128 ac_config_commands="$ac_config_commands runtime/Makefile"
34129
34130
34131 ac_config_commands="$ac_config_commands test/Makefile"
34132
34133
34134 ac_config_commands="$ac_config_commands test/Makefile.tests"
34135
34136
34137 ac_config_commands="$ac_config_commands unittests/Makefile"
34138
34139
34140 ac_config_commands="$ac_config_commands tools/Makefile"
34141
34142
34143 ac_config_commands="$ac_config_commands utils/Makefile"
34144
34145
34146 ac_config_commands="$ac_config_commands projects/Makefile"
34147
34148
34149 ac_config_commands="$ac_config_commands bindings/Makefile"
34150
34151
34152 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34153
34154
34155
34156 cat >confcache <<\_ACEOF
34157 # This file is a shell script that caches the results of configure
34158 # tests run on this system so they can be shared between configure
34159 # scripts and configure runs, see configure's option --config-cache.
34160 # It is not useful on other systems.  If it contains results you don't
34161 # want to keep, you may remove or edit it.
34162 #
34163 # config.status only pays attention to the cache file if you give it
34164 # the --recheck option to rerun configure.
34165 #
34166 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34168 # following values.
34169
34170 _ACEOF
34171
34172 # The following way of writing the cache mishandles newlines in values,
34173 # but we know of no workaround that is simple, portable, and efficient.
34174 # So, we kill variables containing newlines.
34175 # Ultrix sh set writes to stderr and can't be redirected directly,
34176 # and sets the high bit in the cache file unless we assign to the vars.
34177 (
34178   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34179     eval ac_val=\$$ac_var
34180     case $ac_val in #(
34181     *${as_nl}*)
34182       case $ac_var in #(
34183       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34184 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34185       esac
34186       case $ac_var in #(
34187       _ | IFS | as_nl) ;; #(
34188       *) $as_unset $ac_var ;;
34189       esac ;;
34190     esac
34191   done
34192
34193   (set) 2>&1 |
34194     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34195     *${as_nl}ac_space=\ *)
34196       # `set' does not quote correctly, so add quotes (double-quote
34197       # substitution turns \\\\ into \\, and sed turns \\ into \).
34198       sed -n \
34199         "s/'/'\\\\''/g;
34200           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34201       ;; #(
34202     *)
34203       # `set' quotes correctly as required by POSIX, so do not add quotes.
34204       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34205       ;;
34206     esac |
34207     sort
34208 ) |
34209   sed '
34210      /^ac_cv_env_/b end
34211      t clear
34212      :clear
34213      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34214      t end
34215      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34216      :end' >>confcache
34217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34218   if test -w "$cache_file"; then
34219     test "x$cache_file" != "x/dev/null" &&
34220       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34221 echo "$as_me: updating cache $cache_file" >&6;}
34222     cat confcache >$cache_file
34223   else
34224     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34225 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34226   fi
34227 fi
34228 rm -f confcache
34229
34230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34231 # Let make expand exec_prefix.
34232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34233
34234 DEFS=-DHAVE_CONFIG_H
34235
34236 ac_libobjs=
34237 ac_ltlibobjs=
34238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34239   # 1. Remove the extension, and $U if already installed.
34240   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34241   ac_i=`echo "$ac_i" | sed "$ac_script"`
34242   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34243   #    will be set to the directory where LIBOBJS objects are built.
34244   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34245   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34246 done
34247 LIBOBJS=$ac_libobjs
34248
34249 LTLIBOBJS=$ac_ltlibobjs
34250
34251
34252 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34253   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34254 Usually this means the macro was only invoked conditionally." >&5
34255 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34256 Usually this means the macro was only invoked conditionally." >&2;}
34257    { (exit 1); exit 1; }; }
34258 fi
34259 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34260   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34261 Usually this means the macro was only invoked conditionally." >&5
34262 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34263 Usually this means the macro was only invoked conditionally." >&2;}
34264    { (exit 1); exit 1; }; }
34265 fi
34266
34267 : ${CONFIG_STATUS=./config.status}
34268 ac_clean_files_save=$ac_clean_files
34269 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34270 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34271 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34272 cat >$CONFIG_STATUS <<_ACEOF
34273 #! $SHELL
34274 # Generated by $as_me.
34275 # Run this file to recreate the current configuration.
34276 # Compiler output produced by configure, useful for debugging
34277 # configure, is in config.log if it exists.
34278
34279 debug=false
34280 ac_cs_recheck=false
34281 ac_cs_silent=false
34282 SHELL=\${CONFIG_SHELL-$SHELL}
34283 _ACEOF
34284
34285 cat >>$CONFIG_STATUS <<\_ACEOF
34286 ## --------------------- ##
34287 ## M4sh Initialization.  ##
34288 ## --------------------- ##
34289
34290 # Be Bourne compatible
34291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34292   emulate sh
34293   NULLCMD=:
34294   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34295   # is contrary to our usage.  Disable this feature.
34296   alias -g '${1+"$@"}'='"$@"'
34297   setopt NO_GLOB_SUBST
34298 else
34299   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34300 fi
34301 BIN_SH=xpg4; export BIN_SH # for Tru64
34302 DUALCASE=1; export DUALCASE # for MKS sh
34303
34304
34305 # PATH needs CR
34306 # Avoid depending upon Character Ranges.
34307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34310 as_cr_digits='0123456789'
34311 as_cr_alnum=$as_cr_Letters$as_cr_digits
34312
34313 # The user is always right.
34314 if test "${PATH_SEPARATOR+set}" != set; then
34315   echo "#! /bin/sh" >conf$$.sh
34316   echo  "exit 0"   >>conf$$.sh
34317   chmod +x conf$$.sh
34318   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34319     PATH_SEPARATOR=';'
34320   else
34321     PATH_SEPARATOR=:
34322   fi
34323   rm -f conf$$.sh
34324 fi
34325
34326 # Support unset when possible.
34327 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34328   as_unset=unset
34329 else
34330   as_unset=false
34331 fi
34332
34333
34334 # IFS
34335 # We need space, tab and new line, in precisely that order.  Quoting is
34336 # there to prevent editors from complaining about space-tab.
34337 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34338 # splitting by setting IFS to empty value.)
34339 as_nl='
34340 '
34341 IFS=" ""        $as_nl"
34342
34343 # Find who we are.  Look in the path if we contain no directory separator.
34344 case $0 in
34345   *[\\/]* ) as_myself=$0 ;;
34346   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34347 for as_dir in $PATH
34348 do
34349   IFS=$as_save_IFS
34350   test -z "$as_dir" && as_dir=.
34351   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34352 done
34353 IFS=$as_save_IFS
34354
34355      ;;
34356 esac
34357 # We did not find ourselves, most probably we were run as `sh COMMAND'
34358 # in which case we are not to be found in the path.
34359 if test "x$as_myself" = x; then
34360   as_myself=$0
34361 fi
34362 if test ! -f "$as_myself"; then
34363   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34364   { (exit 1); exit 1; }
34365 fi
34366
34367 # Work around bugs in pre-3.0 UWIN ksh.
34368 for as_var in ENV MAIL MAILPATH
34369 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34370 done
34371 PS1='$ '
34372 PS2='> '
34373 PS4='+ '
34374
34375 # NLS nuisances.
34376 for as_var in \
34377   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34378   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34379   LC_TELEPHONE LC_TIME
34380 do
34381   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34382     eval $as_var=C; export $as_var
34383   else
34384     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34385   fi
34386 done
34387
34388 # Required to use basename.
34389 if expr a : '\(a\)' >/dev/null 2>&1 &&
34390    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34391   as_expr=expr
34392 else
34393   as_expr=false
34394 fi
34395
34396 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34397   as_basename=basename
34398 else
34399   as_basename=false
34400 fi
34401
34402
34403 # Name of the executable.
34404 as_me=`$as_basename -- "$0" ||
34405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34406          X"$0" : 'X\(//\)$' \| \
34407          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34408 echo X/"$0" |
34409     sed '/^.*\/\([^/][^/]*\)\/*$/{
34410             s//\1/
34411             q
34412           }
34413           /^X\/\(\/\/\)$/{
34414             s//\1/
34415             q
34416           }
34417           /^X\/\(\/\).*/{
34418             s//\1/
34419             q
34420           }
34421           s/.*/./; q'`
34422
34423 # CDPATH.
34424 $as_unset CDPATH
34425
34426
34427
34428   as_lineno_1=$LINENO
34429   as_lineno_2=$LINENO
34430   test "x$as_lineno_1" != "x$as_lineno_2" &&
34431   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34432
34433   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34434   # uniformly replaced by the line number.  The first 'sed' inserts a
34435   # line-number line after each line using $LINENO; the second 'sed'
34436   # does the real work.  The second script uses 'N' to pair each
34437   # line-number line with the line containing $LINENO, and appends
34438   # trailing '-' during substitution so that $LINENO is not a special
34439   # case at line end.
34440   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34441   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34442   # E. McMahon (1931-1989) for sed's syntax.  :-)
34443   sed -n '
34444     p
34445     /[$]LINENO/=
34446   ' <$as_myself |
34447     sed '
34448       s/[$]LINENO.*/&-/
34449       t lineno
34450       b
34451       :lineno
34452       N
34453       :loop
34454       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34455       t loop
34456       s/-\n.*//
34457     ' >$as_me.lineno &&
34458   chmod +x "$as_me.lineno" ||
34459     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34460    { (exit 1); exit 1; }; }
34461
34462   # Don't try to exec as it changes $[0], causing all sort of problems
34463   # (the dirname of $[0] is not the place where we might find the
34464   # original and so on.  Autoconf is especially sensitive to this).
34465   . "./$as_me.lineno"
34466   # Exit status is that of the last command.
34467   exit
34468 }
34469
34470
34471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34472   as_dirname=dirname
34473 else
34474   as_dirname=false
34475 fi
34476
34477 ECHO_C= ECHO_N= ECHO_T=
34478 case `echo -n x` in
34479 -n*)
34480   case `echo 'x\c'` in
34481   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34482   *)   ECHO_C='\c';;
34483   esac;;
34484 *)
34485   ECHO_N='-n';;
34486 esac
34487
34488 if expr a : '\(a\)' >/dev/null 2>&1 &&
34489    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34490   as_expr=expr
34491 else
34492   as_expr=false
34493 fi
34494
34495 rm -f conf$$ conf$$.exe conf$$.file
34496 if test -d conf$$.dir; then
34497   rm -f conf$$.dir/conf$$.file
34498 else
34499   rm -f conf$$.dir
34500   mkdir conf$$.dir
34501 fi
34502 echo >conf$$.file
34503 if ln -s conf$$.file conf$$ 2>/dev/null; then
34504   as_ln_s='ln -s'
34505   # ... but there are two gotchas:
34506   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34507   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34508   # In both cases, we have to default to `cp -p'.
34509   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34510     as_ln_s='cp -p'
34511 elif ln conf$$.file conf$$ 2>/dev/null; then
34512   as_ln_s=ln
34513 else
34514   as_ln_s='cp -p'
34515 fi
34516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34517 rmdir conf$$.dir 2>/dev/null
34518
34519 if mkdir -p . 2>/dev/null; then
34520   as_mkdir_p=:
34521 else
34522   test -d ./-p && rmdir ./-p
34523   as_mkdir_p=false
34524 fi
34525
34526 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34527 # systems may use methods other than mode bits to determine executability.
34528 cat >conf$$.file <<_ASEOF
34529 #! /bin/sh
34530 exit 0
34531 _ASEOF
34532 chmod +x conf$$.file
34533 if test -x conf$$.file >/dev/null 2>&1; then
34534   as_executable_p="test -x"
34535 else
34536   as_executable_p=:
34537 fi
34538 rm -f conf$$.file
34539
34540 # Sed expression to map a string onto a valid CPP name.
34541 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34542
34543 # Sed expression to map a string onto a valid variable name.
34544 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34545
34546
34547 exec 6>&1
34548
34549 # Save the log message, to keep $[0] and so on meaningful, and to
34550 # report actual input values of CONFIG_FILES etc. instead of their
34551 # values after options handling.
34552 ac_log="
34553 This file was extended by llvm $as_me 2.6svn, which was
34554 generated by GNU Autoconf 2.60.  Invocation command line was
34555
34556   CONFIG_FILES    = $CONFIG_FILES
34557   CONFIG_HEADERS  = $CONFIG_HEADERS
34558   CONFIG_LINKS    = $CONFIG_LINKS
34559   CONFIG_COMMANDS = $CONFIG_COMMANDS
34560   $ $0 $@
34561
34562 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34563 "
34564
34565 _ACEOF
34566
34567 cat >>$CONFIG_STATUS <<_ACEOF
34568 # Files that config.status was made for.
34569 config_files="$ac_config_files"
34570 config_headers="$ac_config_headers"
34571 config_commands="$ac_config_commands"
34572
34573 _ACEOF
34574
34575 cat >>$CONFIG_STATUS <<\_ACEOF
34576 ac_cs_usage="\
34577 \`$as_me' instantiates files from templates according to the
34578 current configuration.
34579
34580 Usage: $0 [OPTIONS] [FILE]...
34581
34582   -h, --help       print this help, then exit
34583   -V, --version    print version number, then exit
34584   -q, --quiet      do not print progress messages
34585   -d, --debug      don't remove temporary files
34586       --recheck    update $as_me by reconfiguring in the same conditions
34587   --file=FILE[:TEMPLATE]
34588                    instantiate the configuration file FILE
34589   --header=FILE[:TEMPLATE]
34590                    instantiate the configuration header FILE
34591
34592 Configuration files:
34593 $config_files
34594
34595 Configuration headers:
34596 $config_headers
34597
34598 Configuration commands:
34599 $config_commands
34600
34601 Report bugs to <bug-autoconf@gnu.org>."
34602
34603 _ACEOF
34604 cat >>$CONFIG_STATUS <<_ACEOF
34605 ac_cs_version="\\
34606 llvm config.status 2.6svn
34607 configured by $0, generated by GNU Autoconf 2.60,
34608   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34609
34610 Copyright (C) 2006 Free Software Foundation, Inc.
34611 This config.status script is free software; the Free Software Foundation
34612 gives unlimited permission to copy, distribute and modify it."
34613
34614 ac_pwd='$ac_pwd'
34615 srcdir='$srcdir'
34616 INSTALL='$INSTALL'
34617 _ACEOF
34618
34619 cat >>$CONFIG_STATUS <<\_ACEOF
34620 # If no file are specified by the user, then we need to provide default
34621 # value.  By we need to know if files were specified by the user.
34622 ac_need_defaults=:
34623 while test $# != 0
34624 do
34625   case $1 in
34626   --*=*)
34627     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34628     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34629     ac_shift=:
34630     ;;
34631   *)
34632     ac_option=$1
34633     ac_optarg=$2
34634     ac_shift=shift
34635     ;;
34636   esac
34637
34638   case $ac_option in
34639   # Handling of the options.
34640   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34641     ac_cs_recheck=: ;;
34642   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34643     echo "$ac_cs_version"; exit ;;
34644   --debug | --debu | --deb | --de | --d | -d )
34645     debug=: ;;
34646   --file | --fil | --fi | --f )
34647     $ac_shift
34648     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34649     ac_need_defaults=false;;
34650   --header | --heade | --head | --hea )
34651     $ac_shift
34652     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34653     ac_need_defaults=false;;
34654   --he | --h)
34655     # Conflict between --help and --header
34656     { echo "$as_me: error: ambiguous option: $1
34657 Try \`$0 --help' for more information." >&2
34658    { (exit 1); exit 1; }; };;
34659   --help | --hel | -h )
34660     echo "$ac_cs_usage"; exit ;;
34661   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34662   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34663     ac_cs_silent=: ;;
34664
34665   # This is an error.
34666   -*) { echo "$as_me: error: unrecognized option: $1
34667 Try \`$0 --help' for more information." >&2
34668    { (exit 1); exit 1; }; } ;;
34669
34670   *) ac_config_targets="$ac_config_targets $1"
34671      ac_need_defaults=false ;;
34672
34673   esac
34674   shift
34675 done
34676
34677 ac_configure_extra_args=
34678
34679 if $ac_cs_silent; then
34680   exec 6>/dev/null
34681   ac_configure_extra_args="$ac_configure_extra_args --silent"
34682 fi
34683
34684 _ACEOF
34685 cat >>$CONFIG_STATUS <<_ACEOF
34686 if \$ac_cs_recheck; then
34687   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34688   CONFIG_SHELL=$SHELL
34689   export CONFIG_SHELL
34690   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34691 fi
34692
34693 _ACEOF
34694 cat >>$CONFIG_STATUS <<\_ACEOF
34695 exec 5>>config.log
34696 {
34697   echo
34698   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34699 ## Running $as_me. ##
34700 _ASBOX
34701   echo "$ac_log"
34702 } >&5
34703
34704 _ACEOF
34705 cat >>$CONFIG_STATUS <<_ACEOF
34706 #
34707 # INIT-COMMANDS
34708 #
34709 llvm_src="${srcdir}"
34710
34711 _ACEOF
34712
34713 cat >>$CONFIG_STATUS <<\_ACEOF
34714
34715 # Handling of arguments.
34716 for ac_config_target in $ac_config_targets
34717 do
34718   case $ac_config_target in
34719     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34720     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34721     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34722     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34723     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34724     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34725     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34726     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34727     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34728     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34729     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34730     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34731     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34732     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34733     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34734     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34735     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34736     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34737     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34738     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34739     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34740     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34741
34742   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34743 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34744    { (exit 1); exit 1; }; };;
34745   esac
34746 done
34747
34748
34749 # If the user did not use the arguments to specify the items to instantiate,
34750 # then the envvar interface is used.  Set only those that are not.
34751 # We use the long form for the default assignment because of an extremely
34752 # bizarre bug on SunOS 4.1.3.
34753 if $ac_need_defaults; then
34754   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34755   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34756   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34757 fi
34758
34759 # Have a temporary directory for convenience.  Make it in the build tree
34760 # simply because there is no reason against having it here, and in addition,
34761 # creating and moving files from /tmp can sometimes cause problems.
34762 # Hook for its removal unless debugging.
34763 # Note that there is a small window in which the directory will not be cleaned:
34764 # after its creation but before its name has been assigned to `$tmp'.
34765 $debug ||
34766 {
34767   tmp=
34768   trap 'exit_status=$?
34769   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34770 ' 0
34771   trap '{ (exit 1); exit 1; }' 1 2 13 15
34772 }
34773 # Create a (secure) tmp directory for tmp files.
34774
34775 {
34776   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34777   test -n "$tmp" && test -d "$tmp"
34778 }  ||
34779 {
34780   tmp=./conf$$-$RANDOM
34781   (umask 077 && mkdir "$tmp")
34782 } ||
34783 {
34784    echo "$me: cannot create a temporary directory in ." >&2
34785    { (exit 1); exit 1; }
34786 }
34787
34788 #
34789 # Set up the sed scripts for CONFIG_FILES section.
34790 #
34791
34792 # No need to generate the scripts if there are no CONFIG_FILES.
34793 # This happens for instance when ./config.status config.h
34794 if test -n "$CONFIG_FILES"; then
34795
34796 _ACEOF
34797
34798
34799
34800 ac_delim='%!_!# '
34801 for ac_last_try in false false false false false :; do
34802   cat >conf$$subs.sed <<_ACEOF
34803 SHELL!$SHELL$ac_delim
34804 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34805 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34806 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34807 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34808 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34809 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34810 exec_prefix!$exec_prefix$ac_delim
34811 prefix!$prefix$ac_delim
34812 program_transform_name!$program_transform_name$ac_delim
34813 bindir!$bindir$ac_delim
34814 sbindir!$sbindir$ac_delim
34815 libexecdir!$libexecdir$ac_delim
34816 datarootdir!$datarootdir$ac_delim
34817 datadir!$datadir$ac_delim
34818 sysconfdir!$sysconfdir$ac_delim
34819 sharedstatedir!$sharedstatedir$ac_delim
34820 localstatedir!$localstatedir$ac_delim
34821 includedir!$includedir$ac_delim
34822 oldincludedir!$oldincludedir$ac_delim
34823 docdir!$docdir$ac_delim
34824 infodir!$infodir$ac_delim
34825 htmldir!$htmldir$ac_delim
34826 dvidir!$dvidir$ac_delim
34827 pdfdir!$pdfdir$ac_delim
34828 psdir!$psdir$ac_delim
34829 libdir!$libdir$ac_delim
34830 localedir!$localedir$ac_delim
34831 mandir!$mandir$ac_delim
34832 DEFS!$DEFS$ac_delim
34833 ECHO_C!$ECHO_C$ac_delim
34834 ECHO_N!$ECHO_N$ac_delim
34835 ECHO_T!$ECHO_T$ac_delim
34836 LIBS!$LIBS$ac_delim
34837 build_alias!$build_alias$ac_delim
34838 host_alias!$host_alias$ac_delim
34839 target_alias!$target_alias$ac_delim
34840 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34841 subdirs!$subdirs$ac_delim
34842 build!$build$ac_delim
34843 build_cpu!$build_cpu$ac_delim
34844 build_vendor!$build_vendor$ac_delim
34845 build_os!$build_os$ac_delim
34846 host!$host$ac_delim
34847 host_cpu!$host_cpu$ac_delim
34848 host_vendor!$host_vendor$ac_delim
34849 host_os!$host_os$ac_delim
34850 target!$target$ac_delim
34851 target_cpu!$target_cpu$ac_delim
34852 target_vendor!$target_vendor$ac_delim
34853 target_os!$target_os$ac_delim
34854 OS!$OS$ac_delim
34855 LINKALL!$LINKALL$ac_delim
34856 NOLINKALL!$NOLINKALL$ac_delim
34857 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34858 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34859 ARCH!$ARCH$ac_delim
34860 ENDIAN!$ENDIAN$ac_delim
34861 CC!$CC$ac_delim
34862 CFLAGS!$CFLAGS$ac_delim
34863 LDFLAGS!$LDFLAGS$ac_delim
34864 CPPFLAGS!$CPPFLAGS$ac_delim
34865 ac_ct_CC!$ac_ct_CC$ac_delim
34866 EXEEXT!$EXEEXT$ac_delim
34867 OBJEXT!$OBJEXT$ac_delim
34868 CPP!$CPP$ac_delim
34869 GREP!$GREP$ac_delim
34870 EGREP!$EGREP$ac_delim
34871 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34872 BUILD_CC!$BUILD_CC$ac_delim
34873 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34874 BUILD_CXX!$BUILD_CXX$ac_delim
34875 CVSBUILD!$CVSBUILD$ac_delim
34876 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34877 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
34878 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34879 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34880 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34881 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34882 JIT!$JIT$ac_delim
34883 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34884 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34885 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34886 ENABLE_PIC!$ENABLE_PIC$ac_delim
34887 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34888 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34889 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34890 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34891 CXX!$CXX$ac_delim
34892 CXXFLAGS!$CXXFLAGS$ac_delim
34893 ac_ct_CXX!$ac_ct_CXX$ac_delim
34894 NM!$NM$ac_delim
34895 ifGNUmake!$ifGNUmake$ac_delim
34896 LN_S!$LN_S$ac_delim
34897 CMP!$CMP$ac_delim
34898 CP!$CP$ac_delim
34899 DATE!$DATE$ac_delim
34900 _ACEOF
34901
34902   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34903     break
34904   elif $ac_last_try; then
34905     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34906 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34907    { (exit 1); exit 1; }; }
34908   else
34909     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34910   fi
34911 done
34912
34913 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34914 if test -n "$ac_eof"; then
34915   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34916   ac_eof=`expr $ac_eof + 1`
34917 fi
34918
34919 cat >>$CONFIG_STATUS <<_ACEOF
34920 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34922 _ACEOF
34923 sed '
34924 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34925 s/^/s,@/; s/!/@,|#_!!_#|/
34926 :n
34927 t n
34928 s/'"$ac_delim"'$/,g/; t
34929 s/$/\\/; p
34930 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34931 ' >>$CONFIG_STATUS <conf$$subs.sed
34932 rm -f conf$$subs.sed
34933 cat >>$CONFIG_STATUS <<_ACEOF
34934 CEOF$ac_eof
34935 _ACEOF
34936
34937
34938 ac_delim='%!_!# '
34939 for ac_last_try in false false false false false :; do
34940   cat >conf$$subs.sed <<_ACEOF
34941 FIND!$FIND$ac_delim
34942 MKDIR!$MKDIR$ac_delim
34943 MV!$MV$ac_delim
34944 RANLIB!$RANLIB$ac_delim
34945 RM!$RM$ac_delim
34946 SED!$SED$ac_delim
34947 TAR!$TAR$ac_delim
34948 BINPWD!$BINPWD$ac_delim
34949 GRAPHVIZ!$GRAPHVIZ$ac_delim
34950 DOT!$DOT$ac_delim
34951 GV!$GV$ac_delim
34952 DOTTY!$DOTTY$ac_delim
34953 PERL!$PERL$ac_delim
34954 HAVE_PERL!$HAVE_PERL$ac_delim
34955 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34956 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34957 INSTALL_DATA!$INSTALL_DATA$ac_delim
34958 BZIP2!$BZIP2$ac_delim
34959 DOXYGEN!$DOXYGEN$ac_delim
34960 GROFF!$GROFF$ac_delim
34961 GZIP!$GZIP$ac_delim
34962 POD2HTML!$POD2HTML$ac_delim
34963 POD2MAN!$POD2MAN$ac_delim
34964 RUNTEST!$RUNTEST$ac_delim
34965 TCLSH!$TCLSH$ac_delim
34966 ZIP!$ZIP$ac_delim
34967 OCAMLC!$OCAMLC$ac_delim
34968 OCAMLOPT!$OCAMLOPT$ac_delim
34969 OCAMLDEP!$OCAMLDEP$ac_delim
34970 OCAMLDOC!$OCAMLDOC$ac_delim
34971 GAS!$GAS$ac_delim
34972 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34973 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34974 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34975 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34976 LIBADD_DL!$LIBADD_DL$ac_delim
34977 ECHO!$ECHO$ac_delim
34978 AR!$AR$ac_delim
34979 STRIP!$STRIP$ac_delim
34980 CXXCPP!$CXXCPP$ac_delim
34981 F77!$F77$ac_delim
34982 FFLAGS!$FFLAGS$ac_delim
34983 ac_ct_F77!$ac_ct_F77$ac_delim
34984 LIBTOOL!$LIBTOOL$ac_delim
34985 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
34986 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
34987 LLVMGCC!$LLVMGCC$ac_delim
34988 LLVMGXX!$LLVMGXX$ac_delim
34989 USE_UDIS86!$USE_UDIS86$ac_delim
34990 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34991 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34992 ALLOCA!$ALLOCA$ac_delim
34993 MMAP_FILE!$MMAP_FILE$ac_delim
34994 LLVMCC1!$LLVMCC1$ac_delim
34995 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34996 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34997 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34998 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34999 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35000 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35001 SHLIBEXT!$SHLIBEXT$ac_delim
35002 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35003 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35004 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35005 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35006 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35007 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35008 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35009 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35010 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35011 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35012 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35013 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35014 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35015 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35016 RPATH!$RPATH$ac_delim
35017 RDYNAMIC!$RDYNAMIC$ac_delim
35018 LIBOBJS!$LIBOBJS$ac_delim
35019 LTLIBOBJS!$LTLIBOBJS$ac_delim
35020 _ACEOF
35021
35022   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
35023     break
35024   elif $ac_last_try; then
35025     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35026 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35027    { (exit 1); exit 1; }; }
35028   else
35029     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35030   fi
35031 done
35032
35033 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35034 if test -n "$ac_eof"; then
35035   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35036   ac_eof=`expr $ac_eof + 1`
35037 fi
35038
35039 cat >>$CONFIG_STATUS <<_ACEOF
35040 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35042 _ACEOF
35043 sed '
35044 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35045 s/^/s,@/; s/!/@,|#_!!_#|/
35046 :n
35047 t n
35048 s/'"$ac_delim"'$/,g/; t
35049 s/$/\\/; p
35050 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35051 ' >>$CONFIG_STATUS <conf$$subs.sed
35052 rm -f conf$$subs.sed
35053 cat >>$CONFIG_STATUS <<_ACEOF
35054 :end
35055 s/|#_!!_#|//g
35056 CEOF$ac_eof
35057 _ACEOF
35058
35059
35060 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35061 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35062 # trailing colons and then remove the whole line if VPATH becomes empty
35063 # (actually we leave an empty line to preserve line numbers).
35064 if test "x$srcdir" = x.; then
35065   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35066 s/:*\$(srcdir):*/:/
35067 s/:*\${srcdir}:*/:/
35068 s/:*@srcdir@:*/:/
35069 s/^\([^=]*=[     ]*\):*/\1/
35070 s/:*$//
35071 s/^[^=]*=[       ]*$//
35072 }'
35073 fi
35074
35075 cat >>$CONFIG_STATUS <<\_ACEOF
35076 fi # test -n "$CONFIG_FILES"
35077
35078
35079 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35080 do
35081   case $ac_tag in
35082   :[FHLC]) ac_mode=$ac_tag; continue;;
35083   esac
35084   case $ac_mode$ac_tag in
35085   :[FHL]*:*);;
35086   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35087 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35088    { (exit 1); exit 1; }; };;
35089   :[FH]-) ac_tag=-:-;;
35090   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35091   esac
35092   ac_save_IFS=$IFS
35093   IFS=:
35094   set x $ac_tag
35095   IFS=$ac_save_IFS
35096   shift
35097   ac_file=$1
35098   shift
35099
35100   case $ac_mode in
35101   :L) ac_source=$1;;
35102   :[FH])
35103     ac_file_inputs=
35104     for ac_f
35105     do
35106       case $ac_f in
35107       -) ac_f="$tmp/stdin";;
35108       *) # Look for the file first in the build tree, then in the source tree
35109          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35110          # because $ac_f cannot contain `:'.
35111          test -f "$ac_f" ||
35112            case $ac_f in
35113            [\\/$]*) false;;
35114            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35115            esac ||
35116            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35117 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35118    { (exit 1); exit 1; }; };;
35119       esac
35120       ac_file_inputs="$ac_file_inputs $ac_f"
35121     done
35122
35123     # Let's still pretend it is `configure' which instantiates (i.e., don't
35124     # use $as_me), people would be surprised to read:
35125     #    /* config.h.  Generated by config.status.  */
35126     configure_input="Generated from "`IFS=:
35127           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35128     if test x"$ac_file" != x-; then
35129       configure_input="$ac_file.  $configure_input"
35130       { echo "$as_me:$LINENO: creating $ac_file" >&5
35131 echo "$as_me: creating $ac_file" >&6;}
35132     fi
35133
35134     case $ac_tag in
35135     *:-:* | *:-) cat >"$tmp/stdin";;
35136     esac
35137     ;;
35138   esac
35139
35140   ac_dir=`$as_dirname -- "$ac_file" ||
35141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35142          X"$ac_file" : 'X\(//\)[^/]' \| \
35143          X"$ac_file" : 'X\(//\)$' \| \
35144          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35145 echo X"$ac_file" |
35146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35147             s//\1/
35148             q
35149           }
35150           /^X\(\/\/\)[^/].*/{
35151             s//\1/
35152             q
35153           }
35154           /^X\(\/\/\)$/{
35155             s//\1/
35156             q
35157           }
35158           /^X\(\/\).*/{
35159             s//\1/
35160             q
35161           }
35162           s/.*/./; q'`
35163   { as_dir="$ac_dir"
35164   case $as_dir in #(
35165   -*) as_dir=./$as_dir;;
35166   esac
35167   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35168     as_dirs=
35169     while :; do
35170       case $as_dir in #(
35171       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35172       *) as_qdir=$as_dir;;
35173       esac
35174       as_dirs="'$as_qdir' $as_dirs"
35175       as_dir=`$as_dirname -- "$as_dir" ||
35176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35177          X"$as_dir" : 'X\(//\)[^/]' \| \
35178          X"$as_dir" : 'X\(//\)$' \| \
35179          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35180 echo X"$as_dir" |
35181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35182             s//\1/
35183             q
35184           }
35185           /^X\(\/\/\)[^/].*/{
35186             s//\1/
35187             q
35188           }
35189           /^X\(\/\/\)$/{
35190             s//\1/
35191             q
35192           }
35193           /^X\(\/\).*/{
35194             s//\1/
35195             q
35196           }
35197           s/.*/./; q'`
35198       test -d "$as_dir" && break
35199     done
35200     test -z "$as_dirs" || eval "mkdir $as_dirs"
35201   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35202 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35203    { (exit 1); exit 1; }; }; }
35204   ac_builddir=.
35205
35206 case "$ac_dir" in
35207 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35208 *)
35209   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35210   # A ".." for each directory in $ac_dir_suffix.
35211   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35212   case $ac_top_builddir_sub in
35213   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35214   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35215   esac ;;
35216 esac
35217 ac_abs_top_builddir=$ac_pwd
35218 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35219 # for backward compatibility:
35220 ac_top_builddir=$ac_top_build_prefix
35221
35222 case $srcdir in
35223   .)  # We are building in place.
35224     ac_srcdir=.
35225     ac_top_srcdir=$ac_top_builddir_sub
35226     ac_abs_top_srcdir=$ac_pwd ;;
35227   [\\/]* | ?:[\\/]* )  # Absolute name.
35228     ac_srcdir=$srcdir$ac_dir_suffix;
35229     ac_top_srcdir=$srcdir
35230     ac_abs_top_srcdir=$srcdir ;;
35231   *) # Relative name.
35232     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35233     ac_top_srcdir=$ac_top_build_prefix$srcdir
35234     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35235 esac
35236 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35237
35238
35239   case $ac_mode in
35240   :F)
35241   #
35242   # CONFIG_FILE
35243   #
35244
35245   case $INSTALL in
35246   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35247   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35248   esac
35249 _ACEOF
35250
35251 cat >>$CONFIG_STATUS <<\_ACEOF
35252 # If the template does not know about datarootdir, expand it.
35253 # FIXME: This hack should be removed a few years after 2.60.
35254 ac_datarootdir_hack=; ac_datarootdir_seen=
35255
35256 case `sed -n '/datarootdir/ {
35257   p
35258   q
35259 }
35260 /@datadir@/p
35261 /@docdir@/p
35262 /@infodir@/p
35263 /@localedir@/p
35264 /@mandir@/p
35265 ' $ac_file_inputs` in
35266 *datarootdir*) ac_datarootdir_seen=yes;;
35267 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35268   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35269 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35270 _ACEOF
35271 cat >>$CONFIG_STATUS <<_ACEOF
35272   ac_datarootdir_hack='
35273   s&@datadir@&$datadir&g
35274   s&@docdir@&$docdir&g
35275   s&@infodir@&$infodir&g
35276   s&@localedir@&$localedir&g
35277   s&@mandir@&$mandir&g
35278     s&\\\${datarootdir}&$datarootdir&g' ;;
35279 esac
35280 _ACEOF
35281
35282 # Neutralize VPATH when `$srcdir' = `.'.
35283 # Shell code in configure.ac might set extrasub.
35284 # FIXME: do we really want to maintain this feature?
35285 cat >>$CONFIG_STATUS <<_ACEOF
35286   sed "$ac_vpsub
35287 $extrasub
35288 _ACEOF
35289 cat >>$CONFIG_STATUS <<\_ACEOF
35290 :t
35291 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35292 s&@configure_input@&$configure_input&;t t
35293 s&@top_builddir@&$ac_top_builddir_sub&;t t
35294 s&@srcdir@&$ac_srcdir&;t t
35295 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35296 s&@top_srcdir@&$ac_top_srcdir&;t t
35297 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35298 s&@builddir@&$ac_builddir&;t t
35299 s&@abs_builddir@&$ac_abs_builddir&;t t
35300 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35301 s&@INSTALL@&$ac_INSTALL&;t t
35302 $ac_datarootdir_hack
35303 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35304
35305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35306   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35307   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35308   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35309 which seems to be undefined.  Please make sure it is defined." >&5
35310 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35311 which seems to be undefined.  Please make sure it is defined." >&2;}
35312
35313   rm -f "$tmp/stdin"
35314   case $ac_file in
35315   -) cat "$tmp/out"; rm -f "$tmp/out";;
35316   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35317   esac
35318  ;;
35319   :H)
35320   #
35321   # CONFIG_HEADER
35322   #
35323 _ACEOF
35324
35325 # Transform confdefs.h into a sed script `conftest.defines', that
35326 # substitutes the proper values into config.h.in to produce config.h.
35327 rm -f conftest.defines conftest.tail
35328 # First, append a space to every undef/define line, to ease matching.
35329 echo 's/$/ /' >conftest.defines
35330 # Then, protect against being on the right side of a sed subst, or in
35331 # an unquoted here document, in config.status.  If some macros were
35332 # called several times there might be several #defines for the same
35333 # symbol, which is useless.  But do not sort them, since the last
35334 # AC_DEFINE must be honored.
35335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35336 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35337 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35338 # PARAMS is the parameter list in the macro definition--in most cases, it's
35339 # just an empty string.
35340 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35341 ac_dB='\\)[      (].*,\\1define\\2'
35342 ac_dC=' '
35343 ac_dD=' ,'
35344
35345 uniq confdefs.h |
35346   sed -n '
35347         t rset
35348         :rset
35349         s/^[     ]*#[    ]*define[       ][      ]*//
35350         t ok
35351         d
35352         :ok
35353         s/[\\&,]/\\&/g
35354         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35355         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35356   ' >>conftest.defines
35357
35358 # Remove the space that was appended to ease matching.
35359 # Then replace #undef with comments.  This is necessary, for
35360 # example, in the case of _POSIX_SOURCE, which is predefined and required
35361 # on some systems where configure will not decide to define it.
35362 # (The regexp can be short, since the line contains either #define or #undef.)
35363 echo 's/ $//
35364 s,^[     #]*u.*,/* & */,' >>conftest.defines
35365
35366 # Break up conftest.defines:
35367 ac_max_sed_lines=50
35368
35369 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35370 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35371 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35372 # et cetera.
35373 ac_in='$ac_file_inputs'
35374 ac_out='"$tmp/out1"'
35375 ac_nxt='"$tmp/out2"'
35376
35377 while :
35378 do
35379   # Write a here document:
35380     cat >>$CONFIG_STATUS <<_ACEOF
35381     # First, check the format of the line:
35382     cat >"\$tmp/defines.sed" <<\\CEOF
35383 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35384 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35385 b
35386 :def
35387 _ACEOF
35388   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35389   echo 'CEOF
35390     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35391   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35392   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35393   grep . conftest.tail >/dev/null || break
35394   rm -f conftest.defines
35395   mv conftest.tail conftest.defines
35396 done
35397 rm -f conftest.defines conftest.tail
35398
35399 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35400 cat >>$CONFIG_STATUS <<\_ACEOF
35401   if test x"$ac_file" != x-; then
35402     echo "/* $configure_input  */" >"$tmp/config.h"
35403     cat "$ac_result" >>"$tmp/config.h"
35404     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35405       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35406 echo "$as_me: $ac_file is unchanged" >&6;}
35407     else
35408       rm -f $ac_file
35409       mv "$tmp/config.h" $ac_file
35410     fi
35411   else
35412     echo "/* $configure_input  */"
35413     cat "$ac_result"
35414   fi
35415   rm -f "$tmp/out12"
35416  ;;
35417
35418   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35419 echo "$as_me: executing $ac_file commands" >&6;}
35420  ;;
35421   esac
35422
35423
35424   case $ac_file$ac_mode in
35425     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35426    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35427     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35428    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35429     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35430    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35431     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35432    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35433     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35434    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35435     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35436    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35437     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35438    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35439     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35440    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35441     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35442    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35443     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35444    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35445     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35446    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35447     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35448    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35449     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35450    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35451
35452   esac
35453 done # for ac_tag
35454
35455
35456 { (exit 0); exit 0; }
35457 _ACEOF
35458 chmod +x $CONFIG_STATUS
35459 ac_clean_files=$ac_clean_files_save
35460
35461
35462 # configure is writing to config.log, and then calls config.status.
35463 # config.status does its own redirection, appending to config.log.
35464 # Unfortunately, on DOS this fails, as config.log is still kept open
35465 # by configure, so config.status won't be able to write to it; its
35466 # output is simply discarded.  So we exec the FD to /dev/null,
35467 # effectively closing config.log, so it can be properly (re)opened and
35468 # appended to by config.status.  When coming back to configure, we
35469 # need to make the FD available again.
35470 if test "$no_create" != yes; then
35471   ac_cs_success=:
35472   ac_config_status_args=
35473   test "$silent" = yes &&
35474     ac_config_status_args="$ac_config_status_args --quiet"
35475   exec 5>/dev/null
35476   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35477   exec 5>>config.log
35478   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35479   # would make configure fail if this is the last instruction.
35480   $ac_cs_success || { (exit 1); exit 1; }
35481 fi
35482
35483 #
35484 # CONFIG_SUBDIRS section.
35485 #
35486 if test "$no_recursion" != yes; then
35487
35488   # Remove --cache-file and --srcdir arguments so they do not pile up.
35489   ac_sub_configure_args=
35490   ac_prev=
35491   eval "set x $ac_configure_args"
35492   shift
35493   for ac_arg
35494   do
35495     if test -n "$ac_prev"; then
35496       ac_prev=
35497       continue
35498     fi
35499     case $ac_arg in
35500     -cache-file | --cache-file | --cache-fil | --cache-fi \
35501     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35502       ac_prev=cache_file ;;
35503     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35504     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35505     | --c=*)
35506       ;;
35507     --config-cache | -C)
35508       ;;
35509     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35510       ac_prev=srcdir ;;
35511     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35512       ;;
35513     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35514       ac_prev=prefix ;;
35515     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35516       ;;
35517     *)
35518       case $ac_arg in
35519       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35520       esac
35521       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35522     esac
35523   done
35524
35525   # Always prepend --prefix to ensure using the same prefix
35526   # in subdir configurations.
35527   ac_arg="--prefix=$prefix"
35528   case $ac_arg in
35529   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35530   esac
35531   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35532
35533   ac_popdir=`pwd`
35534   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35535
35536     # Do not complain, so a configure script can configure whichever
35537     # parts of a large source tree are present.
35538     test -d "$srcdir/$ac_dir" || continue
35539
35540     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35541     echo "$as_me:$LINENO: $ac_msg" >&5
35542     echo "$ac_msg" >&6
35543     { as_dir="$ac_dir"
35544   case $as_dir in #(
35545   -*) as_dir=./$as_dir;;
35546   esac
35547   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35548     as_dirs=
35549     while :; do
35550       case $as_dir in #(
35551       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35552       *) as_qdir=$as_dir;;
35553       esac
35554       as_dirs="'$as_qdir' $as_dirs"
35555       as_dir=`$as_dirname -- "$as_dir" ||
35556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35557          X"$as_dir" : 'X\(//\)[^/]' \| \
35558          X"$as_dir" : 'X\(//\)$' \| \
35559          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35560 echo X"$as_dir" |
35561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35562             s//\1/
35563             q
35564           }
35565           /^X\(\/\/\)[^/].*/{
35566             s//\1/
35567             q
35568           }
35569           /^X\(\/\/\)$/{
35570             s//\1/
35571             q
35572           }
35573           /^X\(\/\).*/{
35574             s//\1/
35575             q
35576           }
35577           s/.*/./; q'`
35578       test -d "$as_dir" && break
35579     done
35580     test -z "$as_dirs" || eval "mkdir $as_dirs"
35581   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35582 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35583    { (exit 1); exit 1; }; }; }
35584     ac_builddir=.
35585
35586 case "$ac_dir" in
35587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35588 *)
35589   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35590   # A ".." for each directory in $ac_dir_suffix.
35591   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35592   case $ac_top_builddir_sub in
35593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35595   esac ;;
35596 esac
35597 ac_abs_top_builddir=$ac_pwd
35598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35599 # for backward compatibility:
35600 ac_top_builddir=$ac_top_build_prefix
35601
35602 case $srcdir in
35603   .)  # We are building in place.
35604     ac_srcdir=.
35605     ac_top_srcdir=$ac_top_builddir_sub
35606     ac_abs_top_srcdir=$ac_pwd ;;
35607   [\\/]* | ?:[\\/]* )  # Absolute name.
35608     ac_srcdir=$srcdir$ac_dir_suffix;
35609     ac_top_srcdir=$srcdir
35610     ac_abs_top_srcdir=$srcdir ;;
35611   *) # Relative name.
35612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35613     ac_top_srcdir=$ac_top_build_prefix$srcdir
35614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35615 esac
35616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35617
35618
35619     cd "$ac_dir"
35620
35621     # Check for guested configure; otherwise get Cygnus style configure.
35622     if test -f "$ac_srcdir/configure.gnu"; then
35623       ac_sub_configure=$ac_srcdir/configure.gnu
35624     elif test -f "$ac_srcdir/configure"; then
35625       ac_sub_configure=$ac_srcdir/configure
35626     elif test -f "$ac_srcdir/configure.in"; then
35627       # This should be Cygnus configure.
35628       ac_sub_configure=$ac_aux_dir/configure
35629     else
35630       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35631 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35632       ac_sub_configure=
35633     fi
35634
35635     # The recursion is here.
35636     if test -n "$ac_sub_configure"; then
35637       # Make the cache file name correct relative to the subdirectory.
35638       case $cache_file in
35639       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35640       *) # Relative name.
35641         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35642       esac
35643
35644       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35645 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35646       # The eval makes quoting arguments work.
35647       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35648            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35649         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35650 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35651    { (exit 1); exit 1; }; }
35652     fi
35653
35654     cd "$ac_popdir"
35655   done
35656 fi
35657