Fix typo.
[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 cat >>confdefs.h <<_ACEOF
4874 #define ENABLE_THREADS $ENABLE_THREADS
4875 _ACEOF
4876
4877
4878 # Check whether --enable-pic was given.
4879 if test "${enable_pic+set}" = set; then
4880   enableval=$enable_pic;
4881 else
4882   enableval=default
4883 fi
4884
4885 case "$enableval" in
4886   yes) ENABLE_PIC=1
4887  ;;
4888   no)  ENABLE_PIC=0
4889  ;;
4890   default) ENABLE_PIC=1
4891  ;;
4892   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4894    { (exit 1); exit 1; }; } ;;
4895 esac
4896
4897 cat >>confdefs.h <<_ACEOF
4898 #define ENABLE_PIC $ENABLE_PIC
4899 _ACEOF
4900
4901
4902 TARGETS_TO_BUILD=""
4903 # Check whether --enable-targets was given.
4904 if test "${enable_targets+set}" = set; then
4905   enableval=$enable_targets;
4906 else
4907   enableval=all
4908 fi
4909
4910 case "$enableval" in
4911   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4912   host-only)
4913     case "$llvm_cv_target_arch" in
4914       x86)     TARGETS_TO_BUILD="X86" ;;
4915       x86_64)  TARGETS_TO_BUILD="X86" ;;
4916       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4917       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4918       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4919       IA64)    TARGETS_TO_BUILD="IA64" ;;
4920       ARM)     TARGETS_TO_BUILD="ARM" ;;
4921       Mips)    TARGETS_TO_BUILD="Mips" ;;
4922       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4923       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4924       XCore)   TARGETS_TO_BUILD="XCore" ;;
4925       MSP430)  TARGETS_TO_BUILD="MSP430" ;;
4926       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4927 echo "$as_me: error: Can not set target to build" >&2;}
4928    { (exit 1); exit 1; }; } ;;
4929     esac
4930     ;;
4931   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4932       case "$a_target" in
4933         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4934         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4935         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4936         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4937         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4938         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4939         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4940         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4941         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4942         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4943         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4944         msp430)  TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4945         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4946         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4947         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4948         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4949 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4950    { (exit 1); exit 1; }; } ;;
4951       esac
4952   done
4953   ;;
4954 esac
4955 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4956
4957
4958 # Check whether --enable-cbe-printf-a was given.
4959 if test "${enable_cbe_printf_a+set}" = set; then
4960   enableval=$enable_cbe_printf_a;
4961 else
4962   enableval=default
4963 fi
4964
4965 case "$enableval" in
4966   yes) ENABLE_CBE_PRINTF_A=1
4967  ;;
4968   no)  ENABLE_CBE_PRINTF_A=0
4969  ;;
4970   default)  ENABLE_CBE_PRINTF_A=1
4971  ;;
4972   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4973 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4974    { (exit 1); exit 1; }; } ;;
4975 esac
4976
4977 cat >>confdefs.h <<_ACEOF
4978 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4979 _ACEOF
4980
4981
4982
4983 # Check whether --with-llvmgccdir was given.
4984 if test "${with_llvmgccdir+set}" = set; then
4985   withval=$with_llvmgccdir;
4986 else
4987   withval=default
4988 fi
4989
4990 case "$withval" in
4991   default) WITH_LLVMGCCDIR=default ;;
4992   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4993   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4994 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4995    { (exit 1); exit 1; }; } ;;
4996 esac
4997
4998
4999 # Check whether --with-llvmgcc was given.
5000 if test "${with_llvmgcc+set}" = set; then
5001   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5002       WITH_LLVMGCCDIR=""
5003 fi
5004
5005
5006
5007 # Check whether --with-llvmgxx was given.
5008 if test "${with_llvmgxx+set}" = set; then
5009   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5010     WITH_LLVMGCCDIR=""
5011 fi
5012
5013
5014 if test -n "$LLVMGCC"; then
5015    LLVMGCCCOMMAND="$LLVMGCC"
5016 fi
5017
5018 if test -n "$LLVMGXX"; then
5019    LLVMGXXCOMMAND="$LLVMGXX"
5020 fi
5021
5022 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5023    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5024 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5025    { (exit 1); exit 1; }; };
5026 fi
5027
5028 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5029    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5030 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5031    { (exit 1); exit 1; }; };
5032 fi
5033
5034
5035 # Check whether --with-extra-options was given.
5036 if test "${with_extra_options+set}" = set; then
5037   withval=$with_extra_options;
5038 else
5039   withval=default
5040 fi
5041
5042 case "$withval" in
5043   default) EXTRA_OPTIONS= ;;
5044   *) EXTRA_OPTIONS=$withval ;;
5045 esac
5046 EXTRA_OPTIONS=$EXTRA_OPTIONS
5047
5048
5049 # Check whether --enable-bindings was given.
5050 if test "${enable_bindings+set}" = set; then
5051   enableval=$enable_bindings;
5052 else
5053   enableval=default
5054 fi
5055
5056 BINDINGS_TO_BUILD=""
5057 case "$enableval" in
5058   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5059   all ) BINDINGS_TO_BUILD="ocaml" ;;
5060   none | no) BINDINGS_TO_BUILD="" ;;
5061   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5062       case "$a_binding" in
5063         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5064         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5065 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5066    { (exit 1); exit 1; }; } ;;
5067       esac
5068   done
5069   ;;
5070 esac
5071
5072
5073 # Check whether --with-ocaml-libdir was given.
5074 if test "${with_ocaml_libdir+set}" = set; then
5075   withval=$with_ocaml_libdir;
5076 else
5077   withval=auto
5078 fi
5079
5080 case "$withval" in
5081   auto) with_ocaml_libdir="$withval" ;;
5082   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5083   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5084 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5085    { (exit 1); exit 1; }; } ;;
5086 esac
5087
5088
5089 # Check whether --with-binutils-include was given.
5090 if test "${with_binutils_include+set}" = set; then
5091   withval=$with_binutils_include;
5092 else
5093   withval=default
5094 fi
5095
5096 case "$withval" in
5097   default) WITH_BINUTILS_INCDIR=default ;;
5098   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5099   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5100 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5101    { (exit 1); exit 1; }; } ;;
5102 esac
5103 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5104   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5105
5106   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5107      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5108      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5109 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5110    { (exit 1); exit 1; }; };
5111   fi
5112 fi
5113
5114
5115 ac_ext=c
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5121 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5122 # On Suns, sometimes $CPP names a directory.
5123 if test -n "$CPP" && test -d "$CPP"; then
5124   CPP=
5125 fi
5126 if test -z "$CPP"; then
5127   if test "${ac_cv_prog_CPP+set}" = set; then
5128   echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130       # Double quotes because CPP needs to be expanded
5131     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5132     do
5133       ac_preproc_ok=false
5134 for ac_c_preproc_warn_flag in '' yes
5135 do
5136   # Use a header file that comes with gcc, so configuring glibc
5137   # with a fresh cross-compiler works.
5138   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5139   # <limits.h> exists even on freestanding compilers.
5140   # On the NeXT, cc -E runs the code through the compiler's parser,
5141   # not just through cpp. "Syntax error" is here to catch this case.
5142   cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h.  */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h.  */
5148 #ifdef __STDC__
5149 # include <limits.h>
5150 #else
5151 # include <assert.h>
5152 #endif
5153                      Syntax error
5154 _ACEOF
5155 if { (ac_try="$ac_cpp conftest.$ac_ext"
5156 case "(($ac_try" in
5157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158   *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162   ac_status=$?
5163   grep -v '^ *+' conftest.er1 >conftest.err
5164   rm -f conftest.er1
5165   cat conftest.err >&5
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } >/dev/null; then
5168   if test -s conftest.err; then
5169     ac_cpp_err=$ac_c_preproc_warn_flag
5170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5171   else
5172     ac_cpp_err=
5173   fi
5174 else
5175   ac_cpp_err=yes
5176 fi
5177 if test -z "$ac_cpp_err"; then
5178   :
5179 else
5180   echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5182
5183   # Broken: fails on valid input.
5184 continue
5185 fi
5186
5187 rm -f conftest.err conftest.$ac_ext
5188
5189   # OK, works on sane cases.  Now check whether nonexistent headers
5190   # can be detected and how.
5191   cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h.  */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h.  */
5197 #include <ac_nonexistent.h>
5198 _ACEOF
5199 if { (ac_try="$ac_cpp conftest.$ac_ext"
5200 case "(($ac_try" in
5201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202   *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5206   ac_status=$?
5207   grep -v '^ *+' conftest.er1 >conftest.err
5208   rm -f conftest.er1
5209   cat conftest.err >&5
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } >/dev/null; then
5212   if test -s conftest.err; then
5213     ac_cpp_err=$ac_c_preproc_warn_flag
5214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5215   else
5216     ac_cpp_err=
5217   fi
5218 else
5219   ac_cpp_err=yes
5220 fi
5221 if test -z "$ac_cpp_err"; then
5222   # Broken: success on invalid input.
5223 continue
5224 else
5225   echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228   # Passes both tests.
5229 ac_preproc_ok=:
5230 break
5231 fi
5232
5233 rm -f conftest.err conftest.$ac_ext
5234
5235 done
5236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5237 rm -f conftest.err conftest.$ac_ext
5238 if $ac_preproc_ok; then
5239   break
5240 fi
5241
5242     done
5243     ac_cv_prog_CPP=$CPP
5244
5245 fi
5246   CPP=$ac_cv_prog_CPP
5247 else
5248   ac_cv_prog_CPP=$CPP
5249 fi
5250 { echo "$as_me:$LINENO: result: $CPP" >&5
5251 echo "${ECHO_T}$CPP" >&6; }
5252 ac_preproc_ok=false
5253 for ac_c_preproc_warn_flag in '' yes
5254 do
5255   # Use a header file that comes with gcc, so configuring glibc
5256   # with a fresh cross-compiler works.
5257   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5258   # <limits.h> exists even on freestanding compilers.
5259   # On the NeXT, cc -E runs the code through the compiler's parser,
5260   # not just through cpp. "Syntax error" is here to catch this case.
5261   cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h.  */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h.  */
5267 #ifdef __STDC__
5268 # include <limits.h>
5269 #else
5270 # include <assert.h>
5271 #endif
5272                      Syntax error
5273 _ACEOF
5274 if { (ac_try="$ac_cpp conftest.$ac_ext"
5275 case "(($ac_try" in
5276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277   *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5281   ac_status=$?
5282   grep -v '^ *+' conftest.er1 >conftest.err
5283   rm -f conftest.er1
5284   cat conftest.err >&5
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } >/dev/null; then
5287   if test -s conftest.err; then
5288     ac_cpp_err=$ac_c_preproc_warn_flag
5289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5290   else
5291     ac_cpp_err=
5292   fi
5293 else
5294   ac_cpp_err=yes
5295 fi
5296 if test -z "$ac_cpp_err"; then
5297   :
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302   # Broken: fails on valid input.
5303 continue
5304 fi
5305
5306 rm -f conftest.err conftest.$ac_ext
5307
5308   # OK, works on sane cases.  Now check whether nonexistent headers
5309   # can be detected and how.
5310   cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h.  */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h.  */
5316 #include <ac_nonexistent.h>
5317 _ACEOF
5318 if { (ac_try="$ac_cpp conftest.$ac_ext"
5319 case "(($ac_try" in
5320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321   *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5325   ac_status=$?
5326   grep -v '^ *+' conftest.er1 >conftest.err
5327   rm -f conftest.er1
5328   cat conftest.err >&5
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } >/dev/null; then
5331   if test -s conftest.err; then
5332     ac_cpp_err=$ac_c_preproc_warn_flag
5333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5334   else
5335     ac_cpp_err=
5336   fi
5337 else
5338   ac_cpp_err=yes
5339 fi
5340 if test -z "$ac_cpp_err"; then
5341   # Broken: success on invalid input.
5342 continue
5343 else
5344   echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5346
5347   # Passes both tests.
5348 ac_preproc_ok=:
5349 break
5350 fi
5351
5352 rm -f conftest.err conftest.$ac_ext
5353
5354 done
5355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5356 rm -f conftest.err conftest.$ac_ext
5357 if $ac_preproc_ok; then
5358   :
5359 else
5360   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5361 See \`config.log' for more details." >&5
5362 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5363 See \`config.log' for more details." >&2;}
5364    { (exit 1); exit 1; }; }
5365 fi
5366
5367 ac_ext=c
5368 ac_cpp='$CPP $CPPFLAGS'
5369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373 ac_ext=c
5374 ac_cpp='$CPP $CPPFLAGS'
5375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5378 if test -n "$ac_tool_prefix"; then
5379   for ac_prog in gcc
5380   do
5381     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5385 if test "${ac_cv_prog_CC+set}" = set; then
5386   echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388   if test -n "$CC"; then
5389   ac_cv_prog_CC="$CC" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396   for ac_exec_ext in '' $ac_executable_extensions; do
5397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5398     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400     break 2
5401   fi
5402 done
5403 done
5404 IFS=$as_save_IFS
5405
5406 fi
5407 fi
5408 CC=$ac_cv_prog_CC
5409 if test -n "$CC"; then
5410   { echo "$as_me:$LINENO: result: $CC" >&5
5411 echo "${ECHO_T}$CC" >&6; }
5412 else
5413   { echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6; }
5415 fi
5416
5417
5418     test -n "$CC" && break
5419   done
5420 fi
5421 if test -z "$CC"; then
5422   ac_ct_CC=$CC
5423   for ac_prog in gcc
5424 do
5425   # Extract the first word of "$ac_prog", so it can be a program name with args.
5426 set dummy $ac_prog; ac_word=$2
5427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   if test -n "$ac_ct_CC"; then
5433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438   IFS=$as_save_IFS
5439   test -z "$as_dir" && as_dir=.
5440   for ac_exec_ext in '' $ac_executable_extensions; do
5441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5442     ac_cv_prog_ac_ct_CC="$ac_prog"
5443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444     break 2
5445   fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 fi
5451 fi
5452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5453 if test -n "$ac_ct_CC"; then
5454   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5455 echo "${ECHO_T}$ac_ct_CC" >&6; }
5456 else
5457   { echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6; }
5459 fi
5460
5461
5462   test -n "$ac_ct_CC" && break
5463 done
5464
5465   if test "x$ac_ct_CC" = x; then
5466     CC=""
5467   else
5468     case $cross_compiling:$ac_tool_warned in
5469 yes:)
5470 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5471 whose name does not start with the host triplet.  If you think this
5472 configuration is useful to you, please write to autoconf@gnu.org." >&5
5473 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5474 whose name does not start with the host triplet.  If you think this
5475 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5476 ac_tool_warned=yes ;;
5477 esac
5478     CC=$ac_ct_CC
5479   fi
5480 fi
5481
5482
5483 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5484 See \`config.log' for more details." >&5
5485 echo "$as_me: error: no acceptable C compiler found in \$PATH
5486 See \`config.log' for more details." >&2;}
5487    { (exit 1); exit 1; }; }
5488
5489 # Provide some information about the compiler.
5490 echo "$as_me:$LINENO: checking for C compiler version" >&5
5491 ac_compiler=`set X $ac_compile; echo $2`
5492 { (ac_try="$ac_compiler --version >&5"
5493 case "(($ac_try" in
5494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495   *) ac_try_echo=$ac_try;;
5496 esac
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498   (eval "$ac_compiler --version >&5") 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); }
5502 { (ac_try="$ac_compiler -v >&5"
5503 case "(($ac_try" in
5504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505   *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508   (eval "$ac_compiler -v >&5") 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }
5512 { (ac_try="$ac_compiler -V >&5"
5513 case "(($ac_try" in
5514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515   *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518   (eval "$ac_compiler -V >&5") 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); }
5522
5523 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5524 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5525 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5526   echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528   cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534
5535 int
5536 main ()
5537 {
5538 #ifndef __GNUC__
5539        choke me
5540 #endif
5541
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546 rm -f conftest.$ac_objext
5547 if { (ac_try="$ac_compile"
5548 case "(($ac_try" in
5549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550   *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553   (eval "$ac_compile") 2>conftest.er1
5554   ac_status=$?
5555   grep -v '^ *+' conftest.er1 >conftest.err
5556   rm -f conftest.er1
5557   cat conftest.err >&5
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); } &&
5560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5561   { (case "(($ac_try" in
5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563   *) ac_try_echo=$ac_try;;
5564 esac
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566   (eval "$ac_try") 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); }; } &&
5570          { ac_try='test -s conftest.$ac_objext'
5571   { (case "(($ac_try" in
5572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573   *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576   (eval "$ac_try") 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); }; }; then
5580   ac_compiler_gnu=yes
5581 else
5582   echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585         ac_compiler_gnu=no
5586 fi
5587
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5590
5591 fi
5592 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5593 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5594 GCC=`test $ac_compiler_gnu = yes && echo yes`
5595 ac_test_CFLAGS=${CFLAGS+set}
5596 ac_save_CFLAGS=$CFLAGS
5597 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5598 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5599 if test "${ac_cv_prog_cc_g+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   ac_save_c_werror_flag=$ac_c_werror_flag
5603    ac_c_werror_flag=yes
5604    ac_cv_prog_cc_g=no
5605    CFLAGS="-g"
5606    cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h.  */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h.  */
5612
5613 int
5614 main ()
5615 {
5616
5617   ;
5618   return 0;
5619 }
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5623 case "(($ac_try" in
5624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625   *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628   (eval "$ac_compile") 2>conftest.er1
5629   ac_status=$?
5630   grep -v '^ *+' conftest.er1 >conftest.err
5631   rm -f conftest.er1
5632   cat conftest.err >&5
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } &&
5635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636   { (case "(($ac_try" in
5637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638   *) ac_try_echo=$ac_try;;
5639 esac
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641   (eval "$ac_try") 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); }; } &&
5645          { ac_try='test -s conftest.$ac_objext'
5646   { (case "(($ac_try" in
5647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648   *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651   (eval "$ac_try") 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; }; then
5655   ac_cv_prog_cc_g=yes
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660         CFLAGS=""
5661       cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h.  */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h.  */
5667
5668 int
5669 main ()
5670 {
5671
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680   *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683   (eval "$ac_compile") 2>conftest.er1
5684   ac_status=$?
5685   grep -v '^ *+' conftest.er1 >conftest.err
5686   rm -f conftest.er1
5687   cat conftest.err >&5
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); } &&
5690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5691   { (case "(($ac_try" in
5692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693   *) ac_try_echo=$ac_try;;
5694 esac
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696   (eval "$ac_try") 2>&5
5697   ac_status=$?
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); }; } &&
5700          { ac_try='test -s conftest.$ac_objext'
5701   { (case "(($ac_try" in
5702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703   *) ac_try_echo=$ac_try;;
5704 esac
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706   (eval "$ac_try") 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }; }; then
5710   :
5711 else
5712   echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715         ac_c_werror_flag=$ac_save_c_werror_flag
5716          CFLAGS="-g"
5717          cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723
5724 int
5725 main ()
5726 {
5727
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 rm -f conftest.$ac_objext
5733 if { (ac_try="$ac_compile"
5734 case "(($ac_try" in
5735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736   *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739   (eval "$ac_compile") 2>conftest.er1
5740   ac_status=$?
5741   grep -v '^ *+' conftest.er1 >conftest.err
5742   rm -f conftest.er1
5743   cat conftest.err >&5
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } &&
5746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5747   { (case "(($ac_try" in
5748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749   *) ac_try_echo=$ac_try;;
5750 esac
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752   (eval "$ac_try") 2>&5
5753   ac_status=$?
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); }; } &&
5756          { ac_try='test -s conftest.$ac_objext'
5757   { (case "(($ac_try" in
5758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759   *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762   (eval "$ac_try") 2>&5
5763   ac_status=$?
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); }; }; then
5766   ac_cv_prog_cc_g=yes
5767 else
5768   echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771
5772 fi
5773
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 fi
5776
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 fi
5779
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781    ac_c_werror_flag=$ac_save_c_werror_flag
5782 fi
5783 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5784 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5785 if test "$ac_test_CFLAGS" = set; then
5786   CFLAGS=$ac_save_CFLAGS
5787 elif test $ac_cv_prog_cc_g = yes; then
5788   if test "$GCC" = yes; then
5789     CFLAGS="-g -O2"
5790   else
5791     CFLAGS="-g"
5792   fi
5793 else
5794   if test "$GCC" = yes; then
5795     CFLAGS="-O2"
5796   else
5797     CFLAGS=
5798   fi
5799 fi
5800 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5801 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5802 if test "${ac_cv_prog_cc_c89+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   ac_cv_prog_cc_c89=no
5806 ac_save_CC=$CC
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813 #include <stdarg.h>
5814 #include <stdio.h>
5815 #include <sys/types.h>
5816 #include <sys/stat.h>
5817 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5818 struct buf { int x; };
5819 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5820 static char *e (p, i)
5821      char **p;
5822      int i;
5823 {
5824   return p[i];
5825 }
5826 static char *f (char * (*g) (char **, int), char **p, ...)
5827 {
5828   char *s;
5829   va_list v;
5830   va_start (v,p);
5831   s = g (p, va_arg (v,int));
5832   va_end (v);
5833   return s;
5834 }
5835
5836 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5837    function prototypes and stuff, but not '\xHH' hex character constants.
5838    These don't provoke an error unfortunately, instead are silently treated
5839    as 'x'.  The following induces an error, until -std is added to get
5840    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5841    array size at least.  It's necessary to write '\x00'==0 to get something
5842    that's true only with -std.  */
5843 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5844
5845 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5846    inside strings and character constants.  */
5847 #define FOO(x) 'x'
5848 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5849
5850 int test (int i, double x);
5851 struct s1 {int (*f) (int a);};
5852 struct s2 {int (*f) (double a);};
5853 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5854 int argc;
5855 char **argv;
5856 int
5857 main ()
5858 {
5859 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5865         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5866 do
5867   CC="$ac_save_CC $ac_arg"
5868   rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5870 case "(($ac_try" in
5871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872   *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875   (eval "$ac_compile") 2>conftest.er1
5876   ac_status=$?
5877   grep -v '^ *+' conftest.er1 >conftest.err
5878   rm -f conftest.er1
5879   cat conftest.err >&5
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); } &&
5882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5883   { (case "(($ac_try" in
5884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885   *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888   (eval "$ac_try") 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); }; } &&
5892          { ac_try='test -s conftest.$ac_objext'
5893   { (case "(($ac_try" in
5894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895   *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898   (eval "$ac_try") 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); }; }; then
5902   ac_cv_prog_cc_c89=$ac_arg
5903 else
5904   echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907
5908 fi
5909
5910 rm -f core conftest.err conftest.$ac_objext
5911   test "x$ac_cv_prog_cc_c89" != "xno" && break
5912 done
5913 rm -f conftest.$ac_ext
5914 CC=$ac_save_CC
5915
5916 fi
5917 # AC_CACHE_VAL
5918 case "x$ac_cv_prog_cc_c89" in
5919   x)
5920     { echo "$as_me:$LINENO: result: none needed" >&5
5921 echo "${ECHO_T}none needed" >&6; } ;;
5922   xno)
5923     { echo "$as_me:$LINENO: result: unsupported" >&5
5924 echo "${ECHO_T}unsupported" >&6; } ;;
5925   *)
5926     CC="$CC $ac_cv_prog_cc_c89"
5927     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5928 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5929 esac
5930
5931
5932 ac_ext=c
5933 ac_cpp='$CPP $CPPFLAGS'
5934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5937
5938 ac_ext=cpp
5939 ac_cpp='$CXXCPP $CPPFLAGS'
5940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5943 if test -z "$CXX"; then
5944   if test -n "$CCC"; then
5945     CXX=$CCC
5946   else
5947     if test -n "$ac_tool_prefix"; then
5948   for ac_prog in g++
5949   do
5950     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_prog_CXX+set}" = set; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   if test -n "$CXX"; then
5958   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963   IFS=$as_save_IFS
5964   test -z "$as_dir" && as_dir=.
5965   for ac_exec_ext in '' $ac_executable_extensions; do
5966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5967     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969     break 2
5970   fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 CXX=$ac_cv_prog_CXX
5978 if test -n "$CXX"; then
5979   { echo "$as_me:$LINENO: result: $CXX" >&5
5980 echo "${ECHO_T}$CXX" >&6; }
5981 else
5982   { echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6; }
5984 fi
5985
5986
5987     test -n "$CXX" && break
5988   done
5989 fi
5990 if test -z "$CXX"; then
5991   ac_ct_CXX=$CXX
5992   for ac_prog in g++
5993 do
5994   # Extract the first word of "$ac_prog", so it can be a program name with args.
5995 set dummy $ac_prog; ac_word=$2
5996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001   if test -n "$ac_ct_CXX"; then
6002   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009   for ac_exec_ext in '' $ac_executable_extensions; do
6010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6011     ac_cv_prog_ac_ct_CXX="$ac_prog"
6012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013     break 2
6014   fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6022 if test -n "$ac_ct_CXX"; then
6023   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6024 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6025 else
6026   { echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6; }
6028 fi
6029
6030
6031   test -n "$ac_ct_CXX" && break
6032 done
6033
6034   if test "x$ac_ct_CXX" = x; then
6035     CXX="g++"
6036   else
6037     case $cross_compiling:$ac_tool_warned in
6038 yes:)
6039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6040 whose name does not start with the host triplet.  If you think this
6041 configuration is useful to you, please write to autoconf@gnu.org." >&5
6042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6043 whose name does not start with the host triplet.  If you think this
6044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6045 ac_tool_warned=yes ;;
6046 esac
6047     CXX=$ac_ct_CXX
6048   fi
6049 fi
6050
6051   fi
6052 fi
6053 # Provide some information about the compiler.
6054 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6055 ac_compiler=`set X $ac_compile; echo $2`
6056 { (ac_try="$ac_compiler --version >&5"
6057 case "(($ac_try" in
6058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059   *) ac_try_echo=$ac_try;;
6060 esac
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062   (eval "$ac_compiler --version >&5") 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); }
6066 { (ac_try="$ac_compiler -v >&5"
6067 case "(($ac_try" in
6068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069   *) ac_try_echo=$ac_try;;
6070 esac
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072   (eval "$ac_compiler -v >&5") 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }
6076 { (ac_try="$ac_compiler -V >&5"
6077 case "(($ac_try" in
6078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079   *) ac_try_echo=$ac_try;;
6080 esac
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082   (eval "$ac_compiler -V >&5") 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); }
6086
6087 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6088 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6089 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h.  */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h.  */
6098
6099 int
6100 main ()
6101 {
6102 #ifndef __GNUC__
6103        choke me
6104 #endif
6105
6106   ;
6107   return 0;
6108 }
6109 _ACEOF
6110 rm -f conftest.$ac_objext
6111 if { (ac_try="$ac_compile"
6112 case "(($ac_try" in
6113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114   *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117   (eval "$ac_compile") 2>conftest.er1
6118   ac_status=$?
6119   grep -v '^ *+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } &&
6124          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6125   { (case "(($ac_try" in
6126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127   *) ac_try_echo=$ac_try;;
6128 esac
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130   (eval "$ac_try") 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; } &&
6134          { ac_try='test -s conftest.$ac_objext'
6135   { (case "(($ac_try" in
6136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137   *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140   (eval "$ac_try") 2>&5
6141   ac_status=$?
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); }; }; then
6144   ac_compiler_gnu=yes
6145 else
6146   echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149         ac_compiler_gnu=no
6150 fi
6151
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6154
6155 fi
6156 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6157 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6158 GXX=`test $ac_compiler_gnu = yes && echo yes`
6159 ac_test_CXXFLAGS=${CXXFLAGS+set}
6160 ac_save_CXXFLAGS=$CXXFLAGS
6161 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6162 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6163 if test "${ac_cv_prog_cxx_g+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6167    ac_cxx_werror_flag=yes
6168    ac_cv_prog_cxx_g=no
6169    CXXFLAGS="-g"
6170    cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176
6177 int
6178 main ()
6179 {
6180
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6187 case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192   (eval "$ac_compile") 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } &&
6199          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6200   { (case "(($ac_try" in
6201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202   *) ac_try_echo=$ac_try;;
6203 esac
6204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205   (eval "$ac_try") 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; } &&
6209          { ac_try='test -s conftest.$ac_objext'
6210   { (case "(($ac_try" in
6211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212   *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215   (eval "$ac_try") 2>&5
6216   ac_status=$?
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }; }; then
6219   ac_cv_prog_cxx_g=yes
6220 else
6221   echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224         CXXFLAGS=""
6225       cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h.  */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h.  */
6231
6232 int
6233 main ()
6234 {
6235
6236   ;
6237   return 0;
6238 }
6239 _ACEOF
6240 rm -f conftest.$ac_objext
6241 if { (ac_try="$ac_compile"
6242 case "(($ac_try" in
6243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244   *) ac_try_echo=$ac_try;;
6245 esac
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247   (eval "$ac_compile") 2>conftest.er1
6248   ac_status=$?
6249   grep -v '^ *+' conftest.er1 >conftest.err
6250   rm -f conftest.er1
6251   cat conftest.err >&5
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6255   { (case "(($ac_try" in
6256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257   *) ac_try_echo=$ac_try;;
6258 esac
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260   (eval "$ac_try") 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; } &&
6264          { ac_try='test -s conftest.$ac_objext'
6265   { (case "(($ac_try" in
6266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267   *) ac_try_echo=$ac_try;;
6268 esac
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270   (eval "$ac_try") 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; }; then
6274   :
6275 else
6276   echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6280          CXXFLAGS="-g"
6281          cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287
6288 int
6289 main ()
6290 {
6291
6292   ;
6293   return 0;
6294 }
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6298 case "(($ac_try" in
6299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300   *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303   (eval "$ac_compile") 2>conftest.er1
6304   ac_status=$?
6305   grep -v '^ *+' conftest.er1 >conftest.err
6306   rm -f conftest.er1
6307   cat conftest.err >&5
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } &&
6310          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6311   { (case "(($ac_try" in
6312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313   *) ac_try_echo=$ac_try;;
6314 esac
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316   (eval "$ac_try") 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }; } &&
6320          { ac_try='test -s conftest.$ac_objext'
6321   { (case "(($ac_try" in
6322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323   *) ac_try_echo=$ac_try;;
6324 esac
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326   (eval "$ac_try") 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }; }; then
6330   ac_cv_prog_cxx_g=yes
6331 else
6332   echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335
6336 fi
6337
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 fi
6340
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342 fi
6343
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6346 fi
6347 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6348 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6349 if test "$ac_test_CXXFLAGS" = set; then
6350   CXXFLAGS=$ac_save_CXXFLAGS
6351 elif test $ac_cv_prog_cxx_g = yes; then
6352   if test "$GXX" = yes; then
6353     CXXFLAGS="-g -O2"
6354   else
6355     CXXFLAGS="-g"
6356   fi
6357 else
6358   if test "$GXX" = yes; then
6359     CXXFLAGS="-O2"
6360   else
6361     CXXFLAGS=
6362   fi
6363 fi
6364 ac_ext=c
6365 ac_cpp='$CPP $CPPFLAGS'
6366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369
6370
6371 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6372 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6373 if test "${lt_cv_path_NM+set}" = set; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   if test -n "$NM"; then
6377   # Let the user override the test.
6378   lt_cv_path_NM="$NM"
6379 else
6380   lt_nm_to_check="${ac_tool_prefix}nm"
6381   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6382     lt_nm_to_check="$lt_nm_to_check nm"
6383   fi
6384   for lt_tmp_nm in $lt_nm_to_check; do
6385     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6386     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6387       IFS="$lt_save_ifs"
6388       test -z "$ac_dir" && ac_dir=.
6389       tmp_nm="$ac_dir/$lt_tmp_nm"
6390       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6391         # Check to see if the nm accepts a BSD-compat flag.
6392         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6393         #   nm: unknown option "B" ignored
6394         # Tru64's nm complains that /dev/null is an invalid object file
6395         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6396         */dev/null* | *'Invalid file or object type'*)
6397           lt_cv_path_NM="$tmp_nm -B"
6398           break
6399           ;;
6400         *)
6401           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6402           */dev/null*)
6403             lt_cv_path_NM="$tmp_nm -p"
6404             break
6405             ;;
6406           *)
6407             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6408             continue # so that we can try to find one that supports BSD flags
6409             ;;
6410           esac
6411           ;;
6412         esac
6413       fi
6414     done
6415     IFS="$lt_save_ifs"
6416   done
6417   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6418 fi
6419 fi
6420 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6421 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6422 NM="$lt_cv_path_NM"
6423
6424
6425
6426 { echo "$as_me:$LINENO: checking for GNU make" >&5
6427 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6428 if test "${llvm_cv_gnu_make_command+set}" = set; then
6429   echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431   llvm_cv_gnu_make_command=''
6432  for a in "$MAKE" make gmake gnumake ; do
6433   if test -z "$a" ; then continue ; fi ;
6434   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6435   then
6436    llvm_cv_gnu_make_command=$a ;
6437    break;
6438   fi
6439  done
6440 fi
6441 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6442 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6443  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6444    ifGNUmake='' ;
6445  else
6446    ifGNUmake='#' ;
6447    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6448 echo "${ECHO_T}\"Not found\"" >&6; };
6449  fi
6450
6451
6452 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6453 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6454 LN_S=$as_ln_s
6455 if test "$LN_S" = "ln -s"; then
6456   { echo "$as_me:$LINENO: result: yes" >&5
6457 echo "${ECHO_T}yes" >&6; }
6458 else
6459   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6460 echo "${ECHO_T}no, using $LN_S" >&6; }
6461 fi
6462
6463 # Extract the first word of "cmp", so it can be a program name with args.
6464 set dummy cmp; ac_word=$2
6465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6467 if test "${ac_cv_path_CMP+set}" = set; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470   case $CMP in
6471   [\\/]* | ?:[\\/]*)
6472   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6473   ;;
6474   *)
6475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480   for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6491   ;;
6492 esac
6493 fi
6494 CMP=$ac_cv_path_CMP
6495 if test -n "$CMP"; then
6496   { echo "$as_me:$LINENO: result: $CMP" >&5
6497 echo "${ECHO_T}$CMP" >&6; }
6498 else
6499   { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6501 fi
6502
6503
6504 # Extract the first word of "cp", so it can be a program name with args.
6505 set dummy cp; ac_word=$2
6506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6508 if test "${ac_cv_path_CP+set}" = set; then
6509   echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511   case $CP in
6512   [\\/]* | ?:[\\/]*)
6513   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6514   ;;
6515   *)
6516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519   IFS=$as_save_IFS
6520   test -z "$as_dir" && as_dir=.
6521   for ac_exec_ext in '' $ac_executable_extensions; do
6522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6523     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525     break 2
6526   fi
6527 done
6528 done
6529 IFS=$as_save_IFS
6530
6531   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6532   ;;
6533 esac
6534 fi
6535 CP=$ac_cv_path_CP
6536 if test -n "$CP"; then
6537   { echo "$as_me:$LINENO: result: $CP" >&5
6538 echo "${ECHO_T}$CP" >&6; }
6539 else
6540   { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6542 fi
6543
6544
6545 # Extract the first word of "date", so it can be a program name with args.
6546 set dummy date; ac_word=$2
6547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6549 if test "${ac_cv_path_DATE+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552   case $DATE in
6553   [\\/]* | ?:[\\/]*)
6554   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6555   ;;
6556   *)
6557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560   IFS=$as_save_IFS
6561   test -z "$as_dir" && as_dir=.
6562   for ac_exec_ext in '' $ac_executable_extensions; do
6563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6564     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566     break 2
6567   fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6573   ;;
6574 esac
6575 fi
6576 DATE=$ac_cv_path_DATE
6577 if test -n "$DATE"; then
6578   { echo "$as_me:$LINENO: result: $DATE" >&5
6579 echo "${ECHO_T}$DATE" >&6; }
6580 else
6581   { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6583 fi
6584
6585
6586 # Extract the first word of "find", so it can be a program name with args.
6587 set dummy find; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_path_FIND+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593   case $FIND in
6594   [\\/]* | ?:[\\/]*)
6595   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6596   ;;
6597   *)
6598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601   IFS=$as_save_IFS
6602   test -z "$as_dir" && as_dir=.
6603   for ac_exec_ext in '' $ac_executable_extensions; do
6604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6605     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607     break 2
6608   fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6614   ;;
6615 esac
6616 fi
6617 FIND=$ac_cv_path_FIND
6618 if test -n "$FIND"; then
6619   { echo "$as_me:$LINENO: result: $FIND" >&5
6620 echo "${ECHO_T}$FIND" >&6; }
6621 else
6622   { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6624 fi
6625
6626
6627 # Extract the first word of "grep", so it can be a program name with args.
6628 set dummy grep; ac_word=$2
6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631 if test "${ac_cv_path_GREP+set}" = set; then
6632   echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634   case $GREP in
6635   [\\/]* | ?:[\\/]*)
6636   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6637   ;;
6638   *)
6639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644   for ac_exec_ext in '' $ac_executable_extensions; do
6645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6646     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648     break 2
6649   fi
6650 done
6651 done
6652 IFS=$as_save_IFS
6653
6654   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6655   ;;
6656 esac
6657 fi
6658 GREP=$ac_cv_path_GREP
6659 if test -n "$GREP"; then
6660   { echo "$as_me:$LINENO: result: $GREP" >&5
6661 echo "${ECHO_T}$GREP" >&6; }
6662 else
6663   { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6665 fi
6666
6667
6668 # Extract the first word of "mkdir", so it can be a program name with args.
6669 set dummy mkdir; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_path_MKDIR+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   case $MKDIR in
6676   [\\/]* | ?:[\\/]*)
6677   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6678   ;;
6679   *)
6680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685   for ac_exec_ext in '' $ac_executable_extensions; do
6686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6687     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6696   ;;
6697 esac
6698 fi
6699 MKDIR=$ac_cv_path_MKDIR
6700 if test -n "$MKDIR"; then
6701   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6702 echo "${ECHO_T}$MKDIR" >&6; }
6703 else
6704   { echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6; }
6706 fi
6707
6708
6709 # Extract the first word of "mv", so it can be a program name with args.
6710 set dummy mv; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_path_MV+set}" = set; then
6714   echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716   case $MV in
6717   [\\/]* | ?:[\\/]*)
6718   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6719   ;;
6720   *)
6721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724   IFS=$as_save_IFS
6725   test -z "$as_dir" && as_dir=.
6726   for ac_exec_ext in '' $ac_executable_extensions; do
6727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6728     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730     break 2
6731   fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6737   ;;
6738 esac
6739 fi
6740 MV=$ac_cv_path_MV
6741 if test -n "$MV"; then
6742   { echo "$as_me:$LINENO: result: $MV" >&5
6743 echo "${ECHO_T}$MV" >&6; }
6744 else
6745   { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6747 fi
6748
6749
6750 if test -n "$ac_tool_prefix"; then
6751   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_prog_RANLIB+set}" = set; then
6756   echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758   if test -n "$RANLIB"; then
6759   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764   IFS=$as_save_IFS
6765   test -z "$as_dir" && as_dir=.
6766   for ac_exec_ext in '' $ac_executable_extensions; do
6767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6768     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770     break 2
6771   fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 RANLIB=$ac_cv_prog_RANLIB
6779 if test -n "$RANLIB"; then
6780   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6781 echo "${ECHO_T}$RANLIB" >&6; }
6782 else
6783   { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6785 fi
6786
6787
6788 fi
6789 if test -z "$ac_cv_prog_RANLIB"; then
6790   ac_ct_RANLIB=$RANLIB
6791   # Extract the first word of "ranlib", so it can be a program name with args.
6792 set dummy ranlib; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   if test -n "$ac_ct_RANLIB"; then
6799   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806   for ac_exec_ext in '' $ac_executable_extensions; do
6807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808     ac_cv_prog_ac_ct_RANLIB="ranlib"
6809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6819 if test -n "$ac_ct_RANLIB"; then
6820   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6821 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6822 else
6823   { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6825 fi
6826
6827   if test "x$ac_ct_RANLIB" = x; then
6828     RANLIB=":"
6829   else
6830     case $cross_compiling:$ac_tool_warned in
6831 yes:)
6832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6833 whose name does not start with the host triplet.  If you think this
6834 configuration is useful to you, please write to autoconf@gnu.org." >&5
6835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6836 whose name does not start with the host triplet.  If you think this
6837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6838 ac_tool_warned=yes ;;
6839 esac
6840     RANLIB=$ac_ct_RANLIB
6841   fi
6842 else
6843   RANLIB="$ac_cv_prog_RANLIB"
6844 fi
6845
6846 # Extract the first word of "rm", so it can be a program name with args.
6847 set dummy rm; ac_word=$2
6848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850 if test "${ac_cv_path_RM+set}" = set; then
6851   echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853   case $RM in
6854   [\\/]* | ?:[\\/]*)
6855   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6856   ;;
6857   *)
6858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863   for ac_exec_ext in '' $ac_executable_extensions; do
6864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6865     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6874   ;;
6875 esac
6876 fi
6877 RM=$ac_cv_path_RM
6878 if test -n "$RM"; then
6879   { echo "$as_me:$LINENO: result: $RM" >&5
6880 echo "${ECHO_T}$RM" >&6; }
6881 else
6882   { echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6; }
6884 fi
6885
6886
6887 # Extract the first word of "sed", so it can be a program name with args.
6888 set dummy sed; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_path_SED+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   case $SED in
6895   [\\/]* | ?:[\\/]*)
6896   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6897   ;;
6898   *)
6899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904   for ac_exec_ext in '' $ac_executable_extensions; do
6905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6915   ;;
6916 esac
6917 fi
6918 SED=$ac_cv_path_SED
6919 if test -n "$SED"; then
6920   { echo "$as_me:$LINENO: result: $SED" >&5
6921 echo "${ECHO_T}$SED" >&6; }
6922 else
6923   { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6925 fi
6926
6927
6928 # Extract the first word of "tar", so it can be a program name with args.
6929 set dummy tar; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_path_TAR+set}" = set; then
6933   echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935   case $TAR in
6936   [\\/]* | ?:[\\/]*)
6937   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6938   ;;
6939   *)
6940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945   for ac_exec_ext in '' $ac_executable_extensions; do
6946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6947     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949     break 2
6950   fi
6951 done
6952 done
6953 IFS=$as_save_IFS
6954
6955   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6956   ;;
6957 esac
6958 fi
6959 TAR=$ac_cv_path_TAR
6960 if test -n "$TAR"; then
6961   { echo "$as_me:$LINENO: result: $TAR" >&5
6962 echo "${ECHO_T}$TAR" >&6; }
6963 else
6964   { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6966 fi
6967
6968
6969 # Extract the first word of "pwd", so it can be a program name with args.
6970 set dummy pwd; ac_word=$2
6971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973 if test "${ac_cv_path_BINPWD+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   case $BINPWD in
6977   [\\/]* | ?:[\\/]*)
6978   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6979   ;;
6980   *)
6981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984   IFS=$as_save_IFS
6985   test -z "$as_dir" && as_dir=.
6986   for ac_exec_ext in '' $ac_executable_extensions; do
6987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6988     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990     break 2
6991   fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6997   ;;
6998 esac
6999 fi
7000 BINPWD=$ac_cv_path_BINPWD
7001 if test -n "$BINPWD"; then
7002   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7003 echo "${ECHO_T}$BINPWD" >&6; }
7004 else
7005   { echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6; }
7007 fi
7008
7009
7010
7011 # Extract the first word of "Graphviz", so it can be a program name with args.
7012 set dummy Graphviz; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   case $GRAPHVIZ in
7019   [\\/]* | ?:[\\/]*)
7020   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7021   ;;
7022   *)
7023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026   IFS=$as_save_IFS
7027   test -z "$as_dir" && as_dir=.
7028   for ac_exec_ext in '' $ac_executable_extensions; do
7029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032     break 2
7033   fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7039   ;;
7040 esac
7041 fi
7042 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7043 if test -n "$GRAPHVIZ"; then
7044   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7045 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7046 else
7047   { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7049 fi
7050
7051
7052 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7053
7054 cat >>confdefs.h <<\_ACEOF
7055 #define HAVE_GRAPHVIZ 1
7056 _ACEOF
7057
7058     if test "$llvm_cv_os_type" = "MingW" ; then
7059     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7060   fi
7061
7062 cat >>confdefs.h <<_ACEOF
7063 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7064 _ACEOF
7065
7066 fi
7067 # Extract the first word of "dot", so it can be a program name with args.
7068 set dummy dot; ac_word=$2
7069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7071 if test "${ac_cv_path_DOT+set}" = set; then
7072   echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074   case $DOT in
7075   [\\/]* | ?:[\\/]*)
7076   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7077   ;;
7078   *)
7079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082   IFS=$as_save_IFS
7083   test -z "$as_dir" && as_dir=.
7084   for ac_exec_ext in '' $ac_executable_extensions; do
7085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7086     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088     break 2
7089   fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7095   ;;
7096 esac
7097 fi
7098 DOT=$ac_cv_path_DOT
7099 if test -n "$DOT"; then
7100   { echo "$as_me:$LINENO: result: $DOT" >&5
7101 echo "${ECHO_T}$DOT" >&6; }
7102 else
7103   { echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6; }
7105 fi
7106
7107
7108 if test "$DOT" != "echo dot" ; then
7109
7110 cat >>confdefs.h <<\_ACEOF
7111 #define HAVE_DOT 1
7112 _ACEOF
7113
7114     if test "$llvm_cv_os_type" = "MingW" ; then
7115     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7116   fi
7117
7118 cat >>confdefs.h <<_ACEOF
7119 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7120 _ACEOF
7121
7122 fi
7123 for ac_prog in gv gsview32
7124 do
7125   # Extract the first word of "$ac_prog", so it can be a program name with args.
7126 set dummy $ac_prog; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_path_GV+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   case $GV in
7133   [\\/]* | ?:[\\/]*)
7134   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7135   ;;
7136   *)
7137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140   IFS=$as_save_IFS
7141   test -z "$as_dir" && as_dir=.
7142   for ac_exec_ext in '' $ac_executable_extensions; do
7143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146     break 2
7147   fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152   ;;
7153 esac
7154 fi
7155 GV=$ac_cv_path_GV
7156 if test -n "$GV"; then
7157   { echo "$as_me:$LINENO: result: $GV" >&5
7158 echo "${ECHO_T}$GV" >&6; }
7159 else
7160   { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7162 fi
7163
7164
7165   test -n "$GV" && break
7166 done
7167 test -n "$GV" || GV="echo gv"
7168
7169 if test "$GV" != "echo gv" ; then
7170
7171 cat >>confdefs.h <<\_ACEOF
7172 #define HAVE_GV 1
7173 _ACEOF
7174
7175     if test "$llvm_cv_os_type" = "MingW" ; then
7176     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7177   fi
7178
7179 cat >>confdefs.h <<_ACEOF
7180 #define LLVM_PATH_GV "$GV${EXEEXT}"
7181 _ACEOF
7182
7183 fi
7184 # Extract the first word of "dotty", so it can be a program name with args.
7185 set dummy dotty; ac_word=$2
7186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188 if test "${ac_cv_path_DOTTY+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   case $DOTTY in
7192   [\\/]* | ?:[\\/]*)
7193   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7194   ;;
7195   *)
7196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201   for ac_exec_ext in '' $ac_executable_extensions; do
7202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7210
7211   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7212   ;;
7213 esac
7214 fi
7215 DOTTY=$ac_cv_path_DOTTY
7216 if test -n "$DOTTY"; then
7217   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7218 echo "${ECHO_T}$DOTTY" >&6; }
7219 else
7220   { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7222 fi
7223
7224
7225 if test "$DOTTY" != "echo dotty" ; then
7226
7227 cat >>confdefs.h <<\_ACEOF
7228 #define HAVE_DOTTY 1
7229 _ACEOF
7230
7231     if test "$llvm_cv_os_type" = "MingW" ; then
7232     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7233   fi
7234
7235 cat >>confdefs.h <<_ACEOF
7236 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7237 _ACEOF
7238
7239 fi
7240
7241
7242 # Extract the first word of "perl", so it can be a program name with args.
7243 set dummy perl; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_PERL+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   case $PERL in
7250   [\\/]* | ?:[\\/]*)
7251   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7252   ;;
7253   *)
7254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259   for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7270   ;;
7271 esac
7272 fi
7273 PERL=$ac_cv_path_PERL
7274 if test -n "$PERL"; then
7275   { echo "$as_me:$LINENO: result: $PERL" >&5
7276 echo "${ECHO_T}$PERL" >&6; }
7277 else
7278   { echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6; }
7280 fi
7281
7282
7283 if test "$PERL" != "none"; then
7284   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7285 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7286   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7287     { echo "$as_me:$LINENO: result: yes" >&5
7288 echo "${ECHO_T}yes" >&6; }
7289   else
7290     PERL=none
7291     { echo "$as_me:$LINENO: result: not found" >&5
7292 echo "${ECHO_T}not found" >&6; }
7293   fi
7294 fi
7295
7296
7297 if test x"$PERL" = xnone; then
7298    HAVE_PERL=0
7299
7300    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7301 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7302    { (exit 1); exit 1; }; }
7303 else
7304    HAVE_PERL=1
7305
7306 fi
7307
7308 # Find a good install program.  We prefer a C program (faster),
7309 # so one script is as good as another.  But avoid the broken or
7310 # incompatible versions:
7311 # SysV /etc/install, /usr/sbin/install
7312 # SunOS /usr/etc/install
7313 # IRIX /sbin/install
7314 # AIX /bin/install
7315 # AmigaOS /C/install, which installs bootblocks on floppy discs
7316 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7317 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7318 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7319 # OS/2's system install, which has a completely different semantic
7320 # ./install, which can be erroneously created by make from ./install.sh.
7321 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7322 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7323 if test -z "$INSTALL"; then
7324 if test "${ac_cv_path_install+set}" = set; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330   IFS=$as_save_IFS
7331   test -z "$as_dir" && as_dir=.
7332   # Account for people who put trailing slashes in PATH elements.
7333 case $as_dir/ in
7334   ./ | .// | /cC/* | \
7335   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7336   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7337   /usr/ucb/* ) ;;
7338   *)
7339     # OSF1 and SCO ODT 3.0 have their own names for install.
7340     # Don't use installbsd from OSF since it installs stuff as root
7341     # by default.
7342     for ac_prog in ginstall scoinst install; do
7343       for ac_exec_ext in '' $ac_executable_extensions; do
7344         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7345           if test $ac_prog = install &&
7346             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7347             # AIX install.  It has an incompatible calling convention.
7348             :
7349           elif test $ac_prog = install &&
7350             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7351             # program-specific install script used by HP pwplus--don't use.
7352             :
7353           else
7354             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7355             break 3
7356           fi
7357         fi
7358       done
7359     done
7360     ;;
7361 esac
7362 done
7363 IFS=$as_save_IFS
7364
7365
7366 fi
7367   if test "${ac_cv_path_install+set}" = set; then
7368     INSTALL=$ac_cv_path_install
7369   else
7370     # As a last resort, use the slow shell script.  Don't cache a
7371     # value for INSTALL within a source directory, because that will
7372     # break other packages using the cache if that directory is
7373     # removed, or if the value is a relative name.
7374     INSTALL=$ac_install_sh
7375   fi
7376 fi
7377 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7378 echo "${ECHO_T}$INSTALL" >&6; }
7379
7380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7381 # It thinks the first close brace ends the variable substitution.
7382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7383
7384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7385
7386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7387
7388
7389 # Extract the first word of "bzip2", so it can be a program name with args.
7390 set dummy bzip2; ac_word=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_path_BZIP2+set}" = set; then
7394   echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396   case $BZIP2 in
7397   [\\/]* | ?:[\\/]*)
7398   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7399   ;;
7400   *)
7401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404   IFS=$as_save_IFS
7405   test -z "$as_dir" && as_dir=.
7406   for ac_exec_ext in '' $ac_executable_extensions; do
7407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7408     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410     break 2
7411   fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416   ;;
7417 esac
7418 fi
7419 BZIP2=$ac_cv_path_BZIP2
7420 if test -n "$BZIP2"; then
7421   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7422 echo "${ECHO_T}$BZIP2" >&6; }
7423 else
7424   { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7426 fi
7427
7428
7429 # Extract the first word of "doxygen", so it can be a program name with args.
7430 set dummy doxygen; ac_word=$2
7431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7433 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436   case $DOXYGEN in
7437   [\\/]* | ?:[\\/]*)
7438   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7439   ;;
7440   *)
7441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444   IFS=$as_save_IFS
7445   test -z "$as_dir" && as_dir=.
7446   for ac_exec_ext in '' $ac_executable_extensions; do
7447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7448     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450     break 2
7451   fi
7452 done
7453 done
7454 IFS=$as_save_IFS
7455
7456   ;;
7457 esac
7458 fi
7459 DOXYGEN=$ac_cv_path_DOXYGEN
7460 if test -n "$DOXYGEN"; then
7461   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7462 echo "${ECHO_T}$DOXYGEN" >&6; }
7463 else
7464   { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7466 fi
7467
7468
7469 # Extract the first word of "groff", so it can be a program name with args.
7470 set dummy groff; ac_word=$2
7471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473 if test "${ac_cv_path_GROFF+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   case $GROFF in
7477   [\\/]* | ?:[\\/]*)
7478   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7479   ;;
7480   *)
7481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484   IFS=$as_save_IFS
7485   test -z "$as_dir" && as_dir=.
7486   for ac_exec_ext in '' $ac_executable_extensions; do
7487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7488     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490     break 2
7491   fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496   ;;
7497 esac
7498 fi
7499 GROFF=$ac_cv_path_GROFF
7500 if test -n "$GROFF"; then
7501   { echo "$as_me:$LINENO: result: $GROFF" >&5
7502 echo "${ECHO_T}$GROFF" >&6; }
7503 else
7504   { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7506 fi
7507
7508
7509 # Extract the first word of "gzip", so it can be a program name with args.
7510 set dummy gzip; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_path_GZIP+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   case $GZIP in
7517   [\\/]* | ?:[\\/]*)
7518   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7519   ;;
7520   *)
7521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524   IFS=$as_save_IFS
7525   test -z "$as_dir" && as_dir=.
7526   for ac_exec_ext in '' $ac_executable_extensions; do
7527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7528     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530     break 2
7531   fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536   ;;
7537 esac
7538 fi
7539 GZIP=$ac_cv_path_GZIP
7540 if test -n "$GZIP"; then
7541   { echo "$as_me:$LINENO: result: $GZIP" >&5
7542 echo "${ECHO_T}$GZIP" >&6; }
7543 else
7544   { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7546 fi
7547
7548
7549 # Extract the first word of "pod2html", so it can be a program name with args.
7550 set dummy pod2html; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_path_POD2HTML+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   case $POD2HTML in
7557   [\\/]* | ?:[\\/]*)
7558   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7559   ;;
7560   *)
7561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566   for ac_exec_ext in '' $ac_executable_extensions; do
7567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7568     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573 done
7574 IFS=$as_save_IFS
7575
7576   ;;
7577 esac
7578 fi
7579 POD2HTML=$ac_cv_path_POD2HTML
7580 if test -n "$POD2HTML"; then
7581   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7582 echo "${ECHO_T}$POD2HTML" >&6; }
7583 else
7584   { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7586 fi
7587
7588
7589 # Extract the first word of "pod2man", so it can be a program name with args.
7590 set dummy pod2man; ac_word=$2
7591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7593 if test "${ac_cv_path_POD2MAN+set}" = set; then
7594   echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596   case $POD2MAN in
7597   [\\/]* | ?:[\\/]*)
7598   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7599   ;;
7600   *)
7601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604   IFS=$as_save_IFS
7605   test -z "$as_dir" && as_dir=.
7606   for ac_exec_ext in '' $ac_executable_extensions; do
7607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7608     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610     break 2
7611   fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616   ;;
7617 esac
7618 fi
7619 POD2MAN=$ac_cv_path_POD2MAN
7620 if test -n "$POD2MAN"; then
7621   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7622 echo "${ECHO_T}$POD2MAN" >&6; }
7623 else
7624   { echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6; }
7626 fi
7627
7628
7629 # Extract the first word of "runtest", so it can be a program name with args.
7630 set dummy runtest; ac_word=$2
7631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633 if test "${ac_cv_path_RUNTEST+set}" = set; then
7634   echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636   case $RUNTEST in
7637   [\\/]* | ?:[\\/]*)
7638   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7639   ;;
7640   *)
7641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646   for ac_exec_ext in '' $ac_executable_extensions; do
7647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7648     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653 done
7654 IFS=$as_save_IFS
7655
7656   ;;
7657 esac
7658 fi
7659 RUNTEST=$ac_cv_path_RUNTEST
7660 if test -n "$RUNTEST"; then
7661   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7662 echo "${ECHO_T}$RUNTEST" >&6; }
7663 else
7664   { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7666 fi
7667
7668
7669
7670 no_itcl=true
7671 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7672 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7673
7674 # Check whether --with-tclinclude was given.
7675 if test "${with_tclinclude+set}" = set; then
7676   withval=$with_tclinclude; with_tclinclude=${withval}
7677 else
7678   with_tclinclude=''
7679 fi
7680
7681 if test "${ac_cv_path_tclsh+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684
7685 if test x"${with_tclinclude}" != x ; then
7686   if test -f ${with_tclinclude}/tclsh ; then
7687     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7688   elif test -f ${with_tclinclude}/src/tclsh ; then
7689     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7690   else
7691     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7692 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7693    { (exit 1); exit 1; }; }
7694   fi
7695 fi
7696
7697 if test x"${ac_cv_path_tclsh}" = x ; then
7698   { echo "$as_me:$LINENO: result: none" >&5
7699 echo "${ECHO_T}none" >&6; }
7700   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
7701 do
7702   # Extract the first word of "$ac_prog", so it can be a program name with args.
7703 set dummy $ac_prog; ac_word=$2
7704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706 if test "${ac_cv_path_TCLSH+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   case $TCLSH in
7710   [\\/]* | ?:[\\/]*)
7711   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7712   ;;
7713   *)
7714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719   for ac_exec_ext in '' $ac_executable_extensions; do
7720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7721     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729   ;;
7730 esac
7731 fi
7732 TCLSH=$ac_cv_path_TCLSH
7733 if test -n "$TCLSH"; then
7734   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7735 echo "${ECHO_T}$TCLSH" >&6; }
7736 else
7737   { echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6; }
7739 fi
7740
7741
7742   test -n "$TCLSH" && break
7743 done
7744
7745   if test x"${TCLSH}" = x ; then
7746     ac_cv_path_tclsh='';
7747   else
7748     ac_cv_path_tclsh="${TCLSH}";
7749   fi
7750 else
7751   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7752 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7753   TCLSH="${ac_cv_path_tclsh}"
7754
7755 fi
7756
7757 fi
7758
7759 # Extract the first word of "zip", so it can be a program name with args.
7760 set dummy zip; ac_word=$2
7761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7763 if test "${ac_cv_path_ZIP+set}" = set; then
7764   echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7766   case $ZIP in
7767   [\\/]* | ?:[\\/]*)
7768   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7769   ;;
7770   *)
7771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776   for ac_exec_ext in '' $ac_executable_extensions; do
7777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7778     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786   ;;
7787 esac
7788 fi
7789 ZIP=$ac_cv_path_ZIP
7790 if test -n "$ZIP"; then
7791   { echo "$as_me:$LINENO: result: $ZIP" >&5
7792 echo "${ECHO_T}$ZIP" >&6; }
7793 else
7794   { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7796 fi
7797
7798
7799 for ac_prog in ocamlc
7800 do
7801   # Extract the first word of "$ac_prog", so it can be a program name with args.
7802 set dummy $ac_prog; ac_word=$2
7803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7805 if test "${ac_cv_path_OCAMLC+set}" = set; then
7806   echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808   case $OCAMLC in
7809   [\\/]* | ?:[\\/]*)
7810   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7811   ;;
7812   *)
7813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818   for ac_exec_ext in '' $ac_executable_extensions; do
7819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7820     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825 done
7826 IFS=$as_save_IFS
7827
7828   ;;
7829 esac
7830 fi
7831 OCAMLC=$ac_cv_path_OCAMLC
7832 if test -n "$OCAMLC"; then
7833   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7834 echo "${ECHO_T}$OCAMLC" >&6; }
7835 else
7836   { echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6; }
7838 fi
7839
7840
7841   test -n "$OCAMLC" && break
7842 done
7843
7844 for ac_prog in ocamlopt
7845 do
7846   # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   case $OCAMLOPT in
7854   [\\/]* | ?:[\\/]*)
7855   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7856   ;;
7857   *)
7858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861   IFS=$as_save_IFS
7862   test -z "$as_dir" && as_dir=.
7863   for ac_exec_ext in '' $ac_executable_extensions; do
7864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7865     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870 done
7871 IFS=$as_save_IFS
7872
7873   ;;
7874 esac
7875 fi
7876 OCAMLOPT=$ac_cv_path_OCAMLOPT
7877 if test -n "$OCAMLOPT"; then
7878   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7879 echo "${ECHO_T}$OCAMLOPT" >&6; }
7880 else
7881   { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7883 fi
7884
7885
7886   test -n "$OCAMLOPT" && break
7887 done
7888
7889 for ac_prog in ocamldep
7890 do
7891   # Extract the first word of "$ac_prog", so it can be a program name with args.
7892 set dummy $ac_prog; ac_word=$2
7893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7895 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898   case $OCAMLDEP in
7899   [\\/]* | ?:[\\/]*)
7900   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7901   ;;
7902   *)
7903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906   IFS=$as_save_IFS
7907   test -z "$as_dir" && as_dir=.
7908   for ac_exec_ext in '' $ac_executable_extensions; do
7909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7910     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912     break 2
7913   fi
7914 done
7915 done
7916 IFS=$as_save_IFS
7917
7918   ;;
7919 esac
7920 fi
7921 OCAMLDEP=$ac_cv_path_OCAMLDEP
7922 if test -n "$OCAMLDEP"; then
7923   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7924 echo "${ECHO_T}$OCAMLDEP" >&6; }
7925 else
7926   { echo "$as_me:$LINENO: result: no" >&5
7927 echo "${ECHO_T}no" >&6; }
7928 fi
7929
7930
7931   test -n "$OCAMLDEP" && break
7932 done
7933
7934 for ac_prog in ocamldoc
7935 do
7936   # Extract the first word of "$ac_prog", so it can be a program name with args.
7937 set dummy $ac_prog; ac_word=$2
7938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7940 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   case $OCAMLDOC in
7944   [\\/]* | ?:[\\/]*)
7945   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7946   ;;
7947   *)
7948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951   IFS=$as_save_IFS
7952   test -z "$as_dir" && as_dir=.
7953   for ac_exec_ext in '' $ac_executable_extensions; do
7954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7955     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7957     break 2
7958   fi
7959 done
7960 done
7961 IFS=$as_save_IFS
7962
7963   ;;
7964 esac
7965 fi
7966 OCAMLDOC=$ac_cv_path_OCAMLDOC
7967 if test -n "$OCAMLDOC"; then
7968   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7969 echo "${ECHO_T}$OCAMLDOC" >&6; }
7970 else
7971   { echo "$as_me:$LINENO: result: no" >&5
7972 echo "${ECHO_T}no" >&6; }
7973 fi
7974
7975
7976   test -n "$OCAMLDOC" && break
7977 done
7978
7979 for ac_prog in gas as
7980 do
7981   # Extract the first word of "$ac_prog", so it can be a program name with args.
7982 set dummy $ac_prog; ac_word=$2
7983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7985 if test "${ac_cv_path_GAS+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   case $GAS in
7989   [\\/]* | ?:[\\/]*)
7990   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7991   ;;
7992   *)
7993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996   IFS=$as_save_IFS
7997   test -z "$as_dir" && as_dir=.
7998   for ac_exec_ext in '' $ac_executable_extensions; do
7999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8000     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002     break 2
8003   fi
8004 done
8005 done
8006 IFS=$as_save_IFS
8007
8008   ;;
8009 esac
8010 fi
8011 GAS=$ac_cv_path_GAS
8012 if test -n "$GAS"; then
8013   { echo "$as_me:$LINENO: result: $GAS" >&5
8014 echo "${ECHO_T}$GAS" >&6; }
8015 else
8016   { echo "$as_me:$LINENO: result: no" >&5
8017 echo "${ECHO_T}no" >&6; }
8018 fi
8019
8020
8021   test -n "$GAS" && break
8022 done
8023
8024
8025 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8026 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8027 if test "${llvm_cv_link_use_r+set}" = set; then
8028   echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030    ac_ext=c
8031 ac_cpp='$CPP $CPPFLAGS'
8032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035
8036   oldcflags="$CFLAGS"
8037   CFLAGS="$CFLAGS -Wl,-R."
8038   cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h.  */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h.  */
8044
8045 int
8046 main ()
8047 {
8048 int main() { return 0; }
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 rm -f conftest.$ac_objext conftest$ac_exeext
8054 if { (ac_try="$ac_link"
8055 case "(($ac_try" in
8056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057   *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060   (eval "$ac_link") 2>conftest.er1
8061   ac_status=$?
8062   grep -v '^ *+' conftest.er1 >conftest.err
8063   rm -f conftest.er1
8064   cat conftest.err >&5
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); } &&
8067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8068   { (case "(($ac_try" in
8069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070   *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073   (eval "$ac_try") 2>&5
8074   ac_status=$?
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); }; } &&
8077          { ac_try='test -s conftest$ac_exeext'
8078   { (case "(($ac_try" in
8079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080   *) ac_try_echo=$ac_try;;
8081 esac
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083   (eval "$ac_try") 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; }; then
8087   llvm_cv_link_use_r=yes
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092         llvm_cv_link_use_r=no
8093 fi
8094
8095 rm -f core conftest.err conftest.$ac_objext \
8096       conftest$ac_exeext conftest.$ac_ext
8097   CFLAGS="$oldcflags"
8098   ac_ext=c
8099 ac_cpp='$CPP $CPPFLAGS'
8100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8103
8104
8105 fi
8106 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8107 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8108 if test "$llvm_cv_link_use_r" = yes ; then
8109
8110 cat >>confdefs.h <<\_ACEOF
8111 #define HAVE_LINK_R 1
8112 _ACEOF
8113
8114   fi
8115
8116
8117 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8118 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8119 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8120   echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122    ac_ext=c
8123 ac_cpp='$CPP $CPPFLAGS'
8124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127
8128   oldcflags="$CFLAGS"
8129   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8130   cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136
8137 int
8138 main ()
8139 {
8140 int main() { return 0; }
8141   ;
8142   return 0;
8143 }
8144 _ACEOF
8145 rm -f conftest.$ac_objext conftest$ac_exeext
8146 if { (ac_try="$ac_link"
8147 case "(($ac_try" in
8148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149   *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152   (eval "$ac_link") 2>conftest.er1
8153   ac_status=$?
8154   grep -v '^ *+' conftest.er1 >conftest.err
8155   rm -f conftest.er1
8156   cat conftest.err >&5
8157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   (exit $ac_status); } &&
8159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8160   { (case "(($ac_try" in
8161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162   *) ac_try_echo=$ac_try;;
8163 esac
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165   (eval "$ac_try") 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); }; } &&
8169          { ac_try='test -s conftest$ac_exeext'
8170   { (case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175   (eval "$ac_try") 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; }; then
8179   llvm_cv_link_use_export_dynamic=yes
8180 else
8181   echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8183
8184         llvm_cv_link_use_export_dynamic=no
8185 fi
8186
8187 rm -f core conftest.err conftest.$ac_objext \
8188       conftest$ac_exeext conftest.$ac_ext
8189   CFLAGS="$oldcflags"
8190   ac_ext=c
8191 ac_cpp='$CPP $CPPFLAGS'
8192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8195
8196
8197 fi
8198 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8199 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8200 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8201
8202 cat >>confdefs.h <<\_ACEOF
8203 #define HAVE_LINK_EXPORT_DYNAMIC 1
8204 _ACEOF
8205
8206   fi
8207
8208
8209
8210
8211 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8212 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8213 if test "${ac_cv_c_const+set}" = set; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216   cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222
8223 int
8224 main ()
8225 {
8226 /* FIXME: Include the comments suggested by Paul. */
8227 #ifndef __cplusplus
8228   /* Ultrix mips cc rejects this.  */
8229   typedef int charset[2];
8230   const charset x;
8231   /* SunOS 4.1.1 cc rejects this.  */
8232   char const *const *ccp;
8233   char **p;
8234   /* NEC SVR4.0.2 mips cc rejects this.  */
8235   struct point {int x, y;};
8236   static struct point const zero = {0,0};
8237   /* AIX XL C 1.02.0.0 rejects this.
8238      It does not let you subtract one const X* pointer from another in
8239      an arm of an if-expression whose if-part is not a constant
8240      expression */
8241   const char *g = "string";
8242   ccp = &g + (g ? g-g : 0);
8243   /* HPUX 7.0 cc rejects these. */
8244   ++ccp;
8245   p = (char**) ccp;
8246   ccp = (char const *const *) p;
8247   { /* SCO 3.2v4 cc rejects this.  */
8248     char *t;
8249     char const *s = 0 ? (char *) 0 : (char const *) 0;
8250
8251     *t++ = 0;
8252     if (s) return 0;
8253   }
8254   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8255     int x[] = {25, 17};
8256     const int *foo = &x[0];
8257     ++foo;
8258   }
8259   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8260     typedef const int *iptr;
8261     iptr p = 0;
8262     ++p;
8263   }
8264   { /* AIX XL C 1.02.0.0 rejects this saying
8265        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8266     struct s { int j; const int *ap[3]; };
8267     struct s *b; b->j = 5;
8268   }
8269   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8270     const int foo = 10;
8271     if (!foo) return 0;
8272   }
8273   return !x[0] && !zero.x;
8274 #endif
8275
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8282 case "(($ac_try" in
8283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284   *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287   (eval "$ac_compile") 2>conftest.er1
8288   ac_status=$?
8289   grep -v '^ *+' conftest.er1 >conftest.err
8290   rm -f conftest.er1
8291   cat conftest.err >&5
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } &&
8294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295   { (case "(($ac_try" in
8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297   *) ac_try_echo=$ac_try;;
8298 esac
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300   (eval "$ac_try") 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; } &&
8304          { ac_try='test -s conftest.$ac_objext'
8305   { (case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_try") 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   ac_cv_c_const=yes
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319         ac_cv_c_const=no
8320 fi
8321
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8325 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8326 if test $ac_cv_c_const = no; then
8327
8328 cat >>confdefs.h <<\_ACEOF
8329 #define const
8330 _ACEOF
8331
8332 fi
8333
8334
8335
8336
8337
8338
8339 ac_header_dirent=no
8340 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8341   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8342 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8343 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347   cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353 #include <sys/types.h>
8354 #include <$ac_hdr>
8355
8356 int
8357 main ()
8358 {
8359 if ((DIR *) 0)
8360 return 0;
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8367 case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372   (eval "$ac_compile") 2>conftest.er1
8373   ac_status=$?
8374   grep -v '^ *+' conftest.er1 >conftest.err
8375   rm -f conftest.er1
8376   cat conftest.err >&5
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); } &&
8379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8380   { (case "(($ac_try" in
8381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382   *) ac_try_echo=$ac_try;;
8383 esac
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385   (eval "$ac_try") 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; } &&
8389          { ac_try='test -s conftest.$ac_objext'
8390   { (case "(($ac_try" in
8391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392   *) ac_try_echo=$ac_try;;
8393 esac
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395   (eval "$ac_try") 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; }; then
8399   eval "$as_ac_Header=yes"
8400 else
8401   echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8403
8404         eval "$as_ac_Header=no"
8405 fi
8406
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 fi
8409 ac_res=`eval echo '${'$as_ac_Header'}'`
8410                { echo "$as_me:$LINENO: result: $ac_res" >&5
8411 echo "${ECHO_T}$ac_res" >&6; }
8412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8413   cat >>confdefs.h <<_ACEOF
8414 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8415 _ACEOF
8416
8417 ac_header_dirent=$ac_hdr; break
8418 fi
8419
8420 done
8421 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8422 if test $ac_header_dirent = dirent.h; then
8423   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8424 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8425 if test "${ac_cv_search_opendir+set}" = set; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428   ac_func_search_save_LIBS=$LIBS
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h.  */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h.  */
8435
8436 /* Override any GCC internal prototype to avoid an error.
8437    Use char because int might match the return type of a GCC
8438    builtin and then its argument prototype would still apply.  */
8439 #ifdef __cplusplus
8440 extern "C"
8441 #endif
8442 char opendir ();
8443 int
8444 main ()
8445 {
8446 return opendir ();
8447   ;
8448   return 0;
8449 }
8450 _ACEOF
8451 for ac_lib in '' dir; do
8452   if test -z "$ac_lib"; then
8453     ac_res="none required"
8454   else
8455     ac_res=-l$ac_lib
8456     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8457   fi
8458   rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (ac_try="$ac_link"
8460 case "(($ac_try" in
8461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462   *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465   (eval "$ac_link") 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
8469   cat conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } &&
8472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8473   { (case "(($ac_try" in
8474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475   *) ac_try_echo=$ac_try;;
8476 esac
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478   (eval "$ac_try") 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; } &&
8482          { ac_try='test -s conftest$ac_exeext'
8483   { (case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488   (eval "$ac_try") 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; }; then
8492   ac_cv_search_opendir=$ac_res
8493 else
8494   echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8496
8497
8498 fi
8499
8500 rm -f core conftest.err conftest.$ac_objext \
8501       conftest$ac_exeext
8502   if test "${ac_cv_search_opendir+set}" = set; then
8503   break
8504 fi
8505 done
8506 if test "${ac_cv_search_opendir+set}" = set; then
8507   :
8508 else
8509   ac_cv_search_opendir=no
8510 fi
8511 rm conftest.$ac_ext
8512 LIBS=$ac_func_search_save_LIBS
8513 fi
8514 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8515 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8516 ac_res=$ac_cv_search_opendir
8517 if test "$ac_res" != no; then
8518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8519
8520 fi
8521
8522 else
8523   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8524 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8525 if test "${ac_cv_search_opendir+set}" = set; then
8526   echo $ECHO_N "(cached) $ECHO_C" >&6
8527 else
8528   ac_func_search_save_LIBS=$LIBS
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h.  */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h.  */
8535
8536 /* Override any GCC internal prototype to avoid an error.
8537    Use char because int might match the return type of a GCC
8538    builtin and then its argument prototype would still apply.  */
8539 #ifdef __cplusplus
8540 extern "C"
8541 #endif
8542 char opendir ();
8543 int
8544 main ()
8545 {
8546 return opendir ();
8547   ;
8548   return 0;
8549 }
8550 _ACEOF
8551 for ac_lib in '' x; do
8552   if test -z "$ac_lib"; then
8553     ac_res="none required"
8554   else
8555     ac_res=-l$ac_lib
8556     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8557   fi
8558   rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (ac_try="$ac_link"
8560 case "(($ac_try" in
8561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562   *) ac_try_echo=$ac_try;;
8563 esac
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565   (eval "$ac_link") 2>conftest.er1
8566   ac_status=$?
8567   grep -v '^ *+' conftest.er1 >conftest.err
8568   rm -f conftest.er1
8569   cat conftest.err >&5
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); } &&
8572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8573   { (case "(($ac_try" in
8574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575   *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578   (eval "$ac_try") 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; } &&
8582          { ac_try='test -s conftest$ac_exeext'
8583   { (case "(($ac_try" in
8584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585   *) ac_try_echo=$ac_try;;
8586 esac
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588   (eval "$ac_try") 2>&5
8589   ac_status=$?
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); }; }; then
8592   ac_cv_search_opendir=$ac_res
8593 else
8594   echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597
8598 fi
8599
8600 rm -f core conftest.err conftest.$ac_objext \
8601       conftest$ac_exeext
8602   if test "${ac_cv_search_opendir+set}" = set; then
8603   break
8604 fi
8605 done
8606 if test "${ac_cv_search_opendir+set}" = set; then
8607   :
8608 else
8609   ac_cv_search_opendir=no
8610 fi
8611 rm conftest.$ac_ext
8612 LIBS=$ac_func_search_save_LIBS
8613 fi
8614 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8615 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8616 ac_res=$ac_cv_search_opendir
8617 if test "$ac_res" != no; then
8618   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8619
8620 fi
8621
8622 fi
8623
8624
8625 for ac_header in dlfcn.h
8626 do
8627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8629   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 fi
8634 ac_res=`eval echo '${'$as_ac_Header'}'`
8635                { echo "$as_me:$LINENO: result: $ac_res" >&5
8636 echo "${ECHO_T}$ac_res" >&6; }
8637 else
8638   # Is the header compilable?
8639 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h.  */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h.  */
8647 $ac_includes_default
8648 #include <$ac_header>
8649 _ACEOF
8650 rm -f conftest.$ac_objext
8651 if { (ac_try="$ac_compile"
8652 case "(($ac_try" in
8653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654   *) ac_try_echo=$ac_try;;
8655 esac
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657   (eval "$ac_compile") 2>conftest.er1
8658   ac_status=$?
8659   grep -v '^ *+' conftest.er1 >conftest.err
8660   rm -f conftest.er1
8661   cat conftest.err >&5
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } &&
8664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8665   { (case "(($ac_try" in
8666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667   *) ac_try_echo=$ac_try;;
8668 esac
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670   (eval "$ac_try") 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; } &&
8674          { ac_try='test -s conftest.$ac_objext'
8675   { (case "(($ac_try" in
8676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677   *) ac_try_echo=$ac_try;;
8678 esac
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680   (eval "$ac_try") 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); }; }; then
8684   ac_header_compiler=yes
8685 else
8686   echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689         ac_header_compiler=no
8690 fi
8691
8692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8694 echo "${ECHO_T}$ac_header_compiler" >&6; }
8695
8696 # Is the header present?
8697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h.  */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h.  */
8705 #include <$ac_header>
8706 _ACEOF
8707 if { (ac_try="$ac_cpp conftest.$ac_ext"
8708 case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } >/dev/null; then
8720   if test -s conftest.err; then
8721     ac_cpp_err=$ac_c_preproc_warn_flag
8722     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8723   else
8724     ac_cpp_err=
8725   fi
8726 else
8727   ac_cpp_err=yes
8728 fi
8729 if test -z "$ac_cpp_err"; then
8730   ac_header_preproc=yes
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735   ac_header_preproc=no
8736 fi
8737
8738 rm -f conftest.err conftest.$ac_ext
8739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8740 echo "${ECHO_T}$ac_header_preproc" >&6; }
8741
8742 # So?  What about this header?
8743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8744   yes:no: )
8745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8749     ac_header_preproc=yes
8750     ;;
8751   no:yes:* )
8752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8754     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8755 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8756     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8758     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8759 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8762     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8764     ( cat <<\_ASBOX
8765 ## ----------------------------------- ##
8766 ## Report this to llvmbugs@cs.uiuc.edu ##
8767 ## ----------------------------------- ##
8768 _ASBOX
8769      ) | sed "s/^/$as_me: WARNING:     /" >&2
8770     ;;
8771 esac
8772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8775   echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777   eval "$as_ac_Header=\$ac_header_preproc"
8778 fi
8779 ac_res=`eval echo '${'$as_ac_Header'}'`
8780                { echo "$as_me:$LINENO: result: $ac_res" >&5
8781 echo "${ECHO_T}$ac_res" >&6; }
8782
8783 fi
8784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8785   cat >>confdefs.h <<_ACEOF
8786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8787 _ACEOF
8788
8789 fi
8790
8791 done
8792
8793 # Check whether --enable-ltdl-install was given.
8794 if test "${enable_ltdl_install+set}" = set; then
8795   enableval=$enable_ltdl_install;
8796 fi
8797
8798
8799
8800
8801 if test x"${enable_ltdl_install-no}" != xno; then
8802   INSTALL_LTDL_TRUE=
8803   INSTALL_LTDL_FALSE='#'
8804 else
8805   INSTALL_LTDL_TRUE='#'
8806   INSTALL_LTDL_FALSE=
8807 fi
8808
8809
8810
8811 if test x"${enable_ltdl_convenience-no}" != xno; then
8812   CONVENIENCE_LTDL_TRUE=
8813   CONVENIENCE_LTDL_FALSE='#'
8814 else
8815   CONVENIENCE_LTDL_TRUE='#'
8816   CONVENIENCE_LTDL_FALSE=
8817 fi
8818
8819
8820 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8821 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8822 library_names_spec=
8823 libname_spec='lib$name'
8824 soname_spec=
8825 shrext_cmds=".so"
8826 postinstall_cmds=
8827 postuninstall_cmds=
8828 finish_cmds=
8829 finish_eval=
8830 shlibpath_var=
8831 shlibpath_overrides_runpath=unknown
8832 version_type=none
8833 dynamic_linker="$host_os ld.so"
8834 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8835 if test "$GCC" = yes; then
8836   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8837   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8838     # if the path contains ";" then we assume it to be the separator
8839     # otherwise default to the standard path separator (i.e. ":") - it is
8840     # assumed that no part of a normal pathname contains ";" but that should
8841     # okay in the real world where ";" in dirpaths is itself problematic.
8842     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8843   else
8844     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8845   fi
8846 else
8847   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8848 fi
8849 need_lib_prefix=unknown
8850 hardcode_into_libs=no
8851
8852 # when you set need_version to no, make sure it does not cause -set_version
8853 # flags to be left without arguments
8854 need_version=unknown
8855
8856 case $host_os in
8857 aix3*)
8858   version_type=linux
8859   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8860   shlibpath_var=LIBPATH
8861
8862   # AIX 3 has no versioning support, so we append a major version to the name.
8863   soname_spec='${libname}${release}${shared_ext}$major'
8864   ;;
8865
8866 aix4* | aix5*)
8867   version_type=linux
8868   need_lib_prefix=no
8869   need_version=no
8870   hardcode_into_libs=yes
8871   if test "$host_cpu" = ia64; then
8872     # AIX 5 supports IA64
8873     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8874     shlibpath_var=LD_LIBRARY_PATH
8875   else
8876     # With GCC up to 2.95.x, collect2 would create an import file
8877     # for dependence libraries.  The import file would start with
8878     # the line `#! .'.  This would cause the generated library to
8879     # depend on `.', always an invalid library.  This was fixed in
8880     # development snapshots of GCC prior to 3.0.
8881     case $host_os in
8882       aix4 | aix4.[01] | aix4.[01].*)
8883       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8884            echo ' yes '
8885            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8886         :
8887       else
8888         can_build_shared=no
8889       fi
8890       ;;
8891     esac
8892     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8893     # soname into executable. Probably we can add versioning support to
8894     # collect2, so additional links can be useful in future.
8895     if test "$aix_use_runtimelinking" = yes; then
8896       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8897       # instead of lib<name>.a to let people know that these are not
8898       # typical AIX shared libraries.
8899       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900     else
8901       # We preserve .a as extension for shared libraries through AIX4.2
8902       # and later when we are not doing run time linking.
8903       library_names_spec='${libname}${release}.a $libname.a'
8904       soname_spec='${libname}${release}${shared_ext}$major'
8905     fi
8906     shlibpath_var=LIBPATH
8907   fi
8908   ;;
8909
8910 amigaos*)
8911   library_names_spec='$libname.ixlibrary $libname.a'
8912   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8913   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'
8914   ;;
8915
8916 beos*)
8917   library_names_spec='${libname}${shared_ext}'
8918   dynamic_linker="$host_os ld.so"
8919   shlibpath_var=LIBRARY_PATH
8920   ;;
8921
8922 bsdi[45]*)
8923   version_type=linux
8924   need_version=no
8925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8926   soname_spec='${libname}${release}${shared_ext}$major'
8927   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8928   shlibpath_var=LD_LIBRARY_PATH
8929   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8930   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8931   # the default ld.so.conf also contains /usr/contrib/lib and
8932   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8933   # libtool to hard-code these into programs
8934   ;;
8935
8936 cygwin* | mingw* | pw32*)
8937   version_type=windows
8938   shrext_cmds=".dll"
8939   need_version=no
8940   need_lib_prefix=no
8941
8942   case $GCC,$host_os in
8943   yes,cygwin* | yes,mingw* | yes,pw32*)
8944     library_names_spec='$libname.dll.a'
8945     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8946     postinstall_cmds='base_file=`basename \${file}`~
8947       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8948       dldir=$destdir/`dirname \$dlpath`~
8949       test -d \$dldir || mkdir -p \$dldir~
8950       $install_prog $dir/$dlname \$dldir/$dlname~
8951       chmod a+x \$dldir/$dlname'
8952     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8953       dlpath=$dir/\$dldll~
8954        $rm \$dlpath'
8955     shlibpath_overrides_runpath=yes
8956
8957     case $host_os in
8958     cygwin*)
8959       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8960       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8961       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8962       ;;
8963     mingw*)
8964       # MinGW DLLs use traditional 'lib' prefix
8965       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8967       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8968         # It is most probably a Windows format PATH printed by
8969         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8970         # path with ; separators, and with drive letters. We can handle the
8971         # drive letters (cygwin fileutils understands them), so leave them,
8972         # especially as we might pass files found there to a mingw objdump,
8973         # which wouldn't understand a cygwinified path. Ahh.
8974         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8975       else
8976         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8977       fi
8978       ;;
8979     pw32*)
8980       # pw32 DLLs use 'pw' prefix rather than 'lib'
8981       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8982       ;;
8983     esac
8984     ;;
8985
8986   *)
8987     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8988     ;;
8989   esac
8990   dynamic_linker='Win32 ld.exe'
8991   # FIXME: first we should search . and the directory the executable is in
8992   shlibpath_var=PATH
8993   ;;
8994
8995 darwin* | rhapsody*)
8996   dynamic_linker="$host_os dyld"
8997   version_type=darwin
8998   need_lib_prefix=no
8999   need_version=no
9000   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9001   soname_spec='${libname}${release}${major}$shared_ext'
9002   shlibpath_overrides_runpath=yes
9003   shlibpath_var=DYLD_LIBRARY_PATH
9004   shrext_cmds='.dylib'
9005   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9006   if test "$GCC" = yes; then
9007     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"`
9008   else
9009     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9010   fi
9011   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9012   ;;
9013
9014 dgux*)
9015   version_type=linux
9016   need_lib_prefix=no
9017   need_version=no
9018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9019   soname_spec='${libname}${release}${shared_ext}$major'
9020   shlibpath_var=LD_LIBRARY_PATH
9021   ;;
9022
9023 freebsd1*)
9024   dynamic_linker=no
9025   ;;
9026
9027 kfreebsd*-gnu)
9028   version_type=linux
9029   need_lib_prefix=no
9030   need_version=no
9031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032   soname_spec='${libname}${release}${shared_ext}$major'
9033   shlibpath_var=LD_LIBRARY_PATH
9034   shlibpath_overrides_runpath=no
9035   hardcode_into_libs=yes
9036   dynamic_linker='GNU ld.so'
9037   ;;
9038
9039 freebsd* | dragonfly*)
9040   # DragonFly does not have aout.  When/if they implement a new
9041   # versioning mechanism, adjust this.
9042   if test -x /usr/bin/objformat; then
9043     objformat=`/usr/bin/objformat`
9044   else
9045     case $host_os in
9046     freebsd[123]*) objformat=aout ;;
9047     *) objformat=elf ;;
9048     esac
9049   fi
9050   version_type=freebsd-$objformat
9051   case $version_type in
9052     freebsd-elf*)
9053       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9054       need_version=no
9055       need_lib_prefix=no
9056       ;;
9057     freebsd-*)
9058       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9059       need_version=yes
9060       ;;
9061   esac
9062   shlibpath_var=LD_LIBRARY_PATH
9063   case $host_os in
9064   freebsd2*)
9065     shlibpath_overrides_runpath=yes
9066     ;;
9067   freebsd3.[01]* | freebsdelf3.[01]*)
9068     shlibpath_overrides_runpath=yes
9069     hardcode_into_libs=yes
9070     ;;
9071   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9072   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9073     shlibpath_overrides_runpath=no
9074     hardcode_into_libs=yes
9075     ;;
9076   freebsd*) # from 4.6 on
9077     shlibpath_overrides_runpath=yes
9078     hardcode_into_libs=yes
9079     ;;
9080   esac
9081   ;;
9082
9083 gnu*)
9084   version_type=linux
9085   need_lib_prefix=no
9086   need_version=no
9087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9088   soname_spec='${libname}${release}${shared_ext}$major'
9089   shlibpath_var=LD_LIBRARY_PATH
9090   hardcode_into_libs=yes
9091   ;;
9092
9093 hpux9* | hpux10* | hpux11*)
9094   # Give a soname corresponding to the major version so that dld.sl refuses to
9095   # link against other versions.
9096   version_type=sunos
9097   need_lib_prefix=no
9098   need_version=no
9099   case $host_cpu in
9100   ia64*)
9101     shrext_cmds='.so'
9102     hardcode_into_libs=yes
9103     dynamic_linker="$host_os dld.so"
9104     shlibpath_var=LD_LIBRARY_PATH
9105     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107     soname_spec='${libname}${release}${shared_ext}$major'
9108     if test "X$HPUX_IA64_MODE" = X32; then
9109       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9110     else
9111       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9112     fi
9113     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9114     ;;
9115    hppa*64*)
9116      shrext_cmds='.sl'
9117      hardcode_into_libs=yes
9118      dynamic_linker="$host_os dld.sl"
9119      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9120      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9121      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122      soname_spec='${libname}${release}${shared_ext}$major'
9123      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9124      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9125      ;;
9126    *)
9127     shrext_cmds='.sl'
9128     dynamic_linker="$host_os dld.sl"
9129     shlibpath_var=SHLIB_PATH
9130     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132     soname_spec='${libname}${release}${shared_ext}$major'
9133     ;;
9134   esac
9135   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9136   postinstall_cmds='chmod 555 $lib'
9137   ;;
9138
9139 interix3*)
9140   version_type=linux
9141   need_lib_prefix=no
9142   need_version=no
9143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9144   soname_spec='${libname}${release}${shared_ext}$major'
9145   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9146   shlibpath_var=LD_LIBRARY_PATH
9147   shlibpath_overrides_runpath=no
9148   hardcode_into_libs=yes
9149   ;;
9150
9151 irix5* | irix6* | nonstopux*)
9152   case $host_os in
9153     nonstopux*) version_type=nonstopux ;;
9154     *)
9155         if test "$lt_cv_prog_gnu_ld" = yes; then
9156                 version_type=linux
9157         else
9158                 version_type=irix
9159         fi ;;
9160   esac
9161   need_lib_prefix=no
9162   need_version=no
9163   soname_spec='${libname}${release}${shared_ext}$major'
9164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9165   case $host_os in
9166   irix5* | nonstopux*)
9167     libsuff= shlibsuff=
9168     ;;
9169   *)
9170     case $LD in # libtool.m4 will add one of these switches to LD
9171     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9172       libsuff= shlibsuff= libmagic=32-bit;;
9173     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9174       libsuff=32 shlibsuff=N32 libmagic=N32;;
9175     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9176       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9177     *) libsuff= shlibsuff= libmagic=never-match;;
9178     esac
9179     ;;
9180   esac
9181   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9182   shlibpath_overrides_runpath=no
9183   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9184   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9185   hardcode_into_libs=yes
9186   ;;
9187
9188 # No shared lib support for Linux oldld, aout, or coff.
9189 linux*oldld* | linux*aout* | linux*coff*)
9190   dynamic_linker=no
9191   ;;
9192
9193 # This must be Linux ELF.
9194 linux*)
9195   version_type=linux
9196   need_lib_prefix=no
9197   need_version=no
9198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199   soname_spec='${libname}${release}${shared_ext}$major'
9200   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9201   shlibpath_var=LD_LIBRARY_PATH
9202   shlibpath_overrides_runpath=no
9203   # This implies no fast_install, which is unacceptable.
9204   # Some rework will be needed to allow for fast_install
9205   # before this can be enabled.
9206   hardcode_into_libs=yes
9207
9208   # Append ld.so.conf contents to the search path
9209   if test -f /etc/ld.so.conf; then
9210     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' ' '`
9211     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9212   fi
9213
9214   # We used to test for /lib/ld.so.1 and disable shared libraries on
9215   # powerpc, because MkLinux only supported shared libraries with the
9216   # GNU dynamic linker.  Since this was broken with cross compilers,
9217   # most powerpc-linux boxes support dynamic linking these days and
9218   # people can always --disable-shared, the test was removed, and we
9219   # assume the GNU/Linux dynamic linker is in use.
9220   dynamic_linker='GNU/Linux ld.so'
9221   ;;
9222
9223 knetbsd*-gnu)
9224   version_type=linux
9225   need_lib_prefix=no
9226   need_version=no
9227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9228   soname_spec='${libname}${release}${shared_ext}$major'
9229   shlibpath_var=LD_LIBRARY_PATH
9230   shlibpath_overrides_runpath=no
9231   hardcode_into_libs=yes
9232   dynamic_linker='GNU ld.so'
9233   ;;
9234
9235 netbsd*)
9236   version_type=sunos
9237   need_lib_prefix=no
9238   need_version=no
9239   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9241     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9242     dynamic_linker='NetBSD (a.out) ld.so'
9243   else
9244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9245     soname_spec='${libname}${release}${shared_ext}$major'
9246     dynamic_linker='NetBSD ld.elf_so'
9247   fi
9248   shlibpath_var=LD_LIBRARY_PATH
9249   shlibpath_overrides_runpath=yes
9250   hardcode_into_libs=yes
9251   ;;
9252
9253 newsos6)
9254   version_type=linux
9255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256   shlibpath_var=LD_LIBRARY_PATH
9257   shlibpath_overrides_runpath=yes
9258   ;;
9259
9260 nto-qnx*)
9261   version_type=linux
9262   need_lib_prefix=no
9263   need_version=no
9264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265   soname_spec='${libname}${release}${shared_ext}$major'
9266   shlibpath_var=LD_LIBRARY_PATH
9267   shlibpath_overrides_runpath=yes
9268   ;;
9269
9270 openbsd*)
9271   version_type=sunos
9272   sys_lib_dlsearch_path_spec="/usr/lib"
9273   need_lib_prefix=no
9274   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9275   case $host_os in
9276     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9277     *)                         need_version=no  ;;
9278   esac
9279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9280   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9281   shlibpath_var=LD_LIBRARY_PATH
9282   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9283     case $host_os in
9284       openbsd2.[89] | openbsd2.[89].*)
9285         shlibpath_overrides_runpath=no
9286         ;;
9287       *)
9288         shlibpath_overrides_runpath=yes
9289         ;;
9290       esac
9291   else
9292     shlibpath_overrides_runpath=yes
9293   fi
9294   ;;
9295
9296 os2*)
9297   libname_spec='$name'
9298   shrext_cmds=".dll"
9299   need_lib_prefix=no
9300   library_names_spec='$libname${shared_ext} $libname.a'
9301   dynamic_linker='OS/2 ld.exe'
9302   shlibpath_var=LIBPATH
9303   ;;
9304
9305 osf3* | osf4* | osf5*)
9306   version_type=osf
9307   need_lib_prefix=no
9308   need_version=no
9309   soname_spec='${libname}${release}${shared_ext}$major'
9310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311   shlibpath_var=LD_LIBRARY_PATH
9312   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9313   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9314   ;;
9315
9316 solaris*)
9317   version_type=linux
9318   need_lib_prefix=no
9319   need_version=no
9320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321   soname_spec='${libname}${release}${shared_ext}$major'
9322   shlibpath_var=LD_LIBRARY_PATH
9323   shlibpath_overrides_runpath=yes
9324   hardcode_into_libs=yes
9325   # ldd complains unless libraries are executable
9326   postinstall_cmds='chmod +x $lib'
9327   ;;
9328
9329 sunos4*)
9330   version_type=sunos
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9332   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9333   shlibpath_var=LD_LIBRARY_PATH
9334   shlibpath_overrides_runpath=yes
9335   if test "$with_gnu_ld" = yes; then
9336     need_lib_prefix=no
9337   fi
9338   need_version=yes
9339   ;;
9340
9341 sysv4 | sysv4.3*)
9342   version_type=linux
9343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344   soname_spec='${libname}${release}${shared_ext}$major'
9345   shlibpath_var=LD_LIBRARY_PATH
9346   case $host_vendor in
9347     sni)
9348       shlibpath_overrides_runpath=no
9349       need_lib_prefix=no
9350       export_dynamic_flag_spec='${wl}-Blargedynsym'
9351       runpath_var=LD_RUN_PATH
9352       ;;
9353     siemens)
9354       need_lib_prefix=no
9355       ;;
9356     motorola)
9357       need_lib_prefix=no
9358       need_version=no
9359       shlibpath_overrides_runpath=no
9360       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9361       ;;
9362   esac
9363   ;;
9364
9365 sysv4*MP*)
9366   if test -d /usr/nec ;then
9367     version_type=linux
9368     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9369     soname_spec='$libname${shared_ext}.$major'
9370     shlibpath_var=LD_LIBRARY_PATH
9371   fi
9372   ;;
9373
9374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9375   version_type=freebsd-elf
9376   need_lib_prefix=no
9377   need_version=no
9378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9379   soname_spec='${libname}${release}${shared_ext}$major'
9380   shlibpath_var=LD_LIBRARY_PATH
9381   hardcode_into_libs=yes
9382   if test "$with_gnu_ld" = yes; then
9383     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9384     shlibpath_overrides_runpath=no
9385   else
9386     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9387     shlibpath_overrides_runpath=yes
9388     case $host_os in
9389       sco3.2v5*)
9390         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9391         ;;
9392     esac
9393   fi
9394   sys_lib_dlsearch_path_spec='/usr/lib'
9395   ;;
9396
9397 uts4*)
9398   version_type=linux
9399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400   soname_spec='${libname}${release}${shared_ext}$major'
9401   shlibpath_var=LD_LIBRARY_PATH
9402   ;;
9403
9404 *)
9405   dynamic_linker=no
9406   ;;
9407 esac
9408 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9409 echo "${ECHO_T}$dynamic_linker" >&6; }
9410 test "$dynamic_linker" = no && can_build_shared=no
9411
9412 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9413 if test "$GCC" = yes; then
9414   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9415 fi
9416
9417
9418 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9419 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9420 if test "${libltdl_cv_shlibext+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423
9424 module=yes
9425 eval libltdl_cv_shlibext=$shrext_cmds
9426
9427 fi
9428 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9429 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9430 if test -n "$libltdl_cv_shlibext"; then
9431
9432 cat >>confdefs.h <<_ACEOF
9433 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9434 _ACEOF
9435
9436 fi
9437
9438
9439 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9440 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9441 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   libltdl_cv_shlibpath_var="$shlibpath_var"
9445 fi
9446 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9447 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9448 if test -n "$libltdl_cv_shlibpath_var"; then
9449
9450 cat >>confdefs.h <<_ACEOF
9451 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9452 _ACEOF
9453
9454 fi
9455
9456
9457 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9458 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9459 if test "${libltdl_cv_sys_search_path+set}" = set; then
9460   echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9463 fi
9464 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9465 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9466 if test -n "$libltdl_cv_sys_search_path"; then
9467   sys_search_path=
9468   for dir in $libltdl_cv_sys_search_path; do
9469     if test -z "$sys_search_path"; then
9470       sys_search_path="$dir"
9471     else
9472       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9473     fi
9474   done
9475
9476 cat >>confdefs.h <<_ACEOF
9477 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9478 _ACEOF
9479
9480 fi
9481
9482 { echo "$as_me:$LINENO: checking for objdir" >&5
9483 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9484 if test "${libltdl_cv_objdir+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   libltdl_cv_objdir="$objdir"
9488   if test -n "$objdir"; then
9489     :
9490   else
9491     rm -f .libs 2>/dev/null
9492     mkdir .libs 2>/dev/null
9493     if test -d .libs; then
9494       libltdl_cv_objdir=.libs
9495     else
9496       # MS-DOS does not allow filenames that begin with a dot.
9497       libltdl_cv_objdir=_libs
9498     fi
9499   rmdir .libs 2>/dev/null
9500   fi
9501
9502 fi
9503 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9504 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9505
9506 cat >>confdefs.h <<_ACEOF
9507 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9508 _ACEOF
9509
9510
9511
9512
9513
9514
9515 # Check for command to grab the raw symbol name followed by C symbol from nm.
9516 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9517 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9518 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521
9522 # These are sane defaults that work on at least a few old systems.
9523 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9524
9525 # Character class describing NM global symbol codes.
9526 symcode='[BCDEGRST]'
9527
9528 # Regexp to match symbols that can be accessed directly from C.
9529 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9530
9531 # Transform an extracted symbol line into a proper C declaration
9532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9533
9534 # Transform an extracted symbol line into symbol name and symbol address
9535 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'"
9536
9537 # Define system-specific variables.
9538 case $host_os in
9539 aix*)
9540   symcode='[BCDT]'
9541   ;;
9542 cygwin* | mingw* | pw32*)
9543   symcode='[ABCDGISTW]'
9544   ;;
9545 hpux*) # Its linker distinguishes data from code symbols
9546   if test "$host_cpu" = ia64; then
9547     symcode='[ABCDEGRST]'
9548   fi
9549   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9550   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'"
9551   ;;
9552 linux*)
9553   if test "$host_cpu" = ia64; then
9554     symcode='[ABCDGIRSTW]'
9555     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9556     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'"
9557   fi
9558   ;;
9559 irix* | nonstopux*)
9560   symcode='[BCDEGRST]'
9561   ;;
9562 osf*)
9563   symcode='[BCDEGQRST]'
9564   ;;
9565 solaris*)
9566   symcode='[BDRT]'
9567   ;;
9568 sco3.2v5*)
9569   symcode='[DT]'
9570   ;;
9571 sysv4.2uw2*)
9572   symcode='[DT]'
9573   ;;
9574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9575   symcode='[ABDT]'
9576   ;;
9577 sysv4)
9578   symcode='[DFNSTU]'
9579   ;;
9580 esac
9581
9582 # Handle CRLF in mingw tool chain
9583 opt_cr=
9584 case $build_os in
9585 mingw*)
9586   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9587   ;;
9588 esac
9589
9590 # If we're using GNU nm, then use its standard symbol codes.
9591 case `$NM -V 2>&1` in
9592 *GNU* | *'with BFD'*)
9593   symcode='[ABCDGIRSTW]' ;;
9594 esac
9595
9596 # Try without a prefix undercore, then with it.
9597 for ac_symprfx in "" "_"; do
9598
9599   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9600   symxfrm="\\1 $ac_symprfx\\2 \\2"
9601
9602   # Write the raw and C identifiers.
9603   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9604
9605   # Check to see that the pipe works correctly.
9606   pipe_works=no
9607
9608   rm -f conftest*
9609   cat > conftest.$ac_ext <<EOF
9610 #ifdef __cplusplus
9611 extern "C" {
9612 #endif
9613 char nm_test_var;
9614 void nm_test_func(){}
9615 #ifdef __cplusplus
9616 }
9617 #endif
9618 int main(){nm_test_var='a';nm_test_func();return(0);}
9619 EOF
9620
9621   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622   (eval $ac_compile) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; then
9626     # Now try to grab the symbols.
9627     nlist=conftest.nm
9628     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9629   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } && test -s "$nlist"; then
9633       # Try sorting and uniquifying the output.
9634       if sort "$nlist" | uniq > "$nlist"T; then
9635         mv -f "$nlist"T "$nlist"
9636       else
9637         rm -f "$nlist"T
9638       fi
9639
9640       # Make sure that we snagged all the symbols we need.
9641       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9642         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9643           cat <<EOF > conftest.$ac_ext
9644 #ifdef __cplusplus
9645 extern "C" {
9646 #endif
9647
9648 EOF
9649           # Now generate the symbol file.
9650           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9651
9652           cat <<EOF >> conftest.$ac_ext
9653 #if defined (__STDC__) && __STDC__
9654 # define lt_ptr_t void *
9655 #else
9656 # define lt_ptr_t char *
9657 # define const
9658 #endif
9659
9660 /* The mapping between symbol names and symbols. */
9661 const struct {
9662   const char *name;
9663   lt_ptr_t address;
9664 }
9665 lt_preloaded_symbols[] =
9666 {
9667 EOF
9668           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9669           cat <<\EOF >> conftest.$ac_ext
9670   {0, (lt_ptr_t) 0}
9671 };
9672
9673 #ifdef __cplusplus
9674 }
9675 #endif
9676 EOF
9677           # Now try linking the two files.
9678           mv conftest.$ac_objext conftstm.$ac_objext
9679           lt_save_LIBS="$LIBS"
9680           lt_save_CFLAGS="$CFLAGS"
9681           LIBS="conftstm.$ac_objext"
9682           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9683           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9684   (eval $ac_link) 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9688             pipe_works=yes
9689           fi
9690           LIBS="$lt_save_LIBS"
9691           CFLAGS="$lt_save_CFLAGS"
9692         else
9693           echo "cannot find nm_test_func in $nlist" >&5
9694         fi
9695       else
9696         echo "cannot find nm_test_var in $nlist" >&5
9697       fi
9698     else
9699       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9700     fi
9701   else
9702     echo "$progname: failed program was:" >&5
9703     cat conftest.$ac_ext >&5
9704   fi
9705   rm -f conftest* conftst*
9706
9707   # Do not use the global_symbol_pipe unless it works.
9708   if test "$pipe_works" = yes; then
9709     break
9710   else
9711     lt_cv_sys_global_symbol_pipe=
9712   fi
9713 done
9714
9715 fi
9716
9717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9718   lt_cv_sys_global_symbol_to_cdecl=
9719 fi
9720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9721   { echo "$as_me:$LINENO: result: failed" >&5
9722 echo "${ECHO_T}failed" >&6; }
9723 else
9724   { echo "$as_me:$LINENO: result: ok" >&5
9725 echo "${ECHO_T}ok" >&6; }
9726 fi
9727
9728
9729 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9730 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9731 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9735     libltdl_cv_preloaded_symbols=yes
9736   else
9737     libltdl_cv_preloaded_symbols=no
9738   fi
9739
9740 fi
9741 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9742 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9743 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9744
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_PRELOADED_SYMBOLS 1
9747 _ACEOF
9748
9749 fi
9750
9751 LIBADD_DL=
9752
9753 ac_ext=c
9754 ac_cpp='$CPP $CPPFLAGS'
9755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9758
9759
9760 { echo "$as_me:$LINENO: checking for shl_load" >&5
9761 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9762 if test "${ac_cv_func_shl_load+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h.  */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h.  */
9771 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9773 #define shl_load innocuous_shl_load
9774
9775 /* System header to define __stub macros and hopefully few prototypes,
9776     which can conflict with char shl_load (); below.
9777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9778     <limits.h> exists even on freestanding compilers.  */
9779
9780 #ifdef __STDC__
9781 # include <limits.h>
9782 #else
9783 # include <assert.h>
9784 #endif
9785
9786 #undef shl_load
9787
9788 /* Override any GCC internal prototype to avoid an error.
9789    Use char because int might match the return type of a GCC
9790    builtin and then its argument prototype would still apply.  */
9791 #ifdef __cplusplus
9792 extern "C"
9793 #endif
9794 char shl_load ();
9795 /* The GNU C library defines this for functions which it implements
9796     to always fail with ENOSYS.  Some functions are actually named
9797     something starting with __ and the normal name is an alias.  */
9798 #if defined __stub_shl_load || defined __stub___shl_load
9799 choke me
9800 #endif
9801
9802 int
9803 main ()
9804 {
9805 return shl_load ();
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9812 case "(($ac_try" in
9813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814   *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817   (eval "$ac_link") 2>conftest.er1
9818   ac_status=$?
9819   grep -v '^ *+' conftest.er1 >conftest.err
9820   rm -f conftest.er1
9821   cat conftest.err >&5
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); } &&
9824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9825   { (case "(($ac_try" in
9826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827   *) ac_try_echo=$ac_try;;
9828 esac
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830   (eval "$ac_try") 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; } &&
9834          { ac_try='test -s conftest$ac_exeext'
9835   { (case "(($ac_try" in
9836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837   *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840   (eval "$ac_try") 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; }; then
9844   ac_cv_func_shl_load=yes
9845 else
9846   echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9848
9849         ac_cv_func_shl_load=no
9850 fi
9851
9852 rm -f core conftest.err conftest.$ac_objext \
9853       conftest$ac_exeext conftest.$ac_ext
9854 fi
9855 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9856 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9857 if test $ac_cv_func_shl_load = yes; then
9858
9859 cat >>confdefs.h <<\_ACEOF
9860 #define HAVE_SHL_LOAD 1
9861 _ACEOF
9862
9863 else
9864   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9865 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9866 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   ac_check_lib_save_LIBS=$LIBS
9870 LIBS="-ldld  $LIBS"
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h.  */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h.  */
9877
9878 /* Override any GCC internal prototype to avoid an error.
9879    Use char because int might match the return type of a GCC
9880    builtin and then its argument prototype would still apply.  */
9881 #ifdef __cplusplus
9882 extern "C"
9883 #endif
9884 char shl_load ();
9885 int
9886 main ()
9887 {
9888 return shl_load ();
9889   ;
9890   return 0;
9891 }
9892 _ACEOF
9893 rm -f conftest.$ac_objext conftest$ac_exeext
9894 if { (ac_try="$ac_link"
9895 case "(($ac_try" in
9896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897   *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900   (eval "$ac_link") 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } &&
9907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9908   { (case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913   (eval "$ac_try") 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; } &&
9917          { ac_try='test -s conftest$ac_exeext'
9918   { (case "(($ac_try" in
9919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920   *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923   (eval "$ac_try") 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_cv_lib_dld_shl_load=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932         ac_cv_lib_dld_shl_load=no
9933 fi
9934
9935 rm -f core conftest.err conftest.$ac_objext \
9936       conftest$ac_exeext conftest.$ac_ext
9937 LIBS=$ac_check_lib_save_LIBS
9938 fi
9939 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9940 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9941 if test $ac_cv_lib_dld_shl_load = yes; then
9942
9943 cat >>confdefs.h <<\_ACEOF
9944 #define HAVE_SHL_LOAD 1
9945 _ACEOF
9946
9947         LIBADD_DL="$LIBADD_DL -ldld"
9948 else
9949   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9950 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954   ac_check_lib_save_LIBS=$LIBS
9955 LIBS="-ldl  $LIBS"
9956 cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h.  */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h.  */
9962
9963 /* Override any GCC internal prototype to avoid an error.
9964    Use char because int might match the return type of a GCC
9965    builtin and then its argument prototype would still apply.  */
9966 #ifdef __cplusplus
9967 extern "C"
9968 #endif
9969 char dlopen ();
9970 int
9971 main ()
9972 {
9973 return dlopen ();
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (ac_try="$ac_link"
9980 case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_link") 2>conftest.er1
9986   ac_status=$?
9987   grep -v '^ *+' conftest.er1 >conftest.err
9988   rm -f conftest.er1
9989   cat conftest.err >&5
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } &&
9992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9993   { (case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998   (eval "$ac_try") 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; } &&
10002          { ac_try='test -s conftest$ac_exeext'
10003   { (case "(($ac_try" in
10004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005   *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008   (eval "$ac_try") 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); }; }; then
10012   ac_cv_lib_dl_dlopen=yes
10013 else
10014   echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017         ac_cv_lib_dl_dlopen=no
10018 fi
10019
10020 rm -f core conftest.err conftest.$ac_objext \
10021       conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10023 fi
10024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10026 if test $ac_cv_lib_dl_dlopen = yes; then
10027
10028 cat >>confdefs.h <<\_ACEOF
10029 #define HAVE_LIBDL 1
10030 _ACEOF
10031
10032                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10033 else
10034   cat >conftest.$ac_ext <<_ACEOF
10035 /* confdefs.h.  */
10036 _ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h.  */
10040 #if HAVE_DLFCN_H
10041 #  include <dlfcn.h>
10042 #endif
10043
10044 int
10045 main ()
10046 {
10047 dlopen(0, 0);
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (ac_try="$ac_link"
10054 case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059   (eval "$ac_link") 2>conftest.er1
10060   ac_status=$?
10061   grep -v '^ *+' conftest.er1 >conftest.err
10062   rm -f conftest.er1
10063   cat conftest.err >&5
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } &&
10066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10067   { (case "(($ac_try" in
10068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069   *) ac_try_echo=$ac_try;;
10070 esac
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072   (eval "$ac_try") 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; } &&
10076          { ac_try='test -s conftest$ac_exeext'
10077   { (case "(($ac_try" in
10078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079   *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082   (eval "$ac_try") 2>&5
10083   ac_status=$?
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); }; }; then
10086
10087 cat >>confdefs.h <<\_ACEOF
10088 #define HAVE_LIBDL 1
10089 _ACEOF
10090  libltdl_cv_func_dlopen="yes"
10091 else
10092   echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10094
10095         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10096 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10097 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10098   echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100   ac_check_lib_save_LIBS=$LIBS
10101 LIBS="-lsvld  $LIBS"
10102 cat >conftest.$ac_ext <<_ACEOF
10103 /* confdefs.h.  */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h.  */
10108
10109 /* Override any GCC internal prototype to avoid an error.
10110    Use char because int might match the return type of a GCC
10111    builtin and then its argument prototype would still apply.  */
10112 #ifdef __cplusplus
10113 extern "C"
10114 #endif
10115 char dlopen ();
10116 int
10117 main ()
10118 {
10119 return dlopen ();
10120   ;
10121   return 0;
10122 }
10123 _ACEOF
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (ac_try="$ac_link"
10126 case "(($ac_try" in
10127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128   *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131   (eval "$ac_link") 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } &&
10138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139   { (case "(($ac_try" in
10140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141   *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144   (eval "$ac_try") 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; } &&
10148          { ac_try='test -s conftest$ac_exeext'
10149   { (case "(($ac_try" in
10150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151   *) ac_try_echo=$ac_try;;
10152 esac
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154   (eval "$ac_try") 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; }; then
10158   ac_cv_lib_svld_dlopen=yes
10159 else
10160   echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163         ac_cv_lib_svld_dlopen=no
10164 fi
10165
10166 rm -f core conftest.err conftest.$ac_objext \
10167       conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10169 fi
10170 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10171 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10172 if test $ac_cv_lib_svld_dlopen = yes; then
10173
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_LIBDL 1
10176 _ACEOF
10177
10178                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10179 else
10180   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10181 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10182 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10183   echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185   ac_check_lib_save_LIBS=$LIBS
10186 LIBS="-ldld  $LIBS"
10187 cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h.  */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h.  */
10193
10194 /* Override any GCC internal prototype to avoid an error.
10195    Use char because int might match the return type of a GCC
10196    builtin and then its argument prototype would still apply.  */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 char dld_link ();
10201 int
10202 main ()
10203 {
10204 return dld_link ();
10205   ;
10206   return 0;
10207 }
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (ac_try="$ac_link"
10211 case "(($ac_try" in
10212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213   *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216   (eval "$ac_link") 2>conftest.er1
10217   ac_status=$?
10218   grep -v '^ *+' conftest.er1 >conftest.err
10219   rm -f conftest.er1
10220   cat conftest.err >&5
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } &&
10223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10224   { (case "(($ac_try" in
10225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226   *) ac_try_echo=$ac_try;;
10227 esac
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229   (eval "$ac_try") 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); }; } &&
10233          { ac_try='test -s conftest$ac_exeext'
10234   { (case "(($ac_try" in
10235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236   *) ac_try_echo=$ac_try;;
10237 esac
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239   (eval "$ac_try") 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; }; then
10243   ac_cv_lib_dld_dld_link=yes
10244 else
10245   echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248         ac_cv_lib_dld_dld_link=no
10249 fi
10250
10251 rm -f core conftest.err conftest.$ac_objext \
10252       conftest$ac_exeext conftest.$ac_ext
10253 LIBS=$ac_check_lib_save_LIBS
10254 fi
10255 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10256 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10257 if test $ac_cv_lib_dld_dld_link = yes; then
10258
10259 cat >>confdefs.h <<\_ACEOF
10260 #define HAVE_DLD 1
10261 _ACEOF
10262
10263                 LIBADD_DL="$LIBADD_DL -ldld"
10264 else
10265   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10266 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10267 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h.  */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h.  */
10276 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10278 #define _dyld_func_lookup innocuous__dyld_func_lookup
10279
10280 /* System header to define __stub macros and hopefully few prototypes,
10281     which can conflict with char _dyld_func_lookup (); below.
10282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10283     <limits.h> exists even on freestanding compilers.  */
10284
10285 #ifdef __STDC__
10286 # include <limits.h>
10287 #else
10288 # include <assert.h>
10289 #endif
10290
10291 #undef _dyld_func_lookup
10292
10293 /* Override any GCC internal prototype to avoid an error.
10294    Use char because int might match the return type of a GCC
10295    builtin and then its argument prototype would still apply.  */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char _dyld_func_lookup ();
10300 /* The GNU C library defines this for functions which it implements
10301     to always fail with ENOSYS.  Some functions are actually named
10302     something starting with __ and the normal name is an alias.  */
10303 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10304 choke me
10305 #endif
10306
10307 int
10308 main ()
10309 {
10310 return _dyld_func_lookup ();
10311   ;
10312   return 0;
10313 }
10314 _ACEOF
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (ac_try="$ac_link"
10317 case "(($ac_try" in
10318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319   *) ac_try_echo=$ac_try;;
10320 esac
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322   (eval "$ac_link") 2>conftest.er1
10323   ac_status=$?
10324   grep -v '^ *+' conftest.er1 >conftest.err
10325   rm -f conftest.er1
10326   cat conftest.err >&5
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); } &&
10329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10330   { (case "(($ac_try" in
10331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332   *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335   (eval "$ac_try") 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); }; } &&
10339          { ac_try='test -s conftest$ac_exeext'
10340   { (case "(($ac_try" in
10341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342   *) ac_try_echo=$ac_try;;
10343 esac
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345   (eval "$ac_try") 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); }; }; then
10349   ac_cv_func__dyld_func_lookup=yes
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354         ac_cv_func__dyld_func_lookup=no
10355 fi
10356
10357 rm -f core conftest.err conftest.$ac_objext \
10358       conftest$ac_exeext conftest.$ac_ext
10359 fi
10360 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10361 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10362 if test $ac_cv_func__dyld_func_lookup = yes; then
10363
10364 cat >>confdefs.h <<\_ACEOF
10365 #define HAVE_DYLD 1
10366 _ACEOF
10367
10368 fi
10369
10370
10371 fi
10372
10373
10374 fi
10375
10376
10377 fi
10378
10379 rm -f core conftest.err conftest.$ac_objext \
10380       conftest$ac_exeext conftest.$ac_ext
10381
10382 fi
10383
10384
10385 fi
10386
10387
10388 fi
10389
10390
10391 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10392 then
10393   lt_save_LIBS="$LIBS"
10394   LIBS="$LIBS $LIBADD_DL"
10395
10396 for ac_func in dlerror
10397 do
10398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404   cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10412 #define $ac_func innocuous_$ac_func
10413
10414 /* System header to define __stub macros and hopefully few prototypes,
10415     which can conflict with char $ac_func (); below.
10416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10417     <limits.h> exists even on freestanding compilers.  */
10418
10419 #ifdef __STDC__
10420 # include <limits.h>
10421 #else
10422 # include <assert.h>
10423 #endif
10424
10425 #undef $ac_func
10426
10427 /* Override any GCC internal prototype to avoid an error.
10428    Use char because int might match the return type of a GCC
10429    builtin and then its argument prototype would still apply.  */
10430 #ifdef __cplusplus
10431 extern "C"
10432 #endif
10433 char $ac_func ();
10434 /* The GNU C library defines this for functions which it implements
10435     to always fail with ENOSYS.  Some functions are actually named
10436     something starting with __ and the normal name is an alias.  */
10437 #if defined __stub_$ac_func || defined __stub___$ac_func
10438 choke me
10439 #endif
10440
10441 int
10442 main ()
10443 {
10444 return $ac_func ();
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453   *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456   (eval "$ac_link") 2>conftest.er1
10457   ac_status=$?
10458   grep -v '^ *+' conftest.er1 >conftest.err
10459   rm -f conftest.er1
10460   cat conftest.err >&5
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); } &&
10463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10464   { (case "(($ac_try" in
10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466   *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469   (eval "$ac_try") 2>&5
10470   ac_status=$?
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); }; } &&
10473          { ac_try='test -s conftest$ac_exeext'
10474   { (case "(($ac_try" in
10475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476   *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479   (eval "$ac_try") 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); }; }; then
10483   eval "$as_ac_var=yes"
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488         eval "$as_ac_var=no"
10489 fi
10490
10491 rm -f core conftest.err conftest.$ac_objext \
10492       conftest$ac_exeext conftest.$ac_ext
10493 fi
10494 ac_res=`eval echo '${'$as_ac_var'}'`
10495                { echo "$as_me:$LINENO: result: $ac_res" >&5
10496 echo "${ECHO_T}$ac_res" >&6; }
10497 if test `eval echo '${'$as_ac_var'}'` = yes; then
10498   cat >>confdefs.h <<_ACEOF
10499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10500 _ACEOF
10501
10502 fi
10503 done
10504
10505   LIBS="$lt_save_LIBS"
10506 fi
10507 ac_ext=c
10508 ac_cpp='$CPP $CPPFLAGS'
10509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512
10513
10514
10515 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10516 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10517 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   ac_cv_sys_symbol_underscore=no
10521   cat > conftest.$ac_ext <<EOF
10522 void nm_test_func(){}
10523 int main(){nm_test_func;return 0;}
10524 EOF
10525   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526   (eval $ac_compile) 2>&5
10527   ac_status=$?
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); }; then
10530     # Now try to grab the symbols.
10531     ac_nlist=conftest.nm
10532     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10533   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } && test -s "$ac_nlist"; then
10537       # See whether the symbols have a leading underscore.
10538       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10539         ac_cv_sys_symbol_underscore=yes
10540       else
10541         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10542           :
10543         else
10544           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10545         fi
10546       fi
10547     else
10548       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10549     fi
10550   else
10551     echo "configure: failed program was:" >&5
10552     cat conftest.c >&5
10553   fi
10554   rm -rf conftest*
10555
10556 fi
10557 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10558 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10559
10560
10561 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10562   if test x"$libltdl_cv_func_dlopen" = xyes ||
10563      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10564         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10565 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10566 if test "${libltdl_cv_need_uscore+set}" = set; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569   libltdl_cv_need_uscore=unknown
10570           save_LIBS="$LIBS"
10571           LIBS="$LIBS $LIBADD_DL"
10572           if test "$cross_compiling" = yes; then :
10573   libltdl_cv_need_uscore=cross
10574 else
10575   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10576   lt_status=$lt_dlunknown
10577   cat > conftest.$ac_ext <<EOF
10578 #line 10578 "configure"
10579 #include "confdefs.h"
10580
10581 #if HAVE_DLFCN_H
10582 #include <dlfcn.h>
10583 #endif
10584
10585 #include <stdio.h>
10586
10587 #ifdef RTLD_GLOBAL
10588 #  define LT_DLGLOBAL           RTLD_GLOBAL
10589 #else
10590 #  ifdef DL_GLOBAL
10591 #    define LT_DLGLOBAL         DL_GLOBAL
10592 #  else
10593 #    define LT_DLGLOBAL         0
10594 #  endif
10595 #endif
10596
10597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10598    find out it does not work in some platform. */
10599 #ifndef LT_DLLAZY_OR_NOW
10600 #  ifdef RTLD_LAZY
10601 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10602 #  else
10603 #    ifdef DL_LAZY
10604 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10605 #    else
10606 #      ifdef RTLD_NOW
10607 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10608 #      else
10609 #        ifdef DL_NOW
10610 #          define LT_DLLAZY_OR_NOW      DL_NOW
10611 #        else
10612 #          define LT_DLLAZY_OR_NOW      0
10613 #        endif
10614 #      endif
10615 #    endif
10616 #  endif
10617 #endif
10618
10619 #ifdef __cplusplus
10620 extern "C" void exit (int);
10621 #endif
10622
10623 void fnord() { int i=42;}
10624 int main ()
10625 {
10626   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10627   int status = $lt_dlunknown;
10628
10629   if (self)
10630     {
10631       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10632       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10633       /* dlclose (self); */
10634     }
10635   else
10636     puts (dlerror ());
10637
10638     exit (status);
10639 }
10640 EOF
10641   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642   (eval $ac_link) 2>&5
10643   ac_status=$?
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10646     (./conftest; exit; ) >&5 2>/dev/null
10647     lt_status=$?
10648     case x$lt_status in
10649       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10650       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10651       x$lt_dlunknown|x*)  ;;
10652     esac
10653   else :
10654     # compilation failed
10655
10656   fi
10657 fi
10658 rm -fr conftest*
10659
10660           LIBS="$save_LIBS"
10661
10662 fi
10663 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10664 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10665   fi
10666 fi
10667
10668 if test x"$libltdl_cv_need_uscore" = xyes; then
10669
10670 cat >>confdefs.h <<\_ACEOF
10671 #define NEED_USCORE 1
10672 _ACEOF
10673
10674 fi
10675
10676
10677 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10678 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10679 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   # PORTME does your system automatically load deplibs for dlopen?
10683   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10684   # For now, we just catch OSes we know something about -- in the
10685   # future, we'll try test this programmatically.
10686   libltdl_cv_sys_dlopen_deplibs=unknown
10687   case "$host_os" in
10688   aix3*|aix4.1.*|aix4.2.*)
10689     # Unknown whether this is true for these versions of AIX, but
10690     # we want this `case' here to explicitly catch those versions.
10691     libltdl_cv_sys_dlopen_deplibs=unknown
10692     ;;
10693   aix[45]*)
10694     libltdl_cv_sys_dlopen_deplibs=yes
10695     ;;
10696   darwin*)
10697     # Assuming the user has installed a libdl from somewhere, this is true
10698     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10699     libltdl_cv_sys_dlopen_deplibs=yes
10700     ;;
10701   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10702     # GNU and its variants, using gnu ld.so (Glibc)
10703     libltdl_cv_sys_dlopen_deplibs=yes
10704     ;;
10705   hpux10*|hpux11*)
10706     libltdl_cv_sys_dlopen_deplibs=yes
10707     ;;
10708   interix*)
10709     libltdl_cv_sys_dlopen_deplibs=yes
10710     ;;
10711   irix[12345]*|irix6.[01]*)
10712     # Catch all versions of IRIX before 6.2, and indicate that we don't
10713     # know how it worked for any of those versions.
10714     libltdl_cv_sys_dlopen_deplibs=unknown
10715     ;;
10716   irix*)
10717     # The case above catches anything before 6.2, and it's known that
10718     # at 6.2 and later dlopen does load deplibs.
10719     libltdl_cv_sys_dlopen_deplibs=yes
10720     ;;
10721   netbsd*)
10722     libltdl_cv_sys_dlopen_deplibs=yes
10723     ;;
10724   openbsd*)
10725     libltdl_cv_sys_dlopen_deplibs=yes
10726     ;;
10727   osf[1234]*)
10728     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10729     # it did *not* use an RPATH in a shared library to find objects the
10730     # library depends on, so we explictly say `no'.
10731     libltdl_cv_sys_dlopen_deplibs=no
10732     ;;
10733   osf5.0|osf5.0a|osf5.1)
10734     # dlopen *does* load deplibs and with the right loader patch applied
10735     # it even uses RPATH in a shared library to search for shared objects
10736     # that the library depends on, but there's no easy way to know if that
10737     # patch is installed.  Since this is the case, all we can really
10738     # say is unknown -- it depends on the patch being installed.  If
10739     # it is, this changes to `yes'.  Without it, it would be `no'.
10740     libltdl_cv_sys_dlopen_deplibs=unknown
10741     ;;
10742   osf*)
10743     # the two cases above should catch all versions of osf <= 5.1.  Read
10744     # the comments above for what we know about them.
10745     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10746     # is used to find them so we can finally say `yes'.
10747     libltdl_cv_sys_dlopen_deplibs=yes
10748     ;;
10749   solaris*)
10750     libltdl_cv_sys_dlopen_deplibs=yes
10751     ;;
10752   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10753     libltdl_cv_sys_dlopen_deplibs=yes
10754     ;;
10755   esac
10756
10757 fi
10758 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10759 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10760 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10761
10762 cat >>confdefs.h <<\_ACEOF
10763 #define LTDL_DLOPEN_DEPLIBS 1
10764 _ACEOF
10765
10766 fi
10767
10768
10769 for ac_header in argz.h
10770 do
10771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10773   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 fi
10778 ac_res=`eval echo '${'$as_ac_Header'}'`
10779                { echo "$as_me:$LINENO: result: $ac_res" >&5
10780 echo "${ECHO_T}$ac_res" >&6; }
10781 else
10782   # Is the header compilable?
10783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h.  */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h.  */
10791 $ac_includes_default
10792 #include <$ac_header>
10793 _ACEOF
10794 rm -f conftest.$ac_objext
10795 if { (ac_try="$ac_compile"
10796 case "(($ac_try" in
10797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798   *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801   (eval "$ac_compile") 2>conftest.er1
10802   ac_status=$?
10803   grep -v '^ *+' conftest.er1 >conftest.err
10804   rm -f conftest.er1
10805   cat conftest.err >&5
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); } &&
10808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10809   { (case "(($ac_try" in
10810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811   *) ac_try_echo=$ac_try;;
10812 esac
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814   (eval "$ac_try") 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); }; } &&
10818          { ac_try='test -s conftest.$ac_objext'
10819   { (case "(($ac_try" in
10820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821   *) ac_try_echo=$ac_try;;
10822 esac
10823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824   (eval "$ac_try") 2>&5
10825   ac_status=$?
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); }; }; then
10828   ac_header_compiler=yes
10829 else
10830   echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10832
10833         ac_header_compiler=no
10834 fi
10835
10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10838 echo "${ECHO_T}$ac_header_compiler" >&6; }
10839
10840 # Is the header present?
10841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849 #include <$ac_header>
10850 _ACEOF
10851 if { (ac_try="$ac_cpp conftest.$ac_ext"
10852 case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } >/dev/null; then
10864   if test -s conftest.err; then
10865     ac_cpp_err=$ac_c_preproc_warn_flag
10866     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10867   else
10868     ac_cpp_err=
10869   fi
10870 else
10871   ac_cpp_err=yes
10872 fi
10873 if test -z "$ac_cpp_err"; then
10874   ac_header_preproc=yes
10875 else
10876   echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879   ac_header_preproc=no
10880 fi
10881
10882 rm -f conftest.err conftest.$ac_ext
10883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10884 echo "${ECHO_T}$ac_header_preproc" >&6; }
10885
10886 # So?  What about this header?
10887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10888   yes:no: )
10889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10893     ac_header_preproc=yes
10894     ;;
10895   no:yes:* )
10896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10908     ( cat <<\_ASBOX
10909 ## ----------------------------------- ##
10910 ## Report this to llvmbugs@cs.uiuc.edu ##
10911 ## ----------------------------------- ##
10912 _ASBOX
10913      ) | sed "s/^/$as_me: WARNING:     /" >&2
10914     ;;
10915 esac
10916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921   eval "$as_ac_Header=\$ac_header_preproc"
10922 fi
10923 ac_res=`eval echo '${'$as_ac_Header'}'`
10924                { echo "$as_me:$LINENO: result: $ac_res" >&5
10925 echo "${ECHO_T}$ac_res" >&6; }
10926
10927 fi
10928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10929   cat >>confdefs.h <<_ACEOF
10930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10931 _ACEOF
10932
10933 fi
10934
10935 done
10936
10937
10938 { echo "$as_me:$LINENO: checking for error_t" >&5
10939 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10940 if test "${ac_cv_type_error_t+set}" = set; then
10941   echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943   cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h.  */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h.  */
10949 #if HAVE_ARGZ_H
10950 #  include <argz.h>
10951 #endif
10952
10953 typedef error_t ac__type_new_;
10954 int
10955 main ()
10956 {
10957 if ((ac__type_new_ *) 0)
10958   return 0;
10959 if (sizeof (ac__type_new_))
10960   return 0;
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 rm -f conftest.$ac_objext
10966 if { (ac_try="$ac_compile"
10967 case "(($ac_try" in
10968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969   *) ac_try_echo=$ac_try;;
10970 esac
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972   (eval "$ac_compile") 2>conftest.er1
10973   ac_status=$?
10974   grep -v '^ *+' conftest.er1 >conftest.err
10975   rm -f conftest.er1
10976   cat conftest.err >&5
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); } &&
10979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980   { (case "(($ac_try" in
10981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982   *) ac_try_echo=$ac_try;;
10983 esac
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985   (eval "$ac_try") 2>&5
10986   ac_status=$?
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); }; } &&
10989          { ac_try='test -s conftest.$ac_objext'
10990   { (case "(($ac_try" in
10991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992   *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995   (eval "$ac_try") 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); }; }; then
10999   ac_cv_type_error_t=yes
11000 else
11001   echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004         ac_cv_type_error_t=no
11005 fi
11006
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11008 fi
11009 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11010 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11011 if test $ac_cv_type_error_t = yes; then
11012
11013 cat >>confdefs.h <<_ACEOF
11014 #define HAVE_ERROR_T 1
11015 _ACEOF
11016
11017
11018 else
11019
11020 cat >>confdefs.h <<\_ACEOF
11021 #define error_t int
11022 _ACEOF
11023
11024 fi
11025
11026
11027
11028
11029
11030
11031
11032 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11033 do
11034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040   cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11048 #define $ac_func innocuous_$ac_func
11049
11050 /* System header to define __stub macros and hopefully few prototypes,
11051     which can conflict with char $ac_func (); below.
11052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11053     <limits.h> exists even on freestanding compilers.  */
11054
11055 #ifdef __STDC__
11056 # include <limits.h>
11057 #else
11058 # include <assert.h>
11059 #endif
11060
11061 #undef $ac_func
11062
11063 /* Override any GCC internal prototype to avoid an error.
11064    Use char because int might match the return type of a GCC
11065    builtin and then its argument prototype would still apply.  */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char $ac_func ();
11070 /* The GNU C library defines this for functions which it implements
11071     to always fail with ENOSYS.  Some functions are actually named
11072     something starting with __ and the normal name is an alias.  */
11073 #if defined __stub_$ac_func || defined __stub___$ac_func
11074 choke me
11075 #endif
11076
11077 int
11078 main ()
11079 {
11080 return $ac_func ();
11081   ;
11082   return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089   *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092   (eval "$ac_link") 2>conftest.er1
11093   ac_status=$?
11094   grep -v '^ *+' conftest.er1 >conftest.err
11095   rm -f conftest.er1
11096   cat conftest.err >&5
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); } &&
11099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100   { (case "(($ac_try" in
11101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102   *) ac_try_echo=$ac_try;;
11103 esac
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105   (eval "$ac_try") 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; } &&
11109          { ac_try='test -s conftest$ac_exeext'
11110   { (case "(($ac_try" in
11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112   *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115   (eval "$ac_try") 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   eval "$as_ac_var=yes"
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124         eval "$as_ac_var=no"
11125 fi
11126
11127 rm -f core conftest.err conftest.$ac_objext \
11128       conftest$ac_exeext conftest.$ac_ext
11129 fi
11130 ac_res=`eval echo '${'$as_ac_var'}'`
11131                { echo "$as_me:$LINENO: result: $ac_res" >&5
11132 echo "${ECHO_T}$ac_res" >&6; }
11133 if test `eval echo '${'$as_ac_var'}'` = yes; then
11134   cat >>confdefs.h <<_ACEOF
11135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11136 _ACEOF
11137
11138 fi
11139 done
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11169                   stdio.h unistd.h
11170 do
11171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11173   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176   echo $ECHO_N "(cached) $ECHO_C" >&6
11177 fi
11178 ac_res=`eval echo '${'$as_ac_Header'}'`
11179                { echo "$as_me:$LINENO: result: $ac_res" >&5
11180 echo "${ECHO_T}$ac_res" >&6; }
11181 else
11182   # Is the header compilable?
11183 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11185 cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h.  */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h.  */
11191 $ac_includes_default
11192 #include <$ac_header>
11193 _ACEOF
11194 rm -f conftest.$ac_objext
11195 if { (ac_try="$ac_compile"
11196 case "(($ac_try" in
11197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198   *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201   (eval "$ac_compile") 2>conftest.er1
11202   ac_status=$?
11203   grep -v '^ *+' conftest.er1 >conftest.err
11204   rm -f conftest.er1
11205   cat conftest.err >&5
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); } &&
11208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11209   { (case "(($ac_try" in
11210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211   *) ac_try_echo=$ac_try;;
11212 esac
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214   (eval "$ac_try") 2>&5
11215   ac_status=$?
11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217   (exit $ac_status); }; } &&
11218          { ac_try='test -s conftest.$ac_objext'
11219   { (case "(($ac_try" in
11220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221   *) ac_try_echo=$ac_try;;
11222 esac
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224   (eval "$ac_try") 2>&5
11225   ac_status=$?
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); }; }; then
11228   ac_header_compiler=yes
11229 else
11230   echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11232
11233         ac_header_compiler=no
11234 fi
11235
11236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11238 echo "${ECHO_T}$ac_header_compiler" >&6; }
11239
11240 # Is the header present?
11241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249 #include <$ac_header>
11250 _ACEOF
11251 if { (ac_try="$ac_cpp conftest.$ac_ext"
11252 case "(($ac_try" in
11253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254   *) ac_try_echo=$ac_try;;
11255 esac
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11258   ac_status=$?
11259   grep -v '^ *+' conftest.er1 >conftest.err
11260   rm -f conftest.er1
11261   cat conftest.err >&5
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); } >/dev/null; then
11264   if test -s conftest.err; then
11265     ac_cpp_err=$ac_c_preproc_warn_flag
11266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11267   else
11268     ac_cpp_err=
11269   fi
11270 else
11271   ac_cpp_err=yes
11272 fi
11273 if test -z "$ac_cpp_err"; then
11274   ac_header_preproc=yes
11275 else
11276   echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11278
11279   ac_header_preproc=no
11280 fi
11281
11282 rm -f conftest.err conftest.$ac_ext
11283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11284 echo "${ECHO_T}$ac_header_preproc" >&6; }
11285
11286 # So?  What about this header?
11287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11288   yes:no: )
11289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11293     ac_header_preproc=yes
11294     ;;
11295   no:yes:* )
11296     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11298     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11299 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11300     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11302     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11303 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11306     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11308     ( cat <<\_ASBOX
11309 ## ----------------------------------- ##
11310 ## Report this to llvmbugs@cs.uiuc.edu ##
11311 ## ----------------------------------- ##
11312 _ASBOX
11313      ) | sed "s/^/$as_me: WARNING:     /" >&2
11314     ;;
11315 esac
11316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319   echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321   eval "$as_ac_Header=\$ac_header_preproc"
11322 fi
11323 ac_res=`eval echo '${'$as_ac_Header'}'`
11324                { echo "$as_me:$LINENO: result: $ac_res" >&5
11325 echo "${ECHO_T}$ac_res" >&6; }
11326
11327 fi
11328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11329   cat >>confdefs.h <<_ACEOF
11330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11331 _ACEOF
11332
11333 fi
11334
11335 done
11336
11337
11338
11339
11340
11341 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11342 do
11343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11345   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11348   echo $ECHO_N "(cached) $ECHO_C" >&6
11349 fi
11350 ac_res=`eval echo '${'$as_ac_Header'}'`
11351                { echo "$as_me:$LINENO: result: $ac_res" >&5
11352 echo "${ECHO_T}$ac_res" >&6; }
11353 else
11354   # Is the header compilable?
11355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11357 cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h.  */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h.  */
11363 $ac_includes_default
11364 #include <$ac_header>
11365 _ACEOF
11366 rm -f conftest.$ac_objext
11367 if { (ac_try="$ac_compile"
11368 case "(($ac_try" in
11369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370   *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373   (eval "$ac_compile") 2>conftest.er1
11374   ac_status=$?
11375   grep -v '^ *+' conftest.er1 >conftest.err
11376   rm -f conftest.er1
11377   cat conftest.err >&5
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); } &&
11380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11381   { (case "(($ac_try" in
11382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383   *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386   (eval "$ac_try") 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); }; } &&
11390          { ac_try='test -s conftest.$ac_objext'
11391   { (case "(($ac_try" in
11392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393   *) ac_try_echo=$ac_try;;
11394 esac
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396   (eval "$ac_try") 2>&5
11397   ac_status=$?
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); }; }; then
11400   ac_header_compiler=yes
11401 else
11402   echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405         ac_header_compiler=no
11406 fi
11407
11408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11410 echo "${ECHO_T}$ac_header_compiler" >&6; }
11411
11412 # Is the header present?
11413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421 #include <$ac_header>
11422 _ACEOF
11423 if { (ac_try="$ac_cpp conftest.$ac_ext"
11424 case "(($ac_try" in
11425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426   *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11430   ac_status=$?
11431   grep -v '^ *+' conftest.er1 >conftest.err
11432   rm -f conftest.er1
11433   cat conftest.err >&5
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); } >/dev/null; then
11436   if test -s conftest.err; then
11437     ac_cpp_err=$ac_c_preproc_warn_flag
11438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11439   else
11440     ac_cpp_err=
11441   fi
11442 else
11443   ac_cpp_err=yes
11444 fi
11445 if test -z "$ac_cpp_err"; then
11446   ac_header_preproc=yes
11447 else
11448   echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11450
11451   ac_header_preproc=no
11452 fi
11453
11454 rm -f conftest.err conftest.$ac_ext
11455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456 echo "${ECHO_T}$ac_header_preproc" >&6; }
11457
11458 # So?  What about this header?
11459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11460   yes:no: )
11461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11465     ac_header_preproc=yes
11466     ;;
11467   no:yes:* )
11468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11470     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11471 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11472     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11474     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11475 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11480     ( cat <<\_ASBOX
11481 ## ----------------------------------- ##
11482 ## Report this to llvmbugs@cs.uiuc.edu ##
11483 ## ----------------------------------- ##
11484 _ASBOX
11485      ) | sed "s/^/$as_me: WARNING:     /" >&2
11486     ;;
11487 esac
11488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491   echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493   eval "$as_ac_Header=\$ac_header_preproc"
11494 fi
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496                { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11498
11499 fi
11500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11501   cat >>confdefs.h <<_ACEOF
11502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11503 _ACEOF
11504
11505 fi
11506
11507 done
11508
11509
11510
11511 for ac_header in string.h strings.h
11512 do
11513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518   echo $ECHO_N "(cached) $ECHO_C" >&6
11519 fi
11520 ac_res=`eval echo '${'$as_ac_Header'}'`
11521                { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11523 else
11524   # Is the header compilable?
11525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h.  */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h.  */
11533 $ac_includes_default
11534 #include <$ac_header>
11535 _ACEOF
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540   *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543   (eval "$ac_compile") 2>conftest.er1
11544   ac_status=$?
11545   grep -v '^ *+' conftest.er1 >conftest.err
11546   rm -f conftest.er1
11547   cat conftest.err >&5
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); } &&
11550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11551   { (case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_try") 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); }; } &&
11560          { ac_try='test -s conftest.$ac_objext'
11561   { (case "(($ac_try" in
11562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563   *) ac_try_echo=$ac_try;;
11564 esac
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566   (eval "$ac_try") 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); }; }; then
11570   ac_header_compiler=yes
11571 else
11572   echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575         ac_header_compiler=no
11576 fi
11577
11578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580 echo "${ECHO_T}$ac_header_compiler" >&6; }
11581
11582 # Is the header present?
11583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h.  */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h.  */
11591 #include <$ac_header>
11592 _ACEOF
11593 if { (ac_try="$ac_cpp conftest.$ac_ext"
11594 case "(($ac_try" in
11595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596   *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } >/dev/null; then
11606   if test -s conftest.err; then
11607     ac_cpp_err=$ac_c_preproc_warn_flag
11608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11609   else
11610     ac_cpp_err=
11611   fi
11612 else
11613   ac_cpp_err=yes
11614 fi
11615 if test -z "$ac_cpp_err"; then
11616   ac_header_preproc=yes
11617 else
11618   echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11620
11621   ac_header_preproc=no
11622 fi
11623
11624 rm -f conftest.err conftest.$ac_ext
11625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11626 echo "${ECHO_T}$ac_header_preproc" >&6; }
11627
11628 # So?  What about this header?
11629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11630   yes:no: )
11631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11635     ac_header_preproc=yes
11636     ;;
11637   no:yes:* )
11638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11650     ( cat <<\_ASBOX
11651 ## ----------------------------------- ##
11652 ## Report this to llvmbugs@cs.uiuc.edu ##
11653 ## ----------------------------------- ##
11654 _ASBOX
11655      ) | sed "s/^/$as_me: WARNING:     /" >&2
11656     ;;
11657 esac
11658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11661   echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663   eval "$as_ac_Header=\$ac_header_preproc"
11664 fi
11665 ac_res=`eval echo '${'$as_ac_Header'}'`
11666                { echo "$as_me:$LINENO: result: $ac_res" >&5
11667 echo "${ECHO_T}$ac_res" >&6; }
11668
11669 fi
11670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11671   cat >>confdefs.h <<_ACEOF
11672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11673 _ACEOF
11674  break
11675 fi
11676
11677 done
11678
11679
11680
11681
11682 for ac_func in strchr index
11683 do
11684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688   echo $ECHO_N "(cached) $ECHO_C" >&6
11689 else
11690   cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h.  */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h.  */
11696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11698 #define $ac_func innocuous_$ac_func
11699
11700 /* System header to define __stub macros and hopefully few prototypes,
11701     which can conflict with char $ac_func (); below.
11702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703     <limits.h> exists even on freestanding compilers.  */
11704
11705 #ifdef __STDC__
11706 # include <limits.h>
11707 #else
11708 # include <assert.h>
11709 #endif
11710
11711 #undef $ac_func
11712
11713 /* Override any GCC internal prototype to avoid an error.
11714    Use char because int might match the return type of a GCC
11715    builtin and then its argument prototype would still apply.  */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char $ac_func ();
11720 /* The GNU C library defines this for functions which it implements
11721     to always fail with ENOSYS.  Some functions are actually named
11722     something starting with __ and the normal name is an alias.  */
11723 #if defined __stub_$ac_func || defined __stub___$ac_func
11724 choke me
11725 #endif
11726
11727 int
11728 main ()
11729 {
11730 return $ac_func ();
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742   (eval "$ac_link") 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } &&
11749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750   { (case "(($ac_try" in
11751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752   *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755   (eval "$ac_try") 2>&5
11756   ac_status=$?
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); }; } &&
11759          { ac_try='test -s conftest$ac_exeext'
11760   { (case "(($ac_try" in
11761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762   *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765   (eval "$ac_try") 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; }; then
11769   eval "$as_ac_var=yes"
11770 else
11771   echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774         eval "$as_ac_var=no"
11775 fi
11776
11777 rm -f core conftest.err conftest.$ac_objext \
11778       conftest$ac_exeext conftest.$ac_ext
11779 fi
11780 ac_res=`eval echo '${'$as_ac_var'}'`
11781                { echo "$as_me:$LINENO: result: $ac_res" >&5
11782 echo "${ECHO_T}$ac_res" >&6; }
11783 if test `eval echo '${'$as_ac_var'}'` = yes; then
11784   cat >>confdefs.h <<_ACEOF
11785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11786 _ACEOF
11787  break
11788 fi
11789 done
11790
11791
11792
11793 for ac_func in strrchr rindex
11794 do
11795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11799   echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801   cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11809 #define $ac_func innocuous_$ac_func
11810
11811 /* System header to define __stub macros and hopefully few prototypes,
11812     which can conflict with char $ac_func (); below.
11813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814     <limits.h> exists even on freestanding compilers.  */
11815
11816 #ifdef __STDC__
11817 # include <limits.h>
11818 #else
11819 # include <assert.h>
11820 #endif
11821
11822 #undef $ac_func
11823
11824 /* Override any GCC internal prototype to avoid an error.
11825    Use char because int might match the return type of a GCC
11826    builtin and then its argument prototype would still apply.  */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char $ac_func ();
11831 /* The GNU C library defines this for functions which it implements
11832     to always fail with ENOSYS.  Some functions are actually named
11833     something starting with __ and the normal name is an alias.  */
11834 #if defined __stub_$ac_func || defined __stub___$ac_func
11835 choke me
11836 #endif
11837
11838 int
11839 main ()
11840 {
11841 return $ac_func ();
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (ac_try="$ac_link"
11848 case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853   (eval "$ac_link") 2>conftest.er1
11854   ac_status=$?
11855   grep -v '^ *+' conftest.er1 >conftest.err
11856   rm -f conftest.er1
11857   cat conftest.err >&5
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); } &&
11860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861   { (case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866   (eval "$ac_try") 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; } &&
11870          { ac_try='test -s conftest$ac_exeext'
11871   { (case "(($ac_try" in
11872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873   *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876   (eval "$ac_try") 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); }; }; then
11880   eval "$as_ac_var=yes"
11881 else
11882   echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11884
11885         eval "$as_ac_var=no"
11886 fi
11887
11888 rm -f core conftest.err conftest.$ac_objext \
11889       conftest$ac_exeext conftest.$ac_ext
11890 fi
11891 ac_res=`eval echo '${'$as_ac_var'}'`
11892                { echo "$as_me:$LINENO: result: $ac_res" >&5
11893 echo "${ECHO_T}$ac_res" >&6; }
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895   cat >>confdefs.h <<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897 _ACEOF
11898  break
11899 fi
11900 done
11901
11902
11903
11904 for ac_func in memcpy bcopy
11905 do
11906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11910   echo $ECHO_N "(cached) $ECHO_C" >&6
11911 else
11912   cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h.  */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h.  */
11918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11920 #define $ac_func innocuous_$ac_func
11921
11922 /* System header to define __stub macros and hopefully few prototypes,
11923     which can conflict with char $ac_func (); below.
11924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925     <limits.h> exists even on freestanding compilers.  */
11926
11927 #ifdef __STDC__
11928 # include <limits.h>
11929 #else
11930 # include <assert.h>
11931 #endif
11932
11933 #undef $ac_func
11934
11935 /* Override any GCC internal prototype to avoid an error.
11936    Use char because int might match the return type of a GCC
11937    builtin and then its argument prototype would still apply.  */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char $ac_func ();
11942 /* The GNU C library defines this for functions which it implements
11943     to always fail with ENOSYS.  Some functions are actually named
11944     something starting with __ and the normal name is an alias.  */
11945 #if defined __stub_$ac_func || defined __stub___$ac_func
11946 choke me
11947 #endif
11948
11949 int
11950 main ()
11951 {
11952 return $ac_func ();
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (ac_try="$ac_link"
11959 case "(($ac_try" in
11960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961   *) ac_try_echo=$ac_try;;
11962 esac
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964   (eval "$ac_link") 2>conftest.er1
11965   ac_status=$?
11966   grep -v '^ *+' conftest.er1 >conftest.err
11967   rm -f conftest.er1
11968   cat conftest.err >&5
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } &&
11971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972   { (case "(($ac_try" in
11973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974   *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977   (eval "$ac_try") 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; } &&
11981          { ac_try='test -s conftest$ac_exeext'
11982   { (case "(($ac_try" in
11983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984   *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987   (eval "$ac_try") 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   eval "$as_ac_var=yes"
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996         eval "$as_ac_var=no"
11997 fi
11998
11999 rm -f core conftest.err conftest.$ac_objext \
12000       conftest$ac_exeext conftest.$ac_ext
12001 fi
12002 ac_res=`eval echo '${'$as_ac_var'}'`
12003                { echo "$as_me:$LINENO: result: $ac_res" >&5
12004 echo "${ECHO_T}$ac_res" >&6; }
12005 if test `eval echo '${'$as_ac_var'}'` = yes; then
12006   cat >>confdefs.h <<_ACEOF
12007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12008 _ACEOF
12009  break
12010 fi
12011 done
12012
12013
12014
12015 for ac_func in memmove strcmp
12016 do
12017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12021   echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023   cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h.  */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h.  */
12029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12031 #define $ac_func innocuous_$ac_func
12032
12033 /* System header to define __stub macros and hopefully few prototypes,
12034     which can conflict with char $ac_func (); below.
12035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036     <limits.h> exists even on freestanding compilers.  */
12037
12038 #ifdef __STDC__
12039 # include <limits.h>
12040 #else
12041 # include <assert.h>
12042 #endif
12043
12044 #undef $ac_func
12045
12046 /* Override any GCC internal prototype to avoid an error.
12047    Use char because int might match the return type of a GCC
12048    builtin and then its argument prototype would still apply.  */
12049 #ifdef __cplusplus
12050 extern "C"
12051 #endif
12052 char $ac_func ();
12053 /* The GNU C library defines this for functions which it implements
12054     to always fail with ENOSYS.  Some functions are actually named
12055     something starting with __ and the normal name is an alias.  */
12056 #if defined __stub_$ac_func || defined __stub___$ac_func
12057 choke me
12058 #endif
12059
12060 int
12061 main ()
12062 {
12063 return $ac_func ();
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (ac_try="$ac_link"
12070 case "(($ac_try" in
12071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072   *) ac_try_echo=$ac_try;;
12073 esac
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075   (eval "$ac_link") 2>conftest.er1
12076   ac_status=$?
12077   grep -v '^ *+' conftest.er1 >conftest.err
12078   rm -f conftest.er1
12079   cat conftest.err >&5
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); } &&
12082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12083   { (case "(($ac_try" in
12084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085   *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088   (eval "$ac_try") 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); }; } &&
12092          { ac_try='test -s conftest$ac_exeext'
12093   { (case "(($ac_try" in
12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095   *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098   (eval "$ac_try") 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; }; then
12102   eval "$as_ac_var=yes"
12103 else
12104   echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107         eval "$as_ac_var=no"
12108 fi
12109
12110 rm -f core conftest.err conftest.$ac_objext \
12111       conftest$ac_exeext conftest.$ac_ext
12112 fi
12113 ac_res=`eval echo '${'$as_ac_var'}'`
12114                { echo "$as_me:$LINENO: result: $ac_res" >&5
12115 echo "${ECHO_T}$ac_res" >&6; }
12116 if test `eval echo '${'$as_ac_var'}'` = yes; then
12117   cat >>confdefs.h <<_ACEOF
12118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12119 _ACEOF
12120
12121 fi
12122 done
12123
12124
12125
12126
12127 for ac_func in closedir opendir readdir
12128 do
12129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12133   echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135   cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h.  */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h.  */
12141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12143 #define $ac_func innocuous_$ac_func
12144
12145 /* System header to define __stub macros and hopefully few prototypes,
12146     which can conflict with char $ac_func (); below.
12147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12148     <limits.h> exists even on freestanding compilers.  */
12149
12150 #ifdef __STDC__
12151 # include <limits.h>
12152 #else
12153 # include <assert.h>
12154 #endif
12155
12156 #undef $ac_func
12157
12158 /* Override any GCC internal prototype to avoid an error.
12159    Use char because int might match the return type of a GCC
12160    builtin and then its argument prototype would still apply.  */
12161 #ifdef __cplusplus
12162 extern "C"
12163 #endif
12164 char $ac_func ();
12165 /* The GNU C library defines this for functions which it implements
12166     to always fail with ENOSYS.  Some functions are actually named
12167     something starting with __ and the normal name is an alias.  */
12168 #if defined __stub_$ac_func || defined __stub___$ac_func
12169 choke me
12170 #endif
12171
12172 int
12173 main ()
12174 {
12175 return $ac_func ();
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext conftest$ac_exeext
12181 if { (ac_try="$ac_link"
12182 case "(($ac_try" in
12183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184   *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187   (eval "$ac_link") 2>conftest.er1
12188   ac_status=$?
12189   grep -v '^ *+' conftest.er1 >conftest.err
12190   rm -f conftest.er1
12191   cat conftest.err >&5
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); } &&
12194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195   { (case "(($ac_try" in
12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197   *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200   (eval "$ac_try") 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); }; } &&
12204          { ac_try='test -s conftest$ac_exeext'
12205   { (case "(($ac_try" in
12206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207   *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210   (eval "$ac_try") 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; }; then
12214   eval "$as_ac_var=yes"
12215 else
12216   echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219         eval "$as_ac_var=no"
12220 fi
12221
12222 rm -f core conftest.err conftest.$ac_objext \
12223       conftest$ac_exeext conftest.$ac_ext
12224 fi
12225 ac_res=`eval echo '${'$as_ac_var'}'`
12226                { echo "$as_me:$LINENO: result: $ac_res" >&5
12227 echo "${ECHO_T}$ac_res" >&6; }
12228 if test `eval echo '${'$as_ac_var'}'` = yes; then
12229   cat >>confdefs.h <<_ACEOF
12230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12231 _ACEOF
12232
12233 fi
12234 done
12235
12236
12237 # Check whether --enable-shared was given.
12238 if test "${enable_shared+set}" = set; then
12239   enableval=$enable_shared; p=${PACKAGE-default}
12240     case $enableval in
12241     yes) enable_shared=yes ;;
12242     no) enable_shared=no ;;
12243     *)
12244       enable_shared=no
12245       # Look at the argument we got.  We use all the common list separators.
12246       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12247       for pkg in $enableval; do
12248         IFS="$lt_save_ifs"
12249         if test "X$pkg" = "X$p"; then
12250           enable_shared=yes
12251         fi
12252       done
12253       IFS="$lt_save_ifs"
12254       ;;
12255     esac
12256 else
12257   enable_shared=yes
12258 fi
12259
12260
12261 # Check whether --enable-static was given.
12262 if test "${enable_static+set}" = set; then
12263   enableval=$enable_static; p=${PACKAGE-default}
12264     case $enableval in
12265     yes) enable_static=yes ;;
12266     no) enable_static=no ;;
12267     *)
12268      enable_static=no
12269       # Look at the argument we got.  We use all the common list separators.
12270       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12271       for pkg in $enableval; do
12272         IFS="$lt_save_ifs"
12273         if test "X$pkg" = "X$p"; then
12274           enable_static=yes
12275         fi
12276       done
12277       IFS="$lt_save_ifs"
12278       ;;
12279     esac
12280 else
12281   enable_static=yes
12282 fi
12283
12284
12285 # Check whether --enable-fast-install was given.
12286 if test "${enable_fast_install+set}" = set; then
12287   enableval=$enable_fast_install; p=${PACKAGE-default}
12288     case $enableval in
12289     yes) enable_fast_install=yes ;;
12290     no) enable_fast_install=no ;;
12291     *)
12292       enable_fast_install=no
12293       # Look at the argument we got.  We use all the common list separators.
12294       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12295       for pkg in $enableval; do
12296         IFS="$lt_save_ifs"
12297         if test "X$pkg" = "X$p"; then
12298           enable_fast_install=yes
12299         fi
12300       done
12301       IFS="$lt_save_ifs"
12302       ;;
12303     esac
12304 else
12305   enable_fast_install=yes
12306 fi
12307
12308
12309 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12310 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12311 if test "${lt_cv_path_SED+set}" = set; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314   # Loop through the user's path and test for sed and gsed.
12315 # Then use that list of sed's as ones to test for truncation.
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12318 do
12319   IFS=$as_save_IFS
12320   test -z "$as_dir" && as_dir=.
12321   for lt_ac_prog in sed gsed; do
12322     for ac_exec_ext in '' $ac_executable_extensions; do
12323       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12324         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12325       fi
12326     done
12327   done
12328 done
12329 lt_ac_max=0
12330 lt_ac_count=0
12331 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12332 # along with /bin/sed that truncates output.
12333 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12334   test ! -f $lt_ac_sed && continue
12335   cat /dev/null > conftest.in
12336   lt_ac_count=0
12337   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12338   # Check for GNU sed and select it if it is found.
12339   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12340     lt_cv_path_SED=$lt_ac_sed
12341     break
12342   fi
12343   while true; do
12344     cat conftest.in conftest.in >conftest.tmp
12345     mv conftest.tmp conftest.in
12346     cp conftest.in conftest.nl
12347     echo >>conftest.nl
12348     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12349     cmp -s conftest.out conftest.nl || break
12350     # 10000 chars as input seems more than enough
12351     test $lt_ac_count -gt 10 && break
12352     lt_ac_count=`expr $lt_ac_count + 1`
12353     if test $lt_ac_count -gt $lt_ac_max; then
12354       lt_ac_max=$lt_ac_count
12355       lt_cv_path_SED=$lt_ac_sed
12356     fi
12357   done
12358 done
12359
12360 fi
12361
12362 SED=$lt_cv_path_SED
12363 { echo "$as_me:$LINENO: result: $SED" >&5
12364 echo "${ECHO_T}$SED" >&6; }
12365
12366
12367 # Check whether --with-gnu-ld was given.
12368 if test "${with_gnu_ld+set}" = set; then
12369   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12370 else
12371   with_gnu_ld=no
12372 fi
12373
12374 ac_prog=ld
12375 if test "$GCC" = yes; then
12376   # Check if gcc -print-prog-name=ld gives a path.
12377   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12378 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12379   case $host in
12380   *-*-mingw*)
12381     # gcc leaves a trailing carriage return which upsets mingw
12382     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12383   *)
12384     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12385   esac
12386   case $ac_prog in
12387     # Accept absolute paths.
12388     [\\/]* | ?:[\\/]*)
12389       re_direlt='/[^/][^/]*/\.\./'
12390       # Canonicalize the pathname of ld
12391       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12392       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12393         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12394       done
12395       test -z "$LD" && LD="$ac_prog"
12396       ;;
12397   "")
12398     # If it fails, then pretend we aren't using GCC.
12399     ac_prog=ld
12400     ;;
12401   *)
12402     # If it is relative, then search for the first ld in PATH.
12403     with_gnu_ld=unknown
12404     ;;
12405   esac
12406 elif test "$with_gnu_ld" = yes; then
12407   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12408 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12409 else
12410   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12411 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12412 fi
12413 if test "${lt_cv_path_LD+set}" = set; then
12414   echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416   if test -z "$LD"; then
12417   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12418   for ac_dir in $PATH; do
12419     IFS="$lt_save_ifs"
12420     test -z "$ac_dir" && ac_dir=.
12421     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12422       lt_cv_path_LD="$ac_dir/$ac_prog"
12423       # Check to see if the program is GNU ld.  I'd rather use --version,
12424       # but apparently some variants of GNU ld only accept -v.
12425       # Break only if it was the GNU/non-GNU ld that we prefer.
12426       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12427       *GNU* | *'with BFD'*)
12428         test "$with_gnu_ld" != no && break
12429         ;;
12430       *)
12431         test "$with_gnu_ld" != yes && break
12432         ;;
12433       esac
12434     fi
12435   done
12436   IFS="$lt_save_ifs"
12437 else
12438   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12439 fi
12440 fi
12441
12442 LD="$lt_cv_path_LD"
12443 if test -n "$LD"; then
12444   { echo "$as_me:$LINENO: result: $LD" >&5
12445 echo "${ECHO_T}$LD" >&6; }
12446 else
12447   { echo "$as_me:$LINENO: result: no" >&5
12448 echo "${ECHO_T}no" >&6; }
12449 fi
12450 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12451 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12452    { (exit 1); exit 1; }; }
12453 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12454 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12455 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12459 case `$LD -v 2>&1 </dev/null` in
12460 *GNU* | *'with BFD'*)
12461   lt_cv_prog_gnu_ld=yes
12462   ;;
12463 *)
12464   lt_cv_prog_gnu_ld=no
12465   ;;
12466 esac
12467 fi
12468 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12469 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12470 with_gnu_ld=$lt_cv_prog_gnu_ld
12471
12472
12473 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12474 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12475 if test "${lt_cv_ld_reload_flag+set}" = set; then
12476   echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478   lt_cv_ld_reload_flag='-r'
12479 fi
12480 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12481 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12482 reload_flag=$lt_cv_ld_reload_flag
12483 case $reload_flag in
12484 "" | " "*) ;;
12485 *) reload_flag=" $reload_flag" ;;
12486 esac
12487 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12488 case $host_os in
12489   darwin*)
12490     if test "$GCC" = yes; then
12491       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12492     else
12493       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12494     fi
12495     ;;
12496 esac
12497
12498 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12499 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12500 if test "${lt_cv_deplibs_check_method+set}" = set; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503   lt_cv_file_magic_cmd='$MAGIC_CMD'
12504 lt_cv_file_magic_test_file=
12505 lt_cv_deplibs_check_method='unknown'
12506 # Need to set the preceding variable on all platforms that support
12507 # interlibrary dependencies.
12508 # 'none' -- dependencies not supported.
12509 # `unknown' -- same as none, but documents that we really don't know.
12510 # 'pass_all' -- all dependencies passed with no checks.
12511 # 'test_compile' -- check by making test program.
12512 # 'file_magic [[regex]]' -- check by looking for files in library path
12513 # which responds to the $file_magic_cmd with a given extended regex.
12514 # If you have `file' or equivalent on your system and you're not sure
12515 # whether `pass_all' will *always* work, you probably want this one.
12516
12517 case $host_os in
12518 aix4* | aix5*)
12519   lt_cv_deplibs_check_method=pass_all
12520   ;;
12521
12522 beos*)
12523   lt_cv_deplibs_check_method=pass_all
12524   ;;
12525
12526 bsdi[45]*)
12527   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12528   lt_cv_file_magic_cmd='/usr/bin/file -L'
12529   lt_cv_file_magic_test_file=/shlib/libc.so
12530   ;;
12531
12532 cygwin*)
12533   # func_win32_libid is a shell function defined in ltmain.sh
12534   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12535   lt_cv_file_magic_cmd='func_win32_libid'
12536   ;;
12537
12538 mingw* | pw32*)
12539   # Base MSYS/MinGW do not provide the 'file' command needed by
12540   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12541   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12542   lt_cv_file_magic_cmd='$OBJDUMP -f'
12543   ;;
12544
12545 darwin* | rhapsody*)
12546   lt_cv_deplibs_check_method=pass_all
12547   ;;
12548
12549 freebsd* | kfreebsd*-gnu | dragonfly*)
12550   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12551     case $host_cpu in
12552     i*86 )
12553       # Not sure whether the presence of OpenBSD here was a mistake.
12554       # Let's accept both of them until this is cleared up.
12555       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12556       lt_cv_file_magic_cmd=/usr/bin/file
12557       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12558       ;;
12559     esac
12560   else
12561     lt_cv_deplibs_check_method=pass_all
12562   fi
12563   ;;
12564
12565 gnu*)
12566   lt_cv_deplibs_check_method=pass_all
12567   ;;
12568
12569 hpux10.20* | hpux11*)
12570   lt_cv_file_magic_cmd=/usr/bin/file
12571   case $host_cpu in
12572   ia64*)
12573     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12574     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12575     ;;
12576   hppa*64*)
12577     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]'
12578     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12579     ;;
12580   *)
12581     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12582     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12583     ;;
12584   esac
12585   ;;
12586
12587 interix3*)
12588   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12589   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12590   ;;
12591
12592 irix5* | irix6* | nonstopux*)
12593   case $LD in
12594   *-32|*"-32 ") libmagic=32-bit;;
12595   *-n32|*"-n32 ") libmagic=N32;;
12596   *-64|*"-64 ") libmagic=64-bit;;
12597   *) libmagic=never-match;;
12598   esac
12599   lt_cv_deplibs_check_method=pass_all
12600   ;;
12601
12602 # This must be Linux ELF.
12603 linux*)
12604   lt_cv_deplibs_check_method=pass_all
12605   ;;
12606
12607 netbsd*)
12608   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12609     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12610   else
12611     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12612   fi
12613   ;;
12614
12615 newos6*)
12616   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12617   lt_cv_file_magic_cmd=/usr/bin/file
12618   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12619   ;;
12620
12621 nto-qnx*)
12622   lt_cv_deplibs_check_method=unknown
12623   ;;
12624
12625 openbsd*)
12626   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12627     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12628   else
12629     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12630   fi
12631   ;;
12632
12633 osf3* | osf4* | osf5*)
12634   lt_cv_deplibs_check_method=pass_all
12635   ;;
12636
12637 solaris*)
12638   lt_cv_deplibs_check_method=pass_all
12639   ;;
12640
12641 sysv4 | sysv4.3*)
12642   case $host_vendor in
12643   motorola)
12644     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]'
12645     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12646     ;;
12647   ncr)
12648     lt_cv_deplibs_check_method=pass_all
12649     ;;
12650   sequent)
12651     lt_cv_file_magic_cmd='/bin/file'
12652     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12653     ;;
12654   sni)
12655     lt_cv_file_magic_cmd='/bin/file'
12656     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12657     lt_cv_file_magic_test_file=/lib/libc.so
12658     ;;
12659   siemens)
12660     lt_cv_deplibs_check_method=pass_all
12661     ;;
12662   pc)
12663     lt_cv_deplibs_check_method=pass_all
12664     ;;
12665   esac
12666   ;;
12667
12668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12669   lt_cv_deplibs_check_method=pass_all
12670   ;;
12671 esac
12672
12673 fi
12674 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12675 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12676 file_magic_cmd=$lt_cv_file_magic_cmd
12677 deplibs_check_method=$lt_cv_deplibs_check_method
12678 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12679
12680
12681
12682 # If no C compiler was specified, use CC.
12683 LTCC=${LTCC-"$CC"}
12684
12685 # If no C compiler flags were specified, use CFLAGS.
12686 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12687
12688 # Allow CC to be a program name with arguments.
12689 compiler=$CC
12690
12691 # Check whether --enable-libtool-lock was given.
12692 if test "${enable_libtool_lock+set}" = set; then
12693   enableval=$enable_libtool_lock;
12694 fi
12695
12696 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12697
12698 # Some flags need to be propagated to the compiler or linker for good
12699 # libtool support.
12700 case $host in
12701 ia64-*-hpux*)
12702   # Find out which ABI we are using.
12703   echo 'int i;' > conftest.$ac_ext
12704   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705   (eval $ac_compile) 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }; then
12709     case `/usr/bin/file conftest.$ac_objext` in
12710     *ELF-32*)
12711       HPUX_IA64_MODE="32"
12712       ;;
12713     *ELF-64*)
12714       HPUX_IA64_MODE="64"
12715       ;;
12716     esac
12717   fi
12718   rm -rf conftest*
12719   ;;
12720 *-*-irix6*)
12721   # Find out which ABI we are using.
12722   echo '#line 12722 "configure"' > conftest.$ac_ext
12723   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724   (eval $ac_compile) 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; then
12728    if test "$lt_cv_prog_gnu_ld" = yes; then
12729     case `/usr/bin/file conftest.$ac_objext` in
12730     *32-bit*)
12731       LD="${LD-ld} -melf32bsmip"
12732       ;;
12733     *N32*)
12734       LD="${LD-ld} -melf32bmipn32"
12735       ;;
12736     *64-bit*)
12737       LD="${LD-ld} -melf64bmip"
12738       ;;
12739     esac
12740    else
12741     case `/usr/bin/file conftest.$ac_objext` in
12742     *32-bit*)
12743       LD="${LD-ld} -32"
12744       ;;
12745     *N32*)
12746       LD="${LD-ld} -n32"
12747       ;;
12748     *64-bit*)
12749       LD="${LD-ld} -64"
12750       ;;
12751     esac
12752    fi
12753   fi
12754   rm -rf conftest*
12755   ;;
12756
12757 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12758   # Find out which ABI we are using.
12759   echo 'int i;' > conftest.$ac_ext
12760   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761   (eval $ac_compile) 2>&5
12762   ac_status=$?
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); }; then
12765     case `/usr/bin/file conftest.o` in
12766     *32-bit*)
12767       case $host in
12768         x86_64-*linux*)
12769           LD="${LD-ld} -m elf_i386"
12770           ;;
12771         ppc64-*linux*|powerpc64-*linux*)
12772           LD="${LD-ld} -m elf32ppclinux"
12773           ;;
12774         s390x-*linux*)
12775           LD="${LD-ld} -m elf_s390"
12776           ;;
12777         sparc64-*linux*)
12778           LD="${LD-ld} -m elf32_sparc"
12779           ;;
12780       esac
12781       ;;
12782     *64-bit*)
12783       case $host in
12784         x86_64-*linux*)
12785           LD="${LD-ld} -m elf_x86_64"
12786           ;;
12787         ppc*-*linux*|powerpc*-*linux*)
12788           LD="${LD-ld} -m elf64ppc"
12789           ;;
12790         s390*-*linux*)
12791           LD="${LD-ld} -m elf64_s390"
12792           ;;
12793         sparc*-*linux*)
12794           LD="${LD-ld} -m elf64_sparc"
12795           ;;
12796       esac
12797       ;;
12798     esac
12799   fi
12800   rm -rf conftest*
12801   ;;
12802
12803 *-*-sco3.2v5*)
12804   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12805   SAVE_CFLAGS="$CFLAGS"
12806   CFLAGS="$CFLAGS -belf"
12807   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12808 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12809 if test "${lt_cv_cc_needs_belf+set}" = set; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812   ac_ext=c
12813 ac_cpp='$CPP $CPPFLAGS'
12814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12817
12818      cat >conftest.$ac_ext <<_ACEOF
12819 /* confdefs.h.  */
12820 _ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h.  */
12824
12825 int
12826 main ()
12827 {
12828
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (ac_try="$ac_link"
12835 case "(($ac_try" in
12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837   *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840   (eval "$ac_link") 2>conftest.er1
12841   ac_status=$?
12842   grep -v '^ *+' conftest.er1 >conftest.err
12843   rm -f conftest.er1
12844   cat conftest.err >&5
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); } &&
12847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848   { (case "(($ac_try" in
12849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850   *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853   (eval "$ac_try") 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; } &&
12857          { ac_try='test -s conftest$ac_exeext'
12858   { (case "(($ac_try" in
12859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860   *) ac_try_echo=$ac_try;;
12861 esac
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863   (eval "$ac_try") 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; }; then
12867   lt_cv_cc_needs_belf=yes
12868 else
12869   echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872         lt_cv_cc_needs_belf=no
12873 fi
12874
12875 rm -f core conftest.err conftest.$ac_objext \
12876       conftest$ac_exeext conftest.$ac_ext
12877      ac_ext=c
12878 ac_cpp='$CPP $CPPFLAGS'
12879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12882
12883 fi
12884 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12885 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12886   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12887     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12888     CFLAGS="$SAVE_CFLAGS"
12889   fi
12890   ;;
12891 sparc*-*solaris*)
12892   # Find out which ABI we are using.
12893   echo 'int i;' > conftest.$ac_ext
12894   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895   (eval $ac_compile) 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); }; then
12899     case `/usr/bin/file conftest.o` in
12900     *64-bit*)
12901       case $lt_cv_prog_gnu_ld in
12902       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12903       *)    LD="${LD-ld} -64" ;;
12904       esac
12905       ;;
12906     esac
12907   fi
12908   rm -rf conftest*
12909   ;;
12910
12911
12912 esac
12913
12914 need_locks="$enable_libtool_lock"
12915
12916
12917
12918
12919 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12920     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12921     (test "X$CXX" != "Xg++"))) ; then
12922   ac_ext=cpp
12923 ac_cpp='$CXXCPP $CPPFLAGS'
12924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12927 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12928 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12929 if test -z "$CXXCPP"; then
12930   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12931   echo $ECHO_N "(cached) $ECHO_C" >&6
12932 else
12933       # Double quotes because CXXCPP needs to be expanded
12934     for CXXCPP in "$CXX -E" "/lib/cpp"
12935     do
12936       ac_preproc_ok=false
12937 for ac_cxx_preproc_warn_flag in '' yes
12938 do
12939   # Use a header file that comes with gcc, so configuring glibc
12940   # with a fresh cross-compiler works.
12941   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12942   # <limits.h> exists even on freestanding compilers.
12943   # On the NeXT, cc -E runs the code through the compiler's parser,
12944   # not just through cpp. "Syntax error" is here to catch this case.
12945   cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h.  */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h.  */
12951 #ifdef __STDC__
12952 # include <limits.h>
12953 #else
12954 # include <assert.h>
12955 #endif
12956                      Syntax error
12957 _ACEOF
12958 if { (ac_try="$ac_cpp conftest.$ac_ext"
12959 case "(($ac_try" in
12960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961   *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12965   ac_status=$?
12966   grep -v '^ *+' conftest.er1 >conftest.err
12967   rm -f conftest.er1
12968   cat conftest.err >&5
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); } >/dev/null; then
12971   if test -s conftest.err; then
12972     ac_cpp_err=$ac_cxx_preproc_warn_flag
12973     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12974   else
12975     ac_cpp_err=
12976   fi
12977 else
12978   ac_cpp_err=yes
12979 fi
12980 if test -z "$ac_cpp_err"; then
12981   :
12982 else
12983   echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12985
12986   # Broken: fails on valid input.
12987 continue
12988 fi
12989
12990 rm -f conftest.err conftest.$ac_ext
12991
12992   # OK, works on sane cases.  Now check whether nonexistent headers
12993   # can be detected and how.
12994   cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000 #include <ac_nonexistent.h>
13001 _ACEOF
13002 if { (ac_try="$ac_cpp conftest.$ac_ext"
13003 case "(($ac_try" in
13004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005   *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13009   ac_status=$?
13010   grep -v '^ *+' conftest.er1 >conftest.err
13011   rm -f conftest.er1
13012   cat conftest.err >&5
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); } >/dev/null; then
13015   if test -s conftest.err; then
13016     ac_cpp_err=$ac_cxx_preproc_warn_flag
13017     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13018   else
13019     ac_cpp_err=
13020   fi
13021 else
13022   ac_cpp_err=yes
13023 fi
13024 if test -z "$ac_cpp_err"; then
13025   # Broken: success on invalid input.
13026 continue
13027 else
13028   echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031   # Passes both tests.
13032 ac_preproc_ok=:
13033 break
13034 fi
13035
13036 rm -f conftest.err conftest.$ac_ext
13037
13038 done
13039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13040 rm -f conftest.err conftest.$ac_ext
13041 if $ac_preproc_ok; then
13042   break
13043 fi
13044
13045     done
13046     ac_cv_prog_CXXCPP=$CXXCPP
13047
13048 fi
13049   CXXCPP=$ac_cv_prog_CXXCPP
13050 else
13051   ac_cv_prog_CXXCPP=$CXXCPP
13052 fi
13053 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13054 echo "${ECHO_T}$CXXCPP" >&6; }
13055 ac_preproc_ok=false
13056 for ac_cxx_preproc_warn_flag in '' yes
13057 do
13058   # Use a header file that comes with gcc, so configuring glibc
13059   # with a fresh cross-compiler works.
13060   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13061   # <limits.h> exists even on freestanding compilers.
13062   # On the NeXT, cc -E runs the code through the compiler's parser,
13063   # not just through cpp. "Syntax error" is here to catch this case.
13064   cat >conftest.$ac_ext <<_ACEOF
13065 /* confdefs.h.  */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h.  */
13070 #ifdef __STDC__
13071 # include <limits.h>
13072 #else
13073 # include <assert.h>
13074 #endif
13075                      Syntax error
13076 _ACEOF
13077 if { (ac_try="$ac_cpp conftest.$ac_ext"
13078 case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13084   ac_status=$?
13085   grep -v '^ *+' conftest.er1 >conftest.err
13086   rm -f conftest.er1
13087   cat conftest.err >&5
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } >/dev/null; then
13090   if test -s conftest.err; then
13091     ac_cpp_err=$ac_cxx_preproc_warn_flag
13092     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13093   else
13094     ac_cpp_err=
13095   fi
13096 else
13097   ac_cpp_err=yes
13098 fi
13099 if test -z "$ac_cpp_err"; then
13100   :
13101 else
13102   echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13104
13105   # Broken: fails on valid input.
13106 continue
13107 fi
13108
13109 rm -f conftest.err conftest.$ac_ext
13110
13111   # OK, works on sane cases.  Now check whether nonexistent headers
13112   # can be detected and how.
13113   cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h.  */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h.  */
13119 #include <ac_nonexistent.h>
13120 _ACEOF
13121 if { (ac_try="$ac_cpp conftest.$ac_ext"
13122 case "(($ac_try" in
13123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124   *) ac_try_echo=$ac_try;;
13125 esac
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13128   ac_status=$?
13129   grep -v '^ *+' conftest.er1 >conftest.err
13130   rm -f conftest.er1
13131   cat conftest.err >&5
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); } >/dev/null; then
13134   if test -s conftest.err; then
13135     ac_cpp_err=$ac_cxx_preproc_warn_flag
13136     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13137   else
13138     ac_cpp_err=
13139   fi
13140 else
13141   ac_cpp_err=yes
13142 fi
13143 if test -z "$ac_cpp_err"; then
13144   # Broken: success on invalid input.
13145 continue
13146 else
13147   echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13149
13150   # Passes both tests.
13151 ac_preproc_ok=:
13152 break
13153 fi
13154
13155 rm -f conftest.err conftest.$ac_ext
13156
13157 done
13158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13159 rm -f conftest.err conftest.$ac_ext
13160 if $ac_preproc_ok; then
13161   :
13162 else
13163   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13164 See \`config.log' for more details." >&5
13165 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13166 See \`config.log' for more details." >&2;}
13167    { (exit 1); exit 1; }; }
13168 fi
13169
13170 ac_ext=cpp
13171 ac_cpp='$CXXCPP $CPPFLAGS'
13172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13175
13176 fi
13177
13178
13179 ac_ext=f
13180 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13181 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13182 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13183 if test -n "$ac_tool_prefix"; then
13184   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
13185   do
13186     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13190 if test "${ac_cv_prog_F77+set}" = set; then
13191   echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193   if test -n "$F77"; then
13194   ac_cv_prog_F77="$F77" # Let the user override the test.
13195 else
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13198 do
13199   IFS=$as_save_IFS
13200   test -z "$as_dir" && as_dir=.
13201   for ac_exec_ext in '' $ac_executable_extensions; do
13202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13203     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13205     break 2
13206   fi
13207 done
13208 done
13209 IFS=$as_save_IFS
13210
13211 fi
13212 fi
13213 F77=$ac_cv_prog_F77
13214 if test -n "$F77"; then
13215   { echo "$as_me:$LINENO: result: $F77" >&5
13216 echo "${ECHO_T}$F77" >&6; }
13217 else
13218   { echo "$as_me:$LINENO: result: no" >&5
13219 echo "${ECHO_T}no" >&6; }
13220 fi
13221
13222
13223     test -n "$F77" && break
13224   done
13225 fi
13226 if test -z "$F77"; then
13227   ac_ct_F77=$F77
13228   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
13229 do
13230   # Extract the first word of "$ac_prog", so it can be a program name with args.
13231 set dummy $ac_prog; ac_word=$2
13232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13234 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13235   echo $ECHO_N "(cached) $ECHO_C" >&6
13236 else
13237   if test -n "$ac_ct_F77"; then
13238   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13239 else
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13242 do
13243   IFS=$as_save_IFS
13244   test -z "$as_dir" && as_dir=.
13245   for ac_exec_ext in '' $ac_executable_extensions; do
13246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13247     ac_cv_prog_ac_ct_F77="$ac_prog"
13248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13249     break 2
13250   fi
13251 done
13252 done
13253 IFS=$as_save_IFS
13254
13255 fi
13256 fi
13257 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13258 if test -n "$ac_ct_F77"; then
13259   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13260 echo "${ECHO_T}$ac_ct_F77" >&6; }
13261 else
13262   { echo "$as_me:$LINENO: result: no" >&5
13263 echo "${ECHO_T}no" >&6; }
13264 fi
13265
13266
13267   test -n "$ac_ct_F77" && break
13268 done
13269
13270   if test "x$ac_ct_F77" = x; then
13271     F77=""
13272   else
13273     case $cross_compiling:$ac_tool_warned in
13274 yes:)
13275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13276 whose name does not start with the host triplet.  If you think this
13277 configuration is useful to you, please write to autoconf@gnu.org." >&5
13278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13279 whose name does not start with the host triplet.  If you think this
13280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13281 ac_tool_warned=yes ;;
13282 esac
13283     F77=$ac_ct_F77
13284   fi
13285 fi
13286
13287
13288 # Provide some information about the compiler.
13289 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13290 ac_compiler=`set X $ac_compile; echo $2`
13291 { (ac_try="$ac_compiler --version >&5"
13292 case "(($ac_try" in
13293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294   *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297   (eval "$ac_compiler --version >&5") 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }
13301 { (ac_try="$ac_compiler -v >&5"
13302 case "(($ac_try" in
13303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304   *) ac_try_echo=$ac_try;;
13305 esac
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307   (eval "$ac_compiler -v >&5") 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); }
13311 { (ac_try="$ac_compiler -V >&5"
13312 case "(($ac_try" in
13313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314   *) ac_try_echo=$ac_try;;
13315 esac
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317   (eval "$ac_compiler -V >&5") 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); }
13321 rm -f a.out
13322
13323 # If we don't use `.F' as extension, the preprocessor is not run on the
13324 # input file.  (Note that this only needs to work for GNU compilers.)
13325 ac_save_ext=$ac_ext
13326 ac_ext=F
13327 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13328 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13329 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13330   echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332   cat >conftest.$ac_ext <<_ACEOF
13333       program main
13334 #ifndef __GNUC__
13335        choke me
13336 #endif
13337
13338       end
13339 _ACEOF
13340 rm -f conftest.$ac_objext
13341 if { (ac_try="$ac_compile"
13342 case "(($ac_try" in
13343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344   *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347   (eval "$ac_compile") 2>conftest.er1
13348   ac_status=$?
13349   grep -v '^ *+' conftest.er1 >conftest.err
13350   rm -f conftest.er1
13351   cat conftest.err >&5
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); } &&
13354          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13355   { (case "(($ac_try" in
13356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357   *) ac_try_echo=$ac_try;;
13358 esac
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360   (eval "$ac_try") 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; } &&
13364          { ac_try='test -s conftest.$ac_objext'
13365   { (case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_try") 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; }; then
13374   ac_compiler_gnu=yes
13375 else
13376   echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379         ac_compiler_gnu=no
13380 fi
13381
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13384
13385 fi
13386 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13387 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13388 ac_ext=$ac_save_ext
13389 ac_test_FFLAGS=${FFLAGS+set}
13390 ac_save_FFLAGS=$FFLAGS
13391 FFLAGS=
13392 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13393 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13394 if test "${ac_cv_prog_f77_g+set}" = set; then
13395   echo $ECHO_N "(cached) $ECHO_C" >&6
13396 else
13397   FFLAGS=-g
13398 cat >conftest.$ac_ext <<_ACEOF
13399       program main
13400
13401       end
13402 _ACEOF
13403 rm -f conftest.$ac_objext
13404 if { (ac_try="$ac_compile"
13405 case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_compile") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13418   { (case "(($ac_try" in
13419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420   *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423   (eval "$ac_try") 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; } &&
13427          { ac_try='test -s conftest.$ac_objext'
13428   { (case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_try") 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; }; then
13437   ac_cv_prog_f77_g=yes
13438 else
13439   echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13441
13442         ac_cv_prog_f77_g=no
13443 fi
13444
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446
13447 fi
13448 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13449 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13450 if test "$ac_test_FFLAGS" = set; then
13451   FFLAGS=$ac_save_FFLAGS
13452 elif test $ac_cv_prog_f77_g = yes; then
13453   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13454     FFLAGS="-g -O2"
13455   else
13456     FFLAGS="-g"
13457   fi
13458 else
13459   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13460     FFLAGS="-O2"
13461   else
13462     FFLAGS=
13463   fi
13464 fi
13465
13466 G77=`test $ac_compiler_gnu = yes && echo yes`
13467 ac_ext=c
13468 ac_cpp='$CPP $CPPFLAGS'
13469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13472
13473
13474
13475 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13476
13477 # find the maximum length of command line arguments
13478 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13481   echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483     i=0
13484   teststring="ABCD"
13485
13486   case $build_os in
13487   msdosdjgpp*)
13488     # On DJGPP, this test can blow up pretty badly due to problems in libc
13489     # (any single argument exceeding 2000 bytes causes a buffer overrun
13490     # during glob expansion).  Even if it were fixed, the result of this
13491     # check would be larger than it should be.
13492     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13493     ;;
13494
13495   gnu*)
13496     # Under GNU Hurd, this test is not required because there is
13497     # no limit to the length of command line arguments.
13498     # Libtool will interpret -1 as no limit whatsoever
13499     lt_cv_sys_max_cmd_len=-1;
13500     ;;
13501
13502   cygwin* | mingw*)
13503     # On Win9x/ME, this test blows up -- it succeeds, but takes
13504     # about 5 minutes as the teststring grows exponentially.
13505     # Worse, since 9x/ME are not pre-emptively multitasking,
13506     # you end up with a "frozen" computer, even though with patience
13507     # the test eventually succeeds (with a max line length of 256k).
13508     # Instead, let's just punt: use the minimum linelength reported by
13509     # all of the supported platforms: 8192 (on NT/2K/XP).
13510     lt_cv_sys_max_cmd_len=8192;
13511     ;;
13512
13513   amigaos*)
13514     # On AmigaOS with pdksh, this test takes hours, literally.
13515     # So we just punt and use a minimum line length of 8192.
13516     lt_cv_sys_max_cmd_len=8192;
13517     ;;
13518
13519   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13520     # This has been around since 386BSD, at least.  Likely further.
13521     if test -x /sbin/sysctl; then
13522       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13523     elif test -x /usr/sbin/sysctl; then
13524       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13525     else
13526       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13527     fi
13528     # And add a safety zone
13529     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13530     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13531     ;;
13532
13533   interix*)
13534     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13535     lt_cv_sys_max_cmd_len=196608
13536     ;;
13537
13538   osf*)
13539     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13540     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13541     # nice to cause kernel panics so lets avoid the loop below.
13542     # First set a reasonable default.
13543     lt_cv_sys_max_cmd_len=16384
13544     #
13545     if test -x /sbin/sysconfig; then
13546       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13547         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13548       esac
13549     fi
13550     ;;
13551   sco3.2v5*)
13552     lt_cv_sys_max_cmd_len=102400
13553     ;;
13554   sysv5* | sco5v6* | sysv4.2uw2*)
13555     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13556     if test -n "$kargmax"; then
13557       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13558     else
13559       lt_cv_sys_max_cmd_len=32768
13560     fi
13561     ;;
13562   *)
13563     # If test is not a shell built-in, we'll probably end up computing a
13564     # maximum length that is only half of the actual maximum length, but
13565     # we can't tell.
13566     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13567     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13568                = "XX$teststring") >/dev/null 2>&1 &&
13569             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13570             lt_cv_sys_max_cmd_len=$new_result &&
13571             test $i != 17 # 1/2 MB should be enough
13572     do
13573       i=`expr $i + 1`
13574       teststring=$teststring$teststring
13575     done
13576     teststring=
13577     # Add a significant safety factor because C++ compilers can tack on massive
13578     # amounts of additional arguments before passing them to the linker.
13579     # It appears as though 1/2 is a usable value.
13580     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13581     ;;
13582   esac
13583
13584 fi
13585
13586 if test -n $lt_cv_sys_max_cmd_len ; then
13587   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13588 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13589 else
13590   { echo "$as_me:$LINENO: result: none" >&5
13591 echo "${ECHO_T}none" >&6; }
13592 fi
13593
13594
13595
13596
13597 # Check for command to grab the raw symbol name followed by C symbol from nm.
13598 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13599 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13600 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13601   echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603
13604 # These are sane defaults that work on at least a few old systems.
13605 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13606
13607 # Character class describing NM global symbol codes.
13608 symcode='[BCDEGRST]'
13609
13610 # Regexp to match symbols that can be accessed directly from C.
13611 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13612
13613 # Transform an extracted symbol line into a proper C declaration
13614 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13615
13616 # Transform an extracted symbol line into symbol name and symbol address
13617 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'"
13618
13619 # Define system-specific variables.
13620 case $host_os in
13621 aix*)
13622   symcode='[BCDT]'
13623   ;;
13624 cygwin* | mingw* | pw32*)
13625   symcode='[ABCDGISTW]'
13626   ;;
13627 hpux*) # Its linker distinguishes data from code symbols
13628   if test "$host_cpu" = ia64; then
13629     symcode='[ABCDEGRST]'
13630   fi
13631   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13632   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'"
13633   ;;
13634 linux*)
13635   if test "$host_cpu" = ia64; then
13636     symcode='[ABCDGIRSTW]'
13637     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13638     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'"
13639   fi
13640   ;;
13641 irix* | nonstopux*)
13642   symcode='[BCDEGRST]'
13643   ;;
13644 osf*)
13645   symcode='[BCDEGQRST]'
13646   ;;
13647 solaris*)
13648   symcode='[BDRT]'
13649   ;;
13650 sco3.2v5*)
13651   symcode='[DT]'
13652   ;;
13653 sysv4.2uw2*)
13654   symcode='[DT]'
13655   ;;
13656 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13657   symcode='[ABDT]'
13658   ;;
13659 sysv4)
13660   symcode='[DFNSTU]'
13661   ;;
13662 esac
13663
13664 # Handle CRLF in mingw tool chain
13665 opt_cr=
13666 case $build_os in
13667 mingw*)
13668   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13669   ;;
13670 esac
13671
13672 # If we're using GNU nm, then use its standard symbol codes.
13673 case `$NM -V 2>&1` in
13674 *GNU* | *'with BFD'*)
13675   symcode='[ABCDGIRSTW]' ;;
13676 esac
13677
13678 # Try without a prefix undercore, then with it.
13679 for ac_symprfx in "" "_"; do
13680
13681   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13682   symxfrm="\\1 $ac_symprfx\\2 \\2"
13683
13684   # Write the raw and C identifiers.
13685   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13686
13687   # Check to see that the pipe works correctly.
13688   pipe_works=no
13689
13690   rm -f conftest*
13691   cat > conftest.$ac_ext <<EOF
13692 #ifdef __cplusplus
13693 extern "C" {
13694 #endif
13695 char nm_test_var;
13696 void nm_test_func(){}
13697 #ifdef __cplusplus
13698 }
13699 #endif
13700 int main(){nm_test_var='a';nm_test_func();return(0);}
13701 EOF
13702
13703   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13704   (eval $ac_compile) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; then
13708     # Now try to grab the symbols.
13709     nlist=conftest.nm
13710     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13711   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13712   ac_status=$?
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); } && test -s "$nlist"; then
13715       # Try sorting and uniquifying the output.
13716       if sort "$nlist" | uniq > "$nlist"T; then
13717         mv -f "$nlist"T "$nlist"
13718       else
13719         rm -f "$nlist"T
13720       fi
13721
13722       # Make sure that we snagged all the symbols we need.
13723       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13724         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13725           cat <<EOF > conftest.$ac_ext
13726 #ifdef __cplusplus
13727 extern "C" {
13728 #endif
13729
13730 EOF
13731           # Now generate the symbol file.
13732           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13733
13734           cat <<EOF >> conftest.$ac_ext
13735 #if defined (__STDC__) && __STDC__
13736 # define lt_ptr_t void *
13737 #else
13738 # define lt_ptr_t char *
13739 # define const
13740 #endif
13741
13742 /* The mapping between symbol names and symbols. */
13743 const struct {
13744   const char *name;
13745   lt_ptr_t address;
13746 }
13747 lt_preloaded_symbols[] =
13748 {
13749 EOF
13750           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13751           cat <<\EOF >> conftest.$ac_ext
13752   {0, (lt_ptr_t) 0}
13753 };
13754
13755 #ifdef __cplusplus
13756 }
13757 #endif
13758 EOF
13759           # Now try linking the two files.
13760           mv conftest.$ac_objext conftstm.$ac_objext
13761           lt_save_LIBS="$LIBS"
13762           lt_save_CFLAGS="$CFLAGS"
13763           LIBS="conftstm.$ac_objext"
13764           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13765           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766   (eval $ac_link) 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13770             pipe_works=yes
13771           fi
13772           LIBS="$lt_save_LIBS"
13773           CFLAGS="$lt_save_CFLAGS"
13774         else
13775           echo "cannot find nm_test_func in $nlist" >&5
13776         fi
13777       else
13778         echo "cannot find nm_test_var in $nlist" >&5
13779       fi
13780     else
13781       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13782     fi
13783   else
13784     echo "$progname: failed program was:" >&5
13785     cat conftest.$ac_ext >&5
13786   fi
13787   rm -f conftest* conftst*
13788
13789   # Do not use the global_symbol_pipe unless it works.
13790   if test "$pipe_works" = yes; then
13791     break
13792   else
13793     lt_cv_sys_global_symbol_pipe=
13794   fi
13795 done
13796
13797 fi
13798
13799 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13800   lt_cv_sys_global_symbol_to_cdecl=
13801 fi
13802 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13803   { echo "$as_me:$LINENO: result: failed" >&5
13804 echo "${ECHO_T}failed" >&6; }
13805 else
13806   { echo "$as_me:$LINENO: result: ok" >&5
13807 echo "${ECHO_T}ok" >&6; }
13808 fi
13809
13810 { echo "$as_me:$LINENO: checking for objdir" >&5
13811 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13812 if test "${lt_cv_objdir+set}" = set; then
13813   echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815   rm -f .libs 2>/dev/null
13816 mkdir .libs 2>/dev/null
13817 if test -d .libs; then
13818   lt_cv_objdir=.libs
13819 else
13820   # MS-DOS does not allow filenames that begin with a dot.
13821   lt_cv_objdir=_libs
13822 fi
13823 rmdir .libs 2>/dev/null
13824 fi
13825 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13826 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13827 objdir=$lt_cv_objdir
13828
13829
13830
13831
13832
13833 case $host_os in
13834 aix3*)
13835   # AIX sometimes has problems with the GCC collect2 program.  For some
13836   # reason, if we set the COLLECT_NAMES environment variable, the problems
13837   # vanish in a puff of smoke.
13838   if test "X${COLLECT_NAMES+set}" != Xset; then
13839     COLLECT_NAMES=
13840     export COLLECT_NAMES
13841   fi
13842   ;;
13843 esac
13844
13845 # Sed substitution that helps us do robust quoting.  It backslashifies
13846 # metacharacters that are still active within double-quoted strings.
13847 Xsed='sed -e 1s/^X//'
13848 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13849
13850 # Same as above, but do not quote variable references.
13851 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13852
13853 # Sed substitution to delay expansion of an escaped shell variable in a
13854 # double_quote_subst'ed string.
13855 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13856
13857 # Sed substitution to avoid accidental globbing in evaled expressions
13858 no_glob_subst='s/\*/\\\*/g'
13859
13860 # Constants:
13861 rm="rm -f"
13862
13863 # Global variables:
13864 default_ofile=mklib
13865 can_build_shared=yes
13866
13867 # All known linkers require a `.a' archive for static linking (except MSVC,
13868 # which needs '.lib').
13869 libext=a
13870 ltmain="$ac_aux_dir/ltmain.sh"
13871 ofile="$default_ofile"
13872 with_gnu_ld="$lt_cv_prog_gnu_ld"
13873
13874 if test -n "$ac_tool_prefix"; then
13875   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13876 set dummy ${ac_tool_prefix}ar; ac_word=$2
13877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13879 if test "${ac_cv_prog_AR+set}" = set; then
13880   echo $ECHO_N "(cached) $ECHO_C" >&6
13881 else
13882   if test -n "$AR"; then
13883   ac_cv_prog_AR="$AR" # Let the user override the test.
13884 else
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13887 do
13888   IFS=$as_save_IFS
13889   test -z "$as_dir" && as_dir=.
13890   for ac_exec_ext in '' $ac_executable_extensions; do
13891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13892     ac_cv_prog_AR="${ac_tool_prefix}ar"
13893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13894     break 2
13895   fi
13896 done
13897 done
13898 IFS=$as_save_IFS
13899
13900 fi
13901 fi
13902 AR=$ac_cv_prog_AR
13903 if test -n "$AR"; then
13904   { echo "$as_me:$LINENO: result: $AR" >&5
13905 echo "${ECHO_T}$AR" >&6; }
13906 else
13907   { echo "$as_me:$LINENO: result: no" >&5
13908 echo "${ECHO_T}no" >&6; }
13909 fi
13910
13911
13912 fi
13913 if test -z "$ac_cv_prog_AR"; then
13914   ac_ct_AR=$AR
13915   # Extract the first word of "ar", so it can be a program name with args.
13916 set dummy ar; ac_word=$2
13917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13919 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13920   echo $ECHO_N "(cached) $ECHO_C" >&6
13921 else
13922   if test -n "$ac_ct_AR"; then
13923   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13924 else
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13927 do
13928   IFS=$as_save_IFS
13929   test -z "$as_dir" && as_dir=.
13930   for ac_exec_ext in '' $ac_executable_extensions; do
13931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13932     ac_cv_prog_ac_ct_AR="ar"
13933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13934     break 2
13935   fi
13936 done
13937 done
13938 IFS=$as_save_IFS
13939
13940 fi
13941 fi
13942 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13943 if test -n "$ac_ct_AR"; then
13944   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13945 echo "${ECHO_T}$ac_ct_AR" >&6; }
13946 else
13947   { echo "$as_me:$LINENO: result: no" >&5
13948 echo "${ECHO_T}no" >&6; }
13949 fi
13950
13951   if test "x$ac_ct_AR" = x; then
13952     AR="false"
13953   else
13954     case $cross_compiling:$ac_tool_warned in
13955 yes:)
13956 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13957 whose name does not start with the host triplet.  If you think this
13958 configuration is useful to you, please write to autoconf@gnu.org." >&5
13959 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13960 whose name does not start with the host triplet.  If you think this
13961 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13962 ac_tool_warned=yes ;;
13963 esac
13964     AR=$ac_ct_AR
13965   fi
13966 else
13967   AR="$ac_cv_prog_AR"
13968 fi
13969
13970 if test -n "$ac_tool_prefix"; then
13971   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13975 if test "${ac_cv_prog_RANLIB+set}" = set; then
13976   echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978   if test -n "$RANLIB"; then
13979   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13980 else
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH
13983 do
13984   IFS=$as_save_IFS
13985   test -z "$as_dir" && as_dir=.
13986   for ac_exec_ext in '' $ac_executable_extensions; do
13987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13988     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13990     break 2
13991   fi
13992 done
13993 done
13994 IFS=$as_save_IFS
13995
13996 fi
13997 fi
13998 RANLIB=$ac_cv_prog_RANLIB
13999 if test -n "$RANLIB"; then
14000   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14001 echo "${ECHO_T}$RANLIB" >&6; }
14002 else
14003   { echo "$as_me:$LINENO: result: no" >&5
14004 echo "${ECHO_T}no" >&6; }
14005 fi
14006
14007
14008 fi
14009 if test -z "$ac_cv_prog_RANLIB"; then
14010   ac_ct_RANLIB=$RANLIB
14011   # Extract the first word of "ranlib", so it can be a program name with args.
14012 set dummy ranlib; ac_word=$2
14013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14015 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   if test -n "$ac_ct_RANLIB"; then
14019   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14020 else
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14023 do
14024   IFS=$as_save_IFS
14025   test -z "$as_dir" && as_dir=.
14026   for ac_exec_ext in '' $ac_executable_extensions; do
14027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14028     ac_cv_prog_ac_ct_RANLIB="ranlib"
14029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14030     break 2
14031   fi
14032 done
14033 done
14034 IFS=$as_save_IFS
14035
14036 fi
14037 fi
14038 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14039 if test -n "$ac_ct_RANLIB"; then
14040   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14041 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14042 else
14043   { echo "$as_me:$LINENO: result: no" >&5
14044 echo "${ECHO_T}no" >&6; }
14045 fi
14046
14047   if test "x$ac_ct_RANLIB" = x; then
14048     RANLIB=":"
14049   else
14050     case $cross_compiling:$ac_tool_warned in
14051 yes:)
14052 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14053 whose name does not start with the host triplet.  If you think this
14054 configuration is useful to you, please write to autoconf@gnu.org." >&5
14055 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14056 whose name does not start with the host triplet.  If you think this
14057 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14058 ac_tool_warned=yes ;;
14059 esac
14060     RANLIB=$ac_ct_RANLIB
14061   fi
14062 else
14063   RANLIB="$ac_cv_prog_RANLIB"
14064 fi
14065
14066 if test -n "$ac_tool_prefix"; then
14067   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14068 set dummy ${ac_tool_prefix}strip; ac_word=$2
14069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14071 if test "${ac_cv_prog_STRIP+set}" = set; then
14072   echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074   if test -n "$STRIP"; then
14075   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14076 else
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $PATH
14079 do
14080   IFS=$as_save_IFS
14081   test -z "$as_dir" && as_dir=.
14082   for ac_exec_ext in '' $ac_executable_extensions; do
14083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14084     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14086     break 2
14087   fi
14088 done
14089 done
14090 IFS=$as_save_IFS
14091
14092 fi
14093 fi
14094 STRIP=$ac_cv_prog_STRIP
14095 if test -n "$STRIP"; then
14096   { echo "$as_me:$LINENO: result: $STRIP" >&5
14097 echo "${ECHO_T}$STRIP" >&6; }
14098 else
14099   { echo "$as_me:$LINENO: result: no" >&5
14100 echo "${ECHO_T}no" >&6; }
14101 fi
14102
14103
14104 fi
14105 if test -z "$ac_cv_prog_STRIP"; then
14106   ac_ct_STRIP=$STRIP
14107   # Extract the first word of "strip", so it can be a program name with args.
14108 set dummy strip; ac_word=$2
14109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14111 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14112   echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114   if test -n "$ac_ct_STRIP"; then
14115   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14116 else
14117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118 for as_dir in $PATH
14119 do
14120   IFS=$as_save_IFS
14121   test -z "$as_dir" && as_dir=.
14122   for ac_exec_ext in '' $ac_executable_extensions; do
14123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14124     ac_cv_prog_ac_ct_STRIP="strip"
14125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14126     break 2
14127   fi
14128 done
14129 done
14130 IFS=$as_save_IFS
14131
14132 fi
14133 fi
14134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14135 if test -n "$ac_ct_STRIP"; then
14136   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14137 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14138 else
14139   { echo "$as_me:$LINENO: result: no" >&5
14140 echo "${ECHO_T}no" >&6; }
14141 fi
14142
14143   if test "x$ac_ct_STRIP" = x; then
14144     STRIP=":"
14145   else
14146     case $cross_compiling:$ac_tool_warned in
14147 yes:)
14148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14149 whose name does not start with the host triplet.  If you think this
14150 configuration is useful to you, please write to autoconf@gnu.org." >&5
14151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14152 whose name does not start with the host triplet.  If you think this
14153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14154 ac_tool_warned=yes ;;
14155 esac
14156     STRIP=$ac_ct_STRIP
14157   fi
14158 else
14159   STRIP="$ac_cv_prog_STRIP"
14160 fi
14161
14162
14163 old_CC="$CC"
14164 old_CFLAGS="$CFLAGS"
14165
14166 # Set sane defaults for various variables
14167 test -z "$AR" && AR=ar
14168 test -z "$AR_FLAGS" && AR_FLAGS=cru
14169 test -z "$AS" && AS=as
14170 test -z "$CC" && CC=cc
14171 test -z "$LTCC" && LTCC=$CC
14172 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14173 test -z "$DLLTOOL" && DLLTOOL=dlltool
14174 test -z "$LD" && LD=ld
14175 test -z "$LN_S" && LN_S="ln -s"
14176 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14177 test -z "$NM" && NM=nm
14178 test -z "$SED" && SED=sed
14179 test -z "$OBJDUMP" && OBJDUMP=objdump
14180 test -z "$RANLIB" && RANLIB=:
14181 test -z "$STRIP" && STRIP=:
14182 test -z "$ac_objext" && ac_objext=o
14183
14184 # Determine commands to create old-style static archives.
14185 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14186 old_postinstall_cmds='chmod 644 $oldlib'
14187 old_postuninstall_cmds=
14188
14189 if test -n "$RANLIB"; then
14190   case $host_os in
14191   openbsd*)
14192     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14193     ;;
14194   *)
14195     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14196     ;;
14197   esac
14198   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14199 fi
14200
14201 for cc_temp in $compiler""; do
14202   case $cc_temp in
14203     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14204     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14205     \-*) ;;
14206     *) break;;
14207   esac
14208 done
14209 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14210
14211
14212 # Only perform the check for file, if the check method requires it
14213 case $deplibs_check_method in
14214 file_magic*)
14215   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14216     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14217 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14218 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14219   echo $ECHO_N "(cached) $ECHO_C" >&6
14220 else
14221   case $MAGIC_CMD in
14222 [\\/*] |  ?:[\\/]*)
14223   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14224   ;;
14225 *)
14226   lt_save_MAGIC_CMD="$MAGIC_CMD"
14227   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14228   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14229   for ac_dir in $ac_dummy; do
14230     IFS="$lt_save_ifs"
14231     test -z "$ac_dir" && ac_dir=.
14232     if test -f $ac_dir/${ac_tool_prefix}file; then
14233       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14234       if test -n "$file_magic_test_file"; then
14235         case $deplibs_check_method in
14236         "file_magic "*)
14237           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14238           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14239           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14240             $EGREP "$file_magic_regex" > /dev/null; then
14241             :
14242           else
14243             cat <<EOF 1>&2
14244
14245 *** Warning: the command libtool uses to detect shared libraries,
14246 *** $file_magic_cmd, produces output that libtool cannot recognize.
14247 *** The result is that libtool may fail to recognize shared libraries
14248 *** as such.  This will affect the creation of libtool libraries that
14249 *** depend on shared libraries, but programs linked with such libtool
14250 *** libraries will work regardless of this problem.  Nevertheless, you
14251 *** may want to report the problem to your system manager and/or to
14252 *** bug-libtool@gnu.org
14253
14254 EOF
14255           fi ;;
14256         esac
14257       fi
14258       break
14259     fi
14260   done
14261   IFS="$lt_save_ifs"
14262   MAGIC_CMD="$lt_save_MAGIC_CMD"
14263   ;;
14264 esac
14265 fi
14266
14267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14268 if test -n "$MAGIC_CMD"; then
14269   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14270 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14271 else
14272   { echo "$as_me:$LINENO: result: no" >&5
14273 echo "${ECHO_T}no" >&6; }
14274 fi
14275
14276 if test -z "$lt_cv_path_MAGIC_CMD"; then
14277   if test -n "$ac_tool_prefix"; then
14278     { echo "$as_me:$LINENO: checking for file" >&5
14279 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14280 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14281   echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283   case $MAGIC_CMD in
14284 [\\/*] |  ?:[\\/]*)
14285   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14286   ;;
14287 *)
14288   lt_save_MAGIC_CMD="$MAGIC_CMD"
14289   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14290   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14291   for ac_dir in $ac_dummy; do
14292     IFS="$lt_save_ifs"
14293     test -z "$ac_dir" && ac_dir=.
14294     if test -f $ac_dir/file; then
14295       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14296       if test -n "$file_magic_test_file"; then
14297         case $deplibs_check_method in
14298         "file_magic "*)
14299           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14300           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14301           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14302             $EGREP "$file_magic_regex" > /dev/null; then
14303             :
14304           else
14305             cat <<EOF 1>&2
14306
14307 *** Warning: the command libtool uses to detect shared libraries,
14308 *** $file_magic_cmd, produces output that libtool cannot recognize.
14309 *** The result is that libtool may fail to recognize shared libraries
14310 *** as such.  This will affect the creation of libtool libraries that
14311 *** depend on shared libraries, but programs linked with such libtool
14312 *** libraries will work regardless of this problem.  Nevertheless, you
14313 *** may want to report the problem to your system manager and/or to
14314 *** bug-libtool@gnu.org
14315
14316 EOF
14317           fi ;;
14318         esac
14319       fi
14320       break
14321     fi
14322   done
14323   IFS="$lt_save_ifs"
14324   MAGIC_CMD="$lt_save_MAGIC_CMD"
14325   ;;
14326 esac
14327 fi
14328
14329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14330 if test -n "$MAGIC_CMD"; then
14331   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14332 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14333 else
14334   { echo "$as_me:$LINENO: result: no" >&5
14335 echo "${ECHO_T}no" >&6; }
14336 fi
14337
14338   else
14339     MAGIC_CMD=:
14340   fi
14341 fi
14342
14343   fi
14344   ;;
14345 esac
14346
14347 enable_dlopen=yes
14348 enable_win32_dll=no
14349
14350 # Check whether --enable-libtool-lock was given.
14351 if test "${enable_libtool_lock+set}" = set; then
14352   enableval=$enable_libtool_lock;
14353 fi
14354
14355 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14356
14357
14358 # Check whether --with-pic was given.
14359 if test "${with_pic+set}" = set; then
14360   withval=$with_pic; pic_mode="$withval"
14361 else
14362   pic_mode=default
14363 fi
14364
14365 test -z "$pic_mode" && pic_mode=default
14366
14367 # Use C for the default configuration in the libtool script
14368 tagname=
14369 lt_save_CC="$CC"
14370 ac_ext=c
14371 ac_cpp='$CPP $CPPFLAGS'
14372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14375
14376
14377 # Source file extension for C test sources.
14378 ac_ext=c
14379
14380 # Object file extension for compiled C test sources.
14381 objext=o
14382 objext=$objext
14383
14384 # Code to be used in simple compile tests
14385 lt_simple_compile_test_code="int some_variable = 0;\n"
14386
14387 # Code to be used in simple link tests
14388 lt_simple_link_test_code='int main(){return(0);}\n'
14389
14390
14391 # If no C compiler was specified, use CC.
14392 LTCC=${LTCC-"$CC"}
14393
14394 # If no C compiler flags were specified, use CFLAGS.
14395 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14396
14397 # Allow CC to be a program name with arguments.
14398 compiler=$CC
14399
14400
14401 # save warnings/boilerplate of simple test code
14402 ac_outfile=conftest.$ac_objext
14403 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14404 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14405 _lt_compiler_boilerplate=`cat conftest.err`
14406 $rm conftest*
14407
14408 ac_outfile=conftest.$ac_objext
14409 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14410 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14411 _lt_linker_boilerplate=`cat conftest.err`
14412 $rm conftest*
14413
14414
14415
14416 lt_prog_compiler_no_builtin_flag=
14417
14418 if test "$GCC" = yes; then
14419   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14420
14421
14422 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14423 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14425   echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427   lt_cv_prog_compiler_rtti_exceptions=no
14428   ac_outfile=conftest.$ac_objext
14429    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14430    lt_compiler_flag="-fno-rtti -fno-exceptions"
14431    # Insert the option either (1) after the last *FLAGS variable, or
14432    # (2) before a word containing "conftest.", or (3) at the end.
14433    # Note that $ac_compile itself does not contain backslashes and begins
14434    # with a dollar sign (not a hyphen), so the echo should work correctly.
14435    # The option is referenced via a variable to avoid confusing sed.
14436    lt_compile=`echo "$ac_compile" | $SED \
14437    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14439    -e 's:$: $lt_compiler_flag:'`
14440    (eval echo "\"\$as_me:14440: $lt_compile\"" >&5)
14441    (eval "$lt_compile" 2>conftest.err)
14442    ac_status=$?
14443    cat conftest.err >&5
14444    echo "$as_me:14444: \$? = $ac_status" >&5
14445    if (exit $ac_status) && test -s "$ac_outfile"; then
14446      # The compiler can only warn and ignore the option if not recognized
14447      # So say no if there are warnings other than the usual output.
14448      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14449      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14450      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14451        lt_cv_prog_compiler_rtti_exceptions=yes
14452      fi
14453    fi
14454    $rm conftest*
14455
14456 fi
14457 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14458 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14459
14460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14461     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14462 else
14463     :
14464 fi
14465
14466 fi
14467
14468 lt_prog_compiler_wl=
14469 lt_prog_compiler_pic=
14470 lt_prog_compiler_static=
14471
14472 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14474
14475   if test "$GCC" = yes; then
14476     lt_prog_compiler_wl='-Wl,'
14477     lt_prog_compiler_static='-static'
14478
14479     case $host_os in
14480       aix*)
14481       # All AIX code is PIC.
14482       if test "$host_cpu" = ia64; then
14483         # AIX 5 now supports IA64 processor
14484         lt_prog_compiler_static='-Bstatic'
14485       fi
14486       ;;
14487
14488     amigaos*)
14489       # FIXME: we need at least 68020 code to build shared libraries, but
14490       # adding the `-m68020' flag to GCC prevents building anything better,
14491       # like `-m68040'.
14492       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14493       ;;
14494
14495     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14496       # PIC is the default for these OSes.
14497       ;;
14498
14499     mingw* | pw32* | os2*)
14500       # This hack is so that the source file can tell whether it is being
14501       # built for inclusion in a dll (and should export symbols for example).
14502       lt_prog_compiler_pic='-DDLL_EXPORT'
14503       ;;
14504
14505     darwin* | rhapsody*)
14506       # PIC is the default on this platform
14507       # Common symbols not allowed in MH_DYLIB files
14508       lt_prog_compiler_pic='-fno-common'
14509       ;;
14510
14511     interix3*)
14512       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14513       # Instead, we relocate shared libraries at runtime.
14514       ;;
14515
14516     msdosdjgpp*)
14517       # Just because we use GCC doesn't mean we suddenly get shared libraries
14518       # on systems that don't support them.
14519       lt_prog_compiler_can_build_shared=no
14520       enable_shared=no
14521       ;;
14522
14523     sysv4*MP*)
14524       if test -d /usr/nec; then
14525         lt_prog_compiler_pic=-Kconform_pic
14526       fi
14527       ;;
14528
14529     hpux*)
14530       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14531       # not for PA HP-UX.
14532       case $host_cpu in
14533       hppa*64*|ia64*)
14534         # +Z the default
14535         ;;
14536       *)
14537         lt_prog_compiler_pic='-fPIC'
14538         ;;
14539       esac
14540       ;;
14541
14542     *)
14543       lt_prog_compiler_pic='-fPIC'
14544       ;;
14545     esac
14546   else
14547     # PORTME Check for flag to pass linker flags through the system compiler.
14548     case $host_os in
14549     aix*)
14550       lt_prog_compiler_wl='-Wl,'
14551       if test "$host_cpu" = ia64; then
14552         # AIX 5 now supports IA64 processor
14553         lt_prog_compiler_static='-Bstatic'
14554       else
14555         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14556       fi
14557       ;;
14558       darwin*)
14559         # PIC is the default on this platform
14560         # Common symbols not allowed in MH_DYLIB files
14561        case $cc_basename in
14562          xlc*)
14563          lt_prog_compiler_pic='-qnocommon'
14564          lt_prog_compiler_wl='-Wl,'
14565          ;;
14566        esac
14567        ;;
14568
14569     mingw* | pw32* | os2*)
14570       # This hack is so that the source file can tell whether it is being
14571       # built for inclusion in a dll (and should export symbols for example).
14572       lt_prog_compiler_pic='-DDLL_EXPORT'
14573       ;;
14574
14575     hpux9* | hpux10* | hpux11*)
14576       lt_prog_compiler_wl='-Wl,'
14577       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14578       # not for PA HP-UX.
14579       case $host_cpu in
14580       hppa*64*|ia64*)
14581         # +Z the default
14582         ;;
14583       *)
14584         lt_prog_compiler_pic='+Z'
14585         ;;
14586       esac
14587       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14588       lt_prog_compiler_static='${wl}-a ${wl}archive'
14589       ;;
14590
14591     irix5* | irix6* | nonstopux*)
14592       lt_prog_compiler_wl='-Wl,'
14593       # PIC (with -KPIC) is the default.
14594       lt_prog_compiler_static='-non_shared'
14595       ;;
14596
14597     newsos6)
14598       lt_prog_compiler_pic='-KPIC'
14599       lt_prog_compiler_static='-Bstatic'
14600       ;;
14601
14602     linux*)
14603       case $cc_basename in
14604       icc* | ecc*)
14605         lt_prog_compiler_wl='-Wl,'
14606         lt_prog_compiler_pic='-KPIC'
14607         lt_prog_compiler_static='-static'
14608         ;;
14609       pgcc* | pgf77* | pgf90* | pgf95*)
14610         # Portland Group compilers (*not* the Pentium gcc compiler,
14611         # which looks to be a dead project)
14612         lt_prog_compiler_wl='-Wl,'
14613         lt_prog_compiler_pic='-fpic'
14614         lt_prog_compiler_static='-Bstatic'
14615         ;;
14616       ccc*)
14617         lt_prog_compiler_wl='-Wl,'
14618         # All Alpha code is PIC.
14619         lt_prog_compiler_static='-non_shared'
14620         ;;
14621       esac
14622       ;;
14623
14624     osf3* | osf4* | osf5*)
14625       lt_prog_compiler_wl='-Wl,'
14626       # All OSF/1 code is PIC.
14627       lt_prog_compiler_static='-non_shared'
14628       ;;
14629
14630     solaris*)
14631       lt_prog_compiler_pic='-KPIC'
14632       lt_prog_compiler_static='-Bstatic'
14633       case $cc_basename in
14634       f77* | f90* | f95*)
14635         lt_prog_compiler_wl='-Qoption ld ';;
14636       *)
14637         lt_prog_compiler_wl='-Wl,';;
14638       esac
14639       ;;
14640
14641     sunos4*)
14642       lt_prog_compiler_wl='-Qoption ld '
14643       lt_prog_compiler_pic='-PIC'
14644       lt_prog_compiler_static='-Bstatic'
14645       ;;
14646
14647     sysv4 | sysv4.2uw2* | sysv4.3*)
14648       lt_prog_compiler_wl='-Wl,'
14649       lt_prog_compiler_pic='-KPIC'
14650       lt_prog_compiler_static='-Bstatic'
14651       ;;
14652
14653     sysv4*MP*)
14654       if test -d /usr/nec ;then
14655         lt_prog_compiler_pic='-Kconform_pic'
14656         lt_prog_compiler_static='-Bstatic'
14657       fi
14658       ;;
14659
14660     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14661       lt_prog_compiler_wl='-Wl,'
14662       lt_prog_compiler_pic='-KPIC'
14663       lt_prog_compiler_static='-Bstatic'
14664       ;;
14665
14666     unicos*)
14667       lt_prog_compiler_wl='-Wl,'
14668       lt_prog_compiler_can_build_shared=no
14669       ;;
14670
14671     uts4*)
14672       lt_prog_compiler_pic='-pic'
14673       lt_prog_compiler_static='-Bstatic'
14674       ;;
14675
14676     *)
14677       lt_prog_compiler_can_build_shared=no
14678       ;;
14679     esac
14680   fi
14681
14682 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14683 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14684
14685 #
14686 # Check to make sure the PIC flag actually works.
14687 #
14688 if test -n "$lt_prog_compiler_pic"; then
14689
14690 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14691 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14692 if test "${lt_prog_compiler_pic_works+set}" = set; then
14693   echo $ECHO_N "(cached) $ECHO_C" >&6
14694 else
14695   lt_prog_compiler_pic_works=no
14696   ac_outfile=conftest.$ac_objext
14697    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14698    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14699    # Insert the option either (1) after the last *FLAGS variable, or
14700    # (2) before a word containing "conftest.", or (3) at the end.
14701    # Note that $ac_compile itself does not contain backslashes and begins
14702    # with a dollar sign (not a hyphen), so the echo should work correctly.
14703    # The option is referenced via a variable to avoid confusing sed.
14704    lt_compile=`echo "$ac_compile" | $SED \
14705    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14706    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14707    -e 's:$: $lt_compiler_flag:'`
14708    (eval echo "\"\$as_me:14708: $lt_compile\"" >&5)
14709    (eval "$lt_compile" 2>conftest.err)
14710    ac_status=$?
14711    cat conftest.err >&5
14712    echo "$as_me:14712: \$? = $ac_status" >&5
14713    if (exit $ac_status) && test -s "$ac_outfile"; then
14714      # The compiler can only warn and ignore the option if not recognized
14715      # So say no if there are warnings other than the usual output.
14716      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14717      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14718      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14719        lt_prog_compiler_pic_works=yes
14720      fi
14721    fi
14722    $rm conftest*
14723
14724 fi
14725 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14726 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14727
14728 if test x"$lt_prog_compiler_pic_works" = xyes; then
14729     case $lt_prog_compiler_pic in
14730      "" | " "*) ;;
14731      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14732      esac
14733 else
14734     lt_prog_compiler_pic=
14735      lt_prog_compiler_can_build_shared=no
14736 fi
14737
14738 fi
14739 case $host_os in
14740   # For platforms which do not support PIC, -DPIC is meaningless:
14741   *djgpp*)
14742     lt_prog_compiler_pic=
14743     ;;
14744   *)
14745     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14746     ;;
14747 esac
14748
14749 #
14750 # Check to make sure the static flag actually works.
14751 #
14752 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14753 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14754 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14755 if test "${lt_prog_compiler_static_works+set}" = set; then
14756   echo $ECHO_N "(cached) $ECHO_C" >&6
14757 else
14758   lt_prog_compiler_static_works=no
14759    save_LDFLAGS="$LDFLAGS"
14760    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14761    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14762    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14763      # The linker can only warn and ignore the option if not recognized
14764      # So say no if there are warnings
14765      if test -s conftest.err; then
14766        # Append any errors to the config.log.
14767        cat conftest.err 1>&5
14768        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14769        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14770        if diff conftest.exp conftest.er2 >/dev/null; then
14771          lt_prog_compiler_static_works=yes
14772        fi
14773      else
14774        lt_prog_compiler_static_works=yes
14775      fi
14776    fi
14777    $rm conftest*
14778    LDFLAGS="$save_LDFLAGS"
14779
14780 fi
14781 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14782 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14783
14784 if test x"$lt_prog_compiler_static_works" = xyes; then
14785     :
14786 else
14787     lt_prog_compiler_static=
14788 fi
14789
14790
14791 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14792 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14793 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14794   echo $ECHO_N "(cached) $ECHO_C" >&6
14795 else
14796   lt_cv_prog_compiler_c_o=no
14797    $rm -r conftest 2>/dev/null
14798    mkdir conftest
14799    cd conftest
14800    mkdir out
14801    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14802
14803    lt_compiler_flag="-o out/conftest2.$ac_objext"
14804    # Insert the option either (1) after the last *FLAGS variable, or
14805    # (2) before a word containing "conftest.", or (3) at the end.
14806    # Note that $ac_compile itself does not contain backslashes and begins
14807    # with a dollar sign (not a hyphen), so the echo should work correctly.
14808    lt_compile=`echo "$ac_compile" | $SED \
14809    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14811    -e 's:$: $lt_compiler_flag:'`
14812    (eval echo "\"\$as_me:14812: $lt_compile\"" >&5)
14813    (eval "$lt_compile" 2>out/conftest.err)
14814    ac_status=$?
14815    cat out/conftest.err >&5
14816    echo "$as_me:14816: \$? = $ac_status" >&5
14817    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14818    then
14819      # The compiler can only warn and ignore the option if not recognized
14820      # So say no if there are warnings
14821      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14822      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14823      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14824        lt_cv_prog_compiler_c_o=yes
14825      fi
14826    fi
14827    chmod u+w . 2>&5
14828    $rm conftest*
14829    # SGI C++ compiler will create directory out/ii_files/ for
14830    # template instantiation
14831    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14832    $rm out/* && rmdir out
14833    cd ..
14834    rmdir conftest
14835    $rm conftest*
14836
14837 fi
14838 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14839 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14840
14841
14842 hard_links="nottested"
14843 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14844   # do not overwrite the value of need_locks provided by the user
14845   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14846 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14847   hard_links=yes
14848   $rm conftest*
14849   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14850   touch conftest.a
14851   ln conftest.a conftest.b 2>&5 || hard_links=no
14852   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14853   { echo "$as_me:$LINENO: result: $hard_links" >&5
14854 echo "${ECHO_T}$hard_links" >&6; }
14855   if test "$hard_links" = no; then
14856     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14857 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14858     need_locks=warn
14859   fi
14860 else
14861   need_locks=no
14862 fi
14863
14864 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14865 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14866
14867   runpath_var=
14868   allow_undefined_flag=
14869   enable_shared_with_static_runtimes=no
14870   archive_cmds=
14871   archive_expsym_cmds=
14872   old_archive_From_new_cmds=
14873   old_archive_from_expsyms_cmds=
14874   export_dynamic_flag_spec=
14875   whole_archive_flag_spec=
14876   thread_safe_flag_spec=
14877   hardcode_libdir_flag_spec=
14878   hardcode_libdir_flag_spec_ld=
14879   hardcode_libdir_separator=
14880   hardcode_direct=no
14881   hardcode_minus_L=no
14882   hardcode_shlibpath_var=unsupported
14883   link_all_deplibs=unknown
14884   hardcode_automatic=no
14885   module_cmds=
14886   module_expsym_cmds=
14887   always_export_symbols=no
14888   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14889   # include_expsyms should be a list of space-separated symbols to be *always*
14890   # included in the symbol list
14891   include_expsyms=
14892   # exclude_expsyms can be an extended regexp of symbols to exclude
14893   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14894   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14895   # as well as any symbol that contains `d'.
14896   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14897   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14898   # platforms (ab)use it in PIC code, but their linkers get confused if
14899   # the symbol is explicitly referenced.  Since portable code cannot
14900   # rely on this symbol name, it's probably fine to never include it in
14901   # preloaded symbol tables.
14902   extract_expsyms_cmds=
14903   # Just being paranoid about ensuring that cc_basename is set.
14904   for cc_temp in $compiler""; do
14905   case $cc_temp in
14906     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14907     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14908     \-*) ;;
14909     *) break;;
14910   esac
14911 done
14912 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14913
14914   case $host_os in
14915   cygwin* | mingw* | pw32*)
14916     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14917     # When not using gcc, we currently assume that we are using
14918     # Microsoft Visual C++.
14919     if test "$GCC" != yes; then
14920       with_gnu_ld=no
14921     fi
14922     ;;
14923   interix*)
14924     # we just hope/assume this is gcc and not c89 (= MSVC++)
14925     with_gnu_ld=yes
14926     ;;
14927   openbsd*)
14928     with_gnu_ld=no
14929     ;;
14930   esac
14931
14932   ld_shlibs=yes
14933   if test "$with_gnu_ld" = yes; then
14934     # If archive_cmds runs LD, not CC, wlarc should be empty
14935     wlarc='${wl}'
14936
14937     # Set some defaults for GNU ld with shared library support. These
14938     # are reset later if shared libraries are not supported. Putting them
14939     # here allows them to be overridden if necessary.
14940     runpath_var=LD_RUN_PATH
14941     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14942     export_dynamic_flag_spec='${wl}--export-dynamic'
14943     # ancient GNU ld didn't support --whole-archive et. al.
14944     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14945         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14946       else
14947         whole_archive_flag_spec=
14948     fi
14949     supports_anon_versioning=no
14950     case `$LD -v 2>/dev/null` in
14951       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14952       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14953       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14954       *\ 2.11.*) ;; # other 2.11 versions
14955       *) supports_anon_versioning=yes ;;
14956     esac
14957
14958     # See if GNU ld supports shared libraries.
14959     case $host_os in
14960     aix3* | aix4* | aix5*)
14961       # On AIX/PPC, the GNU linker is very broken
14962       if test "$host_cpu" != ia64; then
14963         ld_shlibs=no
14964         cat <<EOF 1>&2
14965
14966 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14967 *** to be unable to reliably create shared libraries on AIX.
14968 *** Therefore, libtool is disabling shared libraries support.  If you
14969 *** really care for shared libraries, you may want to modify your PATH
14970 *** so that a non-GNU linker is found, and then restart.
14971
14972 EOF
14973       fi
14974       ;;
14975
14976     amigaos*)
14977       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)'
14978       hardcode_libdir_flag_spec='-L$libdir'
14979       hardcode_minus_L=yes
14980
14981       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14982       # that the semantics of dynamic libraries on AmigaOS, at least up
14983       # to version 4, is to share data among multiple programs linked
14984       # with the same dynamic library.  Since this doesn't match the
14985       # behavior of shared libraries on other platforms, we can't use
14986       # them.
14987       ld_shlibs=no
14988       ;;
14989
14990     beos*)
14991       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14992         allow_undefined_flag=unsupported
14993         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14994         # support --undefined.  This deserves some investigation.  FIXME
14995         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14996       else
14997         ld_shlibs=no
14998       fi
14999       ;;
15000
15001     cygwin* | mingw* | pw32*)
15002       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15003       # as there is no search path for DLLs.
15004       hardcode_libdir_flag_spec='-L$libdir'
15005       allow_undefined_flag=unsupported
15006       always_export_symbols=no
15007       enable_shared_with_static_runtimes=yes
15008       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15009
15010       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15011         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15012         # If the export-symbols file already is a .def file (1st line
15013         # is EXPORTS), use it as is; otherwise, prepend...
15014         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15015           cp $export_symbols $output_objdir/$soname.def;
15016         else
15017           echo EXPORTS > $output_objdir/$soname.def;
15018           cat $export_symbols >> $output_objdir/$soname.def;
15019         fi~
15020         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15021       else
15022         ld_shlibs=no
15023       fi
15024       ;;
15025
15026     interix3*)
15027       hardcode_direct=no
15028       hardcode_shlibpath_var=no
15029       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15030       export_dynamic_flag_spec='${wl}-E'
15031       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15032       # Instead, shared libraries are loaded at an image base (0x10000000 by
15033       # default) and relocated if they conflict, which is a slow very memory
15034       # consuming and fragmenting process.  To avoid this, we pick a random,
15035       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15036       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15037       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15038       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'
15039       ;;
15040
15041     linux*)
15042       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15043         tmp_addflag=
15044         case $cc_basename,$host_cpu in
15045         pgcc*)                          # Portland Group C compiler
15046           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'
15047           tmp_addflag=' $pic_flag'
15048           ;;
15049         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15050           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'
15051           tmp_addflag=' $pic_flag -Mnomain' ;;
15052         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15053           tmp_addflag=' -i_dynamic' ;;
15054         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15055           tmp_addflag=' -i_dynamic -nofor_main' ;;
15056         ifc* | ifort*)                  # Intel Fortran compiler
15057           tmp_addflag=' -nofor_main' ;;
15058         esac
15059         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15060
15061         if test $supports_anon_versioning = yes; then
15062           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15063   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15064   $echo "local: *; };" >> $output_objdir/$libname.ver~
15065           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15066         fi
15067       else
15068         ld_shlibs=no
15069       fi
15070       ;;
15071
15072     netbsd*)
15073       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15074         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15075         wlarc=
15076       else
15077         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15078         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15079       fi
15080       ;;
15081
15082     solaris*)
15083       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15084         ld_shlibs=no
15085         cat <<EOF 1>&2
15086
15087 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15088 *** create shared libraries on Solaris systems.  Therefore, libtool
15089 *** is disabling shared libraries support.  We urge you to upgrade GNU
15090 *** binutils to release 2.9.1 or newer.  Another option is to modify
15091 *** your PATH or compiler configuration so that the native linker is
15092 *** used, and then restart.
15093
15094 EOF
15095       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15096         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15097         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15098       else
15099         ld_shlibs=no
15100       fi
15101       ;;
15102
15103     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15104       case `$LD -v 2>&1` in
15105         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15106         ld_shlibs=no
15107         cat <<_LT_EOF 1>&2
15108
15109 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15110 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15111 *** is disabling shared libraries support.  We urge you to upgrade GNU
15112 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15113 *** your PATH or compiler configuration so that the native linker is
15114 *** used, and then restart.
15115
15116 _LT_EOF
15117         ;;
15118         *)
15119           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15120             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15121             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15122             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15123           else
15124             ld_shlibs=no
15125           fi
15126         ;;
15127       esac
15128       ;;
15129
15130     sunos4*)
15131       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15132       wlarc=
15133       hardcode_direct=yes
15134       hardcode_shlibpath_var=no
15135       ;;
15136
15137     *)
15138       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15140         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15141       else
15142         ld_shlibs=no
15143       fi
15144       ;;
15145     esac
15146
15147     if test "$ld_shlibs" = no; then
15148       runpath_var=
15149       hardcode_libdir_flag_spec=
15150       export_dynamic_flag_spec=
15151       whole_archive_flag_spec=
15152     fi
15153   else
15154     # PORTME fill in a description of your system's linker (not GNU ld)
15155     case $host_os in
15156     aix3*)
15157       allow_undefined_flag=unsupported
15158       always_export_symbols=yes
15159       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'
15160       # Note: this linker hardcodes the directories in LIBPATH if there
15161       # are no directories specified by -L.
15162       hardcode_minus_L=yes
15163       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15164         # Neither direct hardcoding nor static linking is supported with a
15165         # broken collect2.
15166         hardcode_direct=unsupported
15167       fi
15168       ;;
15169
15170     aix4* | aix5*)
15171       if test "$host_cpu" = ia64; then
15172         # On IA64, the linker does run time linking by default, so we don't
15173         # have to do anything special.
15174         aix_use_runtimelinking=no
15175         exp_sym_flag='-Bexport'
15176         no_entry_flag=""
15177       else
15178         # If we're using GNU nm, then we don't want the "-C" option.
15179         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15180         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15181           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'
15182         else
15183           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'
15184         fi
15185         aix_use_runtimelinking=no
15186
15187         # Test if we are trying to use run time linking or normal
15188         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15189         # need to do runtime linking.
15190         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15191           for ld_flag in $LDFLAGS; do
15192           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15193             aix_use_runtimelinking=yes
15194             break
15195           fi
15196           done
15197           ;;
15198         esac
15199
15200         exp_sym_flag='-bexport'
15201         no_entry_flag='-bnoentry'
15202       fi
15203
15204       # When large executables or shared objects are built, AIX ld can
15205       # have problems creating the table of contents.  If linking a library
15206       # or program results in "error TOC overflow" add -mminimal-toc to
15207       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15208       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15209
15210       archive_cmds=''
15211       hardcode_direct=yes
15212       hardcode_libdir_separator=':'
15213       link_all_deplibs=yes
15214
15215       if test "$GCC" = yes; then
15216         case $host_os in aix4.[012]|aix4.[012].*)
15217         # We only want to do this on AIX 4.2 and lower, the check
15218         # below for broken collect2 doesn't work under 4.3+
15219           collect2name=`${CC} -print-prog-name=collect2`
15220           if test -f "$collect2name" && \
15221            strings "$collect2name" | grep resolve_lib_name >/dev/null
15222           then
15223           # We have reworked collect2
15224           hardcode_direct=yes
15225           else
15226           # We have old collect2
15227           hardcode_direct=unsupported
15228           # It fails to find uninstalled libraries when the uninstalled
15229           # path is not listed in the libpath.  Setting hardcode_minus_L
15230           # to unsupported forces relinking
15231           hardcode_minus_L=yes
15232           hardcode_libdir_flag_spec='-L$libdir'
15233           hardcode_libdir_separator=
15234           fi
15235           ;;
15236         esac
15237         shared_flag='-shared'
15238         if test "$aix_use_runtimelinking" = yes; then
15239           shared_flag="$shared_flag "'${wl}-G'
15240         fi
15241       else
15242         # not using gcc
15243         if test "$host_cpu" = ia64; then
15244         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15245         # chokes on -Wl,-G. The following line is correct:
15246           shared_flag='-G'
15247         else
15248           if test "$aix_use_runtimelinking" = yes; then
15249             shared_flag='${wl}-G'
15250           else
15251             shared_flag='${wl}-bM:SRE'
15252           fi
15253         fi
15254       fi
15255
15256       # It seems that -bexpall does not export symbols beginning with
15257       # underscore (_), so it is better to generate a list of symbols to export.
15258       always_export_symbols=yes
15259       if test "$aix_use_runtimelinking" = yes; then
15260         # Warning - without using the other runtime loading flags (-brtl),
15261         # -berok will link without error, but may produce a broken library.
15262         allow_undefined_flag='-berok'
15263        # Determine the default libpath from the value encoded in an empty executable.
15264        cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h.  */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h.  */
15270
15271 int
15272 main ()
15273 {
15274
15275   ;
15276   return 0;
15277 }
15278 _ACEOF
15279 rm -f conftest.$ac_objext conftest$ac_exeext
15280 if { (ac_try="$ac_link"
15281 case "(($ac_try" in
15282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283   *) ac_try_echo=$ac_try;;
15284 esac
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286   (eval "$ac_link") 2>conftest.er1
15287   ac_status=$?
15288   grep -v '^ *+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } &&
15293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294   { (case "(($ac_try" in
15295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296   *) ac_try_echo=$ac_try;;
15297 esac
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299   (eval "$ac_try") 2>&5
15300   ac_status=$?
15301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); }; } &&
15303          { ac_try='test -s conftest$ac_exeext'
15304   { (case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_try") 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; }; then
15313
15314 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15315 }'`
15316 # Check for a 64-bit object if we didn't find anything.
15317 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; }
15318 }'`; fi
15319 else
15320   echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323
15324 fi
15325
15326 rm -f core conftest.err conftest.$ac_objext \
15327       conftest$ac_exeext conftest.$ac_ext
15328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15329
15330        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15331         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"
15332        else
15333         if test "$host_cpu" = ia64; then
15334           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15335           allow_undefined_flag="-z nodefs"
15336           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"
15337         else
15338          # Determine the default libpath from the value encoded in an empty executable.
15339          cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h.  */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h.  */
15345
15346 int
15347 main ()
15348 {
15349
15350   ;
15351   return 0;
15352 }
15353 _ACEOF
15354 rm -f conftest.$ac_objext conftest$ac_exeext
15355 if { (ac_try="$ac_link"
15356 case "(($ac_try" in
15357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358   *) ac_try_echo=$ac_try;;
15359 esac
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361   (eval "$ac_link") 2>conftest.er1
15362   ac_status=$?
15363   grep -v '^ *+' conftest.er1 >conftest.err
15364   rm -f conftest.er1
15365   cat conftest.err >&5
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); } &&
15368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15369   { (case "(($ac_try" in
15370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371   *) ac_try_echo=$ac_try;;
15372 esac
15373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374   (eval "$ac_try") 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); }; } &&
15378          { ac_try='test -s conftest$ac_exeext'
15379   { (case "(($ac_try" in
15380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381   *) ac_try_echo=$ac_try;;
15382 esac
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384   (eval "$ac_try") 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; }; then
15388
15389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15390 }'`
15391 # Check for a 64-bit object if we didn't find anything.
15392 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; }
15393 }'`; fi
15394 else
15395   echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398
15399 fi
15400
15401 rm -f core conftest.err conftest.$ac_objext \
15402       conftest$ac_exeext conftest.$ac_ext
15403 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15404
15405          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15406           # Warning - without using the other run time loading flags,
15407           # -berok will link without error, but may produce a broken library.
15408           no_undefined_flag=' ${wl}-bernotok'
15409           allow_undefined_flag=' ${wl}-berok'
15410           # Exported symbols can be pulled into shared objects from archives
15411           whole_archive_flag_spec='$convenience'
15412           archive_cmds_need_lc=yes
15413           # This is similar to how AIX traditionally builds its shared libraries.
15414           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'
15415         fi
15416       fi
15417       ;;
15418
15419     amigaos*)
15420       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)'
15421       hardcode_libdir_flag_spec='-L$libdir'
15422       hardcode_minus_L=yes
15423       # see comment about different semantics on the GNU ld section
15424       ld_shlibs=no
15425       ;;
15426
15427     bsdi[45]*)
15428       export_dynamic_flag_spec=-rdynamic
15429       ;;
15430
15431     cygwin* | mingw* | pw32*)
15432       # When not using gcc, we currently assume that we are using
15433       # Microsoft Visual C++.
15434       # hardcode_libdir_flag_spec is actually meaningless, as there is
15435       # no search path for DLLs.
15436       hardcode_libdir_flag_spec=' '
15437       allow_undefined_flag=unsupported
15438       # Tell ltmain to make .lib files, not .a files.
15439       libext=lib
15440       # Tell ltmain to make .dll files, not .so files.
15441       shrext_cmds=".dll"
15442       # FIXME: Setting linknames here is a bad hack.
15443       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15444       # The linker will automatically build a .lib file if we build a DLL.
15445       old_archive_From_new_cmds='true'
15446       # FIXME: Should let the user specify the lib program.
15447       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15448       fix_srcfile_path='`cygpath -w "$srcfile"`'
15449       enable_shared_with_static_runtimes=yes
15450       ;;
15451
15452     darwin* | rhapsody*)
15453       case $host_os in
15454         rhapsody* | darwin1.[012])
15455          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15456          ;;
15457        *) # Darwin 1.3 on
15458          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15459            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15460          else
15461            case ${MACOSX_DEPLOYMENT_TARGET} in
15462              10.[012])
15463                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15464                ;;
15465              10.*)
15466                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15467                ;;
15468            esac
15469          fi
15470          ;;
15471       esac
15472       archive_cmds_need_lc=no
15473       hardcode_direct=no
15474       hardcode_automatic=yes
15475       hardcode_shlibpath_var=unsupported
15476       whole_archive_flag_spec=''
15477       link_all_deplibs=yes
15478     if test "$GCC" = yes ; then
15479         output_verbose_link_cmd='echo'
15480         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15481       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15482       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15483       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}'
15484       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}'
15485     else
15486       case $cc_basename in
15487         xlc*)
15488          output_verbose_link_cmd='echo'
15489          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15490          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15491           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15492          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}'
15493           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}'
15494           ;;
15495        *)
15496          ld_shlibs=no
15497           ;;
15498       esac
15499     fi
15500       ;;
15501
15502     dgux*)
15503       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504       hardcode_libdir_flag_spec='-L$libdir'
15505       hardcode_shlibpath_var=no
15506       ;;
15507
15508     freebsd1*)
15509       ld_shlibs=no
15510       ;;
15511
15512     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15513     # support.  Future versions do this automatically, but an explicit c++rt0.o
15514     # does not break anything, and helps significantly (at the cost of a little
15515     # extra space).
15516     freebsd2.2*)
15517       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15518       hardcode_libdir_flag_spec='-R$libdir'
15519       hardcode_direct=yes
15520       hardcode_shlibpath_var=no
15521       ;;
15522
15523     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15524     freebsd2*)
15525       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15526       hardcode_direct=yes
15527       hardcode_minus_L=yes
15528       hardcode_shlibpath_var=no
15529       ;;
15530
15531     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15532     freebsd* | kfreebsd*-gnu | dragonfly*)
15533       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15534       hardcode_libdir_flag_spec='-R$libdir'
15535       hardcode_direct=yes
15536       hardcode_shlibpath_var=no
15537       ;;
15538
15539     hpux9*)
15540       if test "$GCC" = yes; then
15541         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'
15542       else
15543         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'
15544       fi
15545       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15546       hardcode_libdir_separator=:
15547       hardcode_direct=yes
15548
15549       # hardcode_minus_L: Not really in the search PATH,
15550       # but as the default location of the library.
15551       hardcode_minus_L=yes
15552       export_dynamic_flag_spec='${wl}-E'
15553       ;;
15554
15555     hpux10*)
15556       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15557         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15558       else
15559         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15560       fi
15561       if test "$with_gnu_ld" = no; then
15562         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15563         hardcode_libdir_separator=:
15564
15565         hardcode_direct=yes
15566         export_dynamic_flag_spec='${wl}-E'
15567
15568         # hardcode_minus_L: Not really in the search PATH,
15569         # but as the default location of the library.
15570         hardcode_minus_L=yes
15571       fi
15572       ;;
15573
15574     hpux11*)
15575       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15576         case $host_cpu in
15577         hppa*64*)
15578           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15579           ;;
15580         ia64*)
15581           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15582           ;;
15583         *)
15584           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15585           ;;
15586         esac
15587       else
15588         case $host_cpu in
15589         hppa*64*)
15590           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15591           ;;
15592         ia64*)
15593           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15594           ;;
15595         *)
15596           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15597           ;;
15598         esac
15599       fi
15600       if test "$with_gnu_ld" = no; then
15601         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15602         hardcode_libdir_separator=:
15603
15604         case $host_cpu in
15605         hppa*64*|ia64*)
15606           hardcode_libdir_flag_spec_ld='+b $libdir'
15607           hardcode_direct=no
15608           hardcode_shlibpath_var=no
15609           ;;
15610         *)
15611           hardcode_direct=yes
15612           export_dynamic_flag_spec='${wl}-E'
15613
15614           # hardcode_minus_L: Not really in the search PATH,
15615           # but as the default location of the library.
15616           hardcode_minus_L=yes
15617           ;;
15618         esac
15619       fi
15620       ;;
15621
15622     irix5* | irix6* | nonstopux*)
15623       if test "$GCC" = yes; then
15624         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'
15625       else
15626         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'
15627         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15628       fi
15629       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15630       hardcode_libdir_separator=:
15631       link_all_deplibs=yes
15632       ;;
15633
15634     netbsd*)
15635       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15636         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15637       else
15638         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15639       fi
15640       hardcode_libdir_flag_spec='-R$libdir'
15641       hardcode_direct=yes
15642       hardcode_shlibpath_var=no
15643       ;;
15644
15645     newsos6)
15646       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15647       hardcode_direct=yes
15648       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15649       hardcode_libdir_separator=:
15650       hardcode_shlibpath_var=no
15651       ;;
15652
15653     openbsd*)
15654       hardcode_direct=yes
15655       hardcode_shlibpath_var=no
15656       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15657         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15658         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15659         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15660         export_dynamic_flag_spec='${wl}-E'
15661       else
15662        case $host_os in
15663          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15664            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15665            hardcode_libdir_flag_spec='-R$libdir'
15666            ;;
15667          *)
15668            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15669            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15670            ;;
15671        esac
15672       fi
15673       ;;
15674
15675     os2*)
15676       hardcode_libdir_flag_spec='-L$libdir'
15677       hardcode_minus_L=yes
15678       allow_undefined_flag=unsupported
15679       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'
15680       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15681       ;;
15682
15683     osf3*)
15684       if test "$GCC" = yes; then
15685         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15686         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'
15687       else
15688         allow_undefined_flag=' -expect_unresolved \*'
15689         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'
15690       fi
15691       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15692       hardcode_libdir_separator=:
15693       ;;
15694
15695     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15696       if test "$GCC" = yes; then
15697         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15698         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'
15699         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15700       else
15701         allow_undefined_flag=' -expect_unresolved \*'
15702         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'
15703         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15704         $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'
15705
15706         # Both c and cxx compiler support -rpath directly
15707         hardcode_libdir_flag_spec='-rpath $libdir'
15708       fi
15709       hardcode_libdir_separator=:
15710       ;;
15711
15712     solaris*)
15713       no_undefined_flag=' -z text'
15714       if test "$GCC" = yes; then
15715         wlarc='${wl}'
15716         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15717         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15718           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15719       else
15720         wlarc=''
15721         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15723         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15724       fi
15725       hardcode_libdir_flag_spec='-R$libdir'
15726       hardcode_shlibpath_var=no
15727       case $host_os in
15728       solaris2.[0-5] | solaris2.[0-5].*) ;;
15729       *)
15730         # The compiler driver will combine linker options so we
15731         # cannot just pass the convience library names through
15732         # without $wl, iff we do not link with $LD.
15733         # Luckily, gcc supports the same syntax we need for Sun Studio.
15734         # Supported since Solaris 2.6 (maybe 2.5.1?)
15735         case $wlarc in
15736         '')
15737           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15738         *)
15739           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' ;;
15740         esac ;;
15741       esac
15742       link_all_deplibs=yes
15743       ;;
15744
15745     sunos4*)
15746       if test "x$host_vendor" = xsequent; then
15747         # Use $CC to link under sequent, because it throws in some extra .o
15748         # files that make .init and .fini sections work.
15749         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15750       else
15751         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15752       fi
15753       hardcode_libdir_flag_spec='-L$libdir'
15754       hardcode_direct=yes
15755       hardcode_minus_L=yes
15756       hardcode_shlibpath_var=no
15757       ;;
15758
15759     sysv4)
15760       case $host_vendor in
15761         sni)
15762           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763           hardcode_direct=yes # is this really true???
15764         ;;
15765         siemens)
15766           ## LD is ld it makes a PLAMLIB
15767           ## CC just makes a GrossModule.
15768           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15769           reload_cmds='$CC -r -o $output$reload_objs'
15770           hardcode_direct=no
15771         ;;
15772         motorola)
15773           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15774           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15775         ;;
15776       esac
15777       runpath_var='LD_RUN_PATH'
15778       hardcode_shlibpath_var=no
15779       ;;
15780
15781     sysv4.3*)
15782       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15783       hardcode_shlibpath_var=no
15784       export_dynamic_flag_spec='-Bexport'
15785       ;;
15786
15787     sysv4*MP*)
15788       if test -d /usr/nec; then
15789         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790         hardcode_shlibpath_var=no
15791         runpath_var=LD_RUN_PATH
15792         hardcode_runpath_var=yes
15793         ld_shlibs=yes
15794       fi
15795       ;;
15796
15797     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15798       no_undefined_flag='${wl}-z,text'
15799       archive_cmds_need_lc=no
15800       hardcode_shlibpath_var=no
15801       runpath_var='LD_RUN_PATH'
15802
15803       if test "$GCC" = yes; then
15804         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15805         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15806       else
15807         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15808         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15809       fi
15810       ;;
15811
15812     sysv5* | sco3.2v5* | sco5v6*)
15813       # Note: We can NOT use -z defs as we might desire, because we do not
15814       # link with -lc, and that would cause any symbols used from libc to
15815       # always be unresolved, which means just about no library would
15816       # ever link correctly.  If we're not using GNU ld we use -z text
15817       # though, which does catch some bad symbols but isn't as heavy-handed
15818       # as -z defs.
15819       no_undefined_flag='${wl}-z,text'
15820       allow_undefined_flag='${wl}-z,nodefs'
15821       archive_cmds_need_lc=no
15822       hardcode_shlibpath_var=no
15823       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15824       hardcode_libdir_separator=':'
15825       link_all_deplibs=yes
15826       export_dynamic_flag_spec='${wl}-Bexport'
15827       runpath_var='LD_RUN_PATH'
15828
15829       if test "$GCC" = yes; then
15830         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15832       else
15833         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15834         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15835       fi
15836       ;;
15837
15838     uts4*)
15839       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840       hardcode_libdir_flag_spec='-L$libdir'
15841       hardcode_shlibpath_var=no
15842       ;;
15843
15844     *)
15845       ld_shlibs=no
15846       ;;
15847     esac
15848   fi
15849
15850 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15851 echo "${ECHO_T}$ld_shlibs" >&6; }
15852 test "$ld_shlibs" = no && can_build_shared=no
15853
15854 #
15855 # Do we need to explicitly link libc?
15856 #
15857 case "x$archive_cmds_need_lc" in
15858 x|xyes)
15859   # Assume -lc should be added
15860   archive_cmds_need_lc=yes
15861
15862   if test "$enable_shared" = yes && test "$GCC" = yes; then
15863     case $archive_cmds in
15864     *'~'*)
15865       # FIXME: we may have to deal with multi-command sequences.
15866       ;;
15867     '$CC '*)
15868       # Test whether the compiler implicitly links with -lc since on some
15869       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15870       # to ld, don't add -lc before -lgcc.
15871       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15872 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15873       $rm conftest*
15874       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15875
15876       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15877   (eval $ac_compile) 2>&5
15878   ac_status=$?
15879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880   (exit $ac_status); } 2>conftest.err; then
15881         soname=conftest
15882         lib=conftest
15883         libobjs=conftest.$ac_objext
15884         deplibs=
15885         wl=$lt_prog_compiler_wl
15886         pic_flag=$lt_prog_compiler_pic
15887         compiler_flags=-v
15888         linker_flags=-v
15889         verstring=
15890         output_objdir=.
15891         libname=conftest
15892         lt_save_allow_undefined_flag=$allow_undefined_flag
15893         allow_undefined_flag=
15894         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15895   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }
15899         then
15900           archive_cmds_need_lc=no
15901         else
15902           archive_cmds_need_lc=yes
15903         fi
15904         allow_undefined_flag=$lt_save_allow_undefined_flag
15905       else
15906         cat conftest.err 1>&5
15907       fi
15908       $rm conftest*
15909       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15910 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15911       ;;
15912     esac
15913   fi
15914   ;;
15915 esac
15916
15917 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15918 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15919 library_names_spec=
15920 libname_spec='lib$name'
15921 soname_spec=
15922 shrext_cmds=".so"
15923 postinstall_cmds=
15924 postuninstall_cmds=
15925 finish_cmds=
15926 finish_eval=
15927 shlibpath_var=
15928 shlibpath_overrides_runpath=unknown
15929 version_type=none
15930 dynamic_linker="$host_os ld.so"
15931 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15932 if test "$GCC" = yes; then
15933   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15934   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15935     # if the path contains ";" then we assume it to be the separator
15936     # otherwise default to the standard path separator (i.e. ":") - it is
15937     # assumed that no part of a normal pathname contains ";" but that should
15938     # okay in the real world where ";" in dirpaths is itself problematic.
15939     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15940   else
15941     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15942   fi
15943 else
15944   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15945 fi
15946 need_lib_prefix=unknown
15947 hardcode_into_libs=no
15948
15949 # when you set need_version to no, make sure it does not cause -set_version
15950 # flags to be left without arguments
15951 need_version=unknown
15952
15953 case $host_os in
15954 aix3*)
15955   version_type=linux
15956   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15957   shlibpath_var=LIBPATH
15958
15959   # AIX 3 has no versioning support, so we append a major version to the name.
15960   soname_spec='${libname}${release}${shared_ext}$major'
15961   ;;
15962
15963 aix4* | aix5*)
15964   version_type=linux
15965   need_lib_prefix=no
15966   need_version=no
15967   hardcode_into_libs=yes
15968   if test "$host_cpu" = ia64; then
15969     # AIX 5 supports IA64
15970     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15971     shlibpath_var=LD_LIBRARY_PATH
15972   else
15973     # With GCC up to 2.95.x, collect2 would create an import file
15974     # for dependence libraries.  The import file would start with
15975     # the line `#! .'.  This would cause the generated library to
15976     # depend on `.', always an invalid library.  This was fixed in
15977     # development snapshots of GCC prior to 3.0.
15978     case $host_os in
15979       aix4 | aix4.[01] | aix4.[01].*)
15980       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15981            echo ' yes '
15982            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15983         :
15984       else
15985         can_build_shared=no
15986       fi
15987       ;;
15988     esac
15989     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15990     # soname into executable. Probably we can add versioning support to
15991     # collect2, so additional links can be useful in future.
15992     if test "$aix_use_runtimelinking" = yes; then
15993       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15994       # instead of lib<name>.a to let people know that these are not
15995       # typical AIX shared libraries.
15996       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15997     else
15998       # We preserve .a as extension for shared libraries through AIX4.2
15999       # and later when we are not doing run time linking.
16000       library_names_spec='${libname}${release}.a $libname.a'
16001       soname_spec='${libname}${release}${shared_ext}$major'
16002     fi
16003     shlibpath_var=LIBPATH
16004   fi
16005   ;;
16006
16007 amigaos*)
16008   library_names_spec='$libname.ixlibrary $libname.a'
16009   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16010   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'
16011   ;;
16012
16013 beos*)
16014   library_names_spec='${libname}${shared_ext}'
16015   dynamic_linker="$host_os ld.so"
16016   shlibpath_var=LIBRARY_PATH
16017   ;;
16018
16019 bsdi[45]*)
16020   version_type=linux
16021   need_version=no
16022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023   soname_spec='${libname}${release}${shared_ext}$major'
16024   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16025   shlibpath_var=LD_LIBRARY_PATH
16026   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16027   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16028   # the default ld.so.conf also contains /usr/contrib/lib and
16029   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16030   # libtool to hard-code these into programs
16031   ;;
16032
16033 cygwin* | mingw* | pw32*)
16034   version_type=windows
16035   shrext_cmds=".dll"
16036   need_version=no
16037   need_lib_prefix=no
16038
16039   case $GCC,$host_os in
16040   yes,cygwin* | yes,mingw* | yes,pw32*)
16041     library_names_spec='$libname.dll.a'
16042     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16043     postinstall_cmds='base_file=`basename \${file}`~
16044       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16045       dldir=$destdir/`dirname \$dlpath`~
16046       test -d \$dldir || mkdir -p \$dldir~
16047       $install_prog $dir/$dlname \$dldir/$dlname~
16048       chmod a+x \$dldir/$dlname'
16049     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16050       dlpath=$dir/\$dldll~
16051        $rm \$dlpath'
16052     shlibpath_overrides_runpath=yes
16053
16054     case $host_os in
16055     cygwin*)
16056       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16057       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16058       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16059       ;;
16060     mingw*)
16061       # MinGW DLLs use traditional 'lib' prefix
16062       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16063       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16064       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16065         # It is most probably a Windows format PATH printed by
16066         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16067         # path with ; separators, and with drive letters. We can handle the
16068         # drive letters (cygwin fileutils understands them), so leave them,
16069         # especially as we might pass files found there to a mingw objdump,
16070         # which wouldn't understand a cygwinified path. Ahh.
16071         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16072       else
16073         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16074       fi
16075       ;;
16076     pw32*)
16077       # pw32 DLLs use 'pw' prefix rather than 'lib'
16078       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16079       ;;
16080     esac
16081     ;;
16082
16083   *)
16084     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16085     ;;
16086   esac
16087   dynamic_linker='Win32 ld.exe'
16088   # FIXME: first we should search . and the directory the executable is in
16089   shlibpath_var=PATH
16090   ;;
16091
16092 darwin* | rhapsody*)
16093   dynamic_linker="$host_os dyld"
16094   version_type=darwin
16095   need_lib_prefix=no
16096   need_version=no
16097   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16098   soname_spec='${libname}${release}${major}$shared_ext'
16099   shlibpath_overrides_runpath=yes
16100   shlibpath_var=DYLD_LIBRARY_PATH
16101   shrext_cmds='.dylib'
16102   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16103   if test "$GCC" = yes; then
16104     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"`
16105   else
16106     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16107   fi
16108   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16109   ;;
16110
16111 dgux*)
16112   version_type=linux
16113   need_lib_prefix=no
16114   need_version=no
16115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16116   soname_spec='${libname}${release}${shared_ext}$major'
16117   shlibpath_var=LD_LIBRARY_PATH
16118   ;;
16119
16120 freebsd1*)
16121   dynamic_linker=no
16122   ;;
16123
16124 kfreebsd*-gnu)
16125   version_type=linux
16126   need_lib_prefix=no
16127   need_version=no
16128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16129   soname_spec='${libname}${release}${shared_ext}$major'
16130   shlibpath_var=LD_LIBRARY_PATH
16131   shlibpath_overrides_runpath=no
16132   hardcode_into_libs=yes
16133   dynamic_linker='GNU ld.so'
16134   ;;
16135
16136 freebsd* | dragonfly*)
16137   # DragonFly does not have aout.  When/if they implement a new
16138   # versioning mechanism, adjust this.
16139   if test -x /usr/bin/objformat; then
16140     objformat=`/usr/bin/objformat`
16141   else
16142     case $host_os in
16143     freebsd[123]*) objformat=aout ;;
16144     *) objformat=elf ;;
16145     esac
16146   fi
16147   version_type=freebsd-$objformat
16148   case $version_type in
16149     freebsd-elf*)
16150       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16151       need_version=no
16152       need_lib_prefix=no
16153       ;;
16154     freebsd-*)
16155       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16156       need_version=yes
16157       ;;
16158   esac
16159   shlibpath_var=LD_LIBRARY_PATH
16160   case $host_os in
16161   freebsd2*)
16162     shlibpath_overrides_runpath=yes
16163     ;;
16164   freebsd3.[01]* | freebsdelf3.[01]*)
16165     shlibpath_overrides_runpath=yes
16166     hardcode_into_libs=yes
16167     ;;
16168   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16169   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16170     shlibpath_overrides_runpath=no
16171     hardcode_into_libs=yes
16172     ;;
16173   freebsd*) # from 4.6 on
16174     shlibpath_overrides_runpath=yes
16175     hardcode_into_libs=yes
16176     ;;
16177   esac
16178   ;;
16179
16180 gnu*)
16181   version_type=linux
16182   need_lib_prefix=no
16183   need_version=no
16184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16185   soname_spec='${libname}${release}${shared_ext}$major'
16186   shlibpath_var=LD_LIBRARY_PATH
16187   hardcode_into_libs=yes
16188   ;;
16189
16190 hpux9* | hpux10* | hpux11*)
16191   # Give a soname corresponding to the major version so that dld.sl refuses to
16192   # link against other versions.
16193   version_type=sunos
16194   need_lib_prefix=no
16195   need_version=no
16196   case $host_cpu in
16197   ia64*)
16198     shrext_cmds='.so'
16199     hardcode_into_libs=yes
16200     dynamic_linker="$host_os dld.so"
16201     shlibpath_var=LD_LIBRARY_PATH
16202     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204     soname_spec='${libname}${release}${shared_ext}$major'
16205     if test "X$HPUX_IA64_MODE" = X32; then
16206       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16207     else
16208       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16209     fi
16210     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16211     ;;
16212    hppa*64*)
16213      shrext_cmds='.sl'
16214      hardcode_into_libs=yes
16215      dynamic_linker="$host_os dld.sl"
16216      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16217      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16218      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219      soname_spec='${libname}${release}${shared_ext}$major'
16220      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16221      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16222      ;;
16223    *)
16224     shrext_cmds='.sl'
16225     dynamic_linker="$host_os dld.sl"
16226     shlibpath_var=SHLIB_PATH
16227     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229     soname_spec='${libname}${release}${shared_ext}$major'
16230     ;;
16231   esac
16232   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16233   postinstall_cmds='chmod 555 $lib'
16234   ;;
16235
16236 interix3*)
16237   version_type=linux
16238   need_lib_prefix=no
16239   need_version=no
16240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16241   soname_spec='${libname}${release}${shared_ext}$major'
16242   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16243   shlibpath_var=LD_LIBRARY_PATH
16244   shlibpath_overrides_runpath=no
16245   hardcode_into_libs=yes
16246   ;;
16247
16248 irix5* | irix6* | nonstopux*)
16249   case $host_os in
16250     nonstopux*) version_type=nonstopux ;;
16251     *)
16252         if test "$lt_cv_prog_gnu_ld" = yes; then
16253                 version_type=linux
16254         else
16255                 version_type=irix
16256         fi ;;
16257   esac
16258   need_lib_prefix=no
16259   need_version=no
16260   soname_spec='${libname}${release}${shared_ext}$major'
16261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16262   case $host_os in
16263   irix5* | nonstopux*)
16264     libsuff= shlibsuff=
16265     ;;
16266   *)
16267     case $LD in # libtool.m4 will add one of these switches to LD
16268     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16269       libsuff= shlibsuff= libmagic=32-bit;;
16270     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16271       libsuff=32 shlibsuff=N32 libmagic=N32;;
16272     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16273       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16274     *) libsuff= shlibsuff= libmagic=never-match;;
16275     esac
16276     ;;
16277   esac
16278   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16279   shlibpath_overrides_runpath=no
16280   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16281   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16282   hardcode_into_libs=yes
16283   ;;
16284
16285 # No shared lib support for Linux oldld, aout, or coff.
16286 linux*oldld* | linux*aout* | linux*coff*)
16287   dynamic_linker=no
16288   ;;
16289
16290 # This must be Linux ELF.
16291 linux*)
16292   version_type=linux
16293   need_lib_prefix=no
16294   need_version=no
16295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296   soname_spec='${libname}${release}${shared_ext}$major'
16297   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16298   shlibpath_var=LD_LIBRARY_PATH
16299   shlibpath_overrides_runpath=no
16300   # This implies no fast_install, which is unacceptable.
16301   # Some rework will be needed to allow for fast_install
16302   # before this can be enabled.
16303   hardcode_into_libs=yes
16304
16305   # Append ld.so.conf contents to the search path
16306   if test -f /etc/ld.so.conf; then
16307     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' ' '`
16308     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16309   fi
16310
16311   # We used to test for /lib/ld.so.1 and disable shared libraries on
16312   # powerpc, because MkLinux only supported shared libraries with the
16313   # GNU dynamic linker.  Since this was broken with cross compilers,
16314   # most powerpc-linux boxes support dynamic linking these days and
16315   # people can always --disable-shared, the test was removed, and we
16316   # assume the GNU/Linux dynamic linker is in use.
16317   dynamic_linker='GNU/Linux ld.so'
16318   ;;
16319
16320 knetbsd*-gnu)
16321   version_type=linux
16322   need_lib_prefix=no
16323   need_version=no
16324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16325   soname_spec='${libname}${release}${shared_ext}$major'
16326   shlibpath_var=LD_LIBRARY_PATH
16327   shlibpath_overrides_runpath=no
16328   hardcode_into_libs=yes
16329   dynamic_linker='GNU ld.so'
16330   ;;
16331
16332 netbsd*)
16333   version_type=sunos
16334   need_lib_prefix=no
16335   need_version=no
16336   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16338     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16339     dynamic_linker='NetBSD (a.out) ld.so'
16340   else
16341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16342     soname_spec='${libname}${release}${shared_ext}$major'
16343     dynamic_linker='NetBSD ld.elf_so'
16344   fi
16345   shlibpath_var=LD_LIBRARY_PATH
16346   shlibpath_overrides_runpath=yes
16347   hardcode_into_libs=yes
16348   ;;
16349
16350 newsos6)
16351   version_type=linux
16352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353   shlibpath_var=LD_LIBRARY_PATH
16354   shlibpath_overrides_runpath=yes
16355   ;;
16356
16357 nto-qnx*)
16358   version_type=linux
16359   need_lib_prefix=no
16360   need_version=no
16361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362   soname_spec='${libname}${release}${shared_ext}$major'
16363   shlibpath_var=LD_LIBRARY_PATH
16364   shlibpath_overrides_runpath=yes
16365   ;;
16366
16367 openbsd*)
16368   version_type=sunos
16369   sys_lib_dlsearch_path_spec="/usr/lib"
16370   need_lib_prefix=no
16371   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16372   case $host_os in
16373     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16374     *)                         need_version=no  ;;
16375   esac
16376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16377   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16378   shlibpath_var=LD_LIBRARY_PATH
16379   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16380     case $host_os in
16381       openbsd2.[89] | openbsd2.[89].*)
16382         shlibpath_overrides_runpath=no
16383         ;;
16384       *)
16385         shlibpath_overrides_runpath=yes
16386         ;;
16387       esac
16388   else
16389     shlibpath_overrides_runpath=yes
16390   fi
16391   ;;
16392
16393 os2*)
16394   libname_spec='$name'
16395   shrext_cmds=".dll"
16396   need_lib_prefix=no
16397   library_names_spec='$libname${shared_ext} $libname.a'
16398   dynamic_linker='OS/2 ld.exe'
16399   shlibpath_var=LIBPATH
16400   ;;
16401
16402 osf3* | osf4* | osf5*)
16403   version_type=osf
16404   need_lib_prefix=no
16405   need_version=no
16406   soname_spec='${libname}${release}${shared_ext}$major'
16407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408   shlibpath_var=LD_LIBRARY_PATH
16409   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16410   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16411   ;;
16412
16413 solaris*)
16414   version_type=linux
16415   need_lib_prefix=no
16416   need_version=no
16417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418   soname_spec='${libname}${release}${shared_ext}$major'
16419   shlibpath_var=LD_LIBRARY_PATH
16420   shlibpath_overrides_runpath=yes
16421   hardcode_into_libs=yes
16422   # ldd complains unless libraries are executable
16423   postinstall_cmds='chmod +x $lib'
16424   ;;
16425
16426 sunos4*)
16427   version_type=sunos
16428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16429   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16430   shlibpath_var=LD_LIBRARY_PATH
16431   shlibpath_overrides_runpath=yes
16432   if test "$with_gnu_ld" = yes; then
16433     need_lib_prefix=no
16434   fi
16435   need_version=yes
16436   ;;
16437
16438 sysv4 | sysv4.3*)
16439   version_type=linux
16440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441   soname_spec='${libname}${release}${shared_ext}$major'
16442   shlibpath_var=LD_LIBRARY_PATH
16443   case $host_vendor in
16444     sni)
16445       shlibpath_overrides_runpath=no
16446       need_lib_prefix=no
16447       export_dynamic_flag_spec='${wl}-Blargedynsym'
16448       runpath_var=LD_RUN_PATH
16449       ;;
16450     siemens)
16451       need_lib_prefix=no
16452       ;;
16453     motorola)
16454       need_lib_prefix=no
16455       need_version=no
16456       shlibpath_overrides_runpath=no
16457       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16458       ;;
16459   esac
16460   ;;
16461
16462 sysv4*MP*)
16463   if test -d /usr/nec ;then
16464     version_type=linux
16465     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16466     soname_spec='$libname${shared_ext}.$major'
16467     shlibpath_var=LD_LIBRARY_PATH
16468   fi
16469   ;;
16470
16471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16472   version_type=freebsd-elf
16473   need_lib_prefix=no
16474   need_version=no
16475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16476   soname_spec='${libname}${release}${shared_ext}$major'
16477   shlibpath_var=LD_LIBRARY_PATH
16478   hardcode_into_libs=yes
16479   if test "$with_gnu_ld" = yes; then
16480     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16481     shlibpath_overrides_runpath=no
16482   else
16483     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16484     shlibpath_overrides_runpath=yes
16485     case $host_os in
16486       sco3.2v5*)
16487         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16488         ;;
16489     esac
16490   fi
16491   sys_lib_dlsearch_path_spec='/usr/lib'
16492   ;;
16493
16494 uts4*)
16495   version_type=linux
16496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497   soname_spec='${libname}${release}${shared_ext}$major'
16498   shlibpath_var=LD_LIBRARY_PATH
16499   ;;
16500
16501 *)
16502   dynamic_linker=no
16503   ;;
16504 esac
16505 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16506 echo "${ECHO_T}$dynamic_linker" >&6; }
16507 test "$dynamic_linker" = no && can_build_shared=no
16508
16509 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16510 if test "$GCC" = yes; then
16511   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16512 fi
16513
16514 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16515 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16516 hardcode_action=
16517 if test -n "$hardcode_libdir_flag_spec" || \
16518    test -n "$runpath_var" || \
16519    test "X$hardcode_automatic" = "Xyes" ; then
16520
16521   # We can hardcode non-existant directories.
16522   if test "$hardcode_direct" != no &&
16523      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16524      # have to relink, otherwise we might link with an installed library
16525      # when we should be linking with a yet-to-be-installed one
16526      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16527      test "$hardcode_minus_L" != no; then
16528     # Linking always hardcodes the temporary library directory.
16529     hardcode_action=relink
16530   else
16531     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16532     hardcode_action=immediate
16533   fi
16534 else
16535   # We cannot hardcode anything, or else we can only hardcode existing
16536   # directories.
16537   hardcode_action=unsupported
16538 fi
16539 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16540 echo "${ECHO_T}$hardcode_action" >&6; }
16541
16542 if test "$hardcode_action" = relink; then
16543   # Fast installation is not supported
16544   enable_fast_install=no
16545 elif test "$shlibpath_overrides_runpath" = yes ||
16546      test "$enable_shared" = no; then
16547   # Fast installation is not necessary
16548   enable_fast_install=needless
16549 fi
16550
16551 striplib=
16552 old_striplib=
16553 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16554 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16555 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16556   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16557   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16558   { echo "$as_me:$LINENO: result: yes" >&5
16559 echo "${ECHO_T}yes" >&6; }
16560 else
16561 # FIXME - insert some real tests, host_os isn't really good enough
16562   case $host_os in
16563    darwin*)
16564        if test -n "$STRIP" ; then
16565          striplib="$STRIP -x"
16566          { echo "$as_me:$LINENO: result: yes" >&5
16567 echo "${ECHO_T}yes" >&6; }
16568        else
16569   { echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6; }
16571 fi
16572        ;;
16573    *)
16574   { echo "$as_me:$LINENO: result: no" >&5
16575 echo "${ECHO_T}no" >&6; }
16576     ;;
16577   esac
16578 fi
16579
16580 if test "x$enable_dlopen" != xyes; then
16581   enable_dlopen=unknown
16582   enable_dlopen_self=unknown
16583   enable_dlopen_self_static=unknown
16584 else
16585   lt_cv_dlopen=no
16586   lt_cv_dlopen_libs=
16587
16588   case $host_os in
16589   beos*)
16590     lt_cv_dlopen="load_add_on"
16591     lt_cv_dlopen_libs=
16592     lt_cv_dlopen_self=yes
16593     ;;
16594
16595   mingw* | pw32*)
16596     lt_cv_dlopen="LoadLibrary"
16597     lt_cv_dlopen_libs=
16598    ;;
16599
16600   cygwin*)
16601     lt_cv_dlopen="dlopen"
16602     lt_cv_dlopen_libs=
16603    ;;
16604
16605   darwin*)
16606   # if libdl is installed we need to link against it
16607     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16608 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16609 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16610   echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612   ac_check_lib_save_LIBS=$LIBS
16613 LIBS="-ldl  $LIBS"
16614 cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h.  */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h.  */
16620
16621 /* Override any GCC internal prototype to avoid an error.
16622    Use char because int might match the return type of a GCC
16623    builtin and then its argument prototype would still apply.  */
16624 #ifdef __cplusplus
16625 extern "C"
16626 #endif
16627 char dlopen ();
16628 int
16629 main ()
16630 {
16631 return dlopen ();
16632   ;
16633   return 0;
16634 }
16635 _ACEOF
16636 rm -f conftest.$ac_objext conftest$ac_exeext
16637 if { (ac_try="$ac_link"
16638 case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_link") 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } &&
16650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16651   { (case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656   (eval "$ac_try") 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; } &&
16660          { ac_try='test -s conftest$ac_exeext'
16661   { (case "(($ac_try" in
16662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663   *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666   (eval "$ac_try") 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }; then
16670   ac_cv_lib_dl_dlopen=yes
16671 else
16672   echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675         ac_cv_lib_dl_dlopen=no
16676 fi
16677
16678 rm -f core conftest.err conftest.$ac_objext \
16679       conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16681 fi
16682 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16683 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16684 if test $ac_cv_lib_dl_dlopen = yes; then
16685   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16686 else
16687
16688     lt_cv_dlopen="dyld"
16689     lt_cv_dlopen_libs=
16690     lt_cv_dlopen_self=yes
16691
16692 fi
16693
16694    ;;
16695
16696   *)
16697     { echo "$as_me:$LINENO: checking for shl_load" >&5
16698 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16699 if test "${ac_cv_func_shl_load+set}" = set; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702   cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h.  */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h.  */
16708 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16710 #define shl_load innocuous_shl_load
16711
16712 /* System header to define __stub macros and hopefully few prototypes,
16713     which can conflict with char shl_load (); below.
16714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16715     <limits.h> exists even on freestanding compilers.  */
16716
16717 #ifdef __STDC__
16718 # include <limits.h>
16719 #else
16720 # include <assert.h>
16721 #endif
16722
16723 #undef shl_load
16724
16725 /* Override any GCC internal prototype to avoid an error.
16726    Use char because int might match the return type of a GCC
16727    builtin and then its argument prototype would still apply.  */
16728 #ifdef __cplusplus
16729 extern "C"
16730 #endif
16731 char shl_load ();
16732 /* The GNU C library defines this for functions which it implements
16733     to always fail with ENOSYS.  Some functions are actually named
16734     something starting with __ and the normal name is an alias.  */
16735 #if defined __stub_shl_load || defined __stub___shl_load
16736 choke me
16737 #endif
16738
16739 int
16740 main ()
16741 {
16742 return shl_load ();
16743   ;
16744   return 0;
16745 }
16746 _ACEOF
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (ac_try="$ac_link"
16749 case "(($ac_try" in
16750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751   *) ac_try_echo=$ac_try;;
16752 esac
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754   (eval "$ac_link") 2>conftest.er1
16755   ac_status=$?
16756   grep -v '^ *+' conftest.er1 >conftest.err
16757   rm -f conftest.er1
16758   cat conftest.err >&5
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); } &&
16761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16762   { (case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_try") 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); }; } &&
16771          { ac_try='test -s conftest$ac_exeext'
16772   { (case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_try") 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); }; }; then
16781   ac_cv_func_shl_load=yes
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786         ac_cv_func_shl_load=no
16787 fi
16788
16789 rm -f core conftest.err conftest.$ac_objext \
16790       conftest$ac_exeext conftest.$ac_ext
16791 fi
16792 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16793 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16794 if test $ac_cv_func_shl_load = yes; then
16795   lt_cv_dlopen="shl_load"
16796 else
16797   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16798 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16799 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16800   echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802   ac_check_lib_save_LIBS=$LIBS
16803 LIBS="-ldld  $LIBS"
16804 cat >conftest.$ac_ext <<_ACEOF
16805 /* confdefs.h.  */
16806 _ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h.  */
16810
16811 /* Override any GCC internal prototype to avoid an error.
16812    Use char because int might match the return type of a GCC
16813    builtin and then its argument prototype would still apply.  */
16814 #ifdef __cplusplus
16815 extern "C"
16816 #endif
16817 char shl_load ();
16818 int
16819 main ()
16820 {
16821 return shl_load ();
16822   ;
16823   return 0;
16824 }
16825 _ACEOF
16826 rm -f conftest.$ac_objext conftest$ac_exeext
16827 if { (ac_try="$ac_link"
16828 case "(($ac_try" in
16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830   *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833   (eval "$ac_link") 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } &&
16840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841   { (case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_try") 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; } &&
16850          { ac_try='test -s conftest$ac_exeext'
16851   { (case "(($ac_try" in
16852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853   *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_try") 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }; }; then
16860   ac_cv_lib_dld_shl_load=yes
16861 else
16862   echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865         ac_cv_lib_dld_shl_load=no
16866 fi
16867
16868 rm -f core conftest.err conftest.$ac_objext \
16869       conftest$ac_exeext conftest.$ac_ext
16870 LIBS=$ac_check_lib_save_LIBS
16871 fi
16872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16873 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16874 if test $ac_cv_lib_dld_shl_load = yes; then
16875   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16876 else
16877   { echo "$as_me:$LINENO: checking for dlopen" >&5
16878 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16879 if test "${ac_cv_func_dlopen+set}" = set; then
16880   echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882   cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h.  */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h.  */
16888 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16890 #define dlopen innocuous_dlopen
16891
16892 /* System header to define __stub macros and hopefully few prototypes,
16893     which can conflict with char dlopen (); below.
16894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16895     <limits.h> exists even on freestanding compilers.  */
16896
16897 #ifdef __STDC__
16898 # include <limits.h>
16899 #else
16900 # include <assert.h>
16901 #endif
16902
16903 #undef dlopen
16904
16905 /* Override any GCC internal prototype to avoid an error.
16906    Use char because int might match the return type of a GCC
16907    builtin and then its argument prototype would still apply.  */
16908 #ifdef __cplusplus
16909 extern "C"
16910 #endif
16911 char dlopen ();
16912 /* The GNU C library defines this for functions which it implements
16913     to always fail with ENOSYS.  Some functions are actually named
16914     something starting with __ and the normal name is an alias.  */
16915 #if defined __stub_dlopen || defined __stub___dlopen
16916 choke me
16917 #endif
16918
16919 int
16920 main ()
16921 {
16922 return dlopen ();
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (ac_try="$ac_link"
16929 case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934   (eval "$ac_link") 2>conftest.er1
16935   ac_status=$?
16936   grep -v '^ *+' conftest.er1 >conftest.err
16937   rm -f conftest.er1
16938   cat conftest.err >&5
16939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); } &&
16941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16942   { (case "(($ac_try" in
16943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944   *) ac_try_echo=$ac_try;;
16945 esac
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947   (eval "$ac_try") 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); }; } &&
16951          { ac_try='test -s conftest$ac_exeext'
16952   { (case "(($ac_try" in
16953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954   *) ac_try_echo=$ac_try;;
16955 esac
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957   (eval "$ac_try") 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); }; }; then
16961   ac_cv_func_dlopen=yes
16962 else
16963   echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16965
16966         ac_cv_func_dlopen=no
16967 fi
16968
16969 rm -f core conftest.err conftest.$ac_objext \
16970       conftest$ac_exeext conftest.$ac_ext
16971 fi
16972 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16973 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16974 if test $ac_cv_func_dlopen = yes; then
16975   lt_cv_dlopen="dlopen"
16976 else
16977   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16978 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16980   echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982   ac_check_lib_save_LIBS=$LIBS
16983 LIBS="-ldl  $LIBS"
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h.  */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h.  */
16990
16991 /* Override any GCC internal prototype to avoid an error.
16992    Use char because int might match the return type of a GCC
16993    builtin and then its argument prototype would still apply.  */
16994 #ifdef __cplusplus
16995 extern "C"
16996 #endif
16997 char dlopen ();
16998 int
16999 main ()
17000 {
17001 return dlopen ();
17002   ;
17003   return 0;
17004 }
17005 _ACEOF
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (ac_try="$ac_link"
17008 case "(($ac_try" in
17009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010   *) ac_try_echo=$ac_try;;
17011 esac
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013   (eval "$ac_link") 2>conftest.er1
17014   ac_status=$?
17015   grep -v '^ *+' conftest.er1 >conftest.err
17016   rm -f conftest.er1
17017   cat conftest.err >&5
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); } &&
17020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021   { (case "(($ac_try" in
17022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023   *) ac_try_echo=$ac_try;;
17024 esac
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026   (eval "$ac_try") 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }; } &&
17030          { ac_try='test -s conftest$ac_exeext'
17031   { (case "(($ac_try" in
17032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033   *) ac_try_echo=$ac_try;;
17034 esac
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036   (eval "$ac_try") 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   ac_cv_lib_dl_dlopen=yes
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045         ac_cv_lib_dl_dlopen=no
17046 fi
17047
17048 rm -f core conftest.err conftest.$ac_objext \
17049       conftest$ac_exeext conftest.$ac_ext
17050 LIBS=$ac_check_lib_save_LIBS
17051 fi
17052 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17053 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17054 if test $ac_cv_lib_dl_dlopen = yes; then
17055   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17056 else
17057   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17058 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17059 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17060   echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062   ac_check_lib_save_LIBS=$LIBS
17063 LIBS="-lsvld  $LIBS"
17064 cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h.  */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h.  */
17070
17071 /* Override any GCC internal prototype to avoid an error.
17072    Use char because int might match the return type of a GCC
17073    builtin and then its argument prototype would still apply.  */
17074 #ifdef __cplusplus
17075 extern "C"
17076 #endif
17077 char dlopen ();
17078 int
17079 main ()
17080 {
17081 return dlopen ();
17082   ;
17083   return 0;
17084 }
17085 _ACEOF
17086 rm -f conftest.$ac_objext conftest$ac_exeext
17087 if { (ac_try="$ac_link"
17088 case "(($ac_try" in
17089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090   *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093   (eval "$ac_link") 2>conftest.er1
17094   ac_status=$?
17095   grep -v '^ *+' conftest.er1 >conftest.err
17096   rm -f conftest.er1
17097   cat conftest.err >&5
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); } &&
17100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17101   { (case "(($ac_try" in
17102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103   *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106   (eval "$ac_try") 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); }; } &&
17110          { ac_try='test -s conftest$ac_exeext'
17111   { (case "(($ac_try" in
17112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113   *) ac_try_echo=$ac_try;;
17114 esac
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116   (eval "$ac_try") 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); }; }; then
17120   ac_cv_lib_svld_dlopen=yes
17121 else
17122   echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125         ac_cv_lib_svld_dlopen=no
17126 fi
17127
17128 rm -f core conftest.err conftest.$ac_objext \
17129       conftest$ac_exeext conftest.$ac_ext
17130 LIBS=$ac_check_lib_save_LIBS
17131 fi
17132 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17133 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17134 if test $ac_cv_lib_svld_dlopen = yes; then
17135   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17136 else
17137   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17138 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17139 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17140   echo $ECHO_N "(cached) $ECHO_C" >&6
17141 else
17142   ac_check_lib_save_LIBS=$LIBS
17143 LIBS="-ldld  $LIBS"
17144 cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150
17151 /* Override any GCC internal prototype to avoid an error.
17152    Use char because int might match the return type of a GCC
17153    builtin and then its argument prototype would still apply.  */
17154 #ifdef __cplusplus
17155 extern "C"
17156 #endif
17157 char dld_link ();
17158 int
17159 main ()
17160 {
17161 return dld_link ();
17162   ;
17163   return 0;
17164 }
17165 _ACEOF
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (ac_try="$ac_link"
17168 case "(($ac_try" in
17169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170   *) ac_try_echo=$ac_try;;
17171 esac
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173   (eval "$ac_link") 2>conftest.er1
17174   ac_status=$?
17175   grep -v '^ *+' conftest.er1 >conftest.err
17176   rm -f conftest.er1
17177   cat conftest.err >&5
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); } &&
17180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181   { (case "(($ac_try" in
17182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183   *) ac_try_echo=$ac_try;;
17184 esac
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186   (eval "$ac_try") 2>&5
17187   ac_status=$?
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); }; } &&
17190          { ac_try='test -s conftest$ac_exeext'
17191   { (case "(($ac_try" in
17192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193   *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196   (eval "$ac_try") 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; }; then
17200   ac_cv_lib_dld_dld_link=yes
17201 else
17202   echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205         ac_cv_lib_dld_dld_link=no
17206 fi
17207
17208 rm -f core conftest.err conftest.$ac_objext \
17209       conftest$ac_exeext conftest.$ac_ext
17210 LIBS=$ac_check_lib_save_LIBS
17211 fi
17212 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17213 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17214 if test $ac_cv_lib_dld_dld_link = yes; then
17215   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17216 fi
17217
17218
17219 fi
17220
17221
17222 fi
17223
17224
17225 fi
17226
17227
17228 fi
17229
17230
17231 fi
17232
17233     ;;
17234   esac
17235
17236   if test "x$lt_cv_dlopen" != xno; then
17237     enable_dlopen=yes
17238   else
17239     enable_dlopen=no
17240   fi
17241
17242   case $lt_cv_dlopen in
17243   dlopen)
17244     save_CPPFLAGS="$CPPFLAGS"
17245     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17246
17247     save_LDFLAGS="$LDFLAGS"
17248     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17249
17250     save_LIBS="$LIBS"
17251     LIBS="$lt_cv_dlopen_libs $LIBS"
17252
17253     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17254 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17255 if test "${lt_cv_dlopen_self+set}" = set; then
17256   echo $ECHO_N "(cached) $ECHO_C" >&6
17257 else
17258           if test "$cross_compiling" = yes; then :
17259   lt_cv_dlopen_self=cross
17260 else
17261   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17262   lt_status=$lt_dlunknown
17263   cat > conftest.$ac_ext <<EOF
17264 #line 17264 "configure"
17265 #include "confdefs.h"
17266
17267 #if HAVE_DLFCN_H
17268 #include <dlfcn.h>
17269 #endif
17270
17271 #include <stdio.h>
17272
17273 #ifdef RTLD_GLOBAL
17274 #  define LT_DLGLOBAL           RTLD_GLOBAL
17275 #else
17276 #  ifdef DL_GLOBAL
17277 #    define LT_DLGLOBAL         DL_GLOBAL
17278 #  else
17279 #    define LT_DLGLOBAL         0
17280 #  endif
17281 #endif
17282
17283 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17284    find out it does not work in some platform. */
17285 #ifndef LT_DLLAZY_OR_NOW
17286 #  ifdef RTLD_LAZY
17287 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17288 #  else
17289 #    ifdef DL_LAZY
17290 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17291 #    else
17292 #      ifdef RTLD_NOW
17293 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17294 #      else
17295 #        ifdef DL_NOW
17296 #          define LT_DLLAZY_OR_NOW      DL_NOW
17297 #        else
17298 #          define LT_DLLAZY_OR_NOW      0
17299 #        endif
17300 #      endif
17301 #    endif
17302 #  endif
17303 #endif
17304
17305 #ifdef __cplusplus
17306 extern "C" void exit (int);
17307 #endif
17308
17309 void fnord() { int i=42;}
17310 int main ()
17311 {
17312   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17313   int status = $lt_dlunknown;
17314
17315   if (self)
17316     {
17317       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17318       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17319       /* dlclose (self); */
17320     }
17321   else
17322     puts (dlerror ());
17323
17324     exit (status);
17325 }
17326 EOF
17327   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328   (eval $ac_link) 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17332     (./conftest; exit; ) >&5 2>/dev/null
17333     lt_status=$?
17334     case x$lt_status in
17335       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17336       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17337       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17338     esac
17339   else :
17340     # compilation failed
17341     lt_cv_dlopen_self=no
17342   fi
17343 fi
17344 rm -fr conftest*
17345
17346
17347 fi
17348 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17349 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17350
17351     if test "x$lt_cv_dlopen_self" = xyes; then
17352       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17353       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17354 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17355 if test "${lt_cv_dlopen_self_static+set}" = set; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358           if test "$cross_compiling" = yes; then :
17359   lt_cv_dlopen_self_static=cross
17360 else
17361   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17362   lt_status=$lt_dlunknown
17363   cat > conftest.$ac_ext <<EOF
17364 #line 17364 "configure"
17365 #include "confdefs.h"
17366
17367 #if HAVE_DLFCN_H
17368 #include <dlfcn.h>
17369 #endif
17370
17371 #include <stdio.h>
17372
17373 #ifdef RTLD_GLOBAL
17374 #  define LT_DLGLOBAL           RTLD_GLOBAL
17375 #else
17376 #  ifdef DL_GLOBAL
17377 #    define LT_DLGLOBAL         DL_GLOBAL
17378 #  else
17379 #    define LT_DLGLOBAL         0
17380 #  endif
17381 #endif
17382
17383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17384    find out it does not work in some platform. */
17385 #ifndef LT_DLLAZY_OR_NOW
17386 #  ifdef RTLD_LAZY
17387 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17388 #  else
17389 #    ifdef DL_LAZY
17390 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17391 #    else
17392 #      ifdef RTLD_NOW
17393 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17394 #      else
17395 #        ifdef DL_NOW
17396 #          define LT_DLLAZY_OR_NOW      DL_NOW
17397 #        else
17398 #          define LT_DLLAZY_OR_NOW      0
17399 #        endif
17400 #      endif
17401 #    endif
17402 #  endif
17403 #endif
17404
17405 #ifdef __cplusplus
17406 extern "C" void exit (int);
17407 #endif
17408
17409 void fnord() { int i=42;}
17410 int main ()
17411 {
17412   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17413   int status = $lt_dlunknown;
17414
17415   if (self)
17416     {
17417       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17418       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17419       /* dlclose (self); */
17420     }
17421   else
17422     puts (dlerror ());
17423
17424     exit (status);
17425 }
17426 EOF
17427   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17428   (eval $ac_link) 2>&5
17429   ac_status=$?
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17432     (./conftest; exit; ) >&5 2>/dev/null
17433     lt_status=$?
17434     case x$lt_status in
17435       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17436       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17437       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17438     esac
17439   else :
17440     # compilation failed
17441     lt_cv_dlopen_self_static=no
17442   fi
17443 fi
17444 rm -fr conftest*
17445
17446
17447 fi
17448 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17449 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17450     fi
17451
17452     CPPFLAGS="$save_CPPFLAGS"
17453     LDFLAGS="$save_LDFLAGS"
17454     LIBS="$save_LIBS"
17455     ;;
17456   esac
17457
17458   case $lt_cv_dlopen_self in
17459   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17460   *) enable_dlopen_self=unknown ;;
17461   esac
17462
17463   case $lt_cv_dlopen_self_static in
17464   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17465   *) enable_dlopen_self_static=unknown ;;
17466   esac
17467 fi
17468
17469
17470 # Report which library types will actually be built
17471 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17472 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17473 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17474 echo "${ECHO_T}$can_build_shared" >&6; }
17475
17476 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17477 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17478 test "$can_build_shared" = "no" && enable_shared=no
17479
17480 # On AIX, shared libraries and static libraries use the same namespace, and
17481 # are all built from PIC.
17482 case $host_os in
17483 aix3*)
17484   test "$enable_shared" = yes && enable_static=no
17485   if test -n "$RANLIB"; then
17486     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17487     postinstall_cmds='$RANLIB $lib'
17488   fi
17489   ;;
17490
17491 aix4* | aix5*)
17492   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17493     test "$enable_shared" = yes && enable_static=no
17494   fi
17495     ;;
17496 esac
17497 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17498 echo "${ECHO_T}$enable_shared" >&6; }
17499
17500 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17501 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17502 # Make sure either enable_shared or enable_static is yes.
17503 test "$enable_shared" = yes || enable_static=yes
17504 { echo "$as_me:$LINENO: result: $enable_static" >&5
17505 echo "${ECHO_T}$enable_static" >&6; }
17506
17507 # The else clause should only fire when bootstrapping the
17508 # libtool distribution, otherwise you forgot to ship ltmain.sh
17509 # with your package, and you will get complaints that there are
17510 # no rules to generate ltmain.sh.
17511 if test -f "$ltmain"; then
17512   # See if we are running on zsh, and set the options which allow our commands through
17513   # without removal of \ escapes.
17514   if test -n "${ZSH_VERSION+set}" ; then
17515     setopt NO_GLOB_SUBST
17516   fi
17517   # Now quote all the things that may contain metacharacters while being
17518   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17519   # variables and quote the copies for generation of the libtool script.
17520   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17521     SED SHELL STRIP \
17522     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17523     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17524     deplibs_check_method reload_flag reload_cmds need_locks \
17525     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17526     lt_cv_sys_global_symbol_to_c_name_address \
17527     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17528     old_postinstall_cmds old_postuninstall_cmds \
17529     compiler \
17530     CC \
17531     LD \
17532     lt_prog_compiler_wl \
17533     lt_prog_compiler_pic \
17534     lt_prog_compiler_static \
17535     lt_prog_compiler_no_builtin_flag \
17536     export_dynamic_flag_spec \
17537     thread_safe_flag_spec \
17538     whole_archive_flag_spec \
17539     enable_shared_with_static_runtimes \
17540     old_archive_cmds \
17541     old_archive_from_new_cmds \
17542     predep_objects \
17543     postdep_objects \
17544     predeps \
17545     postdeps \
17546     compiler_lib_search_path \
17547     archive_cmds \
17548     archive_expsym_cmds \
17549     postinstall_cmds \
17550     postuninstall_cmds \
17551     old_archive_from_expsyms_cmds \
17552     allow_undefined_flag \
17553     no_undefined_flag \
17554     export_symbols_cmds \
17555     hardcode_libdir_flag_spec \
17556     hardcode_libdir_flag_spec_ld \
17557     hardcode_libdir_separator \
17558     hardcode_automatic \
17559     module_cmds \
17560     module_expsym_cmds \
17561     lt_cv_prog_compiler_c_o \
17562     exclude_expsyms \
17563     include_expsyms; do
17564
17565     case $var in
17566     old_archive_cmds | \
17567     old_archive_from_new_cmds | \
17568     archive_cmds | \
17569     archive_expsym_cmds | \
17570     module_cmds | \
17571     module_expsym_cmds | \
17572     old_archive_from_expsyms_cmds | \
17573     export_symbols_cmds | \
17574     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17575     postinstall_cmds | postuninstall_cmds | \
17576     old_postinstall_cmds | old_postuninstall_cmds | \
17577     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17578       # Double-quote double-evaled strings.
17579       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17580       ;;
17581     *)
17582       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17583       ;;
17584     esac
17585   done
17586
17587   case $lt_echo in
17588   *'\$0 --fallback-echo"')
17589     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17590     ;;
17591   esac
17592
17593 cfgfile="${ofile}T"
17594   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17595   $rm -f "$cfgfile"
17596   { echo "$as_me:$LINENO: creating $ofile" >&5
17597 echo "$as_me: creating $ofile" >&6;}
17598
17599   cat <<__EOF__ >> "$cfgfile"
17600 #! $SHELL
17601
17602 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17603 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17604 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17605 #
17606 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17607 # Free Software Foundation, Inc.
17608 #
17609 # This file is part of GNU Libtool:
17610 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17611 #
17612 # This program is free software; you can redistribute it and/or modify
17613 # it under the terms of the GNU General Public License as published by
17614 # the Free Software Foundation; either version 2 of the License, or
17615 # (at your option) any later version.
17616 #
17617 # This program is distributed in the hope that it will be useful, but
17618 # WITHOUT ANY WARRANTY; without even the implied warranty of
17619 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17620 # General Public License for more details.
17621 #
17622 # You should have received a copy of the GNU General Public License
17623 # along with this program; if not, write to the Free Software
17624 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17625 #
17626 # As a special exception to the GNU General Public License, if you
17627 # distribute this file as part of a program that contains a
17628 # configuration script generated by Autoconf, you may include it under
17629 # the same distribution terms that you use for the rest of that program.
17630
17631 # A sed program that does not truncate output.
17632 SED=$lt_SED
17633
17634 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17635 Xsed="$SED -e 1s/^X//"
17636
17637 # The HP-UX ksh and POSIX shell print the target directory to stdout
17638 # if CDPATH is set.
17639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17640
17641 # The names of the tagged configurations supported by this script.
17642 available_tags=
17643
17644 # ### BEGIN LIBTOOL CONFIG
17645
17646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17647
17648 # Shell to use when invoking shell scripts.
17649 SHELL=$lt_SHELL
17650
17651 # Whether or not to build shared libraries.
17652 build_libtool_libs=$enable_shared
17653
17654 # Whether or not to build static libraries.
17655 build_old_libs=$enable_static
17656
17657 # Whether or not to add -lc for building shared libraries.
17658 build_libtool_need_lc=$archive_cmds_need_lc
17659
17660 # Whether or not to disallow shared libs when runtime libs are static
17661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17662
17663 # Whether or not to optimize for fast installation.
17664 fast_install=$enable_fast_install
17665
17666 # The host system.
17667 host_alias=$host_alias
17668 host=$host
17669 host_os=$host_os
17670
17671 # The build system.
17672 build_alias=$build_alias
17673 build=$build
17674 build_os=$build_os
17675
17676 # An echo program that does not interpret backslashes.
17677 echo=$lt_echo
17678
17679 # The archiver.
17680 AR=$lt_AR
17681 AR_FLAGS=$lt_AR_FLAGS
17682
17683 # A C compiler.
17684 LTCC=$lt_LTCC
17685
17686 # LTCC compiler flags.
17687 LTCFLAGS=$lt_LTCFLAGS
17688
17689 # A language-specific compiler.
17690 CC=$lt_compiler
17691
17692 # Is the compiler the GNU C compiler?
17693 with_gcc=$GCC
17694
17695 # An ERE matcher.
17696 EGREP=$lt_EGREP
17697
17698 # The linker used to build libraries.
17699 LD=$lt_LD
17700
17701 # Whether we need hard or soft links.
17702 LN_S=$lt_LN_S
17703
17704 # A BSD-compatible nm program.
17705 NM=$lt_NM
17706
17707 # A symbol stripping program
17708 STRIP=$lt_STRIP
17709
17710 # Used to examine libraries when file_magic_cmd begins "file"
17711 MAGIC_CMD=$MAGIC_CMD
17712
17713 # Used on cygwin: DLL creation program.
17714 DLLTOOL="$DLLTOOL"
17715
17716 # Used on cygwin: object dumper.
17717 OBJDUMP="$OBJDUMP"
17718
17719 # Used on cygwin: assembler.
17720 AS="$AS"
17721
17722 # The name of the directory that contains temporary libtool files.
17723 objdir=$objdir
17724
17725 # How to create reloadable object files.
17726 reload_flag=$lt_reload_flag
17727 reload_cmds=$lt_reload_cmds
17728
17729 # How to pass a linker flag through the compiler.
17730 wl=$lt_lt_prog_compiler_wl
17731
17732 # Object file suffix (normally "o").
17733 objext="$ac_objext"
17734
17735 # Old archive suffix (normally "a").
17736 libext="$libext"
17737
17738 # Shared library suffix (normally ".so").
17739 shrext_cmds='$shrext_cmds'
17740
17741 # Executable file suffix (normally "").
17742 exeext="$exeext"
17743
17744 # Additional compiler flags for building library objects.
17745 pic_flag=$lt_lt_prog_compiler_pic
17746 pic_mode=$pic_mode
17747
17748 # What is the maximum length of a command?
17749 max_cmd_len=$lt_cv_sys_max_cmd_len
17750
17751 # Does compiler simultaneously support -c and -o options?
17752 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17753
17754 # Must we lock files when doing compilation?
17755 need_locks=$lt_need_locks
17756
17757 # Do we need the lib prefix for modules?
17758 need_lib_prefix=$need_lib_prefix
17759
17760 # Do we need a version for libraries?
17761 need_version=$need_version
17762
17763 # Whether dlopen is supported.
17764 dlopen_support=$enable_dlopen
17765
17766 # Whether dlopen of programs is supported.
17767 dlopen_self=$enable_dlopen_self
17768
17769 # Whether dlopen of statically linked programs is supported.
17770 dlopen_self_static=$enable_dlopen_self_static
17771
17772 # Compiler flag to prevent dynamic linking.
17773 link_static_flag=$lt_lt_prog_compiler_static
17774
17775 # Compiler flag to turn off builtin functions.
17776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17777
17778 # Compiler flag to allow reflexive dlopens.
17779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17780
17781 # Compiler flag to generate shared objects directly from archives.
17782 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17783
17784 # Compiler flag to generate thread-safe objects.
17785 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17786
17787 # Library versioning type.
17788 version_type=$version_type
17789
17790 # Format of library name prefix.
17791 libname_spec=$lt_libname_spec
17792
17793 # List of archive names.  First name is the real one, the rest are links.
17794 # The last name is the one that the linker finds with -lNAME.
17795 library_names_spec=$lt_library_names_spec
17796
17797 # The coded name of the library, if different from the real name.
17798 soname_spec=$lt_soname_spec
17799
17800 # Commands used to build and install an old-style archive.
17801 RANLIB=$lt_RANLIB
17802 old_archive_cmds=$lt_old_archive_cmds
17803 old_postinstall_cmds=$lt_old_postinstall_cmds
17804 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17805
17806 # Create an old-style archive from a shared archive.
17807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17808
17809 # Create a temporary old-style archive to link instead of a shared archive.
17810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17811
17812 # Commands used to build and install a shared archive.
17813 archive_cmds=$lt_archive_cmds
17814 archive_expsym_cmds=$lt_archive_expsym_cmds
17815 postinstall_cmds=$lt_postinstall_cmds
17816 postuninstall_cmds=$lt_postuninstall_cmds
17817
17818 # Commands used to build a loadable module (assumed same as above if empty)
17819 module_cmds=$lt_module_cmds
17820 module_expsym_cmds=$lt_module_expsym_cmds
17821
17822 # Commands to strip libraries.
17823 old_striplib=$lt_old_striplib
17824 striplib=$lt_striplib
17825
17826 # Dependencies to place before the objects being linked to create a
17827 # shared library.
17828 predep_objects=$lt_predep_objects
17829
17830 # Dependencies to place after the objects being linked to create a
17831 # shared library.
17832 postdep_objects=$lt_postdep_objects
17833
17834 # Dependencies to place before the objects being linked to create a
17835 # shared library.
17836 predeps=$lt_predeps
17837
17838 # Dependencies to place after the objects being linked to create a
17839 # shared library.
17840 postdeps=$lt_postdeps
17841
17842 # The library search path used internally by the compiler when linking
17843 # a shared library.
17844 compiler_lib_search_path=$lt_compiler_lib_search_path
17845
17846 # Method to check whether dependent libraries are shared objects.
17847 deplibs_check_method=$lt_deplibs_check_method
17848
17849 # Command to use when deplibs_check_method == file_magic.
17850 file_magic_cmd=$lt_file_magic_cmd
17851
17852 # Flag that allows shared libraries with undefined symbols to be built.
17853 allow_undefined_flag=$lt_allow_undefined_flag
17854
17855 # Flag that forces no undefined symbols.
17856 no_undefined_flag=$lt_no_undefined_flag
17857
17858 # Commands used to finish a libtool library installation in a directory.
17859 finish_cmds=$lt_finish_cmds
17860
17861 # Same as above, but a single script fragment to be evaled but not shown.
17862 finish_eval=$lt_finish_eval
17863
17864 # Take the output of nm and produce a listing of raw symbols and C names.
17865 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17866
17867 # Transform the output of nm in a proper C declaration
17868 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17869
17870 # Transform the output of nm in a C name address pair
17871 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17872
17873 # This is the shared library runtime path variable.
17874 runpath_var=$runpath_var
17875
17876 # This is the shared library path variable.
17877 shlibpath_var=$shlibpath_var
17878
17879 # Is shlibpath searched before the hard-coded library search path?
17880 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17881
17882 # How to hardcode a shared library path into an executable.
17883 hardcode_action=$hardcode_action
17884
17885 # Whether we should hardcode library paths into libraries.
17886 hardcode_into_libs=$hardcode_into_libs
17887
17888 # Flag to hardcode \$libdir into a binary during linking.
17889 # This must work even if \$libdir does not exist.
17890 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17891
17892 # If ld is used when linking, flag to hardcode \$libdir into
17893 # a binary during linking. This must work even if \$libdir does
17894 # not exist.
17895 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17896
17897 # Whether we need a single -rpath flag with a separated argument.
17898 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17899
17900 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17901 # resulting binary.
17902 hardcode_direct=$hardcode_direct
17903
17904 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17905 # resulting binary.
17906 hardcode_minus_L=$hardcode_minus_L
17907
17908 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17909 # the resulting binary.
17910 hardcode_shlibpath_var=$hardcode_shlibpath_var
17911
17912 # Set to yes if building a shared library automatically hardcodes DIR into the library
17913 # and all subsequent libraries and executables linked against it.
17914 hardcode_automatic=$hardcode_automatic
17915
17916 # Variables whose values should be saved in libtool wrapper scripts and
17917 # restored at relink time.
17918 variables_saved_for_relink="$variables_saved_for_relink"
17919
17920 # Whether libtool must link a program against all its dependency libraries.
17921 link_all_deplibs=$link_all_deplibs
17922
17923 # Compile-time system search path for libraries
17924 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17925
17926 # Run-time system search path for libraries
17927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17928
17929 # Fix the shell variable \$srcfile for the compiler.
17930 fix_srcfile_path="$fix_srcfile_path"
17931
17932 # Set to yes if exported symbols are required.
17933 always_export_symbols=$always_export_symbols
17934
17935 # The commands to list exported symbols.
17936 export_symbols_cmds=$lt_export_symbols_cmds
17937
17938 # The commands to extract the exported symbol list from a shared archive.
17939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17940
17941 # Symbols that should not be listed in the preloaded symbols.
17942 exclude_expsyms=$lt_exclude_expsyms
17943
17944 # Symbols that must always be exported.
17945 include_expsyms=$lt_include_expsyms
17946
17947 # ### END LIBTOOL CONFIG
17948
17949 __EOF__
17950
17951
17952   case $host_os in
17953   aix3*)
17954     cat <<\EOF >> "$cfgfile"
17955
17956 # AIX sometimes has problems with the GCC collect2 program.  For some
17957 # reason, if we set the COLLECT_NAMES environment variable, the problems
17958 # vanish in a puff of smoke.
17959 if test "X${COLLECT_NAMES+set}" != Xset; then
17960   COLLECT_NAMES=
17961   export COLLECT_NAMES
17962 fi
17963 EOF
17964     ;;
17965   esac
17966
17967   # We use sed instead of cat because bash on DJGPP gets confused if
17968   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17969   # text mode, it properly converts lines to CR/LF.  This bash problem
17970   # is reportedly fixed, but why not run on old versions too?
17971   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17972
17973   mv -f "$cfgfile" "$ofile" || \
17974     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17975   chmod +x "$ofile"
17976
17977 else
17978   # If there is no Makefile yet, we rely on a make rule to execute
17979   # `config.status --recheck' to rerun these tests and create the
17980   # libtool script then.
17981   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17982   if test -f "$ltmain_in"; then
17983     test -f Makefile && make "$ltmain"
17984   fi
17985 fi
17986
17987
17988 ac_ext=c
17989 ac_cpp='$CPP $CPPFLAGS'
17990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17993
17994 CC="$lt_save_CC"
17995
17996
17997 # Check whether --with-tags was given.
17998 if test "${with_tags+set}" = set; then
17999   withval=$with_tags; tagnames="$withval"
18000 fi
18001
18002
18003 if test -f "$ltmain" && test -n "$tagnames"; then
18004   if test ! -f "${ofile}"; then
18005     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18006 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18007   fi
18008
18009   if test -z "$LTCC"; then
18010     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18011     if test -z "$LTCC"; then
18012       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18013 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18014     else
18015       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18016 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18017     fi
18018   fi
18019   if test -z "$LTCFLAGS"; then
18020     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18021   fi
18022
18023   # Extract list of available tagged configurations in $ofile.
18024   # Note that this assumes the entire list is on one line.
18025   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18026
18027   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18028   for tagname in $tagnames; do
18029     IFS="$lt_save_ifs"
18030     # Check whether tagname contains only valid characters
18031     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18032     "") ;;
18033     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18034 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18035    { (exit 1); exit 1; }; }
18036         ;;
18037     esac
18038
18039     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18040     then
18041       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18042 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18043    { (exit 1); exit 1; }; }
18044     fi
18045
18046     # Update the list of available tags.
18047     if test -n "$tagname"; then
18048       echo appending configuration tag \"$tagname\" to $ofile
18049
18050       case $tagname in
18051       CXX)
18052         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18053             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18054             (test "X$CXX" != "Xg++"))) ; then
18055           ac_ext=cpp
18056 ac_cpp='$CXXCPP $CPPFLAGS'
18057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18060
18061
18062
18063
18064 archive_cmds_need_lc_CXX=no
18065 allow_undefined_flag_CXX=
18066 always_export_symbols_CXX=no
18067 archive_expsym_cmds_CXX=
18068 export_dynamic_flag_spec_CXX=
18069 hardcode_direct_CXX=no
18070 hardcode_libdir_flag_spec_CXX=
18071 hardcode_libdir_flag_spec_ld_CXX=
18072 hardcode_libdir_separator_CXX=
18073 hardcode_minus_L_CXX=no
18074 hardcode_shlibpath_var_CXX=unsupported
18075 hardcode_automatic_CXX=no
18076 module_cmds_CXX=
18077 module_expsym_cmds_CXX=
18078 link_all_deplibs_CXX=unknown
18079 old_archive_cmds_CXX=$old_archive_cmds
18080 no_undefined_flag_CXX=
18081 whole_archive_flag_spec_CXX=
18082 enable_shared_with_static_runtimes_CXX=no
18083
18084 # Dependencies to place before and after the object being linked:
18085 predep_objects_CXX=
18086 postdep_objects_CXX=
18087 predeps_CXX=
18088 postdeps_CXX=
18089 compiler_lib_search_path_CXX=
18090
18091 # Source file extension for C++ test sources.
18092 ac_ext=cpp
18093
18094 # Object file extension for compiled C++ test sources.
18095 objext=o
18096 objext_CXX=$objext
18097
18098 # Code to be used in simple compile tests
18099 lt_simple_compile_test_code="int some_variable = 0;\n"
18100
18101 # Code to be used in simple link tests
18102 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18103
18104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18105
18106 # If no C compiler was specified, use CC.
18107 LTCC=${LTCC-"$CC"}
18108
18109 # If no C compiler flags were specified, use CFLAGS.
18110 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18111
18112 # Allow CC to be a program name with arguments.
18113 compiler=$CC
18114
18115
18116 # save warnings/boilerplate of simple test code
18117 ac_outfile=conftest.$ac_objext
18118 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18119 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18120 _lt_compiler_boilerplate=`cat conftest.err`
18121 $rm conftest*
18122
18123 ac_outfile=conftest.$ac_objext
18124 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18125 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18126 _lt_linker_boilerplate=`cat conftest.err`
18127 $rm conftest*
18128
18129
18130 # Allow CC to be a program name with arguments.
18131 lt_save_CC=$CC
18132 lt_save_LD=$LD
18133 lt_save_GCC=$GCC
18134 GCC=$GXX
18135 lt_save_with_gnu_ld=$with_gnu_ld
18136 lt_save_path_LD=$lt_cv_path_LD
18137 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18138   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18139 else
18140   $as_unset lt_cv_prog_gnu_ld
18141 fi
18142 if test -n "${lt_cv_path_LDCXX+set}"; then
18143   lt_cv_path_LD=$lt_cv_path_LDCXX
18144 else
18145   $as_unset lt_cv_path_LD
18146 fi
18147 test -z "${LDCXX+set}" || LD=$LDCXX
18148 CC=${CXX-"c++"}
18149 compiler=$CC
18150 compiler_CXX=$CC
18151 for cc_temp in $compiler""; do
18152   case $cc_temp in
18153     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18154     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18155     \-*) ;;
18156     *) break;;
18157   esac
18158 done
18159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18160
18161
18162 # We don't want -fno-exception wen compiling C++ code, so set the
18163 # no_builtin_flag separately
18164 if test "$GXX" = yes; then
18165   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18166 else
18167   lt_prog_compiler_no_builtin_flag_CXX=
18168 fi
18169
18170 if test "$GXX" = yes; then
18171   # Set up default GNU C++ configuration
18172
18173
18174 # Check whether --with-gnu-ld was given.
18175 if test "${with_gnu_ld+set}" = set; then
18176   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18177 else
18178   with_gnu_ld=no
18179 fi
18180
18181 ac_prog=ld
18182 if test "$GCC" = yes; then
18183   # Check if gcc -print-prog-name=ld gives a path.
18184   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18185 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18186   case $host in
18187   *-*-mingw*)
18188     # gcc leaves a trailing carriage return which upsets mingw
18189     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18190   *)
18191     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18192   esac
18193   case $ac_prog in
18194     # Accept absolute paths.
18195     [\\/]* | ?:[\\/]*)
18196       re_direlt='/[^/][^/]*/\.\./'
18197       # Canonicalize the pathname of ld
18198       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18199       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18200         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18201       done
18202       test -z "$LD" && LD="$ac_prog"
18203       ;;
18204   "")
18205     # If it fails, then pretend we aren't using GCC.
18206     ac_prog=ld
18207     ;;
18208   *)
18209     # If it is relative, then search for the first ld in PATH.
18210     with_gnu_ld=unknown
18211     ;;
18212   esac
18213 elif test "$with_gnu_ld" = yes; then
18214   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18215 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18216 else
18217   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18218 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18219 fi
18220 if test "${lt_cv_path_LD+set}" = set; then
18221   echo $ECHO_N "(cached) $ECHO_C" >&6
18222 else
18223   if test -z "$LD"; then
18224   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18225   for ac_dir in $PATH; do
18226     IFS="$lt_save_ifs"
18227     test -z "$ac_dir" && ac_dir=.
18228     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18229       lt_cv_path_LD="$ac_dir/$ac_prog"
18230       # Check to see if the program is GNU ld.  I'd rather use --version,
18231       # but apparently some variants of GNU ld only accept -v.
18232       # Break only if it was the GNU/non-GNU ld that we prefer.
18233       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18234       *GNU* | *'with BFD'*)
18235         test "$with_gnu_ld" != no && break
18236         ;;
18237       *)
18238         test "$with_gnu_ld" != yes && break
18239         ;;
18240       esac
18241     fi
18242   done
18243   IFS="$lt_save_ifs"
18244 else
18245   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18246 fi
18247 fi
18248
18249 LD="$lt_cv_path_LD"
18250 if test -n "$LD"; then
18251   { echo "$as_me:$LINENO: result: $LD" >&5
18252 echo "${ECHO_T}$LD" >&6; }
18253 else
18254   { echo "$as_me:$LINENO: result: no" >&5
18255 echo "${ECHO_T}no" >&6; }
18256 fi
18257 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18258 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18259    { (exit 1); exit 1; }; }
18260 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18261 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18262 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18263   echo $ECHO_N "(cached) $ECHO_C" >&6
18264 else
18265   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18266 case `$LD -v 2>&1 </dev/null` in
18267 *GNU* | *'with BFD'*)
18268   lt_cv_prog_gnu_ld=yes
18269   ;;
18270 *)
18271   lt_cv_prog_gnu_ld=no
18272   ;;
18273 esac
18274 fi
18275 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18276 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18277 with_gnu_ld=$lt_cv_prog_gnu_ld
18278
18279
18280
18281   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18282   # archiving commands below assume that GNU ld is being used.
18283   if test "$with_gnu_ld" = yes; then
18284     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18285     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'
18286
18287     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18288     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18289
18290     # If archive_cmds runs LD, not CC, wlarc should be empty
18291     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18292     #     investigate it a little bit more. (MM)
18293     wlarc='${wl}'
18294
18295     # ancient GNU ld didn't support --whole-archive et. al.
18296     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18297         grep 'no-whole-archive' > /dev/null; then
18298       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18299     else
18300       whole_archive_flag_spec_CXX=
18301     fi
18302   else
18303     with_gnu_ld=no
18304     wlarc=
18305
18306     # A generic and very simple default shared library creation
18307     # command for GNU C++ for the case where it uses the native
18308     # linker, instead of GNU ld.  If possible, this setting should
18309     # overridden to take advantage of the native linker features on
18310     # the platform it is being used on.
18311     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18312   fi
18313
18314   # Commands to make compiler produce verbose output that lists
18315   # what "hidden" libraries, object files and flags are used when
18316   # linking a shared library.
18317   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18318
18319 else
18320   GXX=no
18321   with_gnu_ld=no
18322   wlarc=
18323 fi
18324
18325 # PORTME: fill in a description of your system's C++ link characteristics
18326 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18327 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18328 ld_shlibs_CXX=yes
18329 case $host_os in
18330   aix3*)
18331     # FIXME: insert proper C++ library support
18332     ld_shlibs_CXX=no
18333     ;;
18334   aix4* | aix5*)
18335     if test "$host_cpu" = ia64; then
18336       # On IA64, the linker does run time linking by default, so we don't
18337       # have to do anything special.
18338       aix_use_runtimelinking=no
18339       exp_sym_flag='-Bexport'
18340       no_entry_flag=""
18341     else
18342       aix_use_runtimelinking=no
18343
18344       # Test if we are trying to use run time linking or normal
18345       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18346       # need to do runtime linking.
18347       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18348         for ld_flag in $LDFLAGS; do
18349           case $ld_flag in
18350           *-brtl*)
18351             aix_use_runtimelinking=yes
18352             break
18353             ;;
18354           esac
18355         done
18356         ;;
18357       esac
18358
18359       exp_sym_flag='-bexport'
18360       no_entry_flag='-bnoentry'
18361     fi
18362
18363     # When large executables or shared objects are built, AIX ld can
18364     # have problems creating the table of contents.  If linking a library
18365     # or program results in "error TOC overflow" add -mminimal-toc to
18366     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18367     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18368
18369     archive_cmds_CXX=''
18370     hardcode_direct_CXX=yes
18371     hardcode_libdir_separator_CXX=':'
18372     link_all_deplibs_CXX=yes
18373
18374     if test "$GXX" = yes; then
18375       case $host_os in aix4.[012]|aix4.[012].*)
18376       # We only want to do this on AIX 4.2 and lower, the check
18377       # below for broken collect2 doesn't work under 4.3+
18378         collect2name=`${CC} -print-prog-name=collect2`
18379         if test -f "$collect2name" && \
18380            strings "$collect2name" | grep resolve_lib_name >/dev/null
18381         then
18382           # We have reworked collect2
18383           hardcode_direct_CXX=yes
18384         else
18385           # We have old collect2
18386           hardcode_direct_CXX=unsupported
18387           # It fails to find uninstalled libraries when the uninstalled
18388           # path is not listed in the libpath.  Setting hardcode_minus_L
18389           # to unsupported forces relinking
18390           hardcode_minus_L_CXX=yes
18391           hardcode_libdir_flag_spec_CXX='-L$libdir'
18392           hardcode_libdir_separator_CXX=
18393         fi
18394         ;;
18395       esac
18396       shared_flag='-shared'
18397       if test "$aix_use_runtimelinking" = yes; then
18398         shared_flag="$shared_flag "'${wl}-G'
18399       fi
18400     else
18401       # not using gcc
18402       if test "$host_cpu" = ia64; then
18403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18404         # chokes on -Wl,-G. The following line is correct:
18405         shared_flag='-G'
18406       else
18407         if test "$aix_use_runtimelinking" = yes; then
18408           shared_flag='${wl}-G'
18409         else
18410           shared_flag='${wl}-bM:SRE'
18411         fi
18412       fi
18413     fi
18414
18415     # It seems that -bexpall does not export symbols beginning with
18416     # underscore (_), so it is better to generate a list of symbols to export.
18417     always_export_symbols_CXX=yes
18418     if test "$aix_use_runtimelinking" = yes; then
18419       # Warning - without using the other runtime loading flags (-brtl),
18420       # -berok will link without error, but may produce a broken library.
18421       allow_undefined_flag_CXX='-berok'
18422       # Determine the default libpath from the value encoded in an empty executable.
18423       cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h.  */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h.  */
18429
18430 int
18431 main ()
18432 {
18433
18434   ;
18435   return 0;
18436 }
18437 _ACEOF
18438 rm -f conftest.$ac_objext conftest$ac_exeext
18439 if { (ac_try="$ac_link"
18440 case "(($ac_try" in
18441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442   *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445   (eval "$ac_link") 2>conftest.er1
18446   ac_status=$?
18447   grep -v '^ *+' conftest.er1 >conftest.err
18448   rm -f conftest.er1
18449   cat conftest.err >&5
18450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451   (exit $ac_status); } &&
18452          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18453   { (case "(($ac_try" in
18454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455   *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458   (eval "$ac_try") 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); }; } &&
18462          { ac_try='test -s conftest$ac_exeext'
18463   { (case "(($ac_try" in
18464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465   *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468   (eval "$ac_try") 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; }; then
18472
18473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18474 }'`
18475 # Check for a 64-bit object if we didn't find anything.
18476 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18477 }'`; fi
18478 else
18479   echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18481
18482
18483 fi
18484
18485 rm -f core conftest.err conftest.$ac_objext \
18486       conftest$ac_exeext conftest.$ac_ext
18487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18488
18489       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18490
18491       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"
18492      else
18493       if test "$host_cpu" = ia64; then
18494         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18495         allow_undefined_flag_CXX="-z nodefs"
18496         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"
18497       else
18498         # Determine the default libpath from the value encoded in an empty executable.
18499         cat >conftest.$ac_ext <<_ACEOF
18500 /* confdefs.h.  */
18501 _ACEOF
18502 cat confdefs.h >>conftest.$ac_ext
18503 cat >>conftest.$ac_ext <<_ACEOF
18504 /* end confdefs.h.  */
18505
18506 int
18507 main ()
18508 {
18509
18510   ;
18511   return 0;
18512 }
18513 _ACEOF
18514 rm -f conftest.$ac_objext conftest$ac_exeext
18515 if { (ac_try="$ac_link"
18516 case "(($ac_try" in
18517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518   *) ac_try_echo=$ac_try;;
18519 esac
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521   (eval "$ac_link") 2>conftest.er1
18522   ac_status=$?
18523   grep -v '^ *+' conftest.er1 >conftest.err
18524   rm -f conftest.er1
18525   cat conftest.err >&5
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); } &&
18528          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18529   { (case "(($ac_try" in
18530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531   *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534   (eval "$ac_try") 2>&5
18535   ac_status=$?
18536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); }; } &&
18538          { ac_try='test -s conftest$ac_exeext'
18539   { (case "(($ac_try" in
18540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541   *) ac_try_echo=$ac_try;;
18542 esac
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544   (eval "$ac_try") 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; }; then
18548
18549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18550 }'`
18551 # Check for a 64-bit object if we didn't find anything.
18552 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; }
18553 }'`; fi
18554 else
18555   echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18557
18558
18559 fi
18560
18561 rm -f core conftest.err conftest.$ac_objext \
18562       conftest$ac_exeext conftest.$ac_ext
18563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18564
18565         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18566         # Warning - without using the other run time loading flags,
18567         # -berok will link without error, but may produce a broken library.
18568         no_undefined_flag_CXX=' ${wl}-bernotok'
18569         allow_undefined_flag_CXX=' ${wl}-berok'
18570         # Exported symbols can be pulled into shared objects from archives
18571         whole_archive_flag_spec_CXX='$convenience'
18572         archive_cmds_need_lc_CXX=yes
18573         # This is similar to how AIX traditionally builds its shared libraries.
18574         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'
18575       fi
18576     fi
18577     ;;
18578
18579   beos*)
18580     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18581       allow_undefined_flag_CXX=unsupported
18582       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18583       # support --undefined.  This deserves some investigation.  FIXME
18584       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18585     else
18586       ld_shlibs_CXX=no
18587     fi
18588     ;;
18589
18590   chorus*)
18591     case $cc_basename in
18592       *)
18593         # FIXME: insert proper C++ library support
18594         ld_shlibs_CXX=no
18595         ;;
18596     esac
18597     ;;
18598
18599   cygwin* | mingw* | pw32*)
18600     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18601     # as there is no search path for DLLs.
18602     hardcode_libdir_flag_spec_CXX='-L$libdir'
18603     allow_undefined_flag_CXX=unsupported
18604     always_export_symbols_CXX=no
18605     enable_shared_with_static_runtimes_CXX=yes
18606
18607     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18608       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'
18609       # If the export-symbols file already is a .def file (1st line
18610       # is EXPORTS), use it as is; otherwise, prepend...
18611       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18612         cp $export_symbols $output_objdir/$soname.def;
18613       else
18614         echo EXPORTS > $output_objdir/$soname.def;
18615         cat $export_symbols >> $output_objdir/$soname.def;
18616       fi~
18617       $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'
18618     else
18619       ld_shlibs_CXX=no
18620     fi
18621   ;;
18622       darwin* | rhapsody*)
18623         case $host_os in
18624         rhapsody* | darwin1.[012])
18625          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18626          ;;
18627        *) # Darwin 1.3 on
18628          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18629            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18630          else
18631            case ${MACOSX_DEPLOYMENT_TARGET} in
18632              10.[012])
18633                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18634                ;;
18635              10.*)
18636                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18637                ;;
18638            esac
18639          fi
18640          ;;
18641         esac
18642       archive_cmds_need_lc_CXX=no
18643       hardcode_direct_CXX=no
18644       hardcode_automatic_CXX=yes
18645       hardcode_shlibpath_var_CXX=unsupported
18646       whole_archive_flag_spec_CXX=''
18647       link_all_deplibs_CXX=yes
18648
18649     if test "$GXX" = yes ; then
18650       lt_int_apple_cc_single_mod=no
18651       output_verbose_link_cmd='echo'
18652       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18653        lt_int_apple_cc_single_mod=yes
18654       fi
18655       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18656        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18657       else
18658           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'
18659         fi
18660         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18661         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18662           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18663             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}'
18664           else
18665             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}'
18666           fi
18667             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}'
18668       else
18669       case $cc_basename in
18670         xlc*)
18671          output_verbose_link_cmd='echo'
18672           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'
18673           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18674           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18675           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}'
18676           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}'
18677           ;;
18678        *)
18679          ld_shlibs_CXX=no
18680           ;;
18681       esac
18682       fi
18683         ;;
18684
18685   dgux*)
18686     case $cc_basename in
18687       ec++*)
18688         # FIXME: insert proper C++ library support
18689         ld_shlibs_CXX=no
18690         ;;
18691       ghcx*)
18692         # Green Hills C++ Compiler
18693         # FIXME: insert proper C++ library support
18694         ld_shlibs_CXX=no
18695         ;;
18696       *)
18697         # FIXME: insert proper C++ library support
18698         ld_shlibs_CXX=no
18699         ;;
18700     esac
18701     ;;
18702   freebsd[12]*)
18703     # C++ shared libraries reported to be fairly broken before switch to ELF
18704     ld_shlibs_CXX=no
18705     ;;
18706   freebsd-elf*)
18707     archive_cmds_need_lc_CXX=no
18708     ;;
18709   freebsd* | kfreebsd*-gnu | dragonfly*)
18710     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18711     # conventions
18712     ld_shlibs_CXX=yes
18713     ;;
18714   gnu*)
18715     ;;
18716   hpux9*)
18717     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18718     hardcode_libdir_separator_CXX=:
18719     export_dynamic_flag_spec_CXX='${wl}-E'
18720     hardcode_direct_CXX=yes
18721     hardcode_minus_L_CXX=yes # Not in the search PATH,
18722                                 # but as the default
18723                                 # location of the library.
18724
18725     case $cc_basename in
18726     CC*)
18727       # FIXME: insert proper C++ library support
18728       ld_shlibs_CXX=no
18729       ;;
18730     aCC*)
18731       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'
18732       # Commands to make compiler produce verbose output that lists
18733       # what "hidden" libraries, object files and flags are used when
18734       # linking a shared library.
18735       #
18736       # There doesn't appear to be a way to prevent this compiler from
18737       # explicitly linking system object files so we need to strip them
18738       # from the output so that they don't get included in the library
18739       # dependencies.
18740       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'
18741       ;;
18742     *)
18743       if test "$GXX" = yes; then
18744         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'
18745       else
18746         # FIXME: insert proper C++ library support
18747         ld_shlibs_CXX=no
18748       fi
18749       ;;
18750     esac
18751     ;;
18752   hpux10*|hpux11*)
18753     if test $with_gnu_ld = no; then
18754       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18755       hardcode_libdir_separator_CXX=:
18756
18757       case $host_cpu in
18758       hppa*64*|ia64*)
18759         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18760         ;;
18761       *)
18762         export_dynamic_flag_spec_CXX='${wl}-E'
18763         ;;
18764       esac
18765     fi
18766     case $host_cpu in
18767     hppa*64*|ia64*)
18768       hardcode_direct_CXX=no
18769       hardcode_shlibpath_var_CXX=no
18770       ;;
18771     *)
18772       hardcode_direct_CXX=yes
18773       hardcode_minus_L_CXX=yes # Not in the search PATH,
18774                                               # but as the default
18775                                               # location of the library.
18776       ;;
18777     esac
18778
18779     case $cc_basename in
18780       CC*)
18781         # FIXME: insert proper C++ library support
18782         ld_shlibs_CXX=no
18783         ;;
18784       aCC*)
18785         case $host_cpu in
18786         hppa*64*)
18787           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18788           ;;
18789         ia64*)
18790           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18791           ;;
18792         *)
18793           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18794           ;;
18795         esac
18796         # Commands to make compiler produce verbose output that lists
18797         # what "hidden" libraries, object files and flags are used when
18798         # linking a shared library.
18799         #
18800         # There doesn't appear to be a way to prevent this compiler from
18801         # explicitly linking system object files so we need to strip them
18802         # from the output so that they don't get included in the library
18803         # dependencies.
18804         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'
18805         ;;
18806       *)
18807         if test "$GXX" = yes; then
18808           if test $with_gnu_ld = no; then
18809             case $host_cpu in
18810             hppa*64*)
18811               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18812               ;;
18813             ia64*)
18814               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18815               ;;
18816             *)
18817               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'
18818               ;;
18819             esac
18820           fi
18821         else
18822           # FIXME: insert proper C++ library support
18823           ld_shlibs_CXX=no
18824         fi
18825         ;;
18826     esac
18827     ;;
18828   interix3*)
18829     hardcode_direct_CXX=no
18830     hardcode_shlibpath_var_CXX=no
18831     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18832     export_dynamic_flag_spec_CXX='${wl}-E'
18833     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18834     # Instead, shared libraries are loaded at an image base (0x10000000 by
18835     # default) and relocated if they conflict, which is a slow very memory
18836     # consuming and fragmenting process.  To avoid this, we pick a random,
18837     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18838     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18839     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'
18840     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'
18841     ;;
18842   irix5* | irix6*)
18843     case $cc_basename in
18844       CC*)
18845         # SGI C++
18846         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'
18847
18848         # Archives containing C++ object files must be created using
18849         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18850         # necessary to make sure instantiated templates are included
18851         # in the archive.
18852         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18853         ;;
18854       *)
18855         if test "$GXX" = yes; then
18856           if test "$with_gnu_ld" = no; then
18857             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'
18858           else
18859             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'
18860           fi
18861         fi
18862         link_all_deplibs_CXX=yes
18863         ;;
18864     esac
18865     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18866     hardcode_libdir_separator_CXX=:
18867     ;;
18868   linux*)
18869     case $cc_basename in
18870       KCC*)
18871         # Kuck and Associates, Inc. (KAI) C++ Compiler
18872
18873         # KCC will only create a shared library if the output file
18874         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18875         # to its proper name (with version) after linking.
18876         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'
18877         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'
18878         # Commands to make compiler produce verbose output that lists
18879         # what "hidden" libraries, object files and flags are used when
18880         # linking a shared library.
18881         #
18882         # There doesn't appear to be a way to prevent this compiler from
18883         # explicitly linking system object files so we need to strip them
18884         # from the output so that they don't get included in the library
18885         # dependencies.
18886         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'
18887
18888         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18889         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18890
18891         # Archives containing C++ object files must be created using
18892         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18893         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18894         ;;
18895       icpc*)
18896         # Intel C++
18897         with_gnu_ld=yes
18898         # version 8.0 and above of icpc choke on multiply defined symbols
18899         # if we add $predep_objects and $postdep_objects, however 7.1 and
18900         # earlier do not add the objects themselves.
18901         case `$CC -V 2>&1` in
18902         *"Version 7."*)
18903           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18904           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'
18905           ;;
18906         *)  # Version 8.0 or newer
18907           tmp_idyn=
18908           case $host_cpu in
18909             ia64*) tmp_idyn=' -i_dynamic';;
18910           esac
18911           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18912           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'
18913           ;;
18914         esac
18915         archive_cmds_need_lc_CXX=no
18916         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18917         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18918         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18919         ;;
18920       pgCC*)
18921         # Portland Group C++ compiler
18922         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18923         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'
18924
18925         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18926         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18927         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'
18928         ;;
18929       cxx*)
18930         # Compaq C++
18931         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18932         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'
18933
18934         runpath_var=LD_RUN_PATH
18935         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18936         hardcode_libdir_separator_CXX=:
18937
18938         # Commands to make compiler produce verbose output that lists
18939         # what "hidden" libraries, object files and flags are used when
18940         # linking a shared library.
18941         #
18942         # There doesn't appear to be a way to prevent this compiler from
18943         # explicitly linking system object files so we need to strip them
18944         # from the output so that they don't get included in the library
18945         # dependencies.
18946         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'
18947         ;;
18948     esac
18949     ;;
18950   lynxos*)
18951     # FIXME: insert proper C++ library support
18952     ld_shlibs_CXX=no
18953     ;;
18954   m88k*)
18955     # FIXME: insert proper C++ library support
18956     ld_shlibs_CXX=no
18957     ;;
18958   mvs*)
18959     case $cc_basename in
18960       cxx*)
18961         # FIXME: insert proper C++ library support
18962         ld_shlibs_CXX=no
18963         ;;
18964       *)
18965         # FIXME: insert proper C++ library support
18966         ld_shlibs_CXX=no
18967         ;;
18968     esac
18969     ;;
18970   netbsd*)
18971     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18972       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18973       wlarc=
18974       hardcode_libdir_flag_spec_CXX='-R$libdir'
18975       hardcode_direct_CXX=yes
18976       hardcode_shlibpath_var_CXX=no
18977     fi
18978     # Workaround some broken pre-1.5 toolchains
18979     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18980     ;;
18981   openbsd2*)
18982     # C++ shared libraries are fairly broken
18983     ld_shlibs_CXX=no
18984     ;;
18985   openbsd*)
18986     hardcode_direct_CXX=yes
18987     hardcode_shlibpath_var_CXX=no
18988     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18989     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18990     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18991       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18992       export_dynamic_flag_spec_CXX='${wl}-E'
18993       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18994     fi
18995     output_verbose_link_cmd='echo'
18996     ;;
18997   osf3*)
18998     case $cc_basename in
18999       KCC*)
19000         # Kuck and Associates, Inc. (KAI) C++ Compiler
19001
19002         # KCC will only create a shared library if the output file
19003         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19004         # to its proper name (with version) after linking.
19005         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'
19006
19007         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19008         hardcode_libdir_separator_CXX=:
19009
19010         # Archives containing C++ object files must be created using
19011         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19012         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19013
19014         ;;
19015       RCC*)
19016         # Rational C++ 2.4.1
19017         # FIXME: insert proper C++ library support
19018         ld_shlibs_CXX=no
19019         ;;
19020       cxx*)
19021         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19022         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'
19023
19024         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19025         hardcode_libdir_separator_CXX=:
19026
19027         # Commands to make compiler produce verbose output that lists
19028         # what "hidden" libraries, object files and flags are used when
19029         # linking a shared library.
19030         #
19031         # There doesn't appear to be a way to prevent this compiler from
19032         # explicitly linking system object files so we need to strip them
19033         # from the output so that they don't get included in the library
19034         # dependencies.
19035         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'
19036         ;;
19037       *)
19038         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19039           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19040           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'
19041
19042           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19043           hardcode_libdir_separator_CXX=:
19044
19045           # Commands to make compiler produce verbose output that lists
19046           # what "hidden" libraries, object files and flags are used when
19047           # linking a shared library.
19048           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19049
19050         else
19051           # FIXME: insert proper C++ library support
19052           ld_shlibs_CXX=no
19053         fi
19054         ;;
19055     esac
19056     ;;
19057   osf4* | osf5*)
19058     case $cc_basename in
19059       KCC*)
19060         # Kuck and Associates, Inc. (KAI) C++ Compiler
19061
19062         # KCC will only create a shared library if the output file
19063         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19064         # to its proper name (with version) after linking.
19065         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'
19066
19067         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19068         hardcode_libdir_separator_CXX=:
19069
19070         # Archives containing C++ object files must be created using
19071         # the KAI C++ compiler.
19072         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19073         ;;
19074       RCC*)
19075         # Rational C++ 2.4.1
19076         # FIXME: insert proper C++ library support
19077         ld_shlibs_CXX=no
19078         ;;
19079       cxx*)
19080         allow_undefined_flag_CXX=' -expect_unresolved \*'
19081         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'
19082         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19083           echo "-hidden">> $lib.exp~
19084           $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~
19085           $rm $lib.exp'
19086
19087         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19088         hardcode_libdir_separator_CXX=:
19089
19090         # Commands to make compiler produce verbose output that lists
19091         # what "hidden" libraries, object files and flags are used when
19092         # linking a shared library.
19093         #
19094         # There doesn't appear to be a way to prevent this compiler from
19095         # explicitly linking system object files so we need to strip them
19096         # from the output so that they don't get included in the library
19097         # dependencies.
19098         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'
19099         ;;
19100       *)
19101         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19102           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19103          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'
19104
19105           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19106           hardcode_libdir_separator_CXX=:
19107
19108           # Commands to make compiler produce verbose output that lists
19109           # what "hidden" libraries, object files and flags are used when
19110           # linking a shared library.
19111           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19112
19113         else
19114           # FIXME: insert proper C++ library support
19115           ld_shlibs_CXX=no
19116         fi
19117         ;;
19118     esac
19119     ;;
19120   psos*)
19121     # FIXME: insert proper C++ library support
19122     ld_shlibs_CXX=no
19123     ;;
19124   sunos4*)
19125     case $cc_basename in
19126       CC*)
19127         # Sun C++ 4.x
19128         # FIXME: insert proper C++ library support
19129         ld_shlibs_CXX=no
19130         ;;
19131       lcc*)
19132         # Lucid
19133         # FIXME: insert proper C++ library support
19134         ld_shlibs_CXX=no
19135         ;;
19136       *)
19137         # FIXME: insert proper C++ library support
19138         ld_shlibs_CXX=no
19139         ;;
19140     esac
19141     ;;
19142   solaris*)
19143     case $cc_basename in
19144       CC*)
19145         # Sun C++ 4.2, 5.x and Centerline C++
19146         archive_cmds_need_lc_CXX=yes
19147         no_undefined_flag_CXX=' -zdefs'
19148         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19149         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19150         $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'
19151
19152         hardcode_libdir_flag_spec_CXX='-R$libdir'
19153         hardcode_shlibpath_var_CXX=no
19154         case $host_os in
19155           solaris2.[0-5] | solaris2.[0-5].*) ;;
19156           *)
19157             # The C++ compiler is used as linker so we must use $wl
19158             # flag to pass the commands to the underlying system
19159             # linker. We must also pass each convience library through
19160             # to the system linker between allextract/defaultextract.
19161             # The C++ compiler will combine linker options so we
19162             # cannot just pass the convience library names through
19163             # without $wl.
19164             # Supported since Solaris 2.6 (maybe 2.5.1?)
19165             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'
19166             ;;
19167         esac
19168         link_all_deplibs_CXX=yes
19169
19170         output_verbose_link_cmd='echo'
19171
19172         # Archives containing C++ object files must be created using
19173         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19174         # necessary to make sure instantiated templates are included
19175         # in the archive.
19176         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19177         ;;
19178       gcx*)
19179         # Green Hills C++ Compiler
19180         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19181
19182         # The C++ compiler must be used to create the archive.
19183         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19184         ;;
19185       *)
19186         # GNU C++ compiler with Solaris linker
19187         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19188           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19189           if $CC --version | grep -v '^2\.7' > /dev/null; then
19190             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19191             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19192                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19193
19194             # Commands to make compiler produce verbose output that lists
19195             # what "hidden" libraries, object files and flags are used when
19196             # linking a shared library.
19197             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19198           else
19199             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19200             # platform.
19201             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19202             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19203                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19204
19205             # Commands to make compiler produce verbose output that lists
19206             # what "hidden" libraries, object files and flags are used when
19207             # linking a shared library.
19208             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19209           fi
19210
19211           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19212         fi
19213         ;;
19214     esac
19215     ;;
19216   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19217     no_undefined_flag_CXX='${wl}-z,text'
19218     archive_cmds_need_lc_CXX=no
19219     hardcode_shlibpath_var_CXX=no
19220     runpath_var='LD_RUN_PATH'
19221
19222     case $cc_basename in
19223       CC*)
19224         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19225         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19226         ;;
19227       *)
19228         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19229         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19230         ;;
19231     esac
19232     ;;
19233   sysv5* | sco3.2v5* | sco5v6*)
19234     # Note: We can NOT use -z defs as we might desire, because we do not
19235     # link with -lc, and that would cause any symbols used from libc to
19236     # always be unresolved, which means just about no library would
19237     # ever link correctly.  If we're not using GNU ld we use -z text
19238     # though, which does catch some bad symbols but isn't as heavy-handed
19239     # as -z defs.
19240     # For security reasons, it is highly recommended that you always
19241     # use absolute paths for naming shared libraries, and exclude the
19242     # DT_RUNPATH tag from executables and libraries.  But doing so
19243     # requires that you compile everything twice, which is a pain.
19244     # So that behaviour is only enabled if SCOABSPATH is set to a
19245     # non-empty value in the environment.  Most likely only useful for
19246     # creating official distributions of packages.
19247     # This is a hack until libtool officially supports absolute path
19248     # names for shared libraries.
19249     no_undefined_flag_CXX='${wl}-z,text'
19250     allow_undefined_flag_CXX='${wl}-z,nodefs'
19251     archive_cmds_need_lc_CXX=no
19252     hardcode_shlibpath_var_CXX=no
19253     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19254     hardcode_libdir_separator_CXX=':'
19255     link_all_deplibs_CXX=yes
19256     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19257     runpath_var='LD_RUN_PATH'
19258
19259     case $cc_basename in
19260       CC*)
19261         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19262         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19263         ;;
19264       *)
19265         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19266         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19267         ;;
19268     esac
19269     ;;
19270   tandem*)
19271     case $cc_basename in
19272       NCC*)
19273         # NonStop-UX NCC 3.20
19274         # FIXME: insert proper C++ library support
19275         ld_shlibs_CXX=no
19276         ;;
19277       *)
19278         # FIXME: insert proper C++ library support
19279         ld_shlibs_CXX=no
19280         ;;
19281     esac
19282     ;;
19283   vxworks*)
19284     # FIXME: insert proper C++ library support
19285     ld_shlibs_CXX=no
19286     ;;
19287   *)
19288     # FIXME: insert proper C++ library support
19289     ld_shlibs_CXX=no
19290     ;;
19291 esac
19292 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19293 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19294 test "$ld_shlibs_CXX" = no && can_build_shared=no
19295
19296 GCC_CXX="$GXX"
19297 LD_CXX="$LD"
19298
19299
19300 cat > conftest.$ac_ext <<EOF
19301 class Foo
19302 {
19303 public:
19304   Foo (void) { a = 0; }
19305 private:
19306   int a;
19307 };
19308 EOF
19309
19310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311   (eval $ac_compile) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; then
19315   # Parse the compiler output and extract the necessary
19316   # objects, libraries and library flags.
19317
19318   # Sentinel used to keep track of whether or not we are before
19319   # the conftest object file.
19320   pre_test_object_deps_done=no
19321
19322   # The `*' in the case matches for architectures that use `case' in
19323   # $output_verbose_cmd can trigger glob expansion during the loop
19324   # eval without this substitution.
19325   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19326
19327   for p in `eval $output_verbose_link_cmd`; do
19328     case $p in
19329
19330     -L* | -R* | -l*)
19331        # Some compilers place space between "-{L,R}" and the path.
19332        # Remove the space.
19333        if test $p = "-L" \
19334           || test $p = "-R"; then
19335          prev=$p
19336          continue
19337        else
19338          prev=
19339        fi
19340
19341        if test "$pre_test_object_deps_done" = no; then
19342          case $p in
19343          -L* | -R*)
19344            # Internal compiler library paths should come after those
19345            # provided the user.  The postdeps already come after the
19346            # user supplied libs so there is no need to process them.
19347            if test -z "$compiler_lib_search_path_CXX"; then
19348              compiler_lib_search_path_CXX="${prev}${p}"
19349            else
19350              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19351            fi
19352            ;;
19353          # The "-l" case would never come before the object being
19354          # linked, so don't bother handling this case.
19355          esac
19356        else
19357          if test -z "$postdeps_CXX"; then
19358            postdeps_CXX="${prev}${p}"
19359          else
19360            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19361          fi
19362        fi
19363        ;;
19364
19365     *.$objext)
19366        # This assumes that the test object file only shows up
19367        # once in the compiler output.
19368        if test "$p" = "conftest.$objext"; then
19369          pre_test_object_deps_done=yes
19370          continue
19371        fi
19372
19373        if test "$pre_test_object_deps_done" = no; then
19374          if test -z "$predep_objects_CXX"; then
19375            predep_objects_CXX="$p"
19376          else
19377            predep_objects_CXX="$predep_objects_CXX $p"
19378          fi
19379        else
19380          if test -z "$postdep_objects_CXX"; then
19381            postdep_objects_CXX="$p"
19382          else
19383            postdep_objects_CXX="$postdep_objects_CXX $p"
19384          fi
19385        fi
19386        ;;
19387
19388     *) ;; # Ignore the rest.
19389
19390     esac
19391   done
19392
19393   # Clean up.
19394   rm -f a.out a.exe
19395 else
19396   echo "libtool.m4: error: problem compiling CXX test program"
19397 fi
19398
19399 $rm -f confest.$objext
19400
19401 # PORTME: override above test on systems where it is broken
19402 case $host_os in
19403 interix3*)
19404   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19405   # hack all around it, let's just trust "g++" to DTRT.
19406   predep_objects_CXX=
19407   postdep_objects_CXX=
19408   postdeps_CXX=
19409   ;;
19410
19411 solaris*)
19412   case $cc_basename in
19413   CC*)
19414     # Adding this requires a known-good setup of shared libraries for
19415     # Sun compiler versions before 5.6, else PIC objects from an old
19416     # archive will be linked into the output, leading to subtle bugs.
19417     postdeps_CXX='-lCstd -lCrun'
19418     ;;
19419   esac
19420   ;;
19421 esac
19422
19423
19424 case " $postdeps_CXX " in
19425 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19426 esac
19427
19428 lt_prog_compiler_wl_CXX=
19429 lt_prog_compiler_pic_CXX=
19430 lt_prog_compiler_static_CXX=
19431
19432 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19433 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19434
19435   # C++ specific cases for pic, static, wl, etc.
19436   if test "$GXX" = yes; then
19437     lt_prog_compiler_wl_CXX='-Wl,'
19438     lt_prog_compiler_static_CXX='-static'
19439
19440     case $host_os in
19441     aix*)
19442       # All AIX code is PIC.
19443       if test "$host_cpu" = ia64; then
19444         # AIX 5 now supports IA64 processor
19445         lt_prog_compiler_static_CXX='-Bstatic'
19446       fi
19447       ;;
19448     amigaos*)
19449       # FIXME: we need at least 68020 code to build shared libraries, but
19450       # adding the `-m68020' flag to GCC prevents building anything better,
19451       # like `-m68040'.
19452       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19453       ;;
19454     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19455       # PIC is the default for these OSes.
19456       ;;
19457     mingw* | os2* | pw32*)
19458       # This hack is so that the source file can tell whether it is being
19459       # built for inclusion in a dll (and should export symbols for example).
19460       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19461       ;;
19462     darwin* | rhapsody*)
19463       # PIC is the default on this platform
19464       # Common symbols not allowed in MH_DYLIB files
19465       lt_prog_compiler_pic_CXX='-fno-common'
19466       ;;
19467     *djgpp*)
19468       # DJGPP does not support shared libraries at all
19469       lt_prog_compiler_pic_CXX=
19470       ;;
19471     interix3*)
19472       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19473       # Instead, we relocate shared libraries at runtime.
19474       ;;
19475     sysv4*MP*)
19476       if test -d /usr/nec; then
19477         lt_prog_compiler_pic_CXX=-Kconform_pic
19478       fi
19479       ;;
19480     hpux*)
19481       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19482       # not for PA HP-UX.
19483       case $host_cpu in
19484       hppa*64*|ia64*)
19485         ;;
19486       *)
19487         lt_prog_compiler_pic_CXX='-fPIC'
19488         ;;
19489       esac
19490       ;;
19491     *)
19492       lt_prog_compiler_pic_CXX='-fPIC'
19493       ;;
19494     esac
19495   else
19496     case $host_os in
19497       aix4* | aix5*)
19498         # All AIX code is PIC.
19499         if test "$host_cpu" = ia64; then
19500           # AIX 5 now supports IA64 processor
19501           lt_prog_compiler_static_CXX='-Bstatic'
19502         else
19503           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19504         fi
19505         ;;
19506       chorus*)
19507         case $cc_basename in
19508         cxch68*)
19509           # Green Hills C++ Compiler
19510           # _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"
19511           ;;
19512         esac
19513         ;;
19514        darwin*)
19515          # PIC is the default on this platform
19516          # Common symbols not allowed in MH_DYLIB files
19517          case $cc_basename in
19518            xlc*)
19519            lt_prog_compiler_pic_CXX='-qnocommon'
19520            lt_prog_compiler_wl_CXX='-Wl,'
19521            ;;
19522          esac
19523        ;;
19524       dgux*)
19525         case $cc_basename in
19526           ec++*)
19527             lt_prog_compiler_pic_CXX='-KPIC'
19528             ;;
19529           ghcx*)
19530             # Green Hills C++ Compiler
19531             lt_prog_compiler_pic_CXX='-pic'
19532             ;;
19533           *)
19534             ;;
19535         esac
19536         ;;
19537       freebsd* | kfreebsd*-gnu | dragonfly*)
19538         # FreeBSD uses GNU C++
19539         ;;
19540       hpux9* | hpux10* | hpux11*)
19541         case $cc_basename in
19542           CC*)
19543             lt_prog_compiler_wl_CXX='-Wl,'
19544             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19545             if test "$host_cpu" != ia64; then
19546               lt_prog_compiler_pic_CXX='+Z'
19547             fi
19548             ;;
19549           aCC*)
19550             lt_prog_compiler_wl_CXX='-Wl,'
19551             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19552             case $host_cpu in
19553             hppa*64*|ia64*)
19554               # +Z the default
19555               ;;
19556             *)
19557               lt_prog_compiler_pic_CXX='+Z'
19558               ;;
19559             esac
19560             ;;
19561           *)
19562             ;;
19563         esac
19564         ;;
19565       interix*)
19566         # This is c89, which is MS Visual C++ (no shared libs)
19567         # Anyone wants to do a port?
19568         ;;
19569       irix5* | irix6* | nonstopux*)
19570         case $cc_basename in
19571           CC*)
19572             lt_prog_compiler_wl_CXX='-Wl,'
19573             lt_prog_compiler_static_CXX='-non_shared'
19574             # CC pic flag -KPIC is the default.
19575             ;;
19576           *)
19577             ;;
19578         esac
19579         ;;
19580       linux*)
19581         case $cc_basename in
19582           KCC*)
19583             # KAI C++ Compiler
19584             lt_prog_compiler_wl_CXX='--backend -Wl,'
19585             lt_prog_compiler_pic_CXX='-fPIC'
19586             ;;
19587           icpc* | ecpc*)
19588             # Intel C++
19589             lt_prog_compiler_wl_CXX='-Wl,'
19590             lt_prog_compiler_pic_CXX='-KPIC'
19591             lt_prog_compiler_static_CXX='-static'
19592             ;;
19593           pgCC*)
19594             # Portland Group C++ compiler.
19595             lt_prog_compiler_wl_CXX='-Wl,'
19596             lt_prog_compiler_pic_CXX='-fpic'
19597             lt_prog_compiler_static_CXX='-Bstatic'
19598             ;;
19599           cxx*)
19600             # Compaq C++
19601             # Make sure the PIC flag is empty.  It appears that all Alpha
19602             # Linux and Compaq Tru64 Unix objects are PIC.
19603             lt_prog_compiler_pic_CXX=
19604             lt_prog_compiler_static_CXX='-non_shared'
19605             ;;
19606           *)
19607             ;;
19608         esac
19609         ;;
19610       lynxos*)
19611         ;;
19612       m88k*)
19613         ;;
19614       mvs*)
19615         case $cc_basename in
19616           cxx*)
19617             lt_prog_compiler_pic_CXX='-W c,exportall'
19618             ;;
19619           *)
19620             ;;
19621         esac
19622         ;;
19623       netbsd*)
19624         ;;
19625       osf3* | osf4* | osf5*)
19626         case $cc_basename in
19627           KCC*)
19628             lt_prog_compiler_wl_CXX='--backend -Wl,'
19629             ;;
19630           RCC*)
19631             # Rational C++ 2.4.1
19632             lt_prog_compiler_pic_CXX='-pic'
19633             ;;
19634           cxx*)
19635             # Digital/Compaq C++
19636             lt_prog_compiler_wl_CXX='-Wl,'
19637             # Make sure the PIC flag is empty.  It appears that all Alpha
19638             # Linux and Compaq Tru64 Unix objects are PIC.
19639             lt_prog_compiler_pic_CXX=
19640             lt_prog_compiler_static_CXX='-non_shared'
19641             ;;
19642           *)
19643             ;;
19644         esac
19645         ;;
19646       psos*)
19647         ;;
19648       solaris*)
19649         case $cc_basename in
19650           CC*)
19651             # Sun C++ 4.2, 5.x and Centerline C++
19652             lt_prog_compiler_pic_CXX='-KPIC'
19653             lt_prog_compiler_static_CXX='-Bstatic'
19654             lt_prog_compiler_wl_CXX='-Qoption ld '
19655             ;;
19656           gcx*)
19657             # Green Hills C++ Compiler
19658             lt_prog_compiler_pic_CXX='-PIC'
19659             ;;
19660           *)
19661             ;;
19662         esac
19663         ;;
19664       sunos4*)
19665         case $cc_basename in
19666           CC*)
19667             # Sun C++ 4.x
19668             lt_prog_compiler_pic_CXX='-pic'
19669             lt_prog_compiler_static_CXX='-Bstatic'
19670             ;;
19671           lcc*)
19672             # Lucid
19673             lt_prog_compiler_pic_CXX='-pic'
19674             ;;
19675           *)
19676             ;;
19677         esac
19678         ;;
19679       tandem*)
19680         case $cc_basename in
19681           NCC*)
19682             # NonStop-UX NCC 3.20
19683             lt_prog_compiler_pic_CXX='-KPIC'
19684             ;;
19685           *)
19686             ;;
19687         esac
19688         ;;
19689       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19690         case $cc_basename in
19691           CC*)
19692             lt_prog_compiler_wl_CXX='-Wl,'
19693             lt_prog_compiler_pic_CXX='-KPIC'
19694             lt_prog_compiler_static_CXX='-Bstatic'
19695             ;;
19696         esac
19697         ;;
19698       vxworks*)
19699         ;;
19700       *)
19701         lt_prog_compiler_can_build_shared_CXX=no
19702         ;;
19703     esac
19704   fi
19705
19706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19707 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19708
19709 #
19710 # Check to make sure the PIC flag actually works.
19711 #
19712 if test -n "$lt_prog_compiler_pic_CXX"; then
19713
19714 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19715 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19716 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19717   echo $ECHO_N "(cached) $ECHO_C" >&6
19718 else
19719   lt_prog_compiler_pic_works_CXX=no
19720   ac_outfile=conftest.$ac_objext
19721    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19722    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19723    # Insert the option either (1) after the last *FLAGS variable, or
19724    # (2) before a word containing "conftest.", or (3) at the end.
19725    # Note that $ac_compile itself does not contain backslashes and begins
19726    # with a dollar sign (not a hyphen), so the echo should work correctly.
19727    # The option is referenced via a variable to avoid confusing sed.
19728    lt_compile=`echo "$ac_compile" | $SED \
19729    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19730    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19731    -e 's:$: $lt_compiler_flag:'`
19732    (eval echo "\"\$as_me:19732: $lt_compile\"" >&5)
19733    (eval "$lt_compile" 2>conftest.err)
19734    ac_status=$?
19735    cat conftest.err >&5
19736    echo "$as_me:19736: \$? = $ac_status" >&5
19737    if (exit $ac_status) && test -s "$ac_outfile"; then
19738      # The compiler can only warn and ignore the option if not recognized
19739      # So say no if there are warnings other than the usual output.
19740      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19741      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19742      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19743        lt_prog_compiler_pic_works_CXX=yes
19744      fi
19745    fi
19746    $rm conftest*
19747
19748 fi
19749 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19750 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19751
19752 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19753     case $lt_prog_compiler_pic_CXX in
19754      "" | " "*) ;;
19755      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19756      esac
19757 else
19758     lt_prog_compiler_pic_CXX=
19759      lt_prog_compiler_can_build_shared_CXX=no
19760 fi
19761
19762 fi
19763 case $host_os in
19764   # For platforms which do not support PIC, -DPIC is meaningless:
19765   *djgpp*)
19766     lt_prog_compiler_pic_CXX=
19767     ;;
19768   *)
19769     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19770     ;;
19771 esac
19772
19773 #
19774 # Check to make sure the static flag actually works.
19775 #
19776 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19777 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19778 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19779 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19780   echo $ECHO_N "(cached) $ECHO_C" >&6
19781 else
19782   lt_prog_compiler_static_works_CXX=no
19783    save_LDFLAGS="$LDFLAGS"
19784    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19785    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19786    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19787      # The linker can only warn and ignore the option if not recognized
19788      # So say no if there are warnings
19789      if test -s conftest.err; then
19790        # Append any errors to the config.log.
19791        cat conftest.err 1>&5
19792        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19793        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19794        if diff conftest.exp conftest.er2 >/dev/null; then
19795          lt_prog_compiler_static_works_CXX=yes
19796        fi
19797      else
19798        lt_prog_compiler_static_works_CXX=yes
19799      fi
19800    fi
19801    $rm conftest*
19802    LDFLAGS="$save_LDFLAGS"
19803
19804 fi
19805 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19806 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19807
19808 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19809     :
19810 else
19811     lt_prog_compiler_static_CXX=
19812 fi
19813
19814
19815 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19816 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19817 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19818   echo $ECHO_N "(cached) $ECHO_C" >&6
19819 else
19820   lt_cv_prog_compiler_c_o_CXX=no
19821    $rm -r conftest 2>/dev/null
19822    mkdir conftest
19823    cd conftest
19824    mkdir out
19825    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19826
19827    lt_compiler_flag="-o out/conftest2.$ac_objext"
19828    # Insert the option either (1) after the last *FLAGS variable, or
19829    # (2) before a word containing "conftest.", or (3) at the end.
19830    # Note that $ac_compile itself does not contain backslashes and begins
19831    # with a dollar sign (not a hyphen), so the echo should work correctly.
19832    lt_compile=`echo "$ac_compile" | $SED \
19833    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19834    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19835    -e 's:$: $lt_compiler_flag:'`
19836    (eval echo "\"\$as_me:19836: $lt_compile\"" >&5)
19837    (eval "$lt_compile" 2>out/conftest.err)
19838    ac_status=$?
19839    cat out/conftest.err >&5
19840    echo "$as_me:19840: \$? = $ac_status" >&5
19841    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19842    then
19843      # The compiler can only warn and ignore the option if not recognized
19844      # So say no if there are warnings
19845      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19846      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19847      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19848        lt_cv_prog_compiler_c_o_CXX=yes
19849      fi
19850    fi
19851    chmod u+w . 2>&5
19852    $rm conftest*
19853    # SGI C++ compiler will create directory out/ii_files/ for
19854    # template instantiation
19855    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19856    $rm out/* && rmdir out
19857    cd ..
19858    rmdir conftest
19859    $rm conftest*
19860
19861 fi
19862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19863 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19864
19865
19866 hard_links="nottested"
19867 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19868   # do not overwrite the value of need_locks provided by the user
19869   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19870 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19871   hard_links=yes
19872   $rm conftest*
19873   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19874   touch conftest.a
19875   ln conftest.a conftest.b 2>&5 || hard_links=no
19876   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19877   { echo "$as_me:$LINENO: result: $hard_links" >&5
19878 echo "${ECHO_T}$hard_links" >&6; }
19879   if test "$hard_links" = no; then
19880     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19881 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19882     need_locks=warn
19883   fi
19884 else
19885   need_locks=no
19886 fi
19887
19888 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19889 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19890
19891   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19892   case $host_os in
19893   aix4* | aix5*)
19894     # If we're using GNU nm, then we don't want the "-C" option.
19895     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19896     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19897       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'
19898     else
19899       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'
19900     fi
19901     ;;
19902   pw32*)
19903     export_symbols_cmds_CXX="$ltdll_cmds"
19904   ;;
19905   cygwin* | mingw*)
19906     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'
19907   ;;
19908   *)
19909     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19910   ;;
19911   esac
19912
19913 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19914 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19915 test "$ld_shlibs_CXX" = no && can_build_shared=no
19916
19917 #
19918 # Do we need to explicitly link libc?
19919 #
19920 case "x$archive_cmds_need_lc_CXX" in
19921 x|xyes)
19922   # Assume -lc should be added
19923   archive_cmds_need_lc_CXX=yes
19924
19925   if test "$enable_shared" = yes && test "$GCC" = yes; then
19926     case $archive_cmds_CXX in
19927     *'~'*)
19928       # FIXME: we may have to deal with multi-command sequences.
19929       ;;
19930     '$CC '*)
19931       # Test whether the compiler implicitly links with -lc since on some
19932       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19933       # to ld, don't add -lc before -lgcc.
19934       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19935 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19936       $rm conftest*
19937       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19938
19939       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19940   (eval $ac_compile) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); } 2>conftest.err; then
19944         soname=conftest
19945         lib=conftest
19946         libobjs=conftest.$ac_objext
19947         deplibs=
19948         wl=$lt_prog_compiler_wl_CXX
19949         pic_flag=$lt_prog_compiler_pic_CXX
19950         compiler_flags=-v
19951         linker_flags=-v
19952         verstring=
19953         output_objdir=.
19954         libname=conftest
19955         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19956         allow_undefined_flag_CXX=
19957         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19958   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); }
19962         then
19963           archive_cmds_need_lc_CXX=no
19964         else
19965           archive_cmds_need_lc_CXX=yes
19966         fi
19967         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19968       else
19969         cat conftest.err 1>&5
19970       fi
19971       $rm conftest*
19972       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19973 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19974       ;;
19975     esac
19976   fi
19977   ;;
19978 esac
19979
19980 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19981 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19982 library_names_spec=
19983 libname_spec='lib$name'
19984 soname_spec=
19985 shrext_cmds=".so"
19986 postinstall_cmds=
19987 postuninstall_cmds=
19988 finish_cmds=
19989 finish_eval=
19990 shlibpath_var=
19991 shlibpath_overrides_runpath=unknown
19992 version_type=none
19993 dynamic_linker="$host_os ld.so"
19994 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19995 if test "$GCC" = yes; then
19996   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19997   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19998     # if the path contains ";" then we assume it to be the separator
19999     # otherwise default to the standard path separator (i.e. ":") - it is
20000     # assumed that no part of a normal pathname contains ";" but that should
20001     # okay in the real world where ";" in dirpaths is itself problematic.
20002     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20003   else
20004     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20005   fi
20006 else
20007   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20008 fi
20009 need_lib_prefix=unknown
20010 hardcode_into_libs=no
20011
20012 # when you set need_version to no, make sure it does not cause -set_version
20013 # flags to be left without arguments
20014 need_version=unknown
20015
20016 case $host_os in
20017 aix3*)
20018   version_type=linux
20019   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20020   shlibpath_var=LIBPATH
20021
20022   # AIX 3 has no versioning support, so we append a major version to the name.
20023   soname_spec='${libname}${release}${shared_ext}$major'
20024   ;;
20025
20026 aix4* | aix5*)
20027   version_type=linux
20028   need_lib_prefix=no
20029   need_version=no
20030   hardcode_into_libs=yes
20031   if test "$host_cpu" = ia64; then
20032     # AIX 5 supports IA64
20033     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20034     shlibpath_var=LD_LIBRARY_PATH
20035   else
20036     # With GCC up to 2.95.x, collect2 would create an import file
20037     # for dependence libraries.  The import file would start with
20038     # the line `#! .'.  This would cause the generated library to
20039     # depend on `.', always an invalid library.  This was fixed in
20040     # development snapshots of GCC prior to 3.0.
20041     case $host_os in
20042       aix4 | aix4.[01] | aix4.[01].*)
20043       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20044            echo ' yes '
20045            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20046         :
20047       else
20048         can_build_shared=no
20049       fi
20050       ;;
20051     esac
20052     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20053     # soname into executable. Probably we can add versioning support to
20054     # collect2, so additional links can be useful in future.
20055     if test "$aix_use_runtimelinking" = yes; then
20056       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20057       # instead of lib<name>.a to let people know that these are not
20058       # typical AIX shared libraries.
20059       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20060     else
20061       # We preserve .a as extension for shared libraries through AIX4.2
20062       # and later when we are not doing run time linking.
20063       library_names_spec='${libname}${release}.a $libname.a'
20064       soname_spec='${libname}${release}${shared_ext}$major'
20065     fi
20066     shlibpath_var=LIBPATH
20067   fi
20068   ;;
20069
20070 amigaos*)
20071   library_names_spec='$libname.ixlibrary $libname.a'
20072   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20073   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'
20074   ;;
20075
20076 beos*)
20077   library_names_spec='${libname}${shared_ext}'
20078   dynamic_linker="$host_os ld.so"
20079   shlibpath_var=LIBRARY_PATH
20080   ;;
20081
20082 bsdi[45]*)
20083   version_type=linux
20084   need_version=no
20085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20086   soname_spec='${libname}${release}${shared_ext}$major'
20087   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20088   shlibpath_var=LD_LIBRARY_PATH
20089   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20090   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20091   # the default ld.so.conf also contains /usr/contrib/lib and
20092   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20093   # libtool to hard-code these into programs
20094   ;;
20095
20096 cygwin* | mingw* | pw32*)
20097   version_type=windows
20098   shrext_cmds=".dll"
20099   need_version=no
20100   need_lib_prefix=no
20101
20102   case $GCC,$host_os in
20103   yes,cygwin* | yes,mingw* | yes,pw32*)
20104     library_names_spec='$libname.dll.a'
20105     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20106     postinstall_cmds='base_file=`basename \${file}`~
20107       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20108       dldir=$destdir/`dirname \$dlpath`~
20109       test -d \$dldir || mkdir -p \$dldir~
20110       $install_prog $dir/$dlname \$dldir/$dlname~
20111       chmod a+x \$dldir/$dlname'
20112     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20113       dlpath=$dir/\$dldll~
20114        $rm \$dlpath'
20115     shlibpath_overrides_runpath=yes
20116
20117     case $host_os in
20118     cygwin*)
20119       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20120       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20121       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20122       ;;
20123     mingw*)
20124       # MinGW DLLs use traditional 'lib' prefix
20125       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20126       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20127       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20128         # It is most probably a Windows format PATH printed by
20129         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20130         # path with ; separators, and with drive letters. We can handle the
20131         # drive letters (cygwin fileutils understands them), so leave them,
20132         # especially as we might pass files found there to a mingw objdump,
20133         # which wouldn't understand a cygwinified path. Ahh.
20134         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20135       else
20136         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20137       fi
20138       ;;
20139     pw32*)
20140       # pw32 DLLs use 'pw' prefix rather than 'lib'
20141       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20142       ;;
20143     esac
20144     ;;
20145
20146   *)
20147     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20148     ;;
20149   esac
20150   dynamic_linker='Win32 ld.exe'
20151   # FIXME: first we should search . and the directory the executable is in
20152   shlibpath_var=PATH
20153   ;;
20154
20155 darwin* | rhapsody*)
20156   dynamic_linker="$host_os dyld"
20157   version_type=darwin
20158   need_lib_prefix=no
20159   need_version=no
20160   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20161   soname_spec='${libname}${release}${major}$shared_ext'
20162   shlibpath_overrides_runpath=yes
20163   shlibpath_var=DYLD_LIBRARY_PATH
20164   shrext_cmds='.dylib'
20165   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20166   if test "$GCC" = yes; then
20167     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"`
20168   else
20169     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20170   fi
20171   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20172   ;;
20173
20174 dgux*)
20175   version_type=linux
20176   need_lib_prefix=no
20177   need_version=no
20178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20179   soname_spec='${libname}${release}${shared_ext}$major'
20180   shlibpath_var=LD_LIBRARY_PATH
20181   ;;
20182
20183 freebsd1*)
20184   dynamic_linker=no
20185   ;;
20186
20187 kfreebsd*-gnu)
20188   version_type=linux
20189   need_lib_prefix=no
20190   need_version=no
20191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20192   soname_spec='${libname}${release}${shared_ext}$major'
20193   shlibpath_var=LD_LIBRARY_PATH
20194   shlibpath_overrides_runpath=no
20195   hardcode_into_libs=yes
20196   dynamic_linker='GNU ld.so'
20197   ;;
20198
20199 freebsd* | dragonfly*)
20200   # DragonFly does not have aout.  When/if they implement a new
20201   # versioning mechanism, adjust this.
20202   if test -x /usr/bin/objformat; then
20203     objformat=`/usr/bin/objformat`
20204   else
20205     case $host_os in
20206     freebsd[123]*) objformat=aout ;;
20207     *) objformat=elf ;;
20208     esac
20209   fi
20210   version_type=freebsd-$objformat
20211   case $version_type in
20212     freebsd-elf*)
20213       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20214       need_version=no
20215       need_lib_prefix=no
20216       ;;
20217     freebsd-*)
20218       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20219       need_version=yes
20220       ;;
20221   esac
20222   shlibpath_var=LD_LIBRARY_PATH
20223   case $host_os in
20224   freebsd2*)
20225     shlibpath_overrides_runpath=yes
20226     ;;
20227   freebsd3.[01]* | freebsdelf3.[01]*)
20228     shlibpath_overrides_runpath=yes
20229     hardcode_into_libs=yes
20230     ;;
20231   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20232   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20233     shlibpath_overrides_runpath=no
20234     hardcode_into_libs=yes
20235     ;;
20236   freebsd*) # from 4.6 on
20237     shlibpath_overrides_runpath=yes
20238     hardcode_into_libs=yes
20239     ;;
20240   esac
20241   ;;
20242
20243 gnu*)
20244   version_type=linux
20245   need_lib_prefix=no
20246   need_version=no
20247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20248   soname_spec='${libname}${release}${shared_ext}$major'
20249   shlibpath_var=LD_LIBRARY_PATH
20250   hardcode_into_libs=yes
20251   ;;
20252
20253 hpux9* | hpux10* | hpux11*)
20254   # Give a soname corresponding to the major version so that dld.sl refuses to
20255   # link against other versions.
20256   version_type=sunos
20257   need_lib_prefix=no
20258   need_version=no
20259   case $host_cpu in
20260   ia64*)
20261     shrext_cmds='.so'
20262     hardcode_into_libs=yes
20263     dynamic_linker="$host_os dld.so"
20264     shlibpath_var=LD_LIBRARY_PATH
20265     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267     soname_spec='${libname}${release}${shared_ext}$major'
20268     if test "X$HPUX_IA64_MODE" = X32; then
20269       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20270     else
20271       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20272     fi
20273     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20274     ;;
20275    hppa*64*)
20276      shrext_cmds='.sl'
20277      hardcode_into_libs=yes
20278      dynamic_linker="$host_os dld.sl"
20279      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20280      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20281      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20282      soname_spec='${libname}${release}${shared_ext}$major'
20283      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20284      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20285      ;;
20286    *)
20287     shrext_cmds='.sl'
20288     dynamic_linker="$host_os dld.sl"
20289     shlibpath_var=SHLIB_PATH
20290     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20292     soname_spec='${libname}${release}${shared_ext}$major'
20293     ;;
20294   esac
20295   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20296   postinstall_cmds='chmod 555 $lib'
20297   ;;
20298
20299 interix3*)
20300   version_type=linux
20301   need_lib_prefix=no
20302   need_version=no
20303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20304   soname_spec='${libname}${release}${shared_ext}$major'
20305   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20306   shlibpath_var=LD_LIBRARY_PATH
20307   shlibpath_overrides_runpath=no
20308   hardcode_into_libs=yes
20309   ;;
20310
20311 irix5* | irix6* | nonstopux*)
20312   case $host_os in
20313     nonstopux*) version_type=nonstopux ;;
20314     *)
20315         if test "$lt_cv_prog_gnu_ld" = yes; then
20316                 version_type=linux
20317         else
20318                 version_type=irix
20319         fi ;;
20320   esac
20321   need_lib_prefix=no
20322   need_version=no
20323   soname_spec='${libname}${release}${shared_ext}$major'
20324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20325   case $host_os in
20326   irix5* | nonstopux*)
20327     libsuff= shlibsuff=
20328     ;;
20329   *)
20330     case $LD in # libtool.m4 will add one of these switches to LD
20331     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20332       libsuff= shlibsuff= libmagic=32-bit;;
20333     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20334       libsuff=32 shlibsuff=N32 libmagic=N32;;
20335     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20336       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20337     *) libsuff= shlibsuff= libmagic=never-match;;
20338     esac
20339     ;;
20340   esac
20341   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20342   shlibpath_overrides_runpath=no
20343   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20344   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20345   hardcode_into_libs=yes
20346   ;;
20347
20348 # No shared lib support for Linux oldld, aout, or coff.
20349 linux*oldld* | linux*aout* | linux*coff*)
20350   dynamic_linker=no
20351   ;;
20352
20353 # This must be Linux ELF.
20354 linux*)
20355   version_type=linux
20356   need_lib_prefix=no
20357   need_version=no
20358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20359   soname_spec='${libname}${release}${shared_ext}$major'
20360   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20361   shlibpath_var=LD_LIBRARY_PATH
20362   shlibpath_overrides_runpath=no
20363   # This implies no fast_install, which is unacceptable.
20364   # Some rework will be needed to allow for fast_install
20365   # before this can be enabled.
20366   hardcode_into_libs=yes
20367
20368   # Append ld.so.conf contents to the search path
20369   if test -f /etc/ld.so.conf; then
20370     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' ' '`
20371     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20372   fi
20373
20374   # We used to test for /lib/ld.so.1 and disable shared libraries on
20375   # powerpc, because MkLinux only supported shared libraries with the
20376   # GNU dynamic linker.  Since this was broken with cross compilers,
20377   # most powerpc-linux boxes support dynamic linking these days and
20378   # people can always --disable-shared, the test was removed, and we
20379   # assume the GNU/Linux dynamic linker is in use.
20380   dynamic_linker='GNU/Linux ld.so'
20381   ;;
20382
20383 knetbsd*-gnu)
20384   version_type=linux
20385   need_lib_prefix=no
20386   need_version=no
20387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20388   soname_spec='${libname}${release}${shared_ext}$major'
20389   shlibpath_var=LD_LIBRARY_PATH
20390   shlibpath_overrides_runpath=no
20391   hardcode_into_libs=yes
20392   dynamic_linker='GNU ld.so'
20393   ;;
20394
20395 netbsd*)
20396   version_type=sunos
20397   need_lib_prefix=no
20398   need_version=no
20399   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20401     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20402     dynamic_linker='NetBSD (a.out) ld.so'
20403   else
20404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20405     soname_spec='${libname}${release}${shared_ext}$major'
20406     dynamic_linker='NetBSD ld.elf_so'
20407   fi
20408   shlibpath_var=LD_LIBRARY_PATH
20409   shlibpath_overrides_runpath=yes
20410   hardcode_into_libs=yes
20411   ;;
20412
20413 newsos6)
20414   version_type=linux
20415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416   shlibpath_var=LD_LIBRARY_PATH
20417   shlibpath_overrides_runpath=yes
20418   ;;
20419
20420 nto-qnx*)
20421   version_type=linux
20422   need_lib_prefix=no
20423   need_version=no
20424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425   soname_spec='${libname}${release}${shared_ext}$major'
20426   shlibpath_var=LD_LIBRARY_PATH
20427   shlibpath_overrides_runpath=yes
20428   ;;
20429
20430 openbsd*)
20431   version_type=sunos
20432   sys_lib_dlsearch_path_spec="/usr/lib"
20433   need_lib_prefix=no
20434   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20435   case $host_os in
20436     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20437     *)                         need_version=no  ;;
20438   esac
20439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20440   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20441   shlibpath_var=LD_LIBRARY_PATH
20442   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20443     case $host_os in
20444       openbsd2.[89] | openbsd2.[89].*)
20445         shlibpath_overrides_runpath=no
20446         ;;
20447       *)
20448         shlibpath_overrides_runpath=yes
20449         ;;
20450       esac
20451   else
20452     shlibpath_overrides_runpath=yes
20453   fi
20454   ;;
20455
20456 os2*)
20457   libname_spec='$name'
20458   shrext_cmds=".dll"
20459   need_lib_prefix=no
20460   library_names_spec='$libname${shared_ext} $libname.a'
20461   dynamic_linker='OS/2 ld.exe'
20462   shlibpath_var=LIBPATH
20463   ;;
20464
20465 osf3* | osf4* | osf5*)
20466   version_type=osf
20467   need_lib_prefix=no
20468   need_version=no
20469   soname_spec='${libname}${release}${shared_ext}$major'
20470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20471   shlibpath_var=LD_LIBRARY_PATH
20472   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20473   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20474   ;;
20475
20476 solaris*)
20477   version_type=linux
20478   need_lib_prefix=no
20479   need_version=no
20480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20481   soname_spec='${libname}${release}${shared_ext}$major'
20482   shlibpath_var=LD_LIBRARY_PATH
20483   shlibpath_overrides_runpath=yes
20484   hardcode_into_libs=yes
20485   # ldd complains unless libraries are executable
20486   postinstall_cmds='chmod +x $lib'
20487   ;;
20488
20489 sunos4*)
20490   version_type=sunos
20491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20492   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20493   shlibpath_var=LD_LIBRARY_PATH
20494   shlibpath_overrides_runpath=yes
20495   if test "$with_gnu_ld" = yes; then
20496     need_lib_prefix=no
20497   fi
20498   need_version=yes
20499   ;;
20500
20501 sysv4 | sysv4.3*)
20502   version_type=linux
20503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20504   soname_spec='${libname}${release}${shared_ext}$major'
20505   shlibpath_var=LD_LIBRARY_PATH
20506   case $host_vendor in
20507     sni)
20508       shlibpath_overrides_runpath=no
20509       need_lib_prefix=no
20510       export_dynamic_flag_spec='${wl}-Blargedynsym'
20511       runpath_var=LD_RUN_PATH
20512       ;;
20513     siemens)
20514       need_lib_prefix=no
20515       ;;
20516     motorola)
20517       need_lib_prefix=no
20518       need_version=no
20519       shlibpath_overrides_runpath=no
20520       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20521       ;;
20522   esac
20523   ;;
20524
20525 sysv4*MP*)
20526   if test -d /usr/nec ;then
20527     version_type=linux
20528     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20529     soname_spec='$libname${shared_ext}.$major'
20530     shlibpath_var=LD_LIBRARY_PATH
20531   fi
20532   ;;
20533
20534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20535   version_type=freebsd-elf
20536   need_lib_prefix=no
20537   need_version=no
20538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20539   soname_spec='${libname}${release}${shared_ext}$major'
20540   shlibpath_var=LD_LIBRARY_PATH
20541   hardcode_into_libs=yes
20542   if test "$with_gnu_ld" = yes; then
20543     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20544     shlibpath_overrides_runpath=no
20545   else
20546     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20547     shlibpath_overrides_runpath=yes
20548     case $host_os in
20549       sco3.2v5*)
20550         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20551         ;;
20552     esac
20553   fi
20554   sys_lib_dlsearch_path_spec='/usr/lib'
20555   ;;
20556
20557 uts4*)
20558   version_type=linux
20559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20560   soname_spec='${libname}${release}${shared_ext}$major'
20561   shlibpath_var=LD_LIBRARY_PATH
20562   ;;
20563
20564 *)
20565   dynamic_linker=no
20566   ;;
20567 esac
20568 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20569 echo "${ECHO_T}$dynamic_linker" >&6; }
20570 test "$dynamic_linker" = no && can_build_shared=no
20571
20572 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20573 if test "$GCC" = yes; then
20574   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20575 fi
20576
20577 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20578 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20579 hardcode_action_CXX=
20580 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20581    test -n "$runpath_var_CXX" || \
20582    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20583
20584   # We can hardcode non-existant directories.
20585   if test "$hardcode_direct_CXX" != no &&
20586      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20587      # have to relink, otherwise we might link with an installed library
20588      # when we should be linking with a yet-to-be-installed one
20589      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20590      test "$hardcode_minus_L_CXX" != no; then
20591     # Linking always hardcodes the temporary library directory.
20592     hardcode_action_CXX=relink
20593   else
20594     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20595     hardcode_action_CXX=immediate
20596   fi
20597 else
20598   # We cannot hardcode anything, or else we can only hardcode existing
20599   # directories.
20600   hardcode_action_CXX=unsupported
20601 fi
20602 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20603 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20604
20605 if test "$hardcode_action_CXX" = relink; then
20606   # Fast installation is not supported
20607   enable_fast_install=no
20608 elif test "$shlibpath_overrides_runpath" = yes ||
20609      test "$enable_shared" = no; then
20610   # Fast installation is not necessary
20611   enable_fast_install=needless
20612 fi
20613
20614
20615 # The else clause should only fire when bootstrapping the
20616 # libtool distribution, otherwise you forgot to ship ltmain.sh
20617 # with your package, and you will get complaints that there are
20618 # no rules to generate ltmain.sh.
20619 if test -f "$ltmain"; then
20620   # See if we are running on zsh, and set the options which allow our commands through
20621   # without removal of \ escapes.
20622   if test -n "${ZSH_VERSION+set}" ; then
20623     setopt NO_GLOB_SUBST
20624   fi
20625   # Now quote all the things that may contain metacharacters while being
20626   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20627   # variables and quote the copies for generation of the libtool script.
20628   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20629     SED SHELL STRIP \
20630     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20631     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20632     deplibs_check_method reload_flag reload_cmds need_locks \
20633     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20634     lt_cv_sys_global_symbol_to_c_name_address \
20635     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20636     old_postinstall_cmds old_postuninstall_cmds \
20637     compiler_CXX \
20638     CC_CXX \
20639     LD_CXX \
20640     lt_prog_compiler_wl_CXX \
20641     lt_prog_compiler_pic_CXX \
20642     lt_prog_compiler_static_CXX \
20643     lt_prog_compiler_no_builtin_flag_CXX \
20644     export_dynamic_flag_spec_CXX \
20645     thread_safe_flag_spec_CXX \
20646     whole_archive_flag_spec_CXX \
20647     enable_shared_with_static_runtimes_CXX \
20648     old_archive_cmds_CXX \
20649     old_archive_from_new_cmds_CXX \
20650     predep_objects_CXX \
20651     postdep_objects_CXX \
20652     predeps_CXX \
20653     postdeps_CXX \
20654     compiler_lib_search_path_CXX \
20655     archive_cmds_CXX \
20656     archive_expsym_cmds_CXX \
20657     postinstall_cmds_CXX \
20658     postuninstall_cmds_CXX \
20659     old_archive_from_expsyms_cmds_CXX \
20660     allow_undefined_flag_CXX \
20661     no_undefined_flag_CXX \
20662     export_symbols_cmds_CXX \
20663     hardcode_libdir_flag_spec_CXX \
20664     hardcode_libdir_flag_spec_ld_CXX \
20665     hardcode_libdir_separator_CXX \
20666     hardcode_automatic_CXX \
20667     module_cmds_CXX \
20668     module_expsym_cmds_CXX \
20669     lt_cv_prog_compiler_c_o_CXX \
20670     exclude_expsyms_CXX \
20671     include_expsyms_CXX; do
20672
20673     case $var in
20674     old_archive_cmds_CXX | \
20675     old_archive_from_new_cmds_CXX | \
20676     archive_cmds_CXX | \
20677     archive_expsym_cmds_CXX | \
20678     module_cmds_CXX | \
20679     module_expsym_cmds_CXX | \
20680     old_archive_from_expsyms_cmds_CXX | \
20681     export_symbols_cmds_CXX | \
20682     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20683     postinstall_cmds | postuninstall_cmds | \
20684     old_postinstall_cmds | old_postuninstall_cmds | \
20685     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20686       # Double-quote double-evaled strings.
20687       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20688       ;;
20689     *)
20690       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20691       ;;
20692     esac
20693   done
20694
20695   case $lt_echo in
20696   *'\$0 --fallback-echo"')
20697     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20698     ;;
20699   esac
20700
20701 cfgfile="$ofile"
20702
20703   cat <<__EOF__ >> "$cfgfile"
20704 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20705
20706 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20707
20708 # Shell to use when invoking shell scripts.
20709 SHELL=$lt_SHELL
20710
20711 # Whether or not to build shared libraries.
20712 build_libtool_libs=$enable_shared
20713
20714 # Whether or not to build static libraries.
20715 build_old_libs=$enable_static
20716
20717 # Whether or not to add -lc for building shared libraries.
20718 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20719
20720 # Whether or not to disallow shared libs when runtime libs are static
20721 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20722
20723 # Whether or not to optimize for fast installation.
20724 fast_install=$enable_fast_install
20725
20726 # The host system.
20727 host_alias=$host_alias
20728 host=$host
20729 host_os=$host_os
20730
20731 # The build system.
20732 build_alias=$build_alias
20733 build=$build
20734 build_os=$build_os
20735
20736 # An echo program that does not interpret backslashes.
20737 echo=$lt_echo
20738
20739 # The archiver.
20740 AR=$lt_AR
20741 AR_FLAGS=$lt_AR_FLAGS
20742
20743 # A C compiler.
20744 LTCC=$lt_LTCC
20745
20746 # LTCC compiler flags.
20747 LTCFLAGS=$lt_LTCFLAGS
20748
20749 # A language-specific compiler.
20750 CC=$lt_compiler_CXX
20751
20752 # Is the compiler the GNU C compiler?
20753 with_gcc=$GCC_CXX
20754
20755 # An ERE matcher.
20756 EGREP=$lt_EGREP
20757
20758 # The linker used to build libraries.
20759 LD=$lt_LD_CXX
20760
20761 # Whether we need hard or soft links.
20762 LN_S=$lt_LN_S
20763
20764 # A BSD-compatible nm program.
20765 NM=$lt_NM
20766
20767 # A symbol stripping program
20768 STRIP=$lt_STRIP
20769
20770 # Used to examine libraries when file_magic_cmd begins "file"
20771 MAGIC_CMD=$MAGIC_CMD
20772
20773 # Used on cygwin: DLL creation program.
20774 DLLTOOL="$DLLTOOL"
20775
20776 # Used on cygwin: object dumper.
20777 OBJDUMP="$OBJDUMP"
20778
20779 # Used on cygwin: assembler.
20780 AS="$AS"
20781
20782 # The name of the directory that contains temporary libtool files.
20783 objdir=$objdir
20784
20785 # How to create reloadable object files.
20786 reload_flag=$lt_reload_flag
20787 reload_cmds=$lt_reload_cmds
20788
20789 # How to pass a linker flag through the compiler.
20790 wl=$lt_lt_prog_compiler_wl_CXX
20791
20792 # Object file suffix (normally "o").
20793 objext="$ac_objext"
20794
20795 # Old archive suffix (normally "a").
20796 libext="$libext"
20797
20798 # Shared library suffix (normally ".so").
20799 shrext_cmds='$shrext_cmds'
20800
20801 # Executable file suffix (normally "").
20802 exeext="$exeext"
20803
20804 # Additional compiler flags for building library objects.
20805 pic_flag=$lt_lt_prog_compiler_pic_CXX
20806 pic_mode=$pic_mode
20807
20808 # What is the maximum length of a command?
20809 max_cmd_len=$lt_cv_sys_max_cmd_len
20810
20811 # Does compiler simultaneously support -c and -o options?
20812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20813
20814 # Must we lock files when doing compilation?
20815 need_locks=$lt_need_locks
20816
20817 # Do we need the lib prefix for modules?
20818 need_lib_prefix=$need_lib_prefix
20819
20820 # Do we need a version for libraries?
20821 need_version=$need_version
20822
20823 # Whether dlopen is supported.
20824 dlopen_support=$enable_dlopen
20825
20826 # Whether dlopen of programs is supported.
20827 dlopen_self=$enable_dlopen_self
20828
20829 # Whether dlopen of statically linked programs is supported.
20830 dlopen_self_static=$enable_dlopen_self_static
20831
20832 # Compiler flag to prevent dynamic linking.
20833 link_static_flag=$lt_lt_prog_compiler_static_CXX
20834
20835 # Compiler flag to turn off builtin functions.
20836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20837
20838 # Compiler flag to allow reflexive dlopens.
20839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20840
20841 # Compiler flag to generate shared objects directly from archives.
20842 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20843
20844 # Compiler flag to generate thread-safe objects.
20845 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20846
20847 # Library versioning type.
20848 version_type=$version_type
20849
20850 # Format of library name prefix.
20851 libname_spec=$lt_libname_spec
20852
20853 # List of archive names.  First name is the real one, the rest are links.
20854 # The last name is the one that the linker finds with -lNAME.
20855 library_names_spec=$lt_library_names_spec
20856
20857 # The coded name of the library, if different from the real name.
20858 soname_spec=$lt_soname_spec
20859
20860 # Commands used to build and install an old-style archive.
20861 RANLIB=$lt_RANLIB
20862 old_archive_cmds=$lt_old_archive_cmds_CXX
20863 old_postinstall_cmds=$lt_old_postinstall_cmds
20864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20865
20866 # Create an old-style archive from a shared archive.
20867 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20868
20869 # Create a temporary old-style archive to link instead of a shared archive.
20870 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20871
20872 # Commands used to build and install a shared archive.
20873 archive_cmds=$lt_archive_cmds_CXX
20874 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20875 postinstall_cmds=$lt_postinstall_cmds
20876 postuninstall_cmds=$lt_postuninstall_cmds
20877
20878 # Commands used to build a loadable module (assumed same as above if empty)
20879 module_cmds=$lt_module_cmds_CXX
20880 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20881
20882 # Commands to strip libraries.
20883 old_striplib=$lt_old_striplib
20884 striplib=$lt_striplib
20885
20886 # Dependencies to place before the objects being linked to create a
20887 # shared library.
20888 predep_objects=$lt_predep_objects_CXX
20889
20890 # Dependencies to place after the objects being linked to create a
20891 # shared library.
20892 postdep_objects=$lt_postdep_objects_CXX
20893
20894 # Dependencies to place before the objects being linked to create a
20895 # shared library.
20896 predeps=$lt_predeps_CXX
20897
20898 # Dependencies to place after the objects being linked to create a
20899 # shared library.
20900 postdeps=$lt_postdeps_CXX
20901
20902 # The library search path used internally by the compiler when linking
20903 # a shared library.
20904 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20905
20906 # Method to check whether dependent libraries are shared objects.
20907 deplibs_check_method=$lt_deplibs_check_method
20908
20909 # Command to use when deplibs_check_method == file_magic.
20910 file_magic_cmd=$lt_file_magic_cmd
20911
20912 # Flag that allows shared libraries with undefined symbols to be built.
20913 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20914
20915 # Flag that forces no undefined symbols.
20916 no_undefined_flag=$lt_no_undefined_flag_CXX
20917
20918 # Commands used to finish a libtool library installation in a directory.
20919 finish_cmds=$lt_finish_cmds
20920
20921 # Same as above, but a single script fragment to be evaled but not shown.
20922 finish_eval=$lt_finish_eval
20923
20924 # Take the output of nm and produce a listing of raw symbols and C names.
20925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20926
20927 # Transform the output of nm in a proper C declaration
20928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20929
20930 # Transform the output of nm in a C name address pair
20931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20932
20933 # This is the shared library runtime path variable.
20934 runpath_var=$runpath_var
20935
20936 # This is the shared library path variable.
20937 shlibpath_var=$shlibpath_var
20938
20939 # Is shlibpath searched before the hard-coded library search path?
20940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20941
20942 # How to hardcode a shared library path into an executable.
20943 hardcode_action=$hardcode_action_CXX
20944
20945 # Whether we should hardcode library paths into libraries.
20946 hardcode_into_libs=$hardcode_into_libs
20947
20948 # Flag to hardcode \$libdir into a binary during linking.
20949 # This must work even if \$libdir does not exist.
20950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20951
20952 # If ld is used when linking, flag to hardcode \$libdir into
20953 # a binary during linking. This must work even if \$libdir does
20954 # not exist.
20955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20956
20957 # Whether we need a single -rpath flag with a separated argument.
20958 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20959
20960 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20961 # resulting binary.
20962 hardcode_direct=$hardcode_direct_CXX
20963
20964 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20965 # resulting binary.
20966 hardcode_minus_L=$hardcode_minus_L_CXX
20967
20968 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20969 # the resulting binary.
20970 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20971
20972 # Set to yes if building a shared library automatically hardcodes DIR into the library
20973 # and all subsequent libraries and executables linked against it.
20974 hardcode_automatic=$hardcode_automatic_CXX
20975
20976 # Variables whose values should be saved in libtool wrapper scripts and
20977 # restored at relink time.
20978 variables_saved_for_relink="$variables_saved_for_relink"
20979
20980 # Whether libtool must link a program against all its dependency libraries.
20981 link_all_deplibs=$link_all_deplibs_CXX
20982
20983 # Compile-time system search path for libraries
20984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20985
20986 # Run-time system search path for libraries
20987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20988
20989 # Fix the shell variable \$srcfile for the compiler.
20990 fix_srcfile_path="$fix_srcfile_path_CXX"
20991
20992 # Set to yes if exported symbols are required.
20993 always_export_symbols=$always_export_symbols_CXX
20994
20995 # The commands to list exported symbols.
20996 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20997
20998 # The commands to extract the exported symbol list from a shared archive.
20999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21000
21001 # Symbols that should not be listed in the preloaded symbols.
21002 exclude_expsyms=$lt_exclude_expsyms_CXX
21003
21004 # Symbols that must always be exported.
21005 include_expsyms=$lt_include_expsyms_CXX
21006
21007 # ### END LIBTOOL TAG CONFIG: $tagname
21008
21009 __EOF__
21010
21011
21012 else
21013   # If there is no Makefile yet, we rely on a make rule to execute
21014   # `config.status --recheck' to rerun these tests and create the
21015   # libtool script then.
21016   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21017   if test -f "$ltmain_in"; then
21018     test -f Makefile && make "$ltmain"
21019   fi
21020 fi
21021
21022
21023 ac_ext=c
21024 ac_cpp='$CPP $CPPFLAGS'
21025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21028
21029 CC=$lt_save_CC
21030 LDCXX=$LD
21031 LD=$lt_save_LD
21032 GCC=$lt_save_GCC
21033 with_gnu_ldcxx=$with_gnu_ld
21034 with_gnu_ld=$lt_save_with_gnu_ld
21035 lt_cv_path_LDCXX=$lt_cv_path_LD
21036 lt_cv_path_LD=$lt_save_path_LD
21037 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21038 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21039
21040         else
21041           tagname=""
21042         fi
21043         ;;
21044
21045       F77)
21046         if test -n "$F77" && test "X$F77" != "Xno"; then
21047
21048 ac_ext=f
21049 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21050 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21051 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21052
21053
21054 archive_cmds_need_lc_F77=no
21055 allow_undefined_flag_F77=
21056 always_export_symbols_F77=no
21057 archive_expsym_cmds_F77=
21058 export_dynamic_flag_spec_F77=
21059 hardcode_direct_F77=no
21060 hardcode_libdir_flag_spec_F77=
21061 hardcode_libdir_flag_spec_ld_F77=
21062 hardcode_libdir_separator_F77=
21063 hardcode_minus_L_F77=no
21064 hardcode_automatic_F77=no
21065 module_cmds_F77=
21066 module_expsym_cmds_F77=
21067 link_all_deplibs_F77=unknown
21068 old_archive_cmds_F77=$old_archive_cmds
21069 no_undefined_flag_F77=
21070 whole_archive_flag_spec_F77=
21071 enable_shared_with_static_runtimes_F77=no
21072
21073 # Source file extension for f77 test sources.
21074 ac_ext=f
21075
21076 # Object file extension for compiled f77 test sources.
21077 objext=o
21078 objext_F77=$objext
21079
21080 # Code to be used in simple compile tests
21081 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21082
21083 # Code to be used in simple link tests
21084 lt_simple_link_test_code="      program t\n      end\n"
21085
21086 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21087
21088 # If no C compiler was specified, use CC.
21089 LTCC=${LTCC-"$CC"}
21090
21091 # If no C compiler flags were specified, use CFLAGS.
21092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21093
21094 # Allow CC to be a program name with arguments.
21095 compiler=$CC
21096
21097
21098 # save warnings/boilerplate of simple test code
21099 ac_outfile=conftest.$ac_objext
21100 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21101 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21102 _lt_compiler_boilerplate=`cat conftest.err`
21103 $rm conftest*
21104
21105 ac_outfile=conftest.$ac_objext
21106 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21107 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21108 _lt_linker_boilerplate=`cat conftest.err`
21109 $rm conftest*
21110
21111
21112 # Allow CC to be a program name with arguments.
21113 lt_save_CC="$CC"
21114 CC=${F77-"f77"}
21115 compiler=$CC
21116 compiler_F77=$CC
21117 for cc_temp in $compiler""; do
21118   case $cc_temp in
21119     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21120     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21121     \-*) ;;
21122     *) break;;
21123   esac
21124 done
21125 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21126
21127
21128 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21129 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21130 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21131 echo "${ECHO_T}$can_build_shared" >&6; }
21132
21133 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21134 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21135 test "$can_build_shared" = "no" && enable_shared=no
21136
21137 # On AIX, shared libraries and static libraries use the same namespace, and
21138 # are all built from PIC.
21139 case $host_os in
21140 aix3*)
21141   test "$enable_shared" = yes && enable_static=no
21142   if test -n "$RANLIB"; then
21143     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21144     postinstall_cmds='$RANLIB $lib'
21145   fi
21146   ;;
21147 aix4* | aix5*)
21148   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21149     test "$enable_shared" = yes && enable_static=no
21150   fi
21151   ;;
21152 esac
21153 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21154 echo "${ECHO_T}$enable_shared" >&6; }
21155
21156 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21157 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21158 # Make sure either enable_shared or enable_static is yes.
21159 test "$enable_shared" = yes || enable_static=yes
21160 { echo "$as_me:$LINENO: result: $enable_static" >&5
21161 echo "${ECHO_T}$enable_static" >&6; }
21162
21163 GCC_F77="$G77"
21164 LD_F77="$LD"
21165
21166 lt_prog_compiler_wl_F77=
21167 lt_prog_compiler_pic_F77=
21168 lt_prog_compiler_static_F77=
21169
21170 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21171 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21172
21173   if test "$GCC" = yes; then
21174     lt_prog_compiler_wl_F77='-Wl,'
21175     lt_prog_compiler_static_F77='-static'
21176
21177     case $host_os in
21178       aix*)
21179       # All AIX code is PIC.
21180       if test "$host_cpu" = ia64; then
21181         # AIX 5 now supports IA64 processor
21182         lt_prog_compiler_static_F77='-Bstatic'
21183       fi
21184       ;;
21185
21186     amigaos*)
21187       # FIXME: we need at least 68020 code to build shared libraries, but
21188       # adding the `-m68020' flag to GCC prevents building anything better,
21189       # like `-m68040'.
21190       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21191       ;;
21192
21193     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21194       # PIC is the default for these OSes.
21195       ;;
21196
21197     mingw* | pw32* | os2*)
21198       # This hack is so that the source file can tell whether it is being
21199       # built for inclusion in a dll (and should export symbols for example).
21200       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21201       ;;
21202
21203     darwin* | rhapsody*)
21204       # PIC is the default on this platform
21205       # Common symbols not allowed in MH_DYLIB files
21206       lt_prog_compiler_pic_F77='-fno-common'
21207       ;;
21208
21209     interix3*)
21210       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21211       # Instead, we relocate shared libraries at runtime.
21212       ;;
21213
21214     msdosdjgpp*)
21215       # Just because we use GCC doesn't mean we suddenly get shared libraries
21216       # on systems that don't support them.
21217       lt_prog_compiler_can_build_shared_F77=no
21218       enable_shared=no
21219       ;;
21220
21221     sysv4*MP*)
21222       if test -d /usr/nec; then
21223         lt_prog_compiler_pic_F77=-Kconform_pic
21224       fi
21225       ;;
21226
21227     hpux*)
21228       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21229       # not for PA HP-UX.
21230       case $host_cpu in
21231       hppa*64*|ia64*)
21232         # +Z the default
21233         ;;
21234       *)
21235         lt_prog_compiler_pic_F77='-fPIC'
21236         ;;
21237       esac
21238       ;;
21239
21240     *)
21241       lt_prog_compiler_pic_F77='-fPIC'
21242       ;;
21243     esac
21244   else
21245     # PORTME Check for flag to pass linker flags through the system compiler.
21246     case $host_os in
21247     aix*)
21248       lt_prog_compiler_wl_F77='-Wl,'
21249       if test "$host_cpu" = ia64; then
21250         # AIX 5 now supports IA64 processor
21251         lt_prog_compiler_static_F77='-Bstatic'
21252       else
21253         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21254       fi
21255       ;;
21256       darwin*)
21257         # PIC is the default on this platform
21258         # Common symbols not allowed in MH_DYLIB files
21259        case $cc_basename in
21260          xlc*)
21261          lt_prog_compiler_pic_F77='-qnocommon'
21262          lt_prog_compiler_wl_F77='-Wl,'
21263          ;;
21264        esac
21265        ;;
21266
21267     mingw* | pw32* | os2*)
21268       # This hack is so that the source file can tell whether it is being
21269       # built for inclusion in a dll (and should export symbols for example).
21270       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21271       ;;
21272
21273     hpux9* | hpux10* | hpux11*)
21274       lt_prog_compiler_wl_F77='-Wl,'
21275       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21276       # not for PA HP-UX.
21277       case $host_cpu in
21278       hppa*64*|ia64*)
21279         # +Z the default
21280         ;;
21281       *)
21282         lt_prog_compiler_pic_F77='+Z'
21283         ;;
21284       esac
21285       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21286       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21287       ;;
21288
21289     irix5* | irix6* | nonstopux*)
21290       lt_prog_compiler_wl_F77='-Wl,'
21291       # PIC (with -KPIC) is the default.
21292       lt_prog_compiler_static_F77='-non_shared'
21293       ;;
21294
21295     newsos6)
21296       lt_prog_compiler_pic_F77='-KPIC'
21297       lt_prog_compiler_static_F77='-Bstatic'
21298       ;;
21299
21300     linux*)
21301       case $cc_basename in
21302       icc* | ecc*)
21303         lt_prog_compiler_wl_F77='-Wl,'
21304         lt_prog_compiler_pic_F77='-KPIC'
21305         lt_prog_compiler_static_F77='-static'
21306         ;;
21307       pgcc* | pgf77* | pgf90* | pgf95*)
21308         # Portland Group compilers (*not* the Pentium gcc compiler,
21309         # which looks to be a dead project)
21310         lt_prog_compiler_wl_F77='-Wl,'
21311         lt_prog_compiler_pic_F77='-fpic'
21312         lt_prog_compiler_static_F77='-Bstatic'
21313         ;;
21314       ccc*)
21315         lt_prog_compiler_wl_F77='-Wl,'
21316         # All Alpha code is PIC.
21317         lt_prog_compiler_static_F77='-non_shared'
21318         ;;
21319       esac
21320       ;;
21321
21322     osf3* | osf4* | osf5*)
21323       lt_prog_compiler_wl_F77='-Wl,'
21324       # All OSF/1 code is PIC.
21325       lt_prog_compiler_static_F77='-non_shared'
21326       ;;
21327
21328     solaris*)
21329       lt_prog_compiler_pic_F77='-KPIC'
21330       lt_prog_compiler_static_F77='-Bstatic'
21331       case $cc_basename in
21332       f77* | f90* | f95*)
21333         lt_prog_compiler_wl_F77='-Qoption ld ';;
21334       *)
21335         lt_prog_compiler_wl_F77='-Wl,';;
21336       esac
21337       ;;
21338
21339     sunos4*)
21340       lt_prog_compiler_wl_F77='-Qoption ld '
21341       lt_prog_compiler_pic_F77='-PIC'
21342       lt_prog_compiler_static_F77='-Bstatic'
21343       ;;
21344
21345     sysv4 | sysv4.2uw2* | sysv4.3*)
21346       lt_prog_compiler_wl_F77='-Wl,'
21347       lt_prog_compiler_pic_F77='-KPIC'
21348       lt_prog_compiler_static_F77='-Bstatic'
21349       ;;
21350
21351     sysv4*MP*)
21352       if test -d /usr/nec ;then
21353         lt_prog_compiler_pic_F77='-Kconform_pic'
21354         lt_prog_compiler_static_F77='-Bstatic'
21355       fi
21356       ;;
21357
21358     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21359       lt_prog_compiler_wl_F77='-Wl,'
21360       lt_prog_compiler_pic_F77='-KPIC'
21361       lt_prog_compiler_static_F77='-Bstatic'
21362       ;;
21363
21364     unicos*)
21365       lt_prog_compiler_wl_F77='-Wl,'
21366       lt_prog_compiler_can_build_shared_F77=no
21367       ;;
21368
21369     uts4*)
21370       lt_prog_compiler_pic_F77='-pic'
21371       lt_prog_compiler_static_F77='-Bstatic'
21372       ;;
21373
21374     *)
21375       lt_prog_compiler_can_build_shared_F77=no
21376       ;;
21377     esac
21378   fi
21379
21380 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21381 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21382
21383 #
21384 # Check to make sure the PIC flag actually works.
21385 #
21386 if test -n "$lt_prog_compiler_pic_F77"; then
21387
21388 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21389 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21390 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21391   echo $ECHO_N "(cached) $ECHO_C" >&6
21392 else
21393   lt_prog_compiler_pic_works_F77=no
21394   ac_outfile=conftest.$ac_objext
21395    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21396    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21397    # Insert the option either (1) after the last *FLAGS variable, or
21398    # (2) before a word containing "conftest.", or (3) at the end.
21399    # Note that $ac_compile itself does not contain backslashes and begins
21400    # with a dollar sign (not a hyphen), so the echo should work correctly.
21401    # The option is referenced via a variable to avoid confusing sed.
21402    lt_compile=`echo "$ac_compile" | $SED \
21403    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21404    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21405    -e 's:$: $lt_compiler_flag:'`
21406    (eval echo "\"\$as_me:21406: $lt_compile\"" >&5)
21407    (eval "$lt_compile" 2>conftest.err)
21408    ac_status=$?
21409    cat conftest.err >&5
21410    echo "$as_me:21410: \$? = $ac_status" >&5
21411    if (exit $ac_status) && test -s "$ac_outfile"; then
21412      # The compiler can only warn and ignore the option if not recognized
21413      # So say no if there are warnings other than the usual output.
21414      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21415      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21416      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21417        lt_prog_compiler_pic_works_F77=yes
21418      fi
21419    fi
21420    $rm conftest*
21421
21422 fi
21423 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21424 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21425
21426 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21427     case $lt_prog_compiler_pic_F77 in
21428      "" | " "*) ;;
21429      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21430      esac
21431 else
21432     lt_prog_compiler_pic_F77=
21433      lt_prog_compiler_can_build_shared_F77=no
21434 fi
21435
21436 fi
21437 case $host_os in
21438   # For platforms which do not support PIC, -DPIC is meaningless:
21439   *djgpp*)
21440     lt_prog_compiler_pic_F77=
21441     ;;
21442   *)
21443     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21444     ;;
21445 esac
21446
21447 #
21448 # Check to make sure the static flag actually works.
21449 #
21450 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21451 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21452 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21453 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21454   echo $ECHO_N "(cached) $ECHO_C" >&6
21455 else
21456   lt_prog_compiler_static_works_F77=no
21457    save_LDFLAGS="$LDFLAGS"
21458    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21459    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21460    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21461      # The linker can only warn and ignore the option if not recognized
21462      # So say no if there are warnings
21463      if test -s conftest.err; then
21464        # Append any errors to the config.log.
21465        cat conftest.err 1>&5
21466        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21467        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21468        if diff conftest.exp conftest.er2 >/dev/null; then
21469          lt_prog_compiler_static_works_F77=yes
21470        fi
21471      else
21472        lt_prog_compiler_static_works_F77=yes
21473      fi
21474    fi
21475    $rm conftest*
21476    LDFLAGS="$save_LDFLAGS"
21477
21478 fi
21479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21480 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21481
21482 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21483     :
21484 else
21485     lt_prog_compiler_static_F77=
21486 fi
21487
21488
21489 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21490 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21491 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21492   echo $ECHO_N "(cached) $ECHO_C" >&6
21493 else
21494   lt_cv_prog_compiler_c_o_F77=no
21495    $rm -r conftest 2>/dev/null
21496    mkdir conftest
21497    cd conftest
21498    mkdir out
21499    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21500
21501    lt_compiler_flag="-o out/conftest2.$ac_objext"
21502    # Insert the option either (1) after the last *FLAGS variable, or
21503    # (2) before a word containing "conftest.", or (3) at the end.
21504    # Note that $ac_compile itself does not contain backslashes and begins
21505    # with a dollar sign (not a hyphen), so the echo should work correctly.
21506    lt_compile=`echo "$ac_compile" | $SED \
21507    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21508    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21509    -e 's:$: $lt_compiler_flag:'`
21510    (eval echo "\"\$as_me:21510: $lt_compile\"" >&5)
21511    (eval "$lt_compile" 2>out/conftest.err)
21512    ac_status=$?
21513    cat out/conftest.err >&5
21514    echo "$as_me:21514: \$? = $ac_status" >&5
21515    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21516    then
21517      # The compiler can only warn and ignore the option if not recognized
21518      # So say no if there are warnings
21519      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21520      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21521      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21522        lt_cv_prog_compiler_c_o_F77=yes
21523      fi
21524    fi
21525    chmod u+w . 2>&5
21526    $rm conftest*
21527    # SGI C++ compiler will create directory out/ii_files/ for
21528    # template instantiation
21529    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21530    $rm out/* && rmdir out
21531    cd ..
21532    rmdir conftest
21533    $rm conftest*
21534
21535 fi
21536 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21538
21539
21540 hard_links="nottested"
21541 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21542   # do not overwrite the value of need_locks provided by the user
21543   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21545   hard_links=yes
21546   $rm conftest*
21547   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21548   touch conftest.a
21549   ln conftest.a conftest.b 2>&5 || hard_links=no
21550   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21551   { echo "$as_me:$LINENO: result: $hard_links" >&5
21552 echo "${ECHO_T}$hard_links" >&6; }
21553   if test "$hard_links" = no; then
21554     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21556     need_locks=warn
21557   fi
21558 else
21559   need_locks=no
21560 fi
21561
21562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21564
21565   runpath_var=
21566   allow_undefined_flag_F77=
21567   enable_shared_with_static_runtimes_F77=no
21568   archive_cmds_F77=
21569   archive_expsym_cmds_F77=
21570   old_archive_From_new_cmds_F77=
21571   old_archive_from_expsyms_cmds_F77=
21572   export_dynamic_flag_spec_F77=
21573   whole_archive_flag_spec_F77=
21574   thread_safe_flag_spec_F77=
21575   hardcode_libdir_flag_spec_F77=
21576   hardcode_libdir_flag_spec_ld_F77=
21577   hardcode_libdir_separator_F77=
21578   hardcode_direct_F77=no
21579   hardcode_minus_L_F77=no
21580   hardcode_shlibpath_var_F77=unsupported
21581   link_all_deplibs_F77=unknown
21582   hardcode_automatic_F77=no
21583   module_cmds_F77=
21584   module_expsym_cmds_F77=
21585   always_export_symbols_F77=no
21586   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21587   # include_expsyms should be a list of space-separated symbols to be *always*
21588   # included in the symbol list
21589   include_expsyms_F77=
21590   # exclude_expsyms can be an extended regexp of symbols to exclude
21591   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21592   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21593   # as well as any symbol that contains `d'.
21594   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21595   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21596   # platforms (ab)use it in PIC code, but their linkers get confused if
21597   # the symbol is explicitly referenced.  Since portable code cannot
21598   # rely on this symbol name, it's probably fine to never include it in
21599   # preloaded symbol tables.
21600   extract_expsyms_cmds=
21601   # Just being paranoid about ensuring that cc_basename is set.
21602   for cc_temp in $compiler""; do
21603   case $cc_temp in
21604     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21605     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21606     \-*) ;;
21607     *) break;;
21608   esac
21609 done
21610 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21611
21612   case $host_os in
21613   cygwin* | mingw* | pw32*)
21614     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21615     # When not using gcc, we currently assume that we are using
21616     # Microsoft Visual C++.
21617     if test "$GCC" != yes; then
21618       with_gnu_ld=no
21619     fi
21620     ;;
21621   interix*)
21622     # we just hope/assume this is gcc and not c89 (= MSVC++)
21623     with_gnu_ld=yes
21624     ;;
21625   openbsd*)
21626     with_gnu_ld=no
21627     ;;
21628   esac
21629
21630   ld_shlibs_F77=yes
21631   if test "$with_gnu_ld" = yes; then
21632     # If archive_cmds runs LD, not CC, wlarc should be empty
21633     wlarc='${wl}'
21634
21635     # Set some defaults for GNU ld with shared library support. These
21636     # are reset later if shared libraries are not supported. Putting them
21637     # here allows them to be overridden if necessary.
21638     runpath_var=LD_RUN_PATH
21639     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21640     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21641     # ancient GNU ld didn't support --whole-archive et. al.
21642     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21643         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21644       else
21645         whole_archive_flag_spec_F77=
21646     fi
21647     supports_anon_versioning=no
21648     case `$LD -v 2>/dev/null` in
21649       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21650       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21651       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21652       *\ 2.11.*) ;; # other 2.11 versions
21653       *) supports_anon_versioning=yes ;;
21654     esac
21655
21656     # See if GNU ld supports shared libraries.
21657     case $host_os in
21658     aix3* | aix4* | aix5*)
21659       # On AIX/PPC, the GNU linker is very broken
21660       if test "$host_cpu" != ia64; then
21661         ld_shlibs_F77=no
21662         cat <<EOF 1>&2
21663
21664 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21665 *** to be unable to reliably create shared libraries on AIX.
21666 *** Therefore, libtool is disabling shared libraries support.  If you
21667 *** really care for shared libraries, you may want to modify your PATH
21668 *** so that a non-GNU linker is found, and then restart.
21669
21670 EOF
21671       fi
21672       ;;
21673
21674     amigaos*)
21675       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)'
21676       hardcode_libdir_flag_spec_F77='-L$libdir'
21677       hardcode_minus_L_F77=yes
21678
21679       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21680       # that the semantics of dynamic libraries on AmigaOS, at least up
21681       # to version 4, is to share data among multiple programs linked
21682       # with the same dynamic library.  Since this doesn't match the
21683       # behavior of shared libraries on other platforms, we can't use
21684       # them.
21685       ld_shlibs_F77=no
21686       ;;
21687
21688     beos*)
21689       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21690         allow_undefined_flag_F77=unsupported
21691         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21692         # support --undefined.  This deserves some investigation.  FIXME
21693         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21694       else
21695         ld_shlibs_F77=no
21696       fi
21697       ;;
21698
21699     cygwin* | mingw* | pw32*)
21700       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21701       # as there is no search path for DLLs.
21702       hardcode_libdir_flag_spec_F77='-L$libdir'
21703       allow_undefined_flag_F77=unsupported
21704       always_export_symbols_F77=no
21705       enable_shared_with_static_runtimes_F77=yes
21706       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21707
21708       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21709         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21710         # If the export-symbols file already is a .def file (1st line
21711         # is EXPORTS), use it as is; otherwise, prepend...
21712         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21713           cp $export_symbols $output_objdir/$soname.def;
21714         else
21715           echo EXPORTS > $output_objdir/$soname.def;
21716           cat $export_symbols >> $output_objdir/$soname.def;
21717         fi~
21718         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21719       else
21720         ld_shlibs_F77=no
21721       fi
21722       ;;
21723
21724     interix3*)
21725       hardcode_direct_F77=no
21726       hardcode_shlibpath_var_F77=no
21727       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21728       export_dynamic_flag_spec_F77='${wl}-E'
21729       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21730       # Instead, shared libraries are loaded at an image base (0x10000000 by
21731       # default) and relocated if they conflict, which is a slow very memory
21732       # consuming and fragmenting process.  To avoid this, we pick a random,
21733       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21734       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21735       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'
21736       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'
21737       ;;
21738
21739     linux*)
21740       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21741         tmp_addflag=
21742         case $cc_basename,$host_cpu in
21743         pgcc*)                          # Portland Group C compiler
21744           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'
21745           tmp_addflag=' $pic_flag'
21746           ;;
21747         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21748           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'
21749           tmp_addflag=' $pic_flag -Mnomain' ;;
21750         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21751           tmp_addflag=' -i_dynamic' ;;
21752         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21753           tmp_addflag=' -i_dynamic -nofor_main' ;;
21754         ifc* | ifort*)                  # Intel Fortran compiler
21755           tmp_addflag=' -nofor_main' ;;
21756         esac
21757         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21758
21759         if test $supports_anon_versioning = yes; then
21760           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21761   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21762   $echo "local: *; };" >> $output_objdir/$libname.ver~
21763           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21764         fi
21765       else
21766         ld_shlibs_F77=no
21767       fi
21768       ;;
21769
21770     netbsd*)
21771       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21772         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21773         wlarc=
21774       else
21775         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21776         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21777       fi
21778       ;;
21779
21780     solaris*)
21781       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21782         ld_shlibs_F77=no
21783         cat <<EOF 1>&2
21784
21785 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21786 *** create shared libraries on Solaris systems.  Therefore, libtool
21787 *** is disabling shared libraries support.  We urge you to upgrade GNU
21788 *** binutils to release 2.9.1 or newer.  Another option is to modify
21789 *** your PATH or compiler configuration so that the native linker is
21790 *** used, and then restart.
21791
21792 EOF
21793       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21794         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21795         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21796       else
21797         ld_shlibs_F77=no
21798       fi
21799       ;;
21800
21801     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21802       case `$LD -v 2>&1` in
21803         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21804         ld_shlibs_F77=no
21805         cat <<_LT_EOF 1>&2
21806
21807 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21808 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21809 *** is disabling shared libraries support.  We urge you to upgrade GNU
21810 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21811 *** your PATH or compiler configuration so that the native linker is
21812 *** used, and then restart.
21813
21814 _LT_EOF
21815         ;;
21816         *)
21817           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21818             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21819             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21820             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21821           else
21822             ld_shlibs_F77=no
21823           fi
21824         ;;
21825       esac
21826       ;;
21827
21828     sunos4*)
21829       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21830       wlarc=
21831       hardcode_direct_F77=yes
21832       hardcode_shlibpath_var_F77=no
21833       ;;
21834
21835     *)
21836       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21837         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21838         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21839       else
21840         ld_shlibs_F77=no
21841       fi
21842       ;;
21843     esac
21844
21845     if test "$ld_shlibs_F77" = no; then
21846       runpath_var=
21847       hardcode_libdir_flag_spec_F77=
21848       export_dynamic_flag_spec_F77=
21849       whole_archive_flag_spec_F77=
21850     fi
21851   else
21852     # PORTME fill in a description of your system's linker (not GNU ld)
21853     case $host_os in
21854     aix3*)
21855       allow_undefined_flag_F77=unsupported
21856       always_export_symbols_F77=yes
21857       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'
21858       # Note: this linker hardcodes the directories in LIBPATH if there
21859       # are no directories specified by -L.
21860       hardcode_minus_L_F77=yes
21861       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21862         # Neither direct hardcoding nor static linking is supported with a
21863         # broken collect2.
21864         hardcode_direct_F77=unsupported
21865       fi
21866       ;;
21867
21868     aix4* | aix5*)
21869       if test "$host_cpu" = ia64; then
21870         # On IA64, the linker does run time linking by default, so we don't
21871         # have to do anything special.
21872         aix_use_runtimelinking=no
21873         exp_sym_flag='-Bexport'
21874         no_entry_flag=""
21875       else
21876         # If we're using GNU nm, then we don't want the "-C" option.
21877         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21878         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21879           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'
21880         else
21881           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'
21882         fi
21883         aix_use_runtimelinking=no
21884
21885         # Test if we are trying to use run time linking or normal
21886         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21887         # need to do runtime linking.
21888         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21889           for ld_flag in $LDFLAGS; do
21890           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21891             aix_use_runtimelinking=yes
21892             break
21893           fi
21894           done
21895           ;;
21896         esac
21897
21898         exp_sym_flag='-bexport'
21899         no_entry_flag='-bnoentry'
21900       fi
21901
21902       # When large executables or shared objects are built, AIX ld can
21903       # have problems creating the table of contents.  If linking a library
21904       # or program results in "error TOC overflow" add -mminimal-toc to
21905       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21906       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21907
21908       archive_cmds_F77=''
21909       hardcode_direct_F77=yes
21910       hardcode_libdir_separator_F77=':'
21911       link_all_deplibs_F77=yes
21912
21913       if test "$GCC" = yes; then
21914         case $host_os in aix4.[012]|aix4.[012].*)
21915         # We only want to do this on AIX 4.2 and lower, the check
21916         # below for broken collect2 doesn't work under 4.3+
21917           collect2name=`${CC} -print-prog-name=collect2`
21918           if test -f "$collect2name" && \
21919            strings "$collect2name" | grep resolve_lib_name >/dev/null
21920           then
21921           # We have reworked collect2
21922           hardcode_direct_F77=yes
21923           else
21924           # We have old collect2
21925           hardcode_direct_F77=unsupported
21926           # It fails to find uninstalled libraries when the uninstalled
21927           # path is not listed in the libpath.  Setting hardcode_minus_L
21928           # to unsupported forces relinking
21929           hardcode_minus_L_F77=yes
21930           hardcode_libdir_flag_spec_F77='-L$libdir'
21931           hardcode_libdir_separator_F77=
21932           fi
21933           ;;
21934         esac
21935         shared_flag='-shared'
21936         if test "$aix_use_runtimelinking" = yes; then
21937           shared_flag="$shared_flag "'${wl}-G'
21938         fi
21939       else
21940         # not using gcc
21941         if test "$host_cpu" = ia64; then
21942         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21943         # chokes on -Wl,-G. The following line is correct:
21944           shared_flag='-G'
21945         else
21946           if test "$aix_use_runtimelinking" = yes; then
21947             shared_flag='${wl}-G'
21948           else
21949             shared_flag='${wl}-bM:SRE'
21950           fi
21951         fi
21952       fi
21953
21954       # It seems that -bexpall does not export symbols beginning with
21955       # underscore (_), so it is better to generate a list of symbols to export.
21956       always_export_symbols_F77=yes
21957       if test "$aix_use_runtimelinking" = yes; then
21958         # Warning - without using the other runtime loading flags (-brtl),
21959         # -berok will link without error, but may produce a broken library.
21960         allow_undefined_flag_F77='-berok'
21961        # Determine the default libpath from the value encoded in an empty executable.
21962        cat >conftest.$ac_ext <<_ACEOF
21963       program main
21964
21965       end
21966 _ACEOF
21967 rm -f conftest.$ac_objext conftest$ac_exeext
21968 if { (ac_try="$ac_link"
21969 case "(($ac_try" in
21970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971   *) ac_try_echo=$ac_try;;
21972 esac
21973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21974   (eval "$ac_link") 2>conftest.er1
21975   ac_status=$?
21976   grep -v '^ *+' conftest.er1 >conftest.err
21977   rm -f conftest.er1
21978   cat conftest.err >&5
21979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); } &&
21981          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21982   { (case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_try") 2>&5
21988   ac_status=$?
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); }; } &&
21991          { ac_try='test -s conftest$ac_exeext'
21992   { (case "(($ac_try" in
21993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994   *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997   (eval "$ac_try") 2>&5
21998   ac_status=$?
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); }; }; then
22001
22002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22003 }'`
22004 # Check for a 64-bit object if we didn't find anything.
22005 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; }
22006 }'`; fi
22007 else
22008   echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22010
22011
22012 fi
22013
22014 rm -f core conftest.err conftest.$ac_objext \
22015       conftest$ac_exeext conftest.$ac_ext
22016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22017
22018        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22019         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"
22020        else
22021         if test "$host_cpu" = ia64; then
22022           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22023           allow_undefined_flag_F77="-z nodefs"
22024           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"
22025         else
22026          # Determine the default libpath from the value encoded in an empty executable.
22027          cat >conftest.$ac_ext <<_ACEOF
22028       program main
22029
22030       end
22031 _ACEOF
22032 rm -f conftest.$ac_objext conftest$ac_exeext
22033 if { (ac_try="$ac_link"
22034 case "(($ac_try" in
22035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036   *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039   (eval "$ac_link") 2>conftest.er1
22040   ac_status=$?
22041   grep -v '^ *+' conftest.er1 >conftest.err
22042   rm -f conftest.er1
22043   cat conftest.err >&5
22044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045   (exit $ac_status); } &&
22046          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22047   { (case "(($ac_try" in
22048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049   *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052   (eval "$ac_try") 2>&5
22053   ac_status=$?
22054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); }; } &&
22056          { ac_try='test -s conftest$ac_exeext'
22057   { (case "(($ac_try" in
22058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059   *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062   (eval "$ac_try") 2>&5
22063   ac_status=$?
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); }; }; then
22066
22067 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22068 }'`
22069 # Check for a 64-bit object if we didn't find anything.
22070 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; }
22071 }'`; fi
22072 else
22073   echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22075
22076
22077 fi
22078
22079 rm -f core conftest.err conftest.$ac_objext \
22080       conftest$ac_exeext conftest.$ac_ext
22081 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22082
22083          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22084           # Warning - without using the other run time loading flags,
22085           # -berok will link without error, but may produce a broken library.
22086           no_undefined_flag_F77=' ${wl}-bernotok'
22087           allow_undefined_flag_F77=' ${wl}-berok'
22088           # Exported symbols can be pulled into shared objects from archives
22089           whole_archive_flag_spec_F77='$convenience'
22090           archive_cmds_need_lc_F77=yes
22091           # This is similar to how AIX traditionally builds its shared libraries.
22092           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'
22093         fi
22094       fi
22095       ;;
22096
22097     amigaos*)
22098       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)'
22099       hardcode_libdir_flag_spec_F77='-L$libdir'
22100       hardcode_minus_L_F77=yes
22101       # see comment about different semantics on the GNU ld section
22102       ld_shlibs_F77=no
22103       ;;
22104
22105     bsdi[45]*)
22106       export_dynamic_flag_spec_F77=-rdynamic
22107       ;;
22108
22109     cygwin* | mingw* | pw32*)
22110       # When not using gcc, we currently assume that we are using
22111       # Microsoft Visual C++.
22112       # hardcode_libdir_flag_spec is actually meaningless, as there is
22113       # no search path for DLLs.
22114       hardcode_libdir_flag_spec_F77=' '
22115       allow_undefined_flag_F77=unsupported
22116       # Tell ltmain to make .lib files, not .a files.
22117       libext=lib
22118       # Tell ltmain to make .dll files, not .so files.
22119       shrext_cmds=".dll"
22120       # FIXME: Setting linknames here is a bad hack.
22121       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22122       # The linker will automatically build a .lib file if we build a DLL.
22123       old_archive_From_new_cmds_F77='true'
22124       # FIXME: Should let the user specify the lib program.
22125       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22126       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22127       enable_shared_with_static_runtimes_F77=yes
22128       ;;
22129
22130     darwin* | rhapsody*)
22131       case $host_os in
22132         rhapsody* | darwin1.[012])
22133          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22134          ;;
22135        *) # Darwin 1.3 on
22136          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22137            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22138          else
22139            case ${MACOSX_DEPLOYMENT_TARGET} in
22140              10.[012])
22141                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22142                ;;
22143              10.*)
22144                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22145                ;;
22146            esac
22147          fi
22148          ;;
22149       esac
22150       archive_cmds_need_lc_F77=no
22151       hardcode_direct_F77=no
22152       hardcode_automatic_F77=yes
22153       hardcode_shlibpath_var_F77=unsupported
22154       whole_archive_flag_spec_F77=''
22155       link_all_deplibs_F77=yes
22156     if test "$GCC" = yes ; then
22157         output_verbose_link_cmd='echo'
22158         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22159       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22160       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22161       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}'
22162       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}'
22163     else
22164       case $cc_basename in
22165         xlc*)
22166          output_verbose_link_cmd='echo'
22167          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22168          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22169           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22170          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}'
22171           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}'
22172           ;;
22173        *)
22174          ld_shlibs_F77=no
22175           ;;
22176       esac
22177     fi
22178       ;;
22179
22180     dgux*)
22181       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182       hardcode_libdir_flag_spec_F77='-L$libdir'
22183       hardcode_shlibpath_var_F77=no
22184       ;;
22185
22186     freebsd1*)
22187       ld_shlibs_F77=no
22188       ;;
22189
22190     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22191     # support.  Future versions do this automatically, but an explicit c++rt0.o
22192     # does not break anything, and helps significantly (at the cost of a little
22193     # extra space).
22194     freebsd2.2*)
22195       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22196       hardcode_libdir_flag_spec_F77='-R$libdir'
22197       hardcode_direct_F77=yes
22198       hardcode_shlibpath_var_F77=no
22199       ;;
22200
22201     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22202     freebsd2*)
22203       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22204       hardcode_direct_F77=yes
22205       hardcode_minus_L_F77=yes
22206       hardcode_shlibpath_var_F77=no
22207       ;;
22208
22209     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22210     freebsd* | kfreebsd*-gnu | dragonfly*)
22211       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22212       hardcode_libdir_flag_spec_F77='-R$libdir'
22213       hardcode_direct_F77=yes
22214       hardcode_shlibpath_var_F77=no
22215       ;;
22216
22217     hpux9*)
22218       if test "$GCC" = yes; then
22219         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'
22220       else
22221         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'
22222       fi
22223       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22224       hardcode_libdir_separator_F77=:
22225       hardcode_direct_F77=yes
22226
22227       # hardcode_minus_L: Not really in the search PATH,
22228       # but as the default location of the library.
22229       hardcode_minus_L_F77=yes
22230       export_dynamic_flag_spec_F77='${wl}-E'
22231       ;;
22232
22233     hpux10*)
22234       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22235         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22236       else
22237         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22238       fi
22239       if test "$with_gnu_ld" = no; then
22240         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22241         hardcode_libdir_separator_F77=:
22242
22243         hardcode_direct_F77=yes
22244         export_dynamic_flag_spec_F77='${wl}-E'
22245
22246         # hardcode_minus_L: Not really in the search PATH,
22247         # but as the default location of the library.
22248         hardcode_minus_L_F77=yes
22249       fi
22250       ;;
22251
22252     hpux11*)
22253       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22254         case $host_cpu in
22255         hppa*64*)
22256           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22257           ;;
22258         ia64*)
22259           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22260           ;;
22261         *)
22262           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22263           ;;
22264         esac
22265       else
22266         case $host_cpu in
22267         hppa*64*)
22268           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22269           ;;
22270         ia64*)
22271           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22272           ;;
22273         *)
22274           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22275           ;;
22276         esac
22277       fi
22278       if test "$with_gnu_ld" = no; then
22279         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22280         hardcode_libdir_separator_F77=:
22281
22282         case $host_cpu in
22283         hppa*64*|ia64*)
22284           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22285           hardcode_direct_F77=no
22286           hardcode_shlibpath_var_F77=no
22287           ;;
22288         *)
22289           hardcode_direct_F77=yes
22290           export_dynamic_flag_spec_F77='${wl}-E'
22291
22292           # hardcode_minus_L: Not really in the search PATH,
22293           # but as the default location of the library.
22294           hardcode_minus_L_F77=yes
22295           ;;
22296         esac
22297       fi
22298       ;;
22299
22300     irix5* | irix6* | nonstopux*)
22301       if test "$GCC" = yes; then
22302         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'
22303       else
22304         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'
22305         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22306       fi
22307       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22308       hardcode_libdir_separator_F77=:
22309       link_all_deplibs_F77=yes
22310       ;;
22311
22312     netbsd*)
22313       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22314         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22315       else
22316         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22317       fi
22318       hardcode_libdir_flag_spec_F77='-R$libdir'
22319       hardcode_direct_F77=yes
22320       hardcode_shlibpath_var_F77=no
22321       ;;
22322
22323     newsos6)
22324       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22325       hardcode_direct_F77=yes
22326       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22327       hardcode_libdir_separator_F77=:
22328       hardcode_shlibpath_var_F77=no
22329       ;;
22330
22331     openbsd*)
22332       hardcode_direct_F77=yes
22333       hardcode_shlibpath_var_F77=no
22334       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22335         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22336         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22337         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22338         export_dynamic_flag_spec_F77='${wl}-E'
22339       else
22340        case $host_os in
22341          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22342            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22343            hardcode_libdir_flag_spec_F77='-R$libdir'
22344            ;;
22345          *)
22346            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22347            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22348            ;;
22349        esac
22350       fi
22351       ;;
22352
22353     os2*)
22354       hardcode_libdir_flag_spec_F77='-L$libdir'
22355       hardcode_minus_L_F77=yes
22356       allow_undefined_flag_F77=unsupported
22357       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'
22358       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22359       ;;
22360
22361     osf3*)
22362       if test "$GCC" = yes; then
22363         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22364         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'
22365       else
22366         allow_undefined_flag_F77=' -expect_unresolved \*'
22367         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'
22368       fi
22369       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22370       hardcode_libdir_separator_F77=:
22371       ;;
22372
22373     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22374       if test "$GCC" = yes; then
22375         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22376         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'
22377         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22378       else
22379         allow_undefined_flag_F77=' -expect_unresolved \*'
22380         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'
22381         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~
22382         $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'
22383
22384         # Both c and cxx compiler support -rpath directly
22385         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22386       fi
22387       hardcode_libdir_separator_F77=:
22388       ;;
22389
22390     solaris*)
22391       no_undefined_flag_F77=' -z text'
22392       if test "$GCC" = yes; then
22393         wlarc='${wl}'
22394         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22395         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22396           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22397       else
22398         wlarc=''
22399         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22400         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22401         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22402       fi
22403       hardcode_libdir_flag_spec_F77='-R$libdir'
22404       hardcode_shlibpath_var_F77=no
22405       case $host_os in
22406       solaris2.[0-5] | solaris2.[0-5].*) ;;
22407       *)
22408         # The compiler driver will combine linker options so we
22409         # cannot just pass the convience library names through
22410         # without $wl, iff we do not link with $LD.
22411         # Luckily, gcc supports the same syntax we need for Sun Studio.
22412         # Supported since Solaris 2.6 (maybe 2.5.1?)
22413         case $wlarc in
22414         '')
22415           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22416         *)
22417           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' ;;
22418         esac ;;
22419       esac
22420       link_all_deplibs_F77=yes
22421       ;;
22422
22423     sunos4*)
22424       if test "x$host_vendor" = xsequent; then
22425         # Use $CC to link under sequent, because it throws in some extra .o
22426         # files that make .init and .fini sections work.
22427         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22428       else
22429         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22430       fi
22431       hardcode_libdir_flag_spec_F77='-L$libdir'
22432       hardcode_direct_F77=yes
22433       hardcode_minus_L_F77=yes
22434       hardcode_shlibpath_var_F77=no
22435       ;;
22436
22437     sysv4)
22438       case $host_vendor in
22439         sni)
22440           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22441           hardcode_direct_F77=yes # is this really true???
22442         ;;
22443         siemens)
22444           ## LD is ld it makes a PLAMLIB
22445           ## CC just makes a GrossModule.
22446           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22447           reload_cmds_F77='$CC -r -o $output$reload_objs'
22448           hardcode_direct_F77=no
22449         ;;
22450         motorola)
22451           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22452           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22453         ;;
22454       esac
22455       runpath_var='LD_RUN_PATH'
22456       hardcode_shlibpath_var_F77=no
22457       ;;
22458
22459     sysv4.3*)
22460       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22461       hardcode_shlibpath_var_F77=no
22462       export_dynamic_flag_spec_F77='-Bexport'
22463       ;;
22464
22465     sysv4*MP*)
22466       if test -d /usr/nec; then
22467         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22468         hardcode_shlibpath_var_F77=no
22469         runpath_var=LD_RUN_PATH
22470         hardcode_runpath_var=yes
22471         ld_shlibs_F77=yes
22472       fi
22473       ;;
22474
22475     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22476       no_undefined_flag_F77='${wl}-z,text'
22477       archive_cmds_need_lc_F77=no
22478       hardcode_shlibpath_var_F77=no
22479       runpath_var='LD_RUN_PATH'
22480
22481       if test "$GCC" = yes; then
22482         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22483         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22484       else
22485         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22486         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22487       fi
22488       ;;
22489
22490     sysv5* | sco3.2v5* | sco5v6*)
22491       # Note: We can NOT use -z defs as we might desire, because we do not
22492       # link with -lc, and that would cause any symbols used from libc to
22493       # always be unresolved, which means just about no library would
22494       # ever link correctly.  If we're not using GNU ld we use -z text
22495       # though, which does catch some bad symbols but isn't as heavy-handed
22496       # as -z defs.
22497       no_undefined_flag_F77='${wl}-z,text'
22498       allow_undefined_flag_F77='${wl}-z,nodefs'
22499       archive_cmds_need_lc_F77=no
22500       hardcode_shlibpath_var_F77=no
22501       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22502       hardcode_libdir_separator_F77=':'
22503       link_all_deplibs_F77=yes
22504       export_dynamic_flag_spec_F77='${wl}-Bexport'
22505       runpath_var='LD_RUN_PATH'
22506
22507       if test "$GCC" = yes; then
22508         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22509         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22510       else
22511         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22512         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22513       fi
22514       ;;
22515
22516     uts4*)
22517       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22518       hardcode_libdir_flag_spec_F77='-L$libdir'
22519       hardcode_shlibpath_var_F77=no
22520       ;;
22521
22522     *)
22523       ld_shlibs_F77=no
22524       ;;
22525     esac
22526   fi
22527
22528 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22529 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22530 test "$ld_shlibs_F77" = no && can_build_shared=no
22531
22532 #
22533 # Do we need to explicitly link libc?
22534 #
22535 case "x$archive_cmds_need_lc_F77" in
22536 x|xyes)
22537   # Assume -lc should be added
22538   archive_cmds_need_lc_F77=yes
22539
22540   if test "$enable_shared" = yes && test "$GCC" = yes; then
22541     case $archive_cmds_F77 in
22542     *'~'*)
22543       # FIXME: we may have to deal with multi-command sequences.
22544       ;;
22545     '$CC '*)
22546       # Test whether the compiler implicitly links with -lc since on some
22547       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22548       # to ld, don't add -lc before -lgcc.
22549       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22550 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22551       $rm conftest*
22552       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22553
22554       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22555   (eval $ac_compile) 2>&5
22556   ac_status=$?
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } 2>conftest.err; then
22559         soname=conftest
22560         lib=conftest
22561         libobjs=conftest.$ac_objext
22562         deplibs=
22563         wl=$lt_prog_compiler_wl_F77
22564         pic_flag=$lt_prog_compiler_pic_F77
22565         compiler_flags=-v
22566         linker_flags=-v
22567         verstring=
22568         output_objdir=.
22569         libname=conftest
22570         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22571         allow_undefined_flag_F77=
22572         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22573   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22574   ac_status=$?
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); }
22577         then
22578           archive_cmds_need_lc_F77=no
22579         else
22580           archive_cmds_need_lc_F77=yes
22581         fi
22582         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22583       else
22584         cat conftest.err 1>&5
22585       fi
22586       $rm conftest*
22587       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22588 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22589       ;;
22590     esac
22591   fi
22592   ;;
22593 esac
22594
22595 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22596 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22597 library_names_spec=
22598 libname_spec='lib$name'
22599 soname_spec=
22600 shrext_cmds=".so"
22601 postinstall_cmds=
22602 postuninstall_cmds=
22603 finish_cmds=
22604 finish_eval=
22605 shlibpath_var=
22606 shlibpath_overrides_runpath=unknown
22607 version_type=none
22608 dynamic_linker="$host_os ld.so"
22609 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22610 if test "$GCC" = yes; then
22611   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22612   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22613     # if the path contains ";" then we assume it to be the separator
22614     # otherwise default to the standard path separator (i.e. ":") - it is
22615     # assumed that no part of a normal pathname contains ";" but that should
22616     # okay in the real world where ";" in dirpaths is itself problematic.
22617     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22618   else
22619     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22620   fi
22621 else
22622   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22623 fi
22624 need_lib_prefix=unknown
22625 hardcode_into_libs=no
22626
22627 # when you set need_version to no, make sure it does not cause -set_version
22628 # flags to be left without arguments
22629 need_version=unknown
22630
22631 case $host_os in
22632 aix3*)
22633   version_type=linux
22634   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22635   shlibpath_var=LIBPATH
22636
22637   # AIX 3 has no versioning support, so we append a major version to the name.
22638   soname_spec='${libname}${release}${shared_ext}$major'
22639   ;;
22640
22641 aix4* | aix5*)
22642   version_type=linux
22643   need_lib_prefix=no
22644   need_version=no
22645   hardcode_into_libs=yes
22646   if test "$host_cpu" = ia64; then
22647     # AIX 5 supports IA64
22648     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22649     shlibpath_var=LD_LIBRARY_PATH
22650   else
22651     # With GCC up to 2.95.x, collect2 would create an import file
22652     # for dependence libraries.  The import file would start with
22653     # the line `#! .'.  This would cause the generated library to
22654     # depend on `.', always an invalid library.  This was fixed in
22655     # development snapshots of GCC prior to 3.0.
22656     case $host_os in
22657       aix4 | aix4.[01] | aix4.[01].*)
22658       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22659            echo ' yes '
22660            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22661         :
22662       else
22663         can_build_shared=no
22664       fi
22665       ;;
22666     esac
22667     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22668     # soname into executable. Probably we can add versioning support to
22669     # collect2, so additional links can be useful in future.
22670     if test "$aix_use_runtimelinking" = yes; then
22671       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22672       # instead of lib<name>.a to let people know that these are not
22673       # typical AIX shared libraries.
22674       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22675     else
22676       # We preserve .a as extension for shared libraries through AIX4.2
22677       # and later when we are not doing run time linking.
22678       library_names_spec='${libname}${release}.a $libname.a'
22679       soname_spec='${libname}${release}${shared_ext}$major'
22680     fi
22681     shlibpath_var=LIBPATH
22682   fi
22683   ;;
22684
22685 amigaos*)
22686   library_names_spec='$libname.ixlibrary $libname.a'
22687   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22688   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'
22689   ;;
22690
22691 beos*)
22692   library_names_spec='${libname}${shared_ext}'
22693   dynamic_linker="$host_os ld.so"
22694   shlibpath_var=LIBRARY_PATH
22695   ;;
22696
22697 bsdi[45]*)
22698   version_type=linux
22699   need_version=no
22700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22701   soname_spec='${libname}${release}${shared_ext}$major'
22702   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22703   shlibpath_var=LD_LIBRARY_PATH
22704   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22705   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22706   # the default ld.so.conf also contains /usr/contrib/lib and
22707   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22708   # libtool to hard-code these into programs
22709   ;;
22710
22711 cygwin* | mingw* | pw32*)
22712   version_type=windows
22713   shrext_cmds=".dll"
22714   need_version=no
22715   need_lib_prefix=no
22716
22717   case $GCC,$host_os in
22718   yes,cygwin* | yes,mingw* | yes,pw32*)
22719     library_names_spec='$libname.dll.a'
22720     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22721     postinstall_cmds='base_file=`basename \${file}`~
22722       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22723       dldir=$destdir/`dirname \$dlpath`~
22724       test -d \$dldir || mkdir -p \$dldir~
22725       $install_prog $dir/$dlname \$dldir/$dlname~
22726       chmod a+x \$dldir/$dlname'
22727     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22728       dlpath=$dir/\$dldll~
22729        $rm \$dlpath'
22730     shlibpath_overrides_runpath=yes
22731
22732     case $host_os in
22733     cygwin*)
22734       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22735       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22736       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22737       ;;
22738     mingw*)
22739       # MinGW DLLs use traditional 'lib' prefix
22740       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22741       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22742       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22743         # It is most probably a Windows format PATH printed by
22744         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22745         # path with ; separators, and with drive letters. We can handle the
22746         # drive letters (cygwin fileutils understands them), so leave them,
22747         # especially as we might pass files found there to a mingw objdump,
22748         # which wouldn't understand a cygwinified path. Ahh.
22749         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22750       else
22751         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22752       fi
22753       ;;
22754     pw32*)
22755       # pw32 DLLs use 'pw' prefix rather than 'lib'
22756       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22757       ;;
22758     esac
22759     ;;
22760
22761   *)
22762     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22763     ;;
22764   esac
22765   dynamic_linker='Win32 ld.exe'
22766   # FIXME: first we should search . and the directory the executable is in
22767   shlibpath_var=PATH
22768   ;;
22769
22770 darwin* | rhapsody*)
22771   dynamic_linker="$host_os dyld"
22772   version_type=darwin
22773   need_lib_prefix=no
22774   need_version=no
22775   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22776   soname_spec='${libname}${release}${major}$shared_ext'
22777   shlibpath_overrides_runpath=yes
22778   shlibpath_var=DYLD_LIBRARY_PATH
22779   shrext_cmds='.dylib'
22780   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22781   if test "$GCC" = yes; then
22782     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"`
22783   else
22784     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22785   fi
22786   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22787   ;;
22788
22789 dgux*)
22790   version_type=linux
22791   need_lib_prefix=no
22792   need_version=no
22793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22794   soname_spec='${libname}${release}${shared_ext}$major'
22795   shlibpath_var=LD_LIBRARY_PATH
22796   ;;
22797
22798 freebsd1*)
22799   dynamic_linker=no
22800   ;;
22801
22802 kfreebsd*-gnu)
22803   version_type=linux
22804   need_lib_prefix=no
22805   need_version=no
22806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22807   soname_spec='${libname}${release}${shared_ext}$major'
22808   shlibpath_var=LD_LIBRARY_PATH
22809   shlibpath_overrides_runpath=no
22810   hardcode_into_libs=yes
22811   dynamic_linker='GNU ld.so'
22812   ;;
22813
22814 freebsd* | dragonfly*)
22815   # DragonFly does not have aout.  When/if they implement a new
22816   # versioning mechanism, adjust this.
22817   if test -x /usr/bin/objformat; then
22818     objformat=`/usr/bin/objformat`
22819   else
22820     case $host_os in
22821     freebsd[123]*) objformat=aout ;;
22822     *) objformat=elf ;;
22823     esac
22824   fi
22825   version_type=freebsd-$objformat
22826   case $version_type in
22827     freebsd-elf*)
22828       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22829       need_version=no
22830       need_lib_prefix=no
22831       ;;
22832     freebsd-*)
22833       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22834       need_version=yes
22835       ;;
22836   esac
22837   shlibpath_var=LD_LIBRARY_PATH
22838   case $host_os in
22839   freebsd2*)
22840     shlibpath_overrides_runpath=yes
22841     ;;
22842   freebsd3.[01]* | freebsdelf3.[01]*)
22843     shlibpath_overrides_runpath=yes
22844     hardcode_into_libs=yes
22845     ;;
22846   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22847   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22848     shlibpath_overrides_runpath=no
22849     hardcode_into_libs=yes
22850     ;;
22851   freebsd*) # from 4.6 on
22852     shlibpath_overrides_runpath=yes
22853     hardcode_into_libs=yes
22854     ;;
22855   esac
22856   ;;
22857
22858 gnu*)
22859   version_type=linux
22860   need_lib_prefix=no
22861   need_version=no
22862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22863   soname_spec='${libname}${release}${shared_ext}$major'
22864   shlibpath_var=LD_LIBRARY_PATH
22865   hardcode_into_libs=yes
22866   ;;
22867
22868 hpux9* | hpux10* | hpux11*)
22869   # Give a soname corresponding to the major version so that dld.sl refuses to
22870   # link against other versions.
22871   version_type=sunos
22872   need_lib_prefix=no
22873   need_version=no
22874   case $host_cpu in
22875   ia64*)
22876     shrext_cmds='.so'
22877     hardcode_into_libs=yes
22878     dynamic_linker="$host_os dld.so"
22879     shlibpath_var=LD_LIBRARY_PATH
22880     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22882     soname_spec='${libname}${release}${shared_ext}$major'
22883     if test "X$HPUX_IA64_MODE" = X32; then
22884       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22885     else
22886       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22887     fi
22888     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22889     ;;
22890    hppa*64*)
22891      shrext_cmds='.sl'
22892      hardcode_into_libs=yes
22893      dynamic_linker="$host_os dld.sl"
22894      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22895      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22896      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22897      soname_spec='${libname}${release}${shared_ext}$major'
22898      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22899      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22900      ;;
22901    *)
22902     shrext_cmds='.sl'
22903     dynamic_linker="$host_os dld.sl"
22904     shlibpath_var=SHLIB_PATH
22905     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22907     soname_spec='${libname}${release}${shared_ext}$major'
22908     ;;
22909   esac
22910   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22911   postinstall_cmds='chmod 555 $lib'
22912   ;;
22913
22914 interix3*)
22915   version_type=linux
22916   need_lib_prefix=no
22917   need_version=no
22918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22919   soname_spec='${libname}${release}${shared_ext}$major'
22920   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22921   shlibpath_var=LD_LIBRARY_PATH
22922   shlibpath_overrides_runpath=no
22923   hardcode_into_libs=yes
22924   ;;
22925
22926 irix5* | irix6* | nonstopux*)
22927   case $host_os in
22928     nonstopux*) version_type=nonstopux ;;
22929     *)
22930         if test "$lt_cv_prog_gnu_ld" = yes; then
22931                 version_type=linux
22932         else
22933                 version_type=irix
22934         fi ;;
22935   esac
22936   need_lib_prefix=no
22937   need_version=no
22938   soname_spec='${libname}${release}${shared_ext}$major'
22939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22940   case $host_os in
22941   irix5* | nonstopux*)
22942     libsuff= shlibsuff=
22943     ;;
22944   *)
22945     case $LD in # libtool.m4 will add one of these switches to LD
22946     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22947       libsuff= shlibsuff= libmagic=32-bit;;
22948     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22949       libsuff=32 shlibsuff=N32 libmagic=N32;;
22950     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22951       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22952     *) libsuff= shlibsuff= libmagic=never-match;;
22953     esac
22954     ;;
22955   esac
22956   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22957   shlibpath_overrides_runpath=no
22958   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22959   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22960   hardcode_into_libs=yes
22961   ;;
22962
22963 # No shared lib support for Linux oldld, aout, or coff.
22964 linux*oldld* | linux*aout* | linux*coff*)
22965   dynamic_linker=no
22966   ;;
22967
22968 # This must be Linux ELF.
22969 linux*)
22970   version_type=linux
22971   need_lib_prefix=no
22972   need_version=no
22973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22974   soname_spec='${libname}${release}${shared_ext}$major'
22975   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22976   shlibpath_var=LD_LIBRARY_PATH
22977   shlibpath_overrides_runpath=no
22978   # This implies no fast_install, which is unacceptable.
22979   # Some rework will be needed to allow for fast_install
22980   # before this can be enabled.
22981   hardcode_into_libs=yes
22982
22983   # Append ld.so.conf contents to the search path
22984   if test -f /etc/ld.so.conf; then
22985     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' ' '`
22986     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22987   fi
22988
22989   # We used to test for /lib/ld.so.1 and disable shared libraries on
22990   # powerpc, because MkLinux only supported shared libraries with the
22991   # GNU dynamic linker.  Since this was broken with cross compilers,
22992   # most powerpc-linux boxes support dynamic linking these days and
22993   # people can always --disable-shared, the test was removed, and we
22994   # assume the GNU/Linux dynamic linker is in use.
22995   dynamic_linker='GNU/Linux ld.so'
22996   ;;
22997
22998 knetbsd*-gnu)
22999   version_type=linux
23000   need_lib_prefix=no
23001   need_version=no
23002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23003   soname_spec='${libname}${release}${shared_ext}$major'
23004   shlibpath_var=LD_LIBRARY_PATH
23005   shlibpath_overrides_runpath=no
23006   hardcode_into_libs=yes
23007   dynamic_linker='GNU ld.so'
23008   ;;
23009
23010 netbsd*)
23011   version_type=sunos
23012   need_lib_prefix=no
23013   need_version=no
23014   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23015     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23016     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23017     dynamic_linker='NetBSD (a.out) ld.so'
23018   else
23019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23020     soname_spec='${libname}${release}${shared_ext}$major'
23021     dynamic_linker='NetBSD ld.elf_so'
23022   fi
23023   shlibpath_var=LD_LIBRARY_PATH
23024   shlibpath_overrides_runpath=yes
23025   hardcode_into_libs=yes
23026   ;;
23027
23028 newsos6)
23029   version_type=linux
23030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23031   shlibpath_var=LD_LIBRARY_PATH
23032   shlibpath_overrides_runpath=yes
23033   ;;
23034
23035 nto-qnx*)
23036   version_type=linux
23037   need_lib_prefix=no
23038   need_version=no
23039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040   soname_spec='${libname}${release}${shared_ext}$major'
23041   shlibpath_var=LD_LIBRARY_PATH
23042   shlibpath_overrides_runpath=yes
23043   ;;
23044
23045 openbsd*)
23046   version_type=sunos
23047   sys_lib_dlsearch_path_spec="/usr/lib"
23048   need_lib_prefix=no
23049   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23050   case $host_os in
23051     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23052     *)                         need_version=no  ;;
23053   esac
23054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23055   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23056   shlibpath_var=LD_LIBRARY_PATH
23057   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23058     case $host_os in
23059       openbsd2.[89] | openbsd2.[89].*)
23060         shlibpath_overrides_runpath=no
23061         ;;
23062       *)
23063         shlibpath_overrides_runpath=yes
23064         ;;
23065       esac
23066   else
23067     shlibpath_overrides_runpath=yes
23068   fi
23069   ;;
23070
23071 os2*)
23072   libname_spec='$name'
23073   shrext_cmds=".dll"
23074   need_lib_prefix=no
23075   library_names_spec='$libname${shared_ext} $libname.a'
23076   dynamic_linker='OS/2 ld.exe'
23077   shlibpath_var=LIBPATH
23078   ;;
23079
23080 osf3* | osf4* | osf5*)
23081   version_type=osf
23082   need_lib_prefix=no
23083   need_version=no
23084   soname_spec='${libname}${release}${shared_ext}$major'
23085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23086   shlibpath_var=LD_LIBRARY_PATH
23087   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23088   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23089   ;;
23090
23091 solaris*)
23092   version_type=linux
23093   need_lib_prefix=no
23094   need_version=no
23095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23096   soname_spec='${libname}${release}${shared_ext}$major'
23097   shlibpath_var=LD_LIBRARY_PATH
23098   shlibpath_overrides_runpath=yes
23099   hardcode_into_libs=yes
23100   # ldd complains unless libraries are executable
23101   postinstall_cmds='chmod +x $lib'
23102   ;;
23103
23104 sunos4*)
23105   version_type=sunos
23106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23107   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23108   shlibpath_var=LD_LIBRARY_PATH
23109   shlibpath_overrides_runpath=yes
23110   if test "$with_gnu_ld" = yes; then
23111     need_lib_prefix=no
23112   fi
23113   need_version=yes
23114   ;;
23115
23116 sysv4 | sysv4.3*)
23117   version_type=linux
23118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23119   soname_spec='${libname}${release}${shared_ext}$major'
23120   shlibpath_var=LD_LIBRARY_PATH
23121   case $host_vendor in
23122     sni)
23123       shlibpath_overrides_runpath=no
23124       need_lib_prefix=no
23125       export_dynamic_flag_spec='${wl}-Blargedynsym'
23126       runpath_var=LD_RUN_PATH
23127       ;;
23128     siemens)
23129       need_lib_prefix=no
23130       ;;
23131     motorola)
23132       need_lib_prefix=no
23133       need_version=no
23134       shlibpath_overrides_runpath=no
23135       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23136       ;;
23137   esac
23138   ;;
23139
23140 sysv4*MP*)
23141   if test -d /usr/nec ;then
23142     version_type=linux
23143     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23144     soname_spec='$libname${shared_ext}.$major'
23145     shlibpath_var=LD_LIBRARY_PATH
23146   fi
23147   ;;
23148
23149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23150   version_type=freebsd-elf
23151   need_lib_prefix=no
23152   need_version=no
23153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23154   soname_spec='${libname}${release}${shared_ext}$major'
23155   shlibpath_var=LD_LIBRARY_PATH
23156   hardcode_into_libs=yes
23157   if test "$with_gnu_ld" = yes; then
23158     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23159     shlibpath_overrides_runpath=no
23160   else
23161     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23162     shlibpath_overrides_runpath=yes
23163     case $host_os in
23164       sco3.2v5*)
23165         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23166         ;;
23167     esac
23168   fi
23169   sys_lib_dlsearch_path_spec='/usr/lib'
23170   ;;
23171
23172 uts4*)
23173   version_type=linux
23174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23175   soname_spec='${libname}${release}${shared_ext}$major'
23176   shlibpath_var=LD_LIBRARY_PATH
23177   ;;
23178
23179 *)
23180   dynamic_linker=no
23181   ;;
23182 esac
23183 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23184 echo "${ECHO_T}$dynamic_linker" >&6; }
23185 test "$dynamic_linker" = no && can_build_shared=no
23186
23187 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23188 if test "$GCC" = yes; then
23189   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23190 fi
23191
23192 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23193 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23194 hardcode_action_F77=
23195 if test -n "$hardcode_libdir_flag_spec_F77" || \
23196    test -n "$runpath_var_F77" || \
23197    test "X$hardcode_automatic_F77" = "Xyes" ; then
23198
23199   # We can hardcode non-existant directories.
23200   if test "$hardcode_direct_F77" != no &&
23201      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23202      # have to relink, otherwise we might link with an installed library
23203      # when we should be linking with a yet-to-be-installed one
23204      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23205      test "$hardcode_minus_L_F77" != no; then
23206     # Linking always hardcodes the temporary library directory.
23207     hardcode_action_F77=relink
23208   else
23209     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23210     hardcode_action_F77=immediate
23211   fi
23212 else
23213   # We cannot hardcode anything, or else we can only hardcode existing
23214   # directories.
23215   hardcode_action_F77=unsupported
23216 fi
23217 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23218 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23219
23220 if test "$hardcode_action_F77" = relink; then
23221   # Fast installation is not supported
23222   enable_fast_install=no
23223 elif test "$shlibpath_overrides_runpath" = yes ||
23224      test "$enable_shared" = no; then
23225   # Fast installation is not necessary
23226   enable_fast_install=needless
23227 fi
23228
23229
23230 # The else clause should only fire when bootstrapping the
23231 # libtool distribution, otherwise you forgot to ship ltmain.sh
23232 # with your package, and you will get complaints that there are
23233 # no rules to generate ltmain.sh.
23234 if test -f "$ltmain"; then
23235   # See if we are running on zsh, and set the options which allow our commands through
23236   # without removal of \ escapes.
23237   if test -n "${ZSH_VERSION+set}" ; then
23238     setopt NO_GLOB_SUBST
23239   fi
23240   # Now quote all the things that may contain metacharacters while being
23241   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23242   # variables and quote the copies for generation of the libtool script.
23243   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23244     SED SHELL STRIP \
23245     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23246     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23247     deplibs_check_method reload_flag reload_cmds need_locks \
23248     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23249     lt_cv_sys_global_symbol_to_c_name_address \
23250     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23251     old_postinstall_cmds old_postuninstall_cmds \
23252     compiler_F77 \
23253     CC_F77 \
23254     LD_F77 \
23255     lt_prog_compiler_wl_F77 \
23256     lt_prog_compiler_pic_F77 \
23257     lt_prog_compiler_static_F77 \
23258     lt_prog_compiler_no_builtin_flag_F77 \
23259     export_dynamic_flag_spec_F77 \
23260     thread_safe_flag_spec_F77 \
23261     whole_archive_flag_spec_F77 \
23262     enable_shared_with_static_runtimes_F77 \
23263     old_archive_cmds_F77 \
23264     old_archive_from_new_cmds_F77 \
23265     predep_objects_F77 \
23266     postdep_objects_F77 \
23267     predeps_F77 \
23268     postdeps_F77 \
23269     compiler_lib_search_path_F77 \
23270     archive_cmds_F77 \
23271     archive_expsym_cmds_F77 \
23272     postinstall_cmds_F77 \
23273     postuninstall_cmds_F77 \
23274     old_archive_from_expsyms_cmds_F77 \
23275     allow_undefined_flag_F77 \
23276     no_undefined_flag_F77 \
23277     export_symbols_cmds_F77 \
23278     hardcode_libdir_flag_spec_F77 \
23279     hardcode_libdir_flag_spec_ld_F77 \
23280     hardcode_libdir_separator_F77 \
23281     hardcode_automatic_F77 \
23282     module_cmds_F77 \
23283     module_expsym_cmds_F77 \
23284     lt_cv_prog_compiler_c_o_F77 \
23285     exclude_expsyms_F77 \
23286     include_expsyms_F77; do
23287
23288     case $var in
23289     old_archive_cmds_F77 | \
23290     old_archive_from_new_cmds_F77 | \
23291     archive_cmds_F77 | \
23292     archive_expsym_cmds_F77 | \
23293     module_cmds_F77 | \
23294     module_expsym_cmds_F77 | \
23295     old_archive_from_expsyms_cmds_F77 | \
23296     export_symbols_cmds_F77 | \
23297     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23298     postinstall_cmds | postuninstall_cmds | \
23299     old_postinstall_cmds | old_postuninstall_cmds | \
23300     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23301       # Double-quote double-evaled strings.
23302       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23303       ;;
23304     *)
23305       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23306       ;;
23307     esac
23308   done
23309
23310   case $lt_echo in
23311   *'\$0 --fallback-echo"')
23312     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23313     ;;
23314   esac
23315
23316 cfgfile="$ofile"
23317
23318   cat <<__EOF__ >> "$cfgfile"
23319 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23320
23321 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23322
23323 # Shell to use when invoking shell scripts.
23324 SHELL=$lt_SHELL
23325
23326 # Whether or not to build shared libraries.
23327 build_libtool_libs=$enable_shared
23328
23329 # Whether or not to build static libraries.
23330 build_old_libs=$enable_static
23331
23332 # Whether or not to add -lc for building shared libraries.
23333 build_libtool_need_lc=$archive_cmds_need_lc_F77
23334
23335 # Whether or not to disallow shared libs when runtime libs are static
23336 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23337
23338 # Whether or not to optimize for fast installation.
23339 fast_install=$enable_fast_install
23340
23341 # The host system.
23342 host_alias=$host_alias
23343 host=$host
23344 host_os=$host_os
23345
23346 # The build system.
23347 build_alias=$build_alias
23348 build=$build
23349 build_os=$build_os
23350
23351 # An echo program that does not interpret backslashes.
23352 echo=$lt_echo
23353
23354 # The archiver.
23355 AR=$lt_AR
23356 AR_FLAGS=$lt_AR_FLAGS
23357
23358 # A C compiler.
23359 LTCC=$lt_LTCC
23360
23361 # LTCC compiler flags.
23362 LTCFLAGS=$lt_LTCFLAGS
23363
23364 # A language-specific compiler.
23365 CC=$lt_compiler_F77
23366
23367 # Is the compiler the GNU C compiler?
23368 with_gcc=$GCC_F77
23369
23370 # An ERE matcher.
23371 EGREP=$lt_EGREP
23372
23373 # The linker used to build libraries.
23374 LD=$lt_LD_F77
23375
23376 # Whether we need hard or soft links.
23377 LN_S=$lt_LN_S
23378
23379 # A BSD-compatible nm program.
23380 NM=$lt_NM
23381
23382 # A symbol stripping program
23383 STRIP=$lt_STRIP
23384
23385 # Used to examine libraries when file_magic_cmd begins "file"
23386 MAGIC_CMD=$MAGIC_CMD
23387
23388 # Used on cygwin: DLL creation program.
23389 DLLTOOL="$DLLTOOL"
23390
23391 # Used on cygwin: object dumper.
23392 OBJDUMP="$OBJDUMP"
23393
23394 # Used on cygwin: assembler.
23395 AS="$AS"
23396
23397 # The name of the directory that contains temporary libtool files.
23398 objdir=$objdir
23399
23400 # How to create reloadable object files.
23401 reload_flag=$lt_reload_flag
23402 reload_cmds=$lt_reload_cmds
23403
23404 # How to pass a linker flag through the compiler.
23405 wl=$lt_lt_prog_compiler_wl_F77
23406
23407 # Object file suffix (normally "o").
23408 objext="$ac_objext"
23409
23410 # Old archive suffix (normally "a").
23411 libext="$libext"
23412
23413 # Shared library suffix (normally ".so").
23414 shrext_cmds='$shrext_cmds'
23415
23416 # Executable file suffix (normally "").
23417 exeext="$exeext"
23418
23419 # Additional compiler flags for building library objects.
23420 pic_flag=$lt_lt_prog_compiler_pic_F77
23421 pic_mode=$pic_mode
23422
23423 # What is the maximum length of a command?
23424 max_cmd_len=$lt_cv_sys_max_cmd_len
23425
23426 # Does compiler simultaneously support -c and -o options?
23427 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23428
23429 # Must we lock files when doing compilation?
23430 need_locks=$lt_need_locks
23431
23432 # Do we need the lib prefix for modules?
23433 need_lib_prefix=$need_lib_prefix
23434
23435 # Do we need a version for libraries?
23436 need_version=$need_version
23437
23438 # Whether dlopen is supported.
23439 dlopen_support=$enable_dlopen
23440
23441 # Whether dlopen of programs is supported.
23442 dlopen_self=$enable_dlopen_self
23443
23444 # Whether dlopen of statically linked programs is supported.
23445 dlopen_self_static=$enable_dlopen_self_static
23446
23447 # Compiler flag to prevent dynamic linking.
23448 link_static_flag=$lt_lt_prog_compiler_static_F77
23449
23450 # Compiler flag to turn off builtin functions.
23451 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23452
23453 # Compiler flag to allow reflexive dlopens.
23454 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23455
23456 # Compiler flag to generate shared objects directly from archives.
23457 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23458
23459 # Compiler flag to generate thread-safe objects.
23460 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23461
23462 # Library versioning type.
23463 version_type=$version_type
23464
23465 # Format of library name prefix.
23466 libname_spec=$lt_libname_spec
23467
23468 # List of archive names.  First name is the real one, the rest are links.
23469 # The last name is the one that the linker finds with -lNAME.
23470 library_names_spec=$lt_library_names_spec
23471
23472 # The coded name of the library, if different from the real name.
23473 soname_spec=$lt_soname_spec
23474
23475 # Commands used to build and install an old-style archive.
23476 RANLIB=$lt_RANLIB
23477 old_archive_cmds=$lt_old_archive_cmds_F77
23478 old_postinstall_cmds=$lt_old_postinstall_cmds
23479 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23480
23481 # Create an old-style archive from a shared archive.
23482 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23483
23484 # Create a temporary old-style archive to link instead of a shared archive.
23485 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23486
23487 # Commands used to build and install a shared archive.
23488 archive_cmds=$lt_archive_cmds_F77
23489 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23490 postinstall_cmds=$lt_postinstall_cmds
23491 postuninstall_cmds=$lt_postuninstall_cmds
23492
23493 # Commands used to build a loadable module (assumed same as above if empty)
23494 module_cmds=$lt_module_cmds_F77
23495 module_expsym_cmds=$lt_module_expsym_cmds_F77
23496
23497 # Commands to strip libraries.
23498 old_striplib=$lt_old_striplib
23499 striplib=$lt_striplib
23500
23501 # Dependencies to place before the objects being linked to create a
23502 # shared library.
23503 predep_objects=$lt_predep_objects_F77
23504
23505 # Dependencies to place after the objects being linked to create a
23506 # shared library.
23507 postdep_objects=$lt_postdep_objects_F77
23508
23509 # Dependencies to place before the objects being linked to create a
23510 # shared library.
23511 predeps=$lt_predeps_F77
23512
23513 # Dependencies to place after the objects being linked to create a
23514 # shared library.
23515 postdeps=$lt_postdeps_F77
23516
23517 # The library search path used internally by the compiler when linking
23518 # a shared library.
23519 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23520
23521 # Method to check whether dependent libraries are shared objects.
23522 deplibs_check_method=$lt_deplibs_check_method
23523
23524 # Command to use when deplibs_check_method == file_magic.
23525 file_magic_cmd=$lt_file_magic_cmd
23526
23527 # Flag that allows shared libraries with undefined symbols to be built.
23528 allow_undefined_flag=$lt_allow_undefined_flag_F77
23529
23530 # Flag that forces no undefined symbols.
23531 no_undefined_flag=$lt_no_undefined_flag_F77
23532
23533 # Commands used to finish a libtool library installation in a directory.
23534 finish_cmds=$lt_finish_cmds
23535
23536 # Same as above, but a single script fragment to be evaled but not shown.
23537 finish_eval=$lt_finish_eval
23538
23539 # Take the output of nm and produce a listing of raw symbols and C names.
23540 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23541
23542 # Transform the output of nm in a proper C declaration
23543 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23544
23545 # Transform the output of nm in a C name address pair
23546 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23547
23548 # This is the shared library runtime path variable.
23549 runpath_var=$runpath_var
23550
23551 # This is the shared library path variable.
23552 shlibpath_var=$shlibpath_var
23553
23554 # Is shlibpath searched before the hard-coded library search path?
23555 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23556
23557 # How to hardcode a shared library path into an executable.
23558 hardcode_action=$hardcode_action_F77
23559
23560 # Whether we should hardcode library paths into libraries.
23561 hardcode_into_libs=$hardcode_into_libs
23562
23563 # Flag to hardcode \$libdir into a binary during linking.
23564 # This must work even if \$libdir does not exist.
23565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23566
23567 # If ld is used when linking, flag to hardcode \$libdir into
23568 # a binary during linking. This must work even if \$libdir does
23569 # not exist.
23570 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23571
23572 # Whether we need a single -rpath flag with a separated argument.
23573 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23574
23575 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23576 # resulting binary.
23577 hardcode_direct=$hardcode_direct_F77
23578
23579 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23580 # resulting binary.
23581 hardcode_minus_L=$hardcode_minus_L_F77
23582
23583 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23584 # the resulting binary.
23585 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23586
23587 # Set to yes if building a shared library automatically hardcodes DIR into the library
23588 # and all subsequent libraries and executables linked against it.
23589 hardcode_automatic=$hardcode_automatic_F77
23590
23591 # Variables whose values should be saved in libtool wrapper scripts and
23592 # restored at relink time.
23593 variables_saved_for_relink="$variables_saved_for_relink"
23594
23595 # Whether libtool must link a program against all its dependency libraries.
23596 link_all_deplibs=$link_all_deplibs_F77
23597
23598 # Compile-time system search path for libraries
23599 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23600
23601 # Run-time system search path for libraries
23602 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23603
23604 # Fix the shell variable \$srcfile for the compiler.
23605 fix_srcfile_path="$fix_srcfile_path_F77"
23606
23607 # Set to yes if exported symbols are required.
23608 always_export_symbols=$always_export_symbols_F77
23609
23610 # The commands to list exported symbols.
23611 export_symbols_cmds=$lt_export_symbols_cmds_F77
23612
23613 # The commands to extract the exported symbol list from a shared archive.
23614 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23615
23616 # Symbols that should not be listed in the preloaded symbols.
23617 exclude_expsyms=$lt_exclude_expsyms_F77
23618
23619 # Symbols that must always be exported.
23620 include_expsyms=$lt_include_expsyms_F77
23621
23622 # ### END LIBTOOL TAG CONFIG: $tagname
23623
23624 __EOF__
23625
23626
23627 else
23628   # If there is no Makefile yet, we rely on a make rule to execute
23629   # `config.status --recheck' to rerun these tests and create the
23630   # libtool script then.
23631   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23632   if test -f "$ltmain_in"; then
23633     test -f Makefile && make "$ltmain"
23634   fi
23635 fi
23636
23637
23638 ac_ext=c
23639 ac_cpp='$CPP $CPPFLAGS'
23640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23643
23644 CC="$lt_save_CC"
23645
23646         else
23647           tagname=""
23648         fi
23649         ;;
23650
23651       GCJ)
23652         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23653           ac_ext=c
23654 ac_cpp='$CPP $CPPFLAGS'
23655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23658
23659
23660 # Source file extension for Java test sources.
23661 ac_ext=java
23662
23663 # Object file extension for compiled Java test sources.
23664 objext=o
23665 objext_GCJ=$objext
23666
23667 # Code to be used in simple compile tests
23668 lt_simple_compile_test_code="class foo {}\n"
23669
23670 # Code to be used in simple link tests
23671 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23672
23673 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23674
23675 # If no C compiler was specified, use CC.
23676 LTCC=${LTCC-"$CC"}
23677
23678 # If no C compiler flags were specified, use CFLAGS.
23679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23680
23681 # Allow CC to be a program name with arguments.
23682 compiler=$CC
23683
23684
23685 # save warnings/boilerplate of simple test code
23686 ac_outfile=conftest.$ac_objext
23687 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23688 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23689 _lt_compiler_boilerplate=`cat conftest.err`
23690 $rm conftest*
23691
23692 ac_outfile=conftest.$ac_objext
23693 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23694 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23695 _lt_linker_boilerplate=`cat conftest.err`
23696 $rm conftest*
23697
23698
23699 # Allow CC to be a program name with arguments.
23700 lt_save_CC="$CC"
23701 CC=${GCJ-"gcj"}
23702 compiler=$CC
23703 compiler_GCJ=$CC
23704 for cc_temp in $compiler""; do
23705   case $cc_temp in
23706     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23707     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23708     \-*) ;;
23709     *) break;;
23710   esac
23711 done
23712 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23713
23714
23715 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23716 archive_cmds_need_lc_GCJ=no
23717
23718 old_archive_cmds_GCJ=$old_archive_cmds
23719
23720
23721 lt_prog_compiler_no_builtin_flag_GCJ=
23722
23723 if test "$GCC" = yes; then
23724   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23725
23726
23727 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23728 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23729 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23730   echo $ECHO_N "(cached) $ECHO_C" >&6
23731 else
23732   lt_cv_prog_compiler_rtti_exceptions=no
23733   ac_outfile=conftest.$ac_objext
23734    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23735    lt_compiler_flag="-fno-rtti -fno-exceptions"
23736    # Insert the option either (1) after the last *FLAGS variable, or
23737    # (2) before a word containing "conftest.", or (3) at the end.
23738    # Note that $ac_compile itself does not contain backslashes and begins
23739    # with a dollar sign (not a hyphen), so the echo should work correctly.
23740    # The option is referenced via a variable to avoid confusing sed.
23741    lt_compile=`echo "$ac_compile" | $SED \
23742    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23743    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23744    -e 's:$: $lt_compiler_flag:'`
23745    (eval echo "\"\$as_me:23745: $lt_compile\"" >&5)
23746    (eval "$lt_compile" 2>conftest.err)
23747    ac_status=$?
23748    cat conftest.err >&5
23749    echo "$as_me:23749: \$? = $ac_status" >&5
23750    if (exit $ac_status) && test -s "$ac_outfile"; then
23751      # The compiler can only warn and ignore the option if not recognized
23752      # So say no if there are warnings other than the usual output.
23753      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23754      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23755      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23756        lt_cv_prog_compiler_rtti_exceptions=yes
23757      fi
23758    fi
23759    $rm conftest*
23760
23761 fi
23762 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23763 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23764
23765 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23766     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23767 else
23768     :
23769 fi
23770
23771 fi
23772
23773 lt_prog_compiler_wl_GCJ=
23774 lt_prog_compiler_pic_GCJ=
23775 lt_prog_compiler_static_GCJ=
23776
23777 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23778 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23779
23780   if test "$GCC" = yes; then
23781     lt_prog_compiler_wl_GCJ='-Wl,'
23782     lt_prog_compiler_static_GCJ='-static'
23783
23784     case $host_os in
23785       aix*)
23786       # All AIX code is PIC.
23787       if test "$host_cpu" = ia64; then
23788         # AIX 5 now supports IA64 processor
23789         lt_prog_compiler_static_GCJ='-Bstatic'
23790       fi
23791       ;;
23792
23793     amigaos*)
23794       # FIXME: we need at least 68020 code to build shared libraries, but
23795       # adding the `-m68020' flag to GCC prevents building anything better,
23796       # like `-m68040'.
23797       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23798       ;;
23799
23800     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23801       # PIC is the default for these OSes.
23802       ;;
23803
23804     mingw* | pw32* | os2*)
23805       # This hack is so that the source file can tell whether it is being
23806       # built for inclusion in a dll (and should export symbols for example).
23807       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23808       ;;
23809
23810     darwin* | rhapsody*)
23811       # PIC is the default on this platform
23812       # Common symbols not allowed in MH_DYLIB files
23813       lt_prog_compiler_pic_GCJ='-fno-common'
23814       ;;
23815
23816     interix3*)
23817       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23818       # Instead, we relocate shared libraries at runtime.
23819       ;;
23820
23821     msdosdjgpp*)
23822       # Just because we use GCC doesn't mean we suddenly get shared libraries
23823       # on systems that don't support them.
23824       lt_prog_compiler_can_build_shared_GCJ=no
23825       enable_shared=no
23826       ;;
23827
23828     sysv4*MP*)
23829       if test -d /usr/nec; then
23830         lt_prog_compiler_pic_GCJ=-Kconform_pic
23831       fi
23832       ;;
23833
23834     hpux*)
23835       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23836       # not for PA HP-UX.
23837       case $host_cpu in
23838       hppa*64*|ia64*)
23839         # +Z the default
23840         ;;
23841       *)
23842         lt_prog_compiler_pic_GCJ='-fPIC'
23843         ;;
23844       esac
23845       ;;
23846
23847     *)
23848       lt_prog_compiler_pic_GCJ='-fPIC'
23849       ;;
23850     esac
23851   else
23852     # PORTME Check for flag to pass linker flags through the system compiler.
23853     case $host_os in
23854     aix*)
23855       lt_prog_compiler_wl_GCJ='-Wl,'
23856       if test "$host_cpu" = ia64; then
23857         # AIX 5 now supports IA64 processor
23858         lt_prog_compiler_static_GCJ='-Bstatic'
23859       else
23860         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23861       fi
23862       ;;
23863       darwin*)
23864         # PIC is the default on this platform
23865         # Common symbols not allowed in MH_DYLIB files
23866        case $cc_basename in
23867          xlc*)
23868          lt_prog_compiler_pic_GCJ='-qnocommon'
23869          lt_prog_compiler_wl_GCJ='-Wl,'
23870          ;;
23871        esac
23872        ;;
23873
23874     mingw* | pw32* | os2*)
23875       # This hack is so that the source file can tell whether it is being
23876       # built for inclusion in a dll (and should export symbols for example).
23877       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23878       ;;
23879
23880     hpux9* | hpux10* | hpux11*)
23881       lt_prog_compiler_wl_GCJ='-Wl,'
23882       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23883       # not for PA HP-UX.
23884       case $host_cpu in
23885       hppa*64*|ia64*)
23886         # +Z the default
23887         ;;
23888       *)
23889         lt_prog_compiler_pic_GCJ='+Z'
23890         ;;
23891       esac
23892       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23893       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23894       ;;
23895
23896     irix5* | irix6* | nonstopux*)
23897       lt_prog_compiler_wl_GCJ='-Wl,'
23898       # PIC (with -KPIC) is the default.
23899       lt_prog_compiler_static_GCJ='-non_shared'
23900       ;;
23901
23902     newsos6)
23903       lt_prog_compiler_pic_GCJ='-KPIC'
23904       lt_prog_compiler_static_GCJ='-Bstatic'
23905       ;;
23906
23907     linux*)
23908       case $cc_basename in
23909       icc* | ecc*)
23910         lt_prog_compiler_wl_GCJ='-Wl,'
23911         lt_prog_compiler_pic_GCJ='-KPIC'
23912         lt_prog_compiler_static_GCJ='-static'
23913         ;;
23914       pgcc* | pgf77* | pgf90* | pgf95*)
23915         # Portland Group compilers (*not* the Pentium gcc compiler,
23916         # which looks to be a dead project)
23917         lt_prog_compiler_wl_GCJ='-Wl,'
23918         lt_prog_compiler_pic_GCJ='-fpic'
23919         lt_prog_compiler_static_GCJ='-Bstatic'
23920         ;;
23921       ccc*)
23922         lt_prog_compiler_wl_GCJ='-Wl,'
23923         # All Alpha code is PIC.
23924         lt_prog_compiler_static_GCJ='-non_shared'
23925         ;;
23926       esac
23927       ;;
23928
23929     osf3* | osf4* | osf5*)
23930       lt_prog_compiler_wl_GCJ='-Wl,'
23931       # All OSF/1 code is PIC.
23932       lt_prog_compiler_static_GCJ='-non_shared'
23933       ;;
23934
23935     solaris*)
23936       lt_prog_compiler_pic_GCJ='-KPIC'
23937       lt_prog_compiler_static_GCJ='-Bstatic'
23938       case $cc_basename in
23939       f77* | f90* | f95*)
23940         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23941       *)
23942         lt_prog_compiler_wl_GCJ='-Wl,';;
23943       esac
23944       ;;
23945
23946     sunos4*)
23947       lt_prog_compiler_wl_GCJ='-Qoption ld '
23948       lt_prog_compiler_pic_GCJ='-PIC'
23949       lt_prog_compiler_static_GCJ='-Bstatic'
23950       ;;
23951
23952     sysv4 | sysv4.2uw2* | sysv4.3*)
23953       lt_prog_compiler_wl_GCJ='-Wl,'
23954       lt_prog_compiler_pic_GCJ='-KPIC'
23955       lt_prog_compiler_static_GCJ='-Bstatic'
23956       ;;
23957
23958     sysv4*MP*)
23959       if test -d /usr/nec ;then
23960         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23961         lt_prog_compiler_static_GCJ='-Bstatic'
23962       fi
23963       ;;
23964
23965     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23966       lt_prog_compiler_wl_GCJ='-Wl,'
23967       lt_prog_compiler_pic_GCJ='-KPIC'
23968       lt_prog_compiler_static_GCJ='-Bstatic'
23969       ;;
23970
23971     unicos*)
23972       lt_prog_compiler_wl_GCJ='-Wl,'
23973       lt_prog_compiler_can_build_shared_GCJ=no
23974       ;;
23975
23976     uts4*)
23977       lt_prog_compiler_pic_GCJ='-pic'
23978       lt_prog_compiler_static_GCJ='-Bstatic'
23979       ;;
23980
23981     *)
23982       lt_prog_compiler_can_build_shared_GCJ=no
23983       ;;
23984     esac
23985   fi
23986
23987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23988 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23989
23990 #
23991 # Check to make sure the PIC flag actually works.
23992 #
23993 if test -n "$lt_prog_compiler_pic_GCJ"; then
23994
23995 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23996 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23997 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23998   echo $ECHO_N "(cached) $ECHO_C" >&6
23999 else
24000   lt_prog_compiler_pic_works_GCJ=no
24001   ac_outfile=conftest.$ac_objext
24002    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24003    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24004    # Insert the option either (1) after the last *FLAGS variable, or
24005    # (2) before a word containing "conftest.", or (3) at the end.
24006    # Note that $ac_compile itself does not contain backslashes and begins
24007    # with a dollar sign (not a hyphen), so the echo should work correctly.
24008    # The option is referenced via a variable to avoid confusing sed.
24009    lt_compile=`echo "$ac_compile" | $SED \
24010    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24012    -e 's:$: $lt_compiler_flag:'`
24013    (eval echo "\"\$as_me:24013: $lt_compile\"" >&5)
24014    (eval "$lt_compile" 2>conftest.err)
24015    ac_status=$?
24016    cat conftest.err >&5
24017    echo "$as_me:24017: \$? = $ac_status" >&5
24018    if (exit $ac_status) && test -s "$ac_outfile"; then
24019      # The compiler can only warn and ignore the option if not recognized
24020      # So say no if there are warnings other than the usual output.
24021      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24022      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24023      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24024        lt_prog_compiler_pic_works_GCJ=yes
24025      fi
24026    fi
24027    $rm conftest*
24028
24029 fi
24030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24031 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24032
24033 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24034     case $lt_prog_compiler_pic_GCJ in
24035      "" | " "*) ;;
24036      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24037      esac
24038 else
24039     lt_prog_compiler_pic_GCJ=
24040      lt_prog_compiler_can_build_shared_GCJ=no
24041 fi
24042
24043 fi
24044 case $host_os in
24045   # For platforms which do not support PIC, -DPIC is meaningless:
24046   *djgpp*)
24047     lt_prog_compiler_pic_GCJ=
24048     ;;
24049   *)
24050     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24051     ;;
24052 esac
24053
24054 #
24055 # Check to make sure the static flag actually works.
24056 #
24057 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24058 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24059 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24060 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24061   echo $ECHO_N "(cached) $ECHO_C" >&6
24062 else
24063   lt_prog_compiler_static_works_GCJ=no
24064    save_LDFLAGS="$LDFLAGS"
24065    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24066    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24067    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24068      # The linker can only warn and ignore the option if not recognized
24069      # So say no if there are warnings
24070      if test -s conftest.err; then
24071        # Append any errors to the config.log.
24072        cat conftest.err 1>&5
24073        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24074        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24075        if diff conftest.exp conftest.er2 >/dev/null; then
24076          lt_prog_compiler_static_works_GCJ=yes
24077        fi
24078      else
24079        lt_prog_compiler_static_works_GCJ=yes
24080      fi
24081    fi
24082    $rm conftest*
24083    LDFLAGS="$save_LDFLAGS"
24084
24085 fi
24086 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24087 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24088
24089 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24090     :
24091 else
24092     lt_prog_compiler_static_GCJ=
24093 fi
24094
24095
24096 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24097 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24098 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24099   echo $ECHO_N "(cached) $ECHO_C" >&6
24100 else
24101   lt_cv_prog_compiler_c_o_GCJ=no
24102    $rm -r conftest 2>/dev/null
24103    mkdir conftest
24104    cd conftest
24105    mkdir out
24106    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24107
24108    lt_compiler_flag="-o out/conftest2.$ac_objext"
24109    # Insert the option either (1) after the last *FLAGS variable, or
24110    # (2) before a word containing "conftest.", or (3) at the end.
24111    # Note that $ac_compile itself does not contain backslashes and begins
24112    # with a dollar sign (not a hyphen), so the echo should work correctly.
24113    lt_compile=`echo "$ac_compile" | $SED \
24114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24116    -e 's:$: $lt_compiler_flag:'`
24117    (eval echo "\"\$as_me:24117: $lt_compile\"" >&5)
24118    (eval "$lt_compile" 2>out/conftest.err)
24119    ac_status=$?
24120    cat out/conftest.err >&5
24121    echo "$as_me:24121: \$? = $ac_status" >&5
24122    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24123    then
24124      # The compiler can only warn and ignore the option if not recognized
24125      # So say no if there are warnings
24126      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24127      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24128      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24129        lt_cv_prog_compiler_c_o_GCJ=yes
24130      fi
24131    fi
24132    chmod u+w . 2>&5
24133    $rm conftest*
24134    # SGI C++ compiler will create directory out/ii_files/ for
24135    # template instantiation
24136    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24137    $rm out/* && rmdir out
24138    cd ..
24139    rmdir conftest
24140    $rm conftest*
24141
24142 fi
24143 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24144 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24145
24146
24147 hard_links="nottested"
24148 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24149   # do not overwrite the value of need_locks provided by the user
24150   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24151 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24152   hard_links=yes
24153   $rm conftest*
24154   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24155   touch conftest.a
24156   ln conftest.a conftest.b 2>&5 || hard_links=no
24157   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24158   { echo "$as_me:$LINENO: result: $hard_links" >&5
24159 echo "${ECHO_T}$hard_links" >&6; }
24160   if test "$hard_links" = no; then
24161     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24162 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24163     need_locks=warn
24164   fi
24165 else
24166   need_locks=no
24167 fi
24168
24169 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24170 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24171
24172   runpath_var=
24173   allow_undefined_flag_GCJ=
24174   enable_shared_with_static_runtimes_GCJ=no
24175   archive_cmds_GCJ=
24176   archive_expsym_cmds_GCJ=
24177   old_archive_From_new_cmds_GCJ=
24178   old_archive_from_expsyms_cmds_GCJ=
24179   export_dynamic_flag_spec_GCJ=
24180   whole_archive_flag_spec_GCJ=
24181   thread_safe_flag_spec_GCJ=
24182   hardcode_libdir_flag_spec_GCJ=
24183   hardcode_libdir_flag_spec_ld_GCJ=
24184   hardcode_libdir_separator_GCJ=
24185   hardcode_direct_GCJ=no
24186   hardcode_minus_L_GCJ=no
24187   hardcode_shlibpath_var_GCJ=unsupported
24188   link_all_deplibs_GCJ=unknown
24189   hardcode_automatic_GCJ=no
24190   module_cmds_GCJ=
24191   module_expsym_cmds_GCJ=
24192   always_export_symbols_GCJ=no
24193   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24194   # include_expsyms should be a list of space-separated symbols to be *always*
24195   # included in the symbol list
24196   include_expsyms_GCJ=
24197   # exclude_expsyms can be an extended regexp of symbols to exclude
24198   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24199   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24200   # as well as any symbol that contains `d'.
24201   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24202   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24203   # platforms (ab)use it in PIC code, but their linkers get confused if
24204   # the symbol is explicitly referenced.  Since portable code cannot
24205   # rely on this symbol name, it's probably fine to never include it in
24206   # preloaded symbol tables.
24207   extract_expsyms_cmds=
24208   # Just being paranoid about ensuring that cc_basename is set.
24209   for cc_temp in $compiler""; do
24210   case $cc_temp in
24211     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24212     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24213     \-*) ;;
24214     *) break;;
24215   esac
24216 done
24217 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24218
24219   case $host_os in
24220   cygwin* | mingw* | pw32*)
24221     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24222     # When not using gcc, we currently assume that we are using
24223     # Microsoft Visual C++.
24224     if test "$GCC" != yes; then
24225       with_gnu_ld=no
24226     fi
24227     ;;
24228   interix*)
24229     # we just hope/assume this is gcc and not c89 (= MSVC++)
24230     with_gnu_ld=yes
24231     ;;
24232   openbsd*)
24233     with_gnu_ld=no
24234     ;;
24235   esac
24236
24237   ld_shlibs_GCJ=yes
24238   if test "$with_gnu_ld" = yes; then
24239     # If archive_cmds runs LD, not CC, wlarc should be empty
24240     wlarc='${wl}'
24241
24242     # Set some defaults for GNU ld with shared library support. These
24243     # are reset later if shared libraries are not supported. Putting them
24244     # here allows them to be overridden if necessary.
24245     runpath_var=LD_RUN_PATH
24246     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24247     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24248     # ancient GNU ld didn't support --whole-archive et. al.
24249     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24250         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24251       else
24252         whole_archive_flag_spec_GCJ=
24253     fi
24254     supports_anon_versioning=no
24255     case `$LD -v 2>/dev/null` in
24256       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24257       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24258       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24259       *\ 2.11.*) ;; # other 2.11 versions
24260       *) supports_anon_versioning=yes ;;
24261     esac
24262
24263     # See if GNU ld supports shared libraries.
24264     case $host_os in
24265     aix3* | aix4* | aix5*)
24266       # On AIX/PPC, the GNU linker is very broken
24267       if test "$host_cpu" != ia64; then
24268         ld_shlibs_GCJ=no
24269         cat <<EOF 1>&2
24270
24271 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24272 *** to be unable to reliably create shared libraries on AIX.
24273 *** Therefore, libtool is disabling shared libraries support.  If you
24274 *** really care for shared libraries, you may want to modify your PATH
24275 *** so that a non-GNU linker is found, and then restart.
24276
24277 EOF
24278       fi
24279       ;;
24280
24281     amigaos*)
24282       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)'
24283       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24284       hardcode_minus_L_GCJ=yes
24285
24286       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24287       # that the semantics of dynamic libraries on AmigaOS, at least up
24288       # to version 4, is to share data among multiple programs linked
24289       # with the same dynamic library.  Since this doesn't match the
24290       # behavior of shared libraries on other platforms, we can't use
24291       # them.
24292       ld_shlibs_GCJ=no
24293       ;;
24294
24295     beos*)
24296       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24297         allow_undefined_flag_GCJ=unsupported
24298         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24299         # support --undefined.  This deserves some investigation.  FIXME
24300         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24301       else
24302         ld_shlibs_GCJ=no
24303       fi
24304       ;;
24305
24306     cygwin* | mingw* | pw32*)
24307       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24308       # as there is no search path for DLLs.
24309       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24310       allow_undefined_flag_GCJ=unsupported
24311       always_export_symbols_GCJ=no
24312       enable_shared_with_static_runtimes_GCJ=yes
24313       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24314
24315       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24316         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24317         # If the export-symbols file already is a .def file (1st line
24318         # is EXPORTS), use it as is; otherwise, prepend...
24319         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24320           cp $export_symbols $output_objdir/$soname.def;
24321         else
24322           echo EXPORTS > $output_objdir/$soname.def;
24323           cat $export_symbols >> $output_objdir/$soname.def;
24324         fi~
24325         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24326       else
24327         ld_shlibs_GCJ=no
24328       fi
24329       ;;
24330
24331     interix3*)
24332       hardcode_direct_GCJ=no
24333       hardcode_shlibpath_var_GCJ=no
24334       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24335       export_dynamic_flag_spec_GCJ='${wl}-E'
24336       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24337       # Instead, shared libraries are loaded at an image base (0x10000000 by
24338       # default) and relocated if they conflict, which is a slow very memory
24339       # consuming and fragmenting process.  To avoid this, we pick a random,
24340       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24341       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24342       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'
24343       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'
24344       ;;
24345
24346     linux*)
24347       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24348         tmp_addflag=
24349         case $cc_basename,$host_cpu in
24350         pgcc*)                          # Portland Group C compiler
24351           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'
24352           tmp_addflag=' $pic_flag'
24353           ;;
24354         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24355           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'
24356           tmp_addflag=' $pic_flag -Mnomain' ;;
24357         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24358           tmp_addflag=' -i_dynamic' ;;
24359         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24360           tmp_addflag=' -i_dynamic -nofor_main' ;;
24361         ifc* | ifort*)                  # Intel Fortran compiler
24362           tmp_addflag=' -nofor_main' ;;
24363         esac
24364         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24365
24366         if test $supports_anon_versioning = yes; then
24367           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24368   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24369   $echo "local: *; };" >> $output_objdir/$libname.ver~
24370           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24371         fi
24372       else
24373         ld_shlibs_GCJ=no
24374       fi
24375       ;;
24376
24377     netbsd*)
24378       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24379         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24380         wlarc=
24381       else
24382         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24383         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24384       fi
24385       ;;
24386
24387     solaris*)
24388       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24389         ld_shlibs_GCJ=no
24390         cat <<EOF 1>&2
24391
24392 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24393 *** create shared libraries on Solaris systems.  Therefore, libtool
24394 *** is disabling shared libraries support.  We urge you to upgrade GNU
24395 *** binutils to release 2.9.1 or newer.  Another option is to modify
24396 *** your PATH or compiler configuration so that the native linker is
24397 *** used, and then restart.
24398
24399 EOF
24400       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24401         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24402         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24403       else
24404         ld_shlibs_GCJ=no
24405       fi
24406       ;;
24407
24408     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24409       case `$LD -v 2>&1` in
24410         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24411         ld_shlibs_GCJ=no
24412         cat <<_LT_EOF 1>&2
24413
24414 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24415 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24416 *** is disabling shared libraries support.  We urge you to upgrade GNU
24417 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24418 *** your PATH or compiler configuration so that the native linker is
24419 *** used, and then restart.
24420
24421 _LT_EOF
24422         ;;
24423         *)
24424           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24425             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24426             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24427             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24428           else
24429             ld_shlibs_GCJ=no
24430           fi
24431         ;;
24432       esac
24433       ;;
24434
24435     sunos4*)
24436       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24437       wlarc=
24438       hardcode_direct_GCJ=yes
24439       hardcode_shlibpath_var_GCJ=no
24440       ;;
24441
24442     *)
24443       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24444         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24445         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24446       else
24447         ld_shlibs_GCJ=no
24448       fi
24449       ;;
24450     esac
24451
24452     if test "$ld_shlibs_GCJ" = no; then
24453       runpath_var=
24454       hardcode_libdir_flag_spec_GCJ=
24455       export_dynamic_flag_spec_GCJ=
24456       whole_archive_flag_spec_GCJ=
24457     fi
24458   else
24459     # PORTME fill in a description of your system's linker (not GNU ld)
24460     case $host_os in
24461     aix3*)
24462       allow_undefined_flag_GCJ=unsupported
24463       always_export_symbols_GCJ=yes
24464       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'
24465       # Note: this linker hardcodes the directories in LIBPATH if there
24466       # are no directories specified by -L.
24467       hardcode_minus_L_GCJ=yes
24468       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24469         # Neither direct hardcoding nor static linking is supported with a
24470         # broken collect2.
24471         hardcode_direct_GCJ=unsupported
24472       fi
24473       ;;
24474
24475     aix4* | aix5*)
24476       if test "$host_cpu" = ia64; then
24477         # On IA64, the linker does run time linking by default, so we don't
24478         # have to do anything special.
24479         aix_use_runtimelinking=no
24480         exp_sym_flag='-Bexport'
24481         no_entry_flag=""
24482       else
24483         # If we're using GNU nm, then we don't want the "-C" option.
24484         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24485         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24486           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'
24487         else
24488           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'
24489         fi
24490         aix_use_runtimelinking=no
24491
24492         # Test if we are trying to use run time linking or normal
24493         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24494         # need to do runtime linking.
24495         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24496           for ld_flag in $LDFLAGS; do
24497           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24498             aix_use_runtimelinking=yes
24499             break
24500           fi
24501           done
24502           ;;
24503         esac
24504
24505         exp_sym_flag='-bexport'
24506         no_entry_flag='-bnoentry'
24507       fi
24508
24509       # When large executables or shared objects are built, AIX ld can
24510       # have problems creating the table of contents.  If linking a library
24511       # or program results in "error TOC overflow" add -mminimal-toc to
24512       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24513       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24514
24515       archive_cmds_GCJ=''
24516       hardcode_direct_GCJ=yes
24517       hardcode_libdir_separator_GCJ=':'
24518       link_all_deplibs_GCJ=yes
24519
24520       if test "$GCC" = yes; then
24521         case $host_os in aix4.[012]|aix4.[012].*)
24522         # We only want to do this on AIX 4.2 and lower, the check
24523         # below for broken collect2 doesn't work under 4.3+
24524           collect2name=`${CC} -print-prog-name=collect2`
24525           if test -f "$collect2name" && \
24526            strings "$collect2name" | grep resolve_lib_name >/dev/null
24527           then
24528           # We have reworked collect2
24529           hardcode_direct_GCJ=yes
24530           else
24531           # We have old collect2
24532           hardcode_direct_GCJ=unsupported
24533           # It fails to find uninstalled libraries when the uninstalled
24534           # path is not listed in the libpath.  Setting hardcode_minus_L
24535           # to unsupported forces relinking
24536           hardcode_minus_L_GCJ=yes
24537           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24538           hardcode_libdir_separator_GCJ=
24539           fi
24540           ;;
24541         esac
24542         shared_flag='-shared'
24543         if test "$aix_use_runtimelinking" = yes; then
24544           shared_flag="$shared_flag "'${wl}-G'
24545         fi
24546       else
24547         # not using gcc
24548         if test "$host_cpu" = ia64; then
24549         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24550         # chokes on -Wl,-G. The following line is correct:
24551           shared_flag='-G'
24552         else
24553           if test "$aix_use_runtimelinking" = yes; then
24554             shared_flag='${wl}-G'
24555           else
24556             shared_flag='${wl}-bM:SRE'
24557           fi
24558         fi
24559       fi
24560
24561       # It seems that -bexpall does not export symbols beginning with
24562       # underscore (_), so it is better to generate a list of symbols to export.
24563       always_export_symbols_GCJ=yes
24564       if test "$aix_use_runtimelinking" = yes; then
24565         # Warning - without using the other runtime loading flags (-brtl),
24566         # -berok will link without error, but may produce a broken library.
24567         allow_undefined_flag_GCJ='-berok'
24568        # Determine the default libpath from the value encoded in an empty executable.
24569        cat >conftest.$ac_ext <<_ACEOF
24570 /* confdefs.h.  */
24571 _ACEOF
24572 cat confdefs.h >>conftest.$ac_ext
24573 cat >>conftest.$ac_ext <<_ACEOF
24574 /* end confdefs.h.  */
24575
24576 int
24577 main ()
24578 {
24579
24580   ;
24581   return 0;
24582 }
24583 _ACEOF
24584 rm -f conftest.$ac_objext conftest$ac_exeext
24585 if { (ac_try="$ac_link"
24586 case "(($ac_try" in
24587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588   *) ac_try_echo=$ac_try;;
24589 esac
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591   (eval "$ac_link") 2>conftest.er1
24592   ac_status=$?
24593   grep -v '^ *+' conftest.er1 >conftest.err
24594   rm -f conftest.er1
24595   cat conftest.err >&5
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); } &&
24598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24599   { (case "(($ac_try" in
24600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601   *) ac_try_echo=$ac_try;;
24602 esac
24603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24604   (eval "$ac_try") 2>&5
24605   ac_status=$?
24606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607   (exit $ac_status); }; } &&
24608          { ac_try='test -s conftest$ac_exeext'
24609   { (case "(($ac_try" in
24610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611   *) ac_try_echo=$ac_try;;
24612 esac
24613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614   (eval "$ac_try") 2>&5
24615   ac_status=$?
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); }; }; then
24618
24619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24620 }'`
24621 # Check for a 64-bit object if we didn't find anything.
24622 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; }
24623 }'`; fi
24624 else
24625   echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24627
24628
24629 fi
24630
24631 rm -f core conftest.err conftest.$ac_objext \
24632       conftest$ac_exeext conftest.$ac_ext
24633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24634
24635        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24636         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"
24637        else
24638         if test "$host_cpu" = ia64; then
24639           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24640           allow_undefined_flag_GCJ="-z nodefs"
24641           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"
24642         else
24643          # Determine the default libpath from the value encoded in an empty executable.
24644          cat >conftest.$ac_ext <<_ACEOF
24645 /* confdefs.h.  */
24646 _ACEOF
24647 cat confdefs.h >>conftest.$ac_ext
24648 cat >>conftest.$ac_ext <<_ACEOF
24649 /* end confdefs.h.  */
24650
24651 int
24652 main ()
24653 {
24654
24655   ;
24656   return 0;
24657 }
24658 _ACEOF
24659 rm -f conftest.$ac_objext conftest$ac_exeext
24660 if { (ac_try="$ac_link"
24661 case "(($ac_try" in
24662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663   *) ac_try_echo=$ac_try;;
24664 esac
24665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666   (eval "$ac_link") 2>conftest.er1
24667   ac_status=$?
24668   grep -v '^ *+' conftest.er1 >conftest.err
24669   rm -f conftest.er1
24670   cat conftest.err >&5
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); } &&
24673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24674   { (case "(($ac_try" in
24675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676   *) ac_try_echo=$ac_try;;
24677 esac
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679   (eval "$ac_try") 2>&5
24680   ac_status=$?
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); }; } &&
24683          { ac_try='test -s conftest$ac_exeext'
24684   { (case "(($ac_try" in
24685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686   *) ac_try_echo=$ac_try;;
24687 esac
24688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689   (eval "$ac_try") 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); }; }; then
24693
24694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24695 }'`
24696 # Check for a 64-bit object if we didn't find anything.
24697 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; }
24698 }'`; fi
24699 else
24700   echo "$as_me: failed program was:" >&5
24701 sed 's/^/| /' conftest.$ac_ext >&5
24702
24703
24704 fi
24705
24706 rm -f core conftest.err conftest.$ac_objext \
24707       conftest$ac_exeext conftest.$ac_ext
24708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24709
24710          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24711           # Warning - without using the other run time loading flags,
24712           # -berok will link without error, but may produce a broken library.
24713           no_undefined_flag_GCJ=' ${wl}-bernotok'
24714           allow_undefined_flag_GCJ=' ${wl}-berok'
24715           # Exported symbols can be pulled into shared objects from archives
24716           whole_archive_flag_spec_GCJ='$convenience'
24717           archive_cmds_need_lc_GCJ=yes
24718           # This is similar to how AIX traditionally builds its shared libraries.
24719           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'
24720         fi
24721       fi
24722       ;;
24723
24724     amigaos*)
24725       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)'
24726       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24727       hardcode_minus_L_GCJ=yes
24728       # see comment about different semantics on the GNU ld section
24729       ld_shlibs_GCJ=no
24730       ;;
24731
24732     bsdi[45]*)
24733       export_dynamic_flag_spec_GCJ=-rdynamic
24734       ;;
24735
24736     cygwin* | mingw* | pw32*)
24737       # When not using gcc, we currently assume that we are using
24738       # Microsoft Visual C++.
24739       # hardcode_libdir_flag_spec is actually meaningless, as there is
24740       # no search path for DLLs.
24741       hardcode_libdir_flag_spec_GCJ=' '
24742       allow_undefined_flag_GCJ=unsupported
24743       # Tell ltmain to make .lib files, not .a files.
24744       libext=lib
24745       # Tell ltmain to make .dll files, not .so files.
24746       shrext_cmds=".dll"
24747       # FIXME: Setting linknames here is a bad hack.
24748       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24749       # The linker will automatically build a .lib file if we build a DLL.
24750       old_archive_From_new_cmds_GCJ='true'
24751       # FIXME: Should let the user specify the lib program.
24752       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24753       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24754       enable_shared_with_static_runtimes_GCJ=yes
24755       ;;
24756
24757     darwin* | rhapsody*)
24758       case $host_os in
24759         rhapsody* | darwin1.[012])
24760          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24761          ;;
24762        *) # Darwin 1.3 on
24763          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24764            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24765          else
24766            case ${MACOSX_DEPLOYMENT_TARGET} in
24767              10.[012])
24768                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24769                ;;
24770              10.*)
24771                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24772                ;;
24773            esac
24774          fi
24775          ;;
24776       esac
24777       archive_cmds_need_lc_GCJ=no
24778       hardcode_direct_GCJ=no
24779       hardcode_automatic_GCJ=yes
24780       hardcode_shlibpath_var_GCJ=unsupported
24781       whole_archive_flag_spec_GCJ=''
24782       link_all_deplibs_GCJ=yes
24783     if test "$GCC" = yes ; then
24784         output_verbose_link_cmd='echo'
24785         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24786       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24787       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24788       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}'
24789       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}'
24790     else
24791       case $cc_basename in
24792         xlc*)
24793          output_verbose_link_cmd='echo'
24794          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24795          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24796           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24797          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}'
24798           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}'
24799           ;;
24800        *)
24801          ld_shlibs_GCJ=no
24802           ;;
24803       esac
24804     fi
24805       ;;
24806
24807     dgux*)
24808       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24809       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24810       hardcode_shlibpath_var_GCJ=no
24811       ;;
24812
24813     freebsd1*)
24814       ld_shlibs_GCJ=no
24815       ;;
24816
24817     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24818     # support.  Future versions do this automatically, but an explicit c++rt0.o
24819     # does not break anything, and helps significantly (at the cost of a little
24820     # extra space).
24821     freebsd2.2*)
24822       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24823       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24824       hardcode_direct_GCJ=yes
24825       hardcode_shlibpath_var_GCJ=no
24826       ;;
24827
24828     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24829     freebsd2*)
24830       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24831       hardcode_direct_GCJ=yes
24832       hardcode_minus_L_GCJ=yes
24833       hardcode_shlibpath_var_GCJ=no
24834       ;;
24835
24836     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24837     freebsd* | kfreebsd*-gnu | dragonfly*)
24838       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24839       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24840       hardcode_direct_GCJ=yes
24841       hardcode_shlibpath_var_GCJ=no
24842       ;;
24843
24844     hpux9*)
24845       if test "$GCC" = yes; then
24846         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'
24847       else
24848         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'
24849       fi
24850       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24851       hardcode_libdir_separator_GCJ=:
24852       hardcode_direct_GCJ=yes
24853
24854       # hardcode_minus_L: Not really in the search PATH,
24855       # but as the default location of the library.
24856       hardcode_minus_L_GCJ=yes
24857       export_dynamic_flag_spec_GCJ='${wl}-E'
24858       ;;
24859
24860     hpux10*)
24861       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24862         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24863       else
24864         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24865       fi
24866       if test "$with_gnu_ld" = no; then
24867         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24868         hardcode_libdir_separator_GCJ=:
24869
24870         hardcode_direct_GCJ=yes
24871         export_dynamic_flag_spec_GCJ='${wl}-E'
24872
24873         # hardcode_minus_L: Not really in the search PATH,
24874         # but as the default location of the library.
24875         hardcode_minus_L_GCJ=yes
24876       fi
24877       ;;
24878
24879     hpux11*)
24880       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24881         case $host_cpu in
24882         hppa*64*)
24883           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24884           ;;
24885         ia64*)
24886           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24887           ;;
24888         *)
24889           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24890           ;;
24891         esac
24892       else
24893         case $host_cpu in
24894         hppa*64*)
24895           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24896           ;;
24897         ia64*)
24898           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24899           ;;
24900         *)
24901           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24902           ;;
24903         esac
24904       fi
24905       if test "$with_gnu_ld" = no; then
24906         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24907         hardcode_libdir_separator_GCJ=:
24908
24909         case $host_cpu in
24910         hppa*64*|ia64*)
24911           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24912           hardcode_direct_GCJ=no
24913           hardcode_shlibpath_var_GCJ=no
24914           ;;
24915         *)
24916           hardcode_direct_GCJ=yes
24917           export_dynamic_flag_spec_GCJ='${wl}-E'
24918
24919           # hardcode_minus_L: Not really in the search PATH,
24920           # but as the default location of the library.
24921           hardcode_minus_L_GCJ=yes
24922           ;;
24923         esac
24924       fi
24925       ;;
24926
24927     irix5* | irix6* | nonstopux*)
24928       if test "$GCC" = yes; then
24929         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'
24930       else
24931         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'
24932         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24933       fi
24934       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24935       hardcode_libdir_separator_GCJ=:
24936       link_all_deplibs_GCJ=yes
24937       ;;
24938
24939     netbsd*)
24940       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24941         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24942       else
24943         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24944       fi
24945       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24946       hardcode_direct_GCJ=yes
24947       hardcode_shlibpath_var_GCJ=no
24948       ;;
24949
24950     newsos6)
24951       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24952       hardcode_direct_GCJ=yes
24953       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24954       hardcode_libdir_separator_GCJ=:
24955       hardcode_shlibpath_var_GCJ=no
24956       ;;
24957
24958     openbsd*)
24959       hardcode_direct_GCJ=yes
24960       hardcode_shlibpath_var_GCJ=no
24961       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24962         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24963         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24964         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24965         export_dynamic_flag_spec_GCJ='${wl}-E'
24966       else
24967        case $host_os in
24968          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24969            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24970            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24971            ;;
24972          *)
24973            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24974            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24975            ;;
24976        esac
24977       fi
24978       ;;
24979
24980     os2*)
24981       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24982       hardcode_minus_L_GCJ=yes
24983       allow_undefined_flag_GCJ=unsupported
24984       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'
24985       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24986       ;;
24987
24988     osf3*)
24989       if test "$GCC" = yes; then
24990         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24991         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'
24992       else
24993         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24994         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'
24995       fi
24996       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24997       hardcode_libdir_separator_GCJ=:
24998       ;;
24999
25000     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25001       if test "$GCC" = yes; then
25002         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25003         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'
25004         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25005       else
25006         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25007         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'
25008         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~
25009         $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'
25010
25011         # Both c and cxx compiler support -rpath directly
25012         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25013       fi
25014       hardcode_libdir_separator_GCJ=:
25015       ;;
25016
25017     solaris*)
25018       no_undefined_flag_GCJ=' -z text'
25019       if test "$GCC" = yes; then
25020         wlarc='${wl}'
25021         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25022         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25023           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25024       else
25025         wlarc=''
25026         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25027         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25028         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25029       fi
25030       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25031       hardcode_shlibpath_var_GCJ=no
25032       case $host_os in
25033       solaris2.[0-5] | solaris2.[0-5].*) ;;
25034       *)
25035         # The compiler driver will combine linker options so we
25036         # cannot just pass the convience library names through
25037         # without $wl, iff we do not link with $LD.
25038         # Luckily, gcc supports the same syntax we need for Sun Studio.
25039         # Supported since Solaris 2.6 (maybe 2.5.1?)
25040         case $wlarc in
25041         '')
25042           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25043         *)
25044           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' ;;
25045         esac ;;
25046       esac
25047       link_all_deplibs_GCJ=yes
25048       ;;
25049
25050     sunos4*)
25051       if test "x$host_vendor" = xsequent; then
25052         # Use $CC to link under sequent, because it throws in some extra .o
25053         # files that make .init and .fini sections work.
25054         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25055       else
25056         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25057       fi
25058       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25059       hardcode_direct_GCJ=yes
25060       hardcode_minus_L_GCJ=yes
25061       hardcode_shlibpath_var_GCJ=no
25062       ;;
25063
25064     sysv4)
25065       case $host_vendor in
25066         sni)
25067           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25068           hardcode_direct_GCJ=yes # is this really true???
25069         ;;
25070         siemens)
25071           ## LD is ld it makes a PLAMLIB
25072           ## CC just makes a GrossModule.
25073           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25074           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25075           hardcode_direct_GCJ=no
25076         ;;
25077         motorola)
25078           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25079           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25080         ;;
25081       esac
25082       runpath_var='LD_RUN_PATH'
25083       hardcode_shlibpath_var_GCJ=no
25084       ;;
25085
25086     sysv4.3*)
25087       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25088       hardcode_shlibpath_var_GCJ=no
25089       export_dynamic_flag_spec_GCJ='-Bexport'
25090       ;;
25091
25092     sysv4*MP*)
25093       if test -d /usr/nec; then
25094         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25095         hardcode_shlibpath_var_GCJ=no
25096         runpath_var=LD_RUN_PATH
25097         hardcode_runpath_var=yes
25098         ld_shlibs_GCJ=yes
25099       fi
25100       ;;
25101
25102     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25103       no_undefined_flag_GCJ='${wl}-z,text'
25104       archive_cmds_need_lc_GCJ=no
25105       hardcode_shlibpath_var_GCJ=no
25106       runpath_var='LD_RUN_PATH'
25107
25108       if test "$GCC" = yes; then
25109         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25110         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25111       else
25112         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25113         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25114       fi
25115       ;;
25116
25117     sysv5* | sco3.2v5* | sco5v6*)
25118       # Note: We can NOT use -z defs as we might desire, because we do not
25119       # link with -lc, and that would cause any symbols used from libc to
25120       # always be unresolved, which means just about no library would
25121       # ever link correctly.  If we're not using GNU ld we use -z text
25122       # though, which does catch some bad symbols but isn't as heavy-handed
25123       # as -z defs.
25124       no_undefined_flag_GCJ='${wl}-z,text'
25125       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25126       archive_cmds_need_lc_GCJ=no
25127       hardcode_shlibpath_var_GCJ=no
25128       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25129       hardcode_libdir_separator_GCJ=':'
25130       link_all_deplibs_GCJ=yes
25131       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25132       runpath_var='LD_RUN_PATH'
25133
25134       if test "$GCC" = yes; then
25135         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25136         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25137       else
25138         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25139         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25140       fi
25141       ;;
25142
25143     uts4*)
25144       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25145       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25146       hardcode_shlibpath_var_GCJ=no
25147       ;;
25148
25149     *)
25150       ld_shlibs_GCJ=no
25151       ;;
25152     esac
25153   fi
25154
25155 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25156 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25157 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25158
25159 #
25160 # Do we need to explicitly link libc?
25161 #
25162 case "x$archive_cmds_need_lc_GCJ" in
25163 x|xyes)
25164   # Assume -lc should be added
25165   archive_cmds_need_lc_GCJ=yes
25166
25167   if test "$enable_shared" = yes && test "$GCC" = yes; then
25168     case $archive_cmds_GCJ in
25169     *'~'*)
25170       # FIXME: we may have to deal with multi-command sequences.
25171       ;;
25172     '$CC '*)
25173       # Test whether the compiler implicitly links with -lc since on some
25174       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25175       # to ld, don't add -lc before -lgcc.
25176       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25177 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25178       $rm conftest*
25179       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25180
25181       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25182   (eval $ac_compile) 2>&5
25183   ac_status=$?
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); } 2>conftest.err; then
25186         soname=conftest
25187         lib=conftest
25188         libobjs=conftest.$ac_objext
25189         deplibs=
25190         wl=$lt_prog_compiler_wl_GCJ
25191         pic_flag=$lt_prog_compiler_pic_GCJ
25192         compiler_flags=-v
25193         linker_flags=-v
25194         verstring=
25195         output_objdir=.
25196         libname=conftest
25197         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25198         allow_undefined_flag_GCJ=
25199         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25200   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25201   ac_status=$?
25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203   (exit $ac_status); }
25204         then
25205           archive_cmds_need_lc_GCJ=no
25206         else
25207           archive_cmds_need_lc_GCJ=yes
25208         fi
25209         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25210       else
25211         cat conftest.err 1>&5
25212       fi
25213       $rm conftest*
25214       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25215 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25216       ;;
25217     esac
25218   fi
25219   ;;
25220 esac
25221
25222 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25223 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25224 library_names_spec=
25225 libname_spec='lib$name'
25226 soname_spec=
25227 shrext_cmds=".so"
25228 postinstall_cmds=
25229 postuninstall_cmds=
25230 finish_cmds=
25231 finish_eval=
25232 shlibpath_var=
25233 shlibpath_overrides_runpath=unknown
25234 version_type=none
25235 dynamic_linker="$host_os ld.so"
25236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25237 if test "$GCC" = yes; then
25238   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25239   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25240     # if the path contains ";" then we assume it to be the separator
25241     # otherwise default to the standard path separator (i.e. ":") - it is
25242     # assumed that no part of a normal pathname contains ";" but that should
25243     # okay in the real world where ";" in dirpaths is itself problematic.
25244     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25245   else
25246     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25247   fi
25248 else
25249   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25250 fi
25251 need_lib_prefix=unknown
25252 hardcode_into_libs=no
25253
25254 # when you set need_version to no, make sure it does not cause -set_version
25255 # flags to be left without arguments
25256 need_version=unknown
25257
25258 case $host_os in
25259 aix3*)
25260   version_type=linux
25261   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25262   shlibpath_var=LIBPATH
25263
25264   # AIX 3 has no versioning support, so we append a major version to the name.
25265   soname_spec='${libname}${release}${shared_ext}$major'
25266   ;;
25267
25268 aix4* | aix5*)
25269   version_type=linux
25270   need_lib_prefix=no
25271   need_version=no
25272   hardcode_into_libs=yes
25273   if test "$host_cpu" = ia64; then
25274     # AIX 5 supports IA64
25275     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25276     shlibpath_var=LD_LIBRARY_PATH
25277   else
25278     # With GCC up to 2.95.x, collect2 would create an import file
25279     # for dependence libraries.  The import file would start with
25280     # the line `#! .'.  This would cause the generated library to
25281     # depend on `.', always an invalid library.  This was fixed in
25282     # development snapshots of GCC prior to 3.0.
25283     case $host_os in
25284       aix4 | aix4.[01] | aix4.[01].*)
25285       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25286            echo ' yes '
25287            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25288         :
25289       else
25290         can_build_shared=no
25291       fi
25292       ;;
25293     esac
25294     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25295     # soname into executable. Probably we can add versioning support to
25296     # collect2, so additional links can be useful in future.
25297     if test "$aix_use_runtimelinking" = yes; then
25298       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25299       # instead of lib<name>.a to let people know that these are not
25300       # typical AIX shared libraries.
25301       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25302     else
25303       # We preserve .a as extension for shared libraries through AIX4.2
25304       # and later when we are not doing run time linking.
25305       library_names_spec='${libname}${release}.a $libname.a'
25306       soname_spec='${libname}${release}${shared_ext}$major'
25307     fi
25308     shlibpath_var=LIBPATH
25309   fi
25310   ;;
25311
25312 amigaos*)
25313   library_names_spec='$libname.ixlibrary $libname.a'
25314   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25315   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'
25316   ;;
25317
25318 beos*)
25319   library_names_spec='${libname}${shared_ext}'
25320   dynamic_linker="$host_os ld.so"
25321   shlibpath_var=LIBRARY_PATH
25322   ;;
25323
25324 bsdi[45]*)
25325   version_type=linux
25326   need_version=no
25327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25328   soname_spec='${libname}${release}${shared_ext}$major'
25329   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25330   shlibpath_var=LD_LIBRARY_PATH
25331   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25332   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25333   # the default ld.so.conf also contains /usr/contrib/lib and
25334   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25335   # libtool to hard-code these into programs
25336   ;;
25337
25338 cygwin* | mingw* | pw32*)
25339   version_type=windows
25340   shrext_cmds=".dll"
25341   need_version=no
25342   need_lib_prefix=no
25343
25344   case $GCC,$host_os in
25345   yes,cygwin* | yes,mingw* | yes,pw32*)
25346     library_names_spec='$libname.dll.a'
25347     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25348     postinstall_cmds='base_file=`basename \${file}`~
25349       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25350       dldir=$destdir/`dirname \$dlpath`~
25351       test -d \$dldir || mkdir -p \$dldir~
25352       $install_prog $dir/$dlname \$dldir/$dlname~
25353       chmod a+x \$dldir/$dlname'
25354     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25355       dlpath=$dir/\$dldll~
25356        $rm \$dlpath'
25357     shlibpath_overrides_runpath=yes
25358
25359     case $host_os in
25360     cygwin*)
25361       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25362       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25363       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25364       ;;
25365     mingw*)
25366       # MinGW DLLs use traditional 'lib' prefix
25367       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25368       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25369       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25370         # It is most probably a Windows format PATH printed by
25371         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25372         # path with ; separators, and with drive letters. We can handle the
25373         # drive letters (cygwin fileutils understands them), so leave them,
25374         # especially as we might pass files found there to a mingw objdump,
25375         # which wouldn't understand a cygwinified path. Ahh.
25376         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25377       else
25378         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25379       fi
25380       ;;
25381     pw32*)
25382       # pw32 DLLs use 'pw' prefix rather than 'lib'
25383       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25384       ;;
25385     esac
25386     ;;
25387
25388   *)
25389     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25390     ;;
25391   esac
25392   dynamic_linker='Win32 ld.exe'
25393   # FIXME: first we should search . and the directory the executable is in
25394   shlibpath_var=PATH
25395   ;;
25396
25397 darwin* | rhapsody*)
25398   dynamic_linker="$host_os dyld"
25399   version_type=darwin
25400   need_lib_prefix=no
25401   need_version=no
25402   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25403   soname_spec='${libname}${release}${major}$shared_ext'
25404   shlibpath_overrides_runpath=yes
25405   shlibpath_var=DYLD_LIBRARY_PATH
25406   shrext_cmds='.dylib'
25407   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25408   if test "$GCC" = yes; then
25409     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"`
25410   else
25411     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25412   fi
25413   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25414   ;;
25415
25416 dgux*)
25417   version_type=linux
25418   need_lib_prefix=no
25419   need_version=no
25420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25421   soname_spec='${libname}${release}${shared_ext}$major'
25422   shlibpath_var=LD_LIBRARY_PATH
25423   ;;
25424
25425 freebsd1*)
25426   dynamic_linker=no
25427   ;;
25428
25429 kfreebsd*-gnu)
25430   version_type=linux
25431   need_lib_prefix=no
25432   need_version=no
25433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25434   soname_spec='${libname}${release}${shared_ext}$major'
25435   shlibpath_var=LD_LIBRARY_PATH
25436   shlibpath_overrides_runpath=no
25437   hardcode_into_libs=yes
25438   dynamic_linker='GNU ld.so'
25439   ;;
25440
25441 freebsd* | dragonfly*)
25442   # DragonFly does not have aout.  When/if they implement a new
25443   # versioning mechanism, adjust this.
25444   if test -x /usr/bin/objformat; then
25445     objformat=`/usr/bin/objformat`
25446   else
25447     case $host_os in
25448     freebsd[123]*) objformat=aout ;;
25449     *) objformat=elf ;;
25450     esac
25451   fi
25452   version_type=freebsd-$objformat
25453   case $version_type in
25454     freebsd-elf*)
25455       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25456       need_version=no
25457       need_lib_prefix=no
25458       ;;
25459     freebsd-*)
25460       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25461       need_version=yes
25462       ;;
25463   esac
25464   shlibpath_var=LD_LIBRARY_PATH
25465   case $host_os in
25466   freebsd2*)
25467     shlibpath_overrides_runpath=yes
25468     ;;
25469   freebsd3.[01]* | freebsdelf3.[01]*)
25470     shlibpath_overrides_runpath=yes
25471     hardcode_into_libs=yes
25472     ;;
25473   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25474   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25475     shlibpath_overrides_runpath=no
25476     hardcode_into_libs=yes
25477     ;;
25478   freebsd*) # from 4.6 on
25479     shlibpath_overrides_runpath=yes
25480     hardcode_into_libs=yes
25481     ;;
25482   esac
25483   ;;
25484
25485 gnu*)
25486   version_type=linux
25487   need_lib_prefix=no
25488   need_version=no
25489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25490   soname_spec='${libname}${release}${shared_ext}$major'
25491   shlibpath_var=LD_LIBRARY_PATH
25492   hardcode_into_libs=yes
25493   ;;
25494
25495 hpux9* | hpux10* | hpux11*)
25496   # Give a soname corresponding to the major version so that dld.sl refuses to
25497   # link against other versions.
25498   version_type=sunos
25499   need_lib_prefix=no
25500   need_version=no
25501   case $host_cpu in
25502   ia64*)
25503     shrext_cmds='.so'
25504     hardcode_into_libs=yes
25505     dynamic_linker="$host_os dld.so"
25506     shlibpath_var=LD_LIBRARY_PATH
25507     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25509     soname_spec='${libname}${release}${shared_ext}$major'
25510     if test "X$HPUX_IA64_MODE" = X32; then
25511       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25512     else
25513       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25514     fi
25515     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25516     ;;
25517    hppa*64*)
25518      shrext_cmds='.sl'
25519      hardcode_into_libs=yes
25520      dynamic_linker="$host_os dld.sl"
25521      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25522      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25523      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25524      soname_spec='${libname}${release}${shared_ext}$major'
25525      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25526      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25527      ;;
25528    *)
25529     shrext_cmds='.sl'
25530     dynamic_linker="$host_os dld.sl"
25531     shlibpath_var=SHLIB_PATH
25532     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25534     soname_spec='${libname}${release}${shared_ext}$major'
25535     ;;
25536   esac
25537   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25538   postinstall_cmds='chmod 555 $lib'
25539   ;;
25540
25541 interix3*)
25542   version_type=linux
25543   need_lib_prefix=no
25544   need_version=no
25545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25546   soname_spec='${libname}${release}${shared_ext}$major'
25547   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25548   shlibpath_var=LD_LIBRARY_PATH
25549   shlibpath_overrides_runpath=no
25550   hardcode_into_libs=yes
25551   ;;
25552
25553 irix5* | irix6* | nonstopux*)
25554   case $host_os in
25555     nonstopux*) version_type=nonstopux ;;
25556     *)
25557         if test "$lt_cv_prog_gnu_ld" = yes; then
25558                 version_type=linux
25559         else
25560                 version_type=irix
25561         fi ;;
25562   esac
25563   need_lib_prefix=no
25564   need_version=no
25565   soname_spec='${libname}${release}${shared_ext}$major'
25566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25567   case $host_os in
25568   irix5* | nonstopux*)
25569     libsuff= shlibsuff=
25570     ;;
25571   *)
25572     case $LD in # libtool.m4 will add one of these switches to LD
25573     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25574       libsuff= shlibsuff= libmagic=32-bit;;
25575     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25576       libsuff=32 shlibsuff=N32 libmagic=N32;;
25577     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25578       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25579     *) libsuff= shlibsuff= libmagic=never-match;;
25580     esac
25581     ;;
25582   esac
25583   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25584   shlibpath_overrides_runpath=no
25585   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25586   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25587   hardcode_into_libs=yes
25588   ;;
25589
25590 # No shared lib support for Linux oldld, aout, or coff.
25591 linux*oldld* | linux*aout* | linux*coff*)
25592   dynamic_linker=no
25593   ;;
25594
25595 # This must be Linux ELF.
25596 linux*)
25597   version_type=linux
25598   need_lib_prefix=no
25599   need_version=no
25600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25601   soname_spec='${libname}${release}${shared_ext}$major'
25602   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25603   shlibpath_var=LD_LIBRARY_PATH
25604   shlibpath_overrides_runpath=no
25605   # This implies no fast_install, which is unacceptable.
25606   # Some rework will be needed to allow for fast_install
25607   # before this can be enabled.
25608   hardcode_into_libs=yes
25609
25610   # Append ld.so.conf contents to the search path
25611   if test -f /etc/ld.so.conf; then
25612     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' ' '`
25613     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25614   fi
25615
25616   # We used to test for /lib/ld.so.1 and disable shared libraries on
25617   # powerpc, because MkLinux only supported shared libraries with the
25618   # GNU dynamic linker.  Since this was broken with cross compilers,
25619   # most powerpc-linux boxes support dynamic linking these days and
25620   # people can always --disable-shared, the test was removed, and we
25621   # assume the GNU/Linux dynamic linker is in use.
25622   dynamic_linker='GNU/Linux ld.so'
25623   ;;
25624
25625 knetbsd*-gnu)
25626   version_type=linux
25627   need_lib_prefix=no
25628   need_version=no
25629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25630   soname_spec='${libname}${release}${shared_ext}$major'
25631   shlibpath_var=LD_LIBRARY_PATH
25632   shlibpath_overrides_runpath=no
25633   hardcode_into_libs=yes
25634   dynamic_linker='GNU ld.so'
25635   ;;
25636
25637 netbsd*)
25638   version_type=sunos
25639   need_lib_prefix=no
25640   need_version=no
25641   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25643     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25644     dynamic_linker='NetBSD (a.out) ld.so'
25645   else
25646     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25647     soname_spec='${libname}${release}${shared_ext}$major'
25648     dynamic_linker='NetBSD ld.elf_so'
25649   fi
25650   shlibpath_var=LD_LIBRARY_PATH
25651   shlibpath_overrides_runpath=yes
25652   hardcode_into_libs=yes
25653   ;;
25654
25655 newsos6)
25656   version_type=linux
25657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25658   shlibpath_var=LD_LIBRARY_PATH
25659   shlibpath_overrides_runpath=yes
25660   ;;
25661
25662 nto-qnx*)
25663   version_type=linux
25664   need_lib_prefix=no
25665   need_version=no
25666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25667   soname_spec='${libname}${release}${shared_ext}$major'
25668   shlibpath_var=LD_LIBRARY_PATH
25669   shlibpath_overrides_runpath=yes
25670   ;;
25671
25672 openbsd*)
25673   version_type=sunos
25674   sys_lib_dlsearch_path_spec="/usr/lib"
25675   need_lib_prefix=no
25676   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25677   case $host_os in
25678     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25679     *)                         need_version=no  ;;
25680   esac
25681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25682   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25683   shlibpath_var=LD_LIBRARY_PATH
25684   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25685     case $host_os in
25686       openbsd2.[89] | openbsd2.[89].*)
25687         shlibpath_overrides_runpath=no
25688         ;;
25689       *)
25690         shlibpath_overrides_runpath=yes
25691         ;;
25692       esac
25693   else
25694     shlibpath_overrides_runpath=yes
25695   fi
25696   ;;
25697
25698 os2*)
25699   libname_spec='$name'
25700   shrext_cmds=".dll"
25701   need_lib_prefix=no
25702   library_names_spec='$libname${shared_ext} $libname.a'
25703   dynamic_linker='OS/2 ld.exe'
25704   shlibpath_var=LIBPATH
25705   ;;
25706
25707 osf3* | osf4* | osf5*)
25708   version_type=osf
25709   need_lib_prefix=no
25710   need_version=no
25711   soname_spec='${libname}${release}${shared_ext}$major'
25712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25713   shlibpath_var=LD_LIBRARY_PATH
25714   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25715   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25716   ;;
25717
25718 solaris*)
25719   version_type=linux
25720   need_lib_prefix=no
25721   need_version=no
25722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25723   soname_spec='${libname}${release}${shared_ext}$major'
25724   shlibpath_var=LD_LIBRARY_PATH
25725   shlibpath_overrides_runpath=yes
25726   hardcode_into_libs=yes
25727   # ldd complains unless libraries are executable
25728   postinstall_cmds='chmod +x $lib'
25729   ;;
25730
25731 sunos4*)
25732   version_type=sunos
25733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25734   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25735   shlibpath_var=LD_LIBRARY_PATH
25736   shlibpath_overrides_runpath=yes
25737   if test "$with_gnu_ld" = yes; then
25738     need_lib_prefix=no
25739   fi
25740   need_version=yes
25741   ;;
25742
25743 sysv4 | sysv4.3*)
25744   version_type=linux
25745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25746   soname_spec='${libname}${release}${shared_ext}$major'
25747   shlibpath_var=LD_LIBRARY_PATH
25748   case $host_vendor in
25749     sni)
25750       shlibpath_overrides_runpath=no
25751       need_lib_prefix=no
25752       export_dynamic_flag_spec='${wl}-Blargedynsym'
25753       runpath_var=LD_RUN_PATH
25754       ;;
25755     siemens)
25756       need_lib_prefix=no
25757       ;;
25758     motorola)
25759       need_lib_prefix=no
25760       need_version=no
25761       shlibpath_overrides_runpath=no
25762       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25763       ;;
25764   esac
25765   ;;
25766
25767 sysv4*MP*)
25768   if test -d /usr/nec ;then
25769     version_type=linux
25770     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25771     soname_spec='$libname${shared_ext}.$major'
25772     shlibpath_var=LD_LIBRARY_PATH
25773   fi
25774   ;;
25775
25776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25777   version_type=freebsd-elf
25778   need_lib_prefix=no
25779   need_version=no
25780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25781   soname_spec='${libname}${release}${shared_ext}$major'
25782   shlibpath_var=LD_LIBRARY_PATH
25783   hardcode_into_libs=yes
25784   if test "$with_gnu_ld" = yes; then
25785     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25786     shlibpath_overrides_runpath=no
25787   else
25788     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25789     shlibpath_overrides_runpath=yes
25790     case $host_os in
25791       sco3.2v5*)
25792         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25793         ;;
25794     esac
25795   fi
25796   sys_lib_dlsearch_path_spec='/usr/lib'
25797   ;;
25798
25799 uts4*)
25800   version_type=linux
25801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25802   soname_spec='${libname}${release}${shared_ext}$major'
25803   shlibpath_var=LD_LIBRARY_PATH
25804   ;;
25805
25806 *)
25807   dynamic_linker=no
25808   ;;
25809 esac
25810 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25811 echo "${ECHO_T}$dynamic_linker" >&6; }
25812 test "$dynamic_linker" = no && can_build_shared=no
25813
25814 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25815 if test "$GCC" = yes; then
25816   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25817 fi
25818
25819 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25820 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25821 hardcode_action_GCJ=
25822 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25823    test -n "$runpath_var_GCJ" || \
25824    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25825
25826   # We can hardcode non-existant directories.
25827   if test "$hardcode_direct_GCJ" != no &&
25828      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25829      # have to relink, otherwise we might link with an installed library
25830      # when we should be linking with a yet-to-be-installed one
25831      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25832      test "$hardcode_minus_L_GCJ" != no; then
25833     # Linking always hardcodes the temporary library directory.
25834     hardcode_action_GCJ=relink
25835   else
25836     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25837     hardcode_action_GCJ=immediate
25838   fi
25839 else
25840   # We cannot hardcode anything, or else we can only hardcode existing
25841   # directories.
25842   hardcode_action_GCJ=unsupported
25843 fi
25844 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25845 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25846
25847 if test "$hardcode_action_GCJ" = relink; then
25848   # Fast installation is not supported
25849   enable_fast_install=no
25850 elif test "$shlibpath_overrides_runpath" = yes ||
25851      test "$enable_shared" = no; then
25852   # Fast installation is not necessary
25853   enable_fast_install=needless
25854 fi
25855
25856
25857 # The else clause should only fire when bootstrapping the
25858 # libtool distribution, otherwise you forgot to ship ltmain.sh
25859 # with your package, and you will get complaints that there are
25860 # no rules to generate ltmain.sh.
25861 if test -f "$ltmain"; then
25862   # See if we are running on zsh, and set the options which allow our commands through
25863   # without removal of \ escapes.
25864   if test -n "${ZSH_VERSION+set}" ; then
25865     setopt NO_GLOB_SUBST
25866   fi
25867   # Now quote all the things that may contain metacharacters while being
25868   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25869   # variables and quote the copies for generation of the libtool script.
25870   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25871     SED SHELL STRIP \
25872     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25873     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25874     deplibs_check_method reload_flag reload_cmds need_locks \
25875     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25876     lt_cv_sys_global_symbol_to_c_name_address \
25877     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25878     old_postinstall_cmds old_postuninstall_cmds \
25879     compiler_GCJ \
25880     CC_GCJ \
25881     LD_GCJ \
25882     lt_prog_compiler_wl_GCJ \
25883     lt_prog_compiler_pic_GCJ \
25884     lt_prog_compiler_static_GCJ \
25885     lt_prog_compiler_no_builtin_flag_GCJ \
25886     export_dynamic_flag_spec_GCJ \
25887     thread_safe_flag_spec_GCJ \
25888     whole_archive_flag_spec_GCJ \
25889     enable_shared_with_static_runtimes_GCJ \
25890     old_archive_cmds_GCJ \
25891     old_archive_from_new_cmds_GCJ \
25892     predep_objects_GCJ \
25893     postdep_objects_GCJ \
25894     predeps_GCJ \
25895     postdeps_GCJ \
25896     compiler_lib_search_path_GCJ \
25897     archive_cmds_GCJ \
25898     archive_expsym_cmds_GCJ \
25899     postinstall_cmds_GCJ \
25900     postuninstall_cmds_GCJ \
25901     old_archive_from_expsyms_cmds_GCJ \
25902     allow_undefined_flag_GCJ \
25903     no_undefined_flag_GCJ \
25904     export_symbols_cmds_GCJ \
25905     hardcode_libdir_flag_spec_GCJ \
25906     hardcode_libdir_flag_spec_ld_GCJ \
25907     hardcode_libdir_separator_GCJ \
25908     hardcode_automatic_GCJ \
25909     module_cmds_GCJ \
25910     module_expsym_cmds_GCJ \
25911     lt_cv_prog_compiler_c_o_GCJ \
25912     exclude_expsyms_GCJ \
25913     include_expsyms_GCJ; do
25914
25915     case $var in
25916     old_archive_cmds_GCJ | \
25917     old_archive_from_new_cmds_GCJ | \
25918     archive_cmds_GCJ | \
25919     archive_expsym_cmds_GCJ | \
25920     module_cmds_GCJ | \
25921     module_expsym_cmds_GCJ | \
25922     old_archive_from_expsyms_cmds_GCJ | \
25923     export_symbols_cmds_GCJ | \
25924     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25925     postinstall_cmds | postuninstall_cmds | \
25926     old_postinstall_cmds | old_postuninstall_cmds | \
25927     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25928       # Double-quote double-evaled strings.
25929       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25930       ;;
25931     *)
25932       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25933       ;;
25934     esac
25935   done
25936
25937   case $lt_echo in
25938   *'\$0 --fallback-echo"')
25939     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25940     ;;
25941   esac
25942
25943 cfgfile="$ofile"
25944
25945   cat <<__EOF__ >> "$cfgfile"
25946 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25947
25948 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25949
25950 # Shell to use when invoking shell scripts.
25951 SHELL=$lt_SHELL
25952
25953 # Whether or not to build shared libraries.
25954 build_libtool_libs=$enable_shared
25955
25956 # Whether or not to build static libraries.
25957 build_old_libs=$enable_static
25958
25959 # Whether or not to add -lc for building shared libraries.
25960 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25961
25962 # Whether or not to disallow shared libs when runtime libs are static
25963 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25964
25965 # Whether or not to optimize for fast installation.
25966 fast_install=$enable_fast_install
25967
25968 # The host system.
25969 host_alias=$host_alias
25970 host=$host
25971 host_os=$host_os
25972
25973 # The build system.
25974 build_alias=$build_alias
25975 build=$build
25976 build_os=$build_os
25977
25978 # An echo program that does not interpret backslashes.
25979 echo=$lt_echo
25980
25981 # The archiver.
25982 AR=$lt_AR
25983 AR_FLAGS=$lt_AR_FLAGS
25984
25985 # A C compiler.
25986 LTCC=$lt_LTCC
25987
25988 # LTCC compiler flags.
25989 LTCFLAGS=$lt_LTCFLAGS
25990
25991 # A language-specific compiler.
25992 CC=$lt_compiler_GCJ
25993
25994 # Is the compiler the GNU C compiler?
25995 with_gcc=$GCC_GCJ
25996
25997 # An ERE matcher.
25998 EGREP=$lt_EGREP
25999
26000 # The linker used to build libraries.
26001 LD=$lt_LD_GCJ
26002
26003 # Whether we need hard or soft links.
26004 LN_S=$lt_LN_S
26005
26006 # A BSD-compatible nm program.
26007 NM=$lt_NM
26008
26009 # A symbol stripping program
26010 STRIP=$lt_STRIP
26011
26012 # Used to examine libraries when file_magic_cmd begins "file"
26013 MAGIC_CMD=$MAGIC_CMD
26014
26015 # Used on cygwin: DLL creation program.
26016 DLLTOOL="$DLLTOOL"
26017
26018 # Used on cygwin: object dumper.
26019 OBJDUMP="$OBJDUMP"
26020
26021 # Used on cygwin: assembler.
26022 AS="$AS"
26023
26024 # The name of the directory that contains temporary libtool files.
26025 objdir=$objdir
26026
26027 # How to create reloadable object files.
26028 reload_flag=$lt_reload_flag
26029 reload_cmds=$lt_reload_cmds
26030
26031 # How to pass a linker flag through the compiler.
26032 wl=$lt_lt_prog_compiler_wl_GCJ
26033
26034 # Object file suffix (normally "o").
26035 objext="$ac_objext"
26036
26037 # Old archive suffix (normally "a").
26038 libext="$libext"
26039
26040 # Shared library suffix (normally ".so").
26041 shrext_cmds='$shrext_cmds'
26042
26043 # Executable file suffix (normally "").
26044 exeext="$exeext"
26045
26046 # Additional compiler flags for building library objects.
26047 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26048 pic_mode=$pic_mode
26049
26050 # What is the maximum length of a command?
26051 max_cmd_len=$lt_cv_sys_max_cmd_len
26052
26053 # Does compiler simultaneously support -c and -o options?
26054 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26055
26056 # Must we lock files when doing compilation?
26057 need_locks=$lt_need_locks
26058
26059 # Do we need the lib prefix for modules?
26060 need_lib_prefix=$need_lib_prefix
26061
26062 # Do we need a version for libraries?
26063 need_version=$need_version
26064
26065 # Whether dlopen is supported.
26066 dlopen_support=$enable_dlopen
26067
26068 # Whether dlopen of programs is supported.
26069 dlopen_self=$enable_dlopen_self
26070
26071 # Whether dlopen of statically linked programs is supported.
26072 dlopen_self_static=$enable_dlopen_self_static
26073
26074 # Compiler flag to prevent dynamic linking.
26075 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26076
26077 # Compiler flag to turn off builtin functions.
26078 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26079
26080 # Compiler flag to allow reflexive dlopens.
26081 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26082
26083 # Compiler flag to generate shared objects directly from archives.
26084 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26085
26086 # Compiler flag to generate thread-safe objects.
26087 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26088
26089 # Library versioning type.
26090 version_type=$version_type
26091
26092 # Format of library name prefix.
26093 libname_spec=$lt_libname_spec
26094
26095 # List of archive names.  First name is the real one, the rest are links.
26096 # The last name is the one that the linker finds with -lNAME.
26097 library_names_spec=$lt_library_names_spec
26098
26099 # The coded name of the library, if different from the real name.
26100 soname_spec=$lt_soname_spec
26101
26102 # Commands used to build and install an old-style archive.
26103 RANLIB=$lt_RANLIB
26104 old_archive_cmds=$lt_old_archive_cmds_GCJ
26105 old_postinstall_cmds=$lt_old_postinstall_cmds
26106 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26107
26108 # Create an old-style archive from a shared archive.
26109 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26110
26111 # Create a temporary old-style archive to link instead of a shared archive.
26112 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26113
26114 # Commands used to build and install a shared archive.
26115 archive_cmds=$lt_archive_cmds_GCJ
26116 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26117 postinstall_cmds=$lt_postinstall_cmds
26118 postuninstall_cmds=$lt_postuninstall_cmds
26119
26120 # Commands used to build a loadable module (assumed same as above if empty)
26121 module_cmds=$lt_module_cmds_GCJ
26122 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26123
26124 # Commands to strip libraries.
26125 old_striplib=$lt_old_striplib
26126 striplib=$lt_striplib
26127
26128 # Dependencies to place before the objects being linked to create a
26129 # shared library.
26130 predep_objects=$lt_predep_objects_GCJ
26131
26132 # Dependencies to place after the objects being linked to create a
26133 # shared library.
26134 postdep_objects=$lt_postdep_objects_GCJ
26135
26136 # Dependencies to place before the objects being linked to create a
26137 # shared library.
26138 predeps=$lt_predeps_GCJ
26139
26140 # Dependencies to place after the objects being linked to create a
26141 # shared library.
26142 postdeps=$lt_postdeps_GCJ
26143
26144 # The library search path used internally by the compiler when linking
26145 # a shared library.
26146 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26147
26148 # Method to check whether dependent libraries are shared objects.
26149 deplibs_check_method=$lt_deplibs_check_method
26150
26151 # Command to use when deplibs_check_method == file_magic.
26152 file_magic_cmd=$lt_file_magic_cmd
26153
26154 # Flag that allows shared libraries with undefined symbols to be built.
26155 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26156
26157 # Flag that forces no undefined symbols.
26158 no_undefined_flag=$lt_no_undefined_flag_GCJ
26159
26160 # Commands used to finish a libtool library installation in a directory.
26161 finish_cmds=$lt_finish_cmds
26162
26163 # Same as above, but a single script fragment to be evaled but not shown.
26164 finish_eval=$lt_finish_eval
26165
26166 # Take the output of nm and produce a listing of raw symbols and C names.
26167 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26168
26169 # Transform the output of nm in a proper C declaration
26170 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26171
26172 # Transform the output of nm in a C name address pair
26173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26174
26175 # This is the shared library runtime path variable.
26176 runpath_var=$runpath_var
26177
26178 # This is the shared library path variable.
26179 shlibpath_var=$shlibpath_var
26180
26181 # Is shlibpath searched before the hard-coded library search path?
26182 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26183
26184 # How to hardcode a shared library path into an executable.
26185 hardcode_action=$hardcode_action_GCJ
26186
26187 # Whether we should hardcode library paths into libraries.
26188 hardcode_into_libs=$hardcode_into_libs
26189
26190 # Flag to hardcode \$libdir into a binary during linking.
26191 # This must work even if \$libdir does not exist.
26192 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26193
26194 # If ld is used when linking, flag to hardcode \$libdir into
26195 # a binary during linking. This must work even if \$libdir does
26196 # not exist.
26197 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26198
26199 # Whether we need a single -rpath flag with a separated argument.
26200 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26201
26202 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26203 # resulting binary.
26204 hardcode_direct=$hardcode_direct_GCJ
26205
26206 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26207 # resulting binary.
26208 hardcode_minus_L=$hardcode_minus_L_GCJ
26209
26210 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26211 # the resulting binary.
26212 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26213
26214 # Set to yes if building a shared library automatically hardcodes DIR into the library
26215 # and all subsequent libraries and executables linked against it.
26216 hardcode_automatic=$hardcode_automatic_GCJ
26217
26218 # Variables whose values should be saved in libtool wrapper scripts and
26219 # restored at relink time.
26220 variables_saved_for_relink="$variables_saved_for_relink"
26221
26222 # Whether libtool must link a program against all its dependency libraries.
26223 link_all_deplibs=$link_all_deplibs_GCJ
26224
26225 # Compile-time system search path for libraries
26226 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26227
26228 # Run-time system search path for libraries
26229 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26230
26231 # Fix the shell variable \$srcfile for the compiler.
26232 fix_srcfile_path="$fix_srcfile_path_GCJ"
26233
26234 # Set to yes if exported symbols are required.
26235 always_export_symbols=$always_export_symbols_GCJ
26236
26237 # The commands to list exported symbols.
26238 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26239
26240 # The commands to extract the exported symbol list from a shared archive.
26241 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26242
26243 # Symbols that should not be listed in the preloaded symbols.
26244 exclude_expsyms=$lt_exclude_expsyms_GCJ
26245
26246 # Symbols that must always be exported.
26247 include_expsyms=$lt_include_expsyms_GCJ
26248
26249 # ### END LIBTOOL TAG CONFIG: $tagname
26250
26251 __EOF__
26252
26253
26254 else
26255   # If there is no Makefile yet, we rely on a make rule to execute
26256   # `config.status --recheck' to rerun these tests and create the
26257   # libtool script then.
26258   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26259   if test -f "$ltmain_in"; then
26260     test -f Makefile && make "$ltmain"
26261   fi
26262 fi
26263
26264
26265 ac_ext=c
26266 ac_cpp='$CPP $CPPFLAGS'
26267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26270
26271 CC="$lt_save_CC"
26272
26273         else
26274           tagname=""
26275         fi
26276         ;;
26277
26278       RC)
26279         ac_ext=c
26280 ac_cpp='$CPP $CPPFLAGS'
26281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26284
26285
26286 # Source file extension for RC test sources.
26287 ac_ext=rc
26288
26289 # Object file extension for compiled RC test sources.
26290 objext=o
26291 objext_RC=$objext
26292
26293 # Code to be used in simple compile tests
26294 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26295
26296 # Code to be used in simple link tests
26297 lt_simple_link_test_code="$lt_simple_compile_test_code"
26298
26299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26300
26301 # If no C compiler was specified, use CC.
26302 LTCC=${LTCC-"$CC"}
26303
26304 # If no C compiler flags were specified, use CFLAGS.
26305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26306
26307 # Allow CC to be a program name with arguments.
26308 compiler=$CC
26309
26310
26311 # save warnings/boilerplate of simple test code
26312 ac_outfile=conftest.$ac_objext
26313 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26314 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26315 _lt_compiler_boilerplate=`cat conftest.err`
26316 $rm conftest*
26317
26318 ac_outfile=conftest.$ac_objext
26319 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26321 _lt_linker_boilerplate=`cat conftest.err`
26322 $rm conftest*
26323
26324
26325 # Allow CC to be a program name with arguments.
26326 lt_save_CC="$CC"
26327 CC=${RC-"windres"}
26328 compiler=$CC
26329 compiler_RC=$CC
26330 for cc_temp in $compiler""; do
26331   case $cc_temp in
26332     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26333     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26334     \-*) ;;
26335     *) break;;
26336   esac
26337 done
26338 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26339
26340 lt_cv_prog_compiler_c_o_RC=yes
26341
26342 # The else clause should only fire when bootstrapping the
26343 # libtool distribution, otherwise you forgot to ship ltmain.sh
26344 # with your package, and you will get complaints that there are
26345 # no rules to generate ltmain.sh.
26346 if test -f "$ltmain"; then
26347   # See if we are running on zsh, and set the options which allow our commands through
26348   # without removal of \ escapes.
26349   if test -n "${ZSH_VERSION+set}" ; then
26350     setopt NO_GLOB_SUBST
26351   fi
26352   # Now quote all the things that may contain metacharacters while being
26353   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26354   # variables and quote the copies for generation of the libtool script.
26355   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26356     SED SHELL STRIP \
26357     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26358     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26359     deplibs_check_method reload_flag reload_cmds need_locks \
26360     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26361     lt_cv_sys_global_symbol_to_c_name_address \
26362     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26363     old_postinstall_cmds old_postuninstall_cmds \
26364     compiler_RC \
26365     CC_RC \
26366     LD_RC \
26367     lt_prog_compiler_wl_RC \
26368     lt_prog_compiler_pic_RC \
26369     lt_prog_compiler_static_RC \
26370     lt_prog_compiler_no_builtin_flag_RC \
26371     export_dynamic_flag_spec_RC \
26372     thread_safe_flag_spec_RC \
26373     whole_archive_flag_spec_RC \
26374     enable_shared_with_static_runtimes_RC \
26375     old_archive_cmds_RC \
26376     old_archive_from_new_cmds_RC \
26377     predep_objects_RC \
26378     postdep_objects_RC \
26379     predeps_RC \
26380     postdeps_RC \
26381     compiler_lib_search_path_RC \
26382     archive_cmds_RC \
26383     archive_expsym_cmds_RC \
26384     postinstall_cmds_RC \
26385     postuninstall_cmds_RC \
26386     old_archive_from_expsyms_cmds_RC \
26387     allow_undefined_flag_RC \
26388     no_undefined_flag_RC \
26389     export_symbols_cmds_RC \
26390     hardcode_libdir_flag_spec_RC \
26391     hardcode_libdir_flag_spec_ld_RC \
26392     hardcode_libdir_separator_RC \
26393     hardcode_automatic_RC \
26394     module_cmds_RC \
26395     module_expsym_cmds_RC \
26396     lt_cv_prog_compiler_c_o_RC \
26397     exclude_expsyms_RC \
26398     include_expsyms_RC; do
26399
26400     case $var in
26401     old_archive_cmds_RC | \
26402     old_archive_from_new_cmds_RC | \
26403     archive_cmds_RC | \
26404     archive_expsym_cmds_RC | \
26405     module_cmds_RC | \
26406     module_expsym_cmds_RC | \
26407     old_archive_from_expsyms_cmds_RC | \
26408     export_symbols_cmds_RC | \
26409     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26410     postinstall_cmds | postuninstall_cmds | \
26411     old_postinstall_cmds | old_postuninstall_cmds | \
26412     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26413       # Double-quote double-evaled strings.
26414       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26415       ;;
26416     *)
26417       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26418       ;;
26419     esac
26420   done
26421
26422   case $lt_echo in
26423   *'\$0 --fallback-echo"')
26424     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26425     ;;
26426   esac
26427
26428 cfgfile="$ofile"
26429
26430   cat <<__EOF__ >> "$cfgfile"
26431 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26432
26433 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26434
26435 # Shell to use when invoking shell scripts.
26436 SHELL=$lt_SHELL
26437
26438 # Whether or not to build shared libraries.
26439 build_libtool_libs=$enable_shared
26440
26441 # Whether or not to build static libraries.
26442 build_old_libs=$enable_static
26443
26444 # Whether or not to add -lc for building shared libraries.
26445 build_libtool_need_lc=$archive_cmds_need_lc_RC
26446
26447 # Whether or not to disallow shared libs when runtime libs are static
26448 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26449
26450 # Whether or not to optimize for fast installation.
26451 fast_install=$enable_fast_install
26452
26453 # The host system.
26454 host_alias=$host_alias
26455 host=$host
26456 host_os=$host_os
26457
26458 # The build system.
26459 build_alias=$build_alias
26460 build=$build
26461 build_os=$build_os
26462
26463 # An echo program that does not interpret backslashes.
26464 echo=$lt_echo
26465
26466 # The archiver.
26467 AR=$lt_AR
26468 AR_FLAGS=$lt_AR_FLAGS
26469
26470 # A C compiler.
26471 LTCC=$lt_LTCC
26472
26473 # LTCC compiler flags.
26474 LTCFLAGS=$lt_LTCFLAGS
26475
26476 # A language-specific compiler.
26477 CC=$lt_compiler_RC
26478
26479 # Is the compiler the GNU C compiler?
26480 with_gcc=$GCC_RC
26481
26482 # An ERE matcher.
26483 EGREP=$lt_EGREP
26484
26485 # The linker used to build libraries.
26486 LD=$lt_LD_RC
26487
26488 # Whether we need hard or soft links.
26489 LN_S=$lt_LN_S
26490
26491 # A BSD-compatible nm program.
26492 NM=$lt_NM
26493
26494 # A symbol stripping program
26495 STRIP=$lt_STRIP
26496
26497 # Used to examine libraries when file_magic_cmd begins "file"
26498 MAGIC_CMD=$MAGIC_CMD
26499
26500 # Used on cygwin: DLL creation program.
26501 DLLTOOL="$DLLTOOL"
26502
26503 # Used on cygwin: object dumper.
26504 OBJDUMP="$OBJDUMP"
26505
26506 # Used on cygwin: assembler.
26507 AS="$AS"
26508
26509 # The name of the directory that contains temporary libtool files.
26510 objdir=$objdir
26511
26512 # How to create reloadable object files.
26513 reload_flag=$lt_reload_flag
26514 reload_cmds=$lt_reload_cmds
26515
26516 # How to pass a linker flag through the compiler.
26517 wl=$lt_lt_prog_compiler_wl_RC
26518
26519 # Object file suffix (normally "o").
26520 objext="$ac_objext"
26521
26522 # Old archive suffix (normally "a").
26523 libext="$libext"
26524
26525 # Shared library suffix (normally ".so").
26526 shrext_cmds='$shrext_cmds'
26527
26528 # Executable file suffix (normally "").
26529 exeext="$exeext"
26530
26531 # Additional compiler flags for building library objects.
26532 pic_flag=$lt_lt_prog_compiler_pic_RC
26533 pic_mode=$pic_mode
26534
26535 # What is the maximum length of a command?
26536 max_cmd_len=$lt_cv_sys_max_cmd_len
26537
26538 # Does compiler simultaneously support -c and -o options?
26539 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26540
26541 # Must we lock files when doing compilation?
26542 need_locks=$lt_need_locks
26543
26544 # Do we need the lib prefix for modules?
26545 need_lib_prefix=$need_lib_prefix
26546
26547 # Do we need a version for libraries?
26548 need_version=$need_version
26549
26550 # Whether dlopen is supported.
26551 dlopen_support=$enable_dlopen
26552
26553 # Whether dlopen of programs is supported.
26554 dlopen_self=$enable_dlopen_self
26555
26556 # Whether dlopen of statically linked programs is supported.
26557 dlopen_self_static=$enable_dlopen_self_static
26558
26559 # Compiler flag to prevent dynamic linking.
26560 link_static_flag=$lt_lt_prog_compiler_static_RC
26561
26562 # Compiler flag to turn off builtin functions.
26563 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26564
26565 # Compiler flag to allow reflexive dlopens.
26566 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26567
26568 # Compiler flag to generate shared objects directly from archives.
26569 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26570
26571 # Compiler flag to generate thread-safe objects.
26572 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26573
26574 # Library versioning type.
26575 version_type=$version_type
26576
26577 # Format of library name prefix.
26578 libname_spec=$lt_libname_spec
26579
26580 # List of archive names.  First name is the real one, the rest are links.
26581 # The last name is the one that the linker finds with -lNAME.
26582 library_names_spec=$lt_library_names_spec
26583
26584 # The coded name of the library, if different from the real name.
26585 soname_spec=$lt_soname_spec
26586
26587 # Commands used to build and install an old-style archive.
26588 RANLIB=$lt_RANLIB
26589 old_archive_cmds=$lt_old_archive_cmds_RC
26590 old_postinstall_cmds=$lt_old_postinstall_cmds
26591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26592
26593 # Create an old-style archive from a shared archive.
26594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26595
26596 # Create a temporary old-style archive to link instead of a shared archive.
26597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26598
26599 # Commands used to build and install a shared archive.
26600 archive_cmds=$lt_archive_cmds_RC
26601 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26602 postinstall_cmds=$lt_postinstall_cmds
26603 postuninstall_cmds=$lt_postuninstall_cmds
26604
26605 # Commands used to build a loadable module (assumed same as above if empty)
26606 module_cmds=$lt_module_cmds_RC
26607 module_expsym_cmds=$lt_module_expsym_cmds_RC
26608
26609 # Commands to strip libraries.
26610 old_striplib=$lt_old_striplib
26611 striplib=$lt_striplib
26612
26613 # Dependencies to place before the objects being linked to create a
26614 # shared library.
26615 predep_objects=$lt_predep_objects_RC
26616
26617 # Dependencies to place after the objects being linked to create a
26618 # shared library.
26619 postdep_objects=$lt_postdep_objects_RC
26620
26621 # Dependencies to place before the objects being linked to create a
26622 # shared library.
26623 predeps=$lt_predeps_RC
26624
26625 # Dependencies to place after the objects being linked to create a
26626 # shared library.
26627 postdeps=$lt_postdeps_RC
26628
26629 # The library search path used internally by the compiler when linking
26630 # a shared library.
26631 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26632
26633 # Method to check whether dependent libraries are shared objects.
26634 deplibs_check_method=$lt_deplibs_check_method
26635
26636 # Command to use when deplibs_check_method == file_magic.
26637 file_magic_cmd=$lt_file_magic_cmd
26638
26639 # Flag that allows shared libraries with undefined symbols to be built.
26640 allow_undefined_flag=$lt_allow_undefined_flag_RC
26641
26642 # Flag that forces no undefined symbols.
26643 no_undefined_flag=$lt_no_undefined_flag_RC
26644
26645 # Commands used to finish a libtool library installation in a directory.
26646 finish_cmds=$lt_finish_cmds
26647
26648 # Same as above, but a single script fragment to be evaled but not shown.
26649 finish_eval=$lt_finish_eval
26650
26651 # Take the output of nm and produce a listing of raw symbols and C names.
26652 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26653
26654 # Transform the output of nm in a proper C declaration
26655 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26656
26657 # Transform the output of nm in a C name address pair
26658 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26659
26660 # This is the shared library runtime path variable.
26661 runpath_var=$runpath_var
26662
26663 # This is the shared library path variable.
26664 shlibpath_var=$shlibpath_var
26665
26666 # Is shlibpath searched before the hard-coded library search path?
26667 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26668
26669 # How to hardcode a shared library path into an executable.
26670 hardcode_action=$hardcode_action_RC
26671
26672 # Whether we should hardcode library paths into libraries.
26673 hardcode_into_libs=$hardcode_into_libs
26674
26675 # Flag to hardcode \$libdir into a binary during linking.
26676 # This must work even if \$libdir does not exist.
26677 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26678
26679 # If ld is used when linking, flag to hardcode \$libdir into
26680 # a binary during linking. This must work even if \$libdir does
26681 # not exist.
26682 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26683
26684 # Whether we need a single -rpath flag with a separated argument.
26685 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26686
26687 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26688 # resulting binary.
26689 hardcode_direct=$hardcode_direct_RC
26690
26691 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26692 # resulting binary.
26693 hardcode_minus_L=$hardcode_minus_L_RC
26694
26695 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26696 # the resulting binary.
26697 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26698
26699 # Set to yes if building a shared library automatically hardcodes DIR into the library
26700 # and all subsequent libraries and executables linked against it.
26701 hardcode_automatic=$hardcode_automatic_RC
26702
26703 # Variables whose values should be saved in libtool wrapper scripts and
26704 # restored at relink time.
26705 variables_saved_for_relink="$variables_saved_for_relink"
26706
26707 # Whether libtool must link a program against all its dependency libraries.
26708 link_all_deplibs=$link_all_deplibs_RC
26709
26710 # Compile-time system search path for libraries
26711 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26712
26713 # Run-time system search path for libraries
26714 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26715
26716 # Fix the shell variable \$srcfile for the compiler.
26717 fix_srcfile_path="$fix_srcfile_path_RC"
26718
26719 # Set to yes if exported symbols are required.
26720 always_export_symbols=$always_export_symbols_RC
26721
26722 # The commands to list exported symbols.
26723 export_symbols_cmds=$lt_export_symbols_cmds_RC
26724
26725 # The commands to extract the exported symbol list from a shared archive.
26726 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26727
26728 # Symbols that should not be listed in the preloaded symbols.
26729 exclude_expsyms=$lt_exclude_expsyms_RC
26730
26731 # Symbols that must always be exported.
26732 include_expsyms=$lt_include_expsyms_RC
26733
26734 # ### END LIBTOOL TAG CONFIG: $tagname
26735
26736 __EOF__
26737
26738
26739 else
26740   # If there is no Makefile yet, we rely on a make rule to execute
26741   # `config.status --recheck' to rerun these tests and create the
26742   # libtool script then.
26743   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26744   if test -f "$ltmain_in"; then
26745     test -f Makefile && make "$ltmain"
26746   fi
26747 fi
26748
26749
26750 ac_ext=c
26751 ac_cpp='$CPP $CPPFLAGS'
26752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26755
26756 CC="$lt_save_CC"
26757
26758         ;;
26759
26760       *)
26761         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26762 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26763    { (exit 1); exit 1; }; }
26764         ;;
26765       esac
26766
26767       # Append the new tag name to the list of available tags.
26768       if test -n "$tagname" ; then
26769       available_tags="$available_tags $tagname"
26770     fi
26771     fi
26772   done
26773   IFS="$lt_save_ifs"
26774
26775   # Now substitute the updated list of available tags.
26776   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26777     mv "${ofile}T" "$ofile"
26778     chmod +x "$ofile"
26779   else
26780     rm -f "${ofile}T"
26781     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26782 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26783    { (exit 1); exit 1; }; }
26784   fi
26785 fi
26786
26787
26788
26789 # This can be used to rebuild libtool when needed
26790 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26791
26792 # Always use our own libtool.
26793 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26794
26795 # Prevent multiple expansion
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817 if test "$lt_cv_dlopen_self" = "yes" ; then
26818
26819 cat >>confdefs.h <<\_ACEOF
26820 #define CAN_DLOPEN_SELF 1
26821 _ACEOF
26822
26823 fi
26824
26825
26826 if test "$WITH_LLVMGCCDIR" = "default" ; then
26827   LLVMGCC="llvm-gcc${EXEEXT}"
26828   LLVMGXX="llvm-g++${EXEEXT}"
26829   LLVMGCCCOMMAND="$LLVMGCC"
26830   LLVMGXXCOMMAND="$LLVMGXX"
26831   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26832
26833   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26834
26835   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26836 set dummy $LLVMGCC; ac_word=$2
26837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26839 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26840   echo $ECHO_N "(cached) $ECHO_C" >&6
26841 else
26842   case $LLVMGCC in
26843   [\\/]* | ?:[\\/]*)
26844   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26845   ;;
26846   *)
26847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26848 for as_dir in $PATH
26849 do
26850   IFS=$as_save_IFS
26851   test -z "$as_dir" && as_dir=.
26852   for ac_exec_ext in '' $ac_executable_extensions; do
26853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26854     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26856     break 2
26857   fi
26858 done
26859 done
26860 IFS=$as_save_IFS
26861
26862   ;;
26863 esac
26864 fi
26865 LLVMGCC=$ac_cv_path_LLVMGCC
26866 if test -n "$LLVMGCC"; then
26867   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26868 echo "${ECHO_T}$LLVMGCC" >&6; }
26869 else
26870   { echo "$as_me:$LINENO: result: no" >&5
26871 echo "${ECHO_T}no" >&6; }
26872 fi
26873
26874
26875   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26876 set dummy $LLVMGXX; ac_word=$2
26877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26879 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26880   echo $ECHO_N "(cached) $ECHO_C" >&6
26881 else
26882   case $LLVMGXX in
26883   [\\/]* | ?:[\\/]*)
26884   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26885   ;;
26886   *)
26887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26888 for as_dir in $PATH
26889 do
26890   IFS=$as_save_IFS
26891   test -z "$as_dir" && as_dir=.
26892   for ac_exec_ext in '' $ac_executable_extensions; do
26893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26894     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26896     break 2
26897   fi
26898 done
26899 done
26900 IFS=$as_save_IFS
26901
26902   ;;
26903 esac
26904 fi
26905 LLVMGXX=$ac_cv_path_LLVMGXX
26906 if test -n "$LLVMGXX"; then
26907   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26908 echo "${ECHO_T}$LLVMGXX" >&6; }
26909 else
26910   { echo "$as_me:$LINENO: result: no" >&5
26911 echo "${ECHO_T}no" >&6; }
26912 fi
26913
26914
26915 else
26916   if test -z "$LLVMGCC"; then
26917     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26918     LLVMGCCCOMMAND="$LLVMGCC"
26919   fi
26920   if test -z "$LLVMGXX"; then
26921     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26922     LLVMGXXCOMMAND="$LLVMGXX"
26923   fi
26924
26925   LLVMGCC=$LLVMGCC
26926
26927   LLVMGXX=$LLVMGXX
26928
26929   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26930
26931   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26932
26933 fi
26934
26935
26936 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26937 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26938
26939 ICC=no
26940 IXX=no
26941 case $CC in
26942   icc*|icpc*)
26943     ICC=yes
26944     IXX=yes
26945     ;;
26946    *)
26947     ;;
26948 esac
26949
26950 if test "$GCC" != "yes" && test "$ICC" != "yes"
26951 then
26952   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26953 echo "$as_me: error: gcc|icc required but not found" >&2;}
26954    { (exit 1); exit 1; }; }
26955 fi
26956
26957 if test "$GXX" != "yes" && test "$IXX" != "yes"
26958 then
26959   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26960 echo "$as_me: error: g++|icc required but not found" >&2;}
26961    { (exit 1); exit 1; }; }
26962 fi
26963
26964 if test "$GCC" = "yes"
26965 then
26966   cat >conftest.$ac_ext <<_ACEOF
26967 #if !defined(__GNUC__) || __GNUC__ < 3
26968 #error Unsupported GCC version
26969 #endif
26970
26971 _ACEOF
26972 rm -f conftest.$ac_objext
26973 if { (ac_try="$ac_compile"
26974 case "(($ac_try" in
26975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976   *) ac_try_echo=$ac_try;;
26977 esac
26978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26979   (eval "$ac_compile") 2>conftest.er1
26980   ac_status=$?
26981   grep -v '^ *+' conftest.er1 >conftest.err
26982   rm -f conftest.er1
26983   cat conftest.err >&5
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); } &&
26986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26987   { (case "(($ac_try" in
26988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989   *) ac_try_echo=$ac_try;;
26990 esac
26991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992   (eval "$ac_try") 2>&5
26993   ac_status=$?
26994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995   (exit $ac_status); }; } &&
26996          { ac_try='test -s conftest.$ac_objext'
26997   { (case "(($ac_try" in
26998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26999   *) ac_try_echo=$ac_try;;
27000 esac
27001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27002   (eval "$ac_try") 2>&5
27003   ac_status=$?
27004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005   (exit $ac_status); }; }; then
27006   :
27007 else
27008   echo "$as_me: failed program was:" >&5
27009 sed 's/^/| /' conftest.$ac_ext >&5
27010
27011         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27012 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27013    { (exit 1); exit 1; }; }
27014 fi
27015
27016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27017 fi
27018
27019 if test -z "$llvm_cv_gnu_make_command"
27020 then
27021   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27022 echo "$as_me: error: GNU Make required but not found" >&2;}
27023    { (exit 1); exit 1; }; }
27024 fi
27025
27026 { echo "$as_me:$LINENO: result: ok" >&5
27027 echo "${ECHO_T}ok" >&6; }
27028
27029
27030
27031 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27032 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27033 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27034   echo $ECHO_N "(cached) $ECHO_C" >&6
27035 else
27036   ac_check_lib_save_LIBS=$LIBS
27037 LIBS="-lelf  $LIBS"
27038 cat >conftest.$ac_ext <<_ACEOF
27039 /* confdefs.h.  */
27040 _ACEOF
27041 cat confdefs.h >>conftest.$ac_ext
27042 cat >>conftest.$ac_ext <<_ACEOF
27043 /* end confdefs.h.  */
27044
27045 /* Override any GCC internal prototype to avoid an error.
27046    Use char because int might match the return type of a GCC
27047    builtin and then its argument prototype would still apply.  */
27048 #ifdef __cplusplus
27049 extern "C"
27050 #endif
27051 char elf_begin ();
27052 int
27053 main ()
27054 {
27055 return elf_begin ();
27056   ;
27057   return 0;
27058 }
27059 _ACEOF
27060 rm -f conftest.$ac_objext conftest$ac_exeext
27061 if { (ac_try="$ac_link"
27062 case "(($ac_try" in
27063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27064   *) ac_try_echo=$ac_try;;
27065 esac
27066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27067   (eval "$ac_link") 2>conftest.er1
27068   ac_status=$?
27069   grep -v '^ *+' conftest.er1 >conftest.err
27070   rm -f conftest.er1
27071   cat conftest.err >&5
27072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073   (exit $ac_status); } &&
27074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27075   { (case "(($ac_try" in
27076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077   *) ac_try_echo=$ac_try;;
27078 esac
27079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080   (eval "$ac_try") 2>&5
27081   ac_status=$?
27082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); }; } &&
27084          { ac_try='test -s conftest$ac_exeext'
27085   { (case "(($ac_try" in
27086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27087   *) ac_try_echo=$ac_try;;
27088 esac
27089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27090   (eval "$ac_try") 2>&5
27091   ac_status=$?
27092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093   (exit $ac_status); }; }; then
27094   ac_cv_lib_elf_elf_begin=yes
27095 else
27096   echo "$as_me: failed program was:" >&5
27097 sed 's/^/| /' conftest.$ac_ext >&5
27098
27099         ac_cv_lib_elf_elf_begin=no
27100 fi
27101
27102 rm -f core conftest.err conftest.$ac_objext \
27103       conftest$ac_exeext conftest.$ac_ext
27104 LIBS=$ac_check_lib_save_LIBS
27105 fi
27106 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27107 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27108 if test $ac_cv_lib_elf_elf_begin = yes; then
27109   cat >>confdefs.h <<_ACEOF
27110 #define HAVE_LIBELF 1
27111 _ACEOF
27112
27113   LIBS="-lelf $LIBS"
27114
27115 fi
27116
27117
27118 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27119 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27120 if test "${ac_cv_lib_m_sin+set}" = set; then
27121   echo $ECHO_N "(cached) $ECHO_C" >&6
27122 else
27123   ac_check_lib_save_LIBS=$LIBS
27124 LIBS="-lm  $LIBS"
27125 cat >conftest.$ac_ext <<_ACEOF
27126 /* confdefs.h.  */
27127 _ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h.  */
27131
27132 /* Override any GCC internal prototype to avoid an error.
27133    Use char because int might match the return type of a GCC
27134    builtin and then its argument prototype would still apply.  */
27135 #ifdef __cplusplus
27136 extern "C"
27137 #endif
27138 char sin ();
27139 int
27140 main ()
27141 {
27142 return sin ();
27143   ;
27144   return 0;
27145 }
27146 _ACEOF
27147 rm -f conftest.$ac_objext conftest$ac_exeext
27148 if { (ac_try="$ac_link"
27149 case "(($ac_try" in
27150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151   *) ac_try_echo=$ac_try;;
27152 esac
27153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27154   (eval "$ac_link") 2>conftest.er1
27155   ac_status=$?
27156   grep -v '^ *+' conftest.er1 >conftest.err
27157   rm -f conftest.er1
27158   cat conftest.err >&5
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); } &&
27161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27162   { (case "(($ac_try" in
27163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164   *) ac_try_echo=$ac_try;;
27165 esac
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167   (eval "$ac_try") 2>&5
27168   ac_status=$?
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); }; } &&
27171          { ac_try='test -s conftest$ac_exeext'
27172   { (case "(($ac_try" in
27173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27174   *) ac_try_echo=$ac_try;;
27175 esac
27176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177   (eval "$ac_try") 2>&5
27178   ac_status=$?
27179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180   (exit $ac_status); }; }; then
27181   ac_cv_lib_m_sin=yes
27182 else
27183   echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27185
27186         ac_cv_lib_m_sin=no
27187 fi
27188
27189 rm -f core conftest.err conftest.$ac_objext \
27190       conftest$ac_exeext conftest.$ac_ext
27191 LIBS=$ac_check_lib_save_LIBS
27192 fi
27193 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27194 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27195 if test $ac_cv_lib_m_sin = yes; then
27196   cat >>confdefs.h <<_ACEOF
27197 #define HAVE_LIBM 1
27198 _ACEOF
27199
27200   LIBS="-lm $LIBS"
27201
27202 fi
27203
27204 if test "$llvm_cv_os_type" = "MingW" ; then
27205
27206 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27207 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27208 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27209   echo $ECHO_N "(cached) $ECHO_C" >&6
27210 else
27211   ac_check_lib_save_LIBS=$LIBS
27212 LIBS="-limagehlp  $LIBS"
27213 cat >conftest.$ac_ext <<_ACEOF
27214 /* confdefs.h.  */
27215 _ACEOF
27216 cat confdefs.h >>conftest.$ac_ext
27217 cat >>conftest.$ac_ext <<_ACEOF
27218 /* end confdefs.h.  */
27219
27220
27221 int
27222 main ()
27223 {
27224 return main ();
27225   ;
27226   return 0;
27227 }
27228 _ACEOF
27229 rm -f conftest.$ac_objext conftest$ac_exeext
27230 if { (ac_try="$ac_link"
27231 case "(($ac_try" in
27232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27233   *) ac_try_echo=$ac_try;;
27234 esac
27235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27236   (eval "$ac_link") 2>conftest.er1
27237   ac_status=$?
27238   grep -v '^ *+' conftest.er1 >conftest.err
27239   rm -f conftest.er1
27240   cat conftest.err >&5
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); } &&
27243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27244   { (case "(($ac_try" in
27245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27246   *) ac_try_echo=$ac_try;;
27247 esac
27248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27249   (eval "$ac_try") 2>&5
27250   ac_status=$?
27251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); }; } &&
27253          { ac_try='test -s conftest$ac_exeext'
27254   { (case "(($ac_try" in
27255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27256   *) ac_try_echo=$ac_try;;
27257 esac
27258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27259   (eval "$ac_try") 2>&5
27260   ac_status=$?
27261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262   (exit $ac_status); }; }; then
27263   ac_cv_lib_imagehlp_main=yes
27264 else
27265   echo "$as_me: failed program was:" >&5
27266 sed 's/^/| /' conftest.$ac_ext >&5
27267
27268         ac_cv_lib_imagehlp_main=no
27269 fi
27270
27271 rm -f core conftest.err conftest.$ac_objext \
27272       conftest$ac_exeext conftest.$ac_ext
27273 LIBS=$ac_check_lib_save_LIBS
27274 fi
27275 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27276 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27277 if test $ac_cv_lib_imagehlp_main = yes; then
27278   cat >>confdefs.h <<_ACEOF
27279 #define HAVE_LIBIMAGEHLP 1
27280 _ACEOF
27281
27282   LIBS="-limagehlp $LIBS"
27283
27284 fi
27285
27286
27287 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27288 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27289 if test "${ac_cv_lib_psapi_main+set}" = set; then
27290   echo $ECHO_N "(cached) $ECHO_C" >&6
27291 else
27292   ac_check_lib_save_LIBS=$LIBS
27293 LIBS="-lpsapi  $LIBS"
27294 cat >conftest.$ac_ext <<_ACEOF
27295 /* confdefs.h.  */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h.  */
27300
27301
27302 int
27303 main ()
27304 {
27305 return main ();
27306   ;
27307   return 0;
27308 }
27309 _ACEOF
27310 rm -f conftest.$ac_objext conftest$ac_exeext
27311 if { (ac_try="$ac_link"
27312 case "(($ac_try" in
27313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314   *) ac_try_echo=$ac_try;;
27315 esac
27316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317   (eval "$ac_link") 2>conftest.er1
27318   ac_status=$?
27319   grep -v '^ *+' conftest.er1 >conftest.err
27320   rm -f conftest.er1
27321   cat conftest.err >&5
27322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323   (exit $ac_status); } &&
27324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27325   { (case "(($ac_try" in
27326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327   *) ac_try_echo=$ac_try;;
27328 esac
27329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27330   (eval "$ac_try") 2>&5
27331   ac_status=$?
27332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333   (exit $ac_status); }; } &&
27334          { ac_try='test -s conftest$ac_exeext'
27335   { (case "(($ac_try" in
27336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27337   *) ac_try_echo=$ac_try;;
27338 esac
27339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340   (eval "$ac_try") 2>&5
27341   ac_status=$?
27342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343   (exit $ac_status); }; }; then
27344   ac_cv_lib_psapi_main=yes
27345 else
27346   echo "$as_me: failed program was:" >&5
27347 sed 's/^/| /' conftest.$ac_ext >&5
27348
27349         ac_cv_lib_psapi_main=no
27350 fi
27351
27352 rm -f core conftest.err conftest.$ac_objext \
27353       conftest$ac_exeext conftest.$ac_ext
27354 LIBS=$ac_check_lib_save_LIBS
27355 fi
27356 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27357 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27358 if test $ac_cv_lib_psapi_main = yes; then
27359   cat >>confdefs.h <<_ACEOF
27360 #define HAVE_LIBPSAPI 1
27361 _ACEOF
27362
27363   LIBS="-lpsapi $LIBS"
27364
27365 fi
27366
27367 fi
27368
27369 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27370 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27371 if test "${ac_cv_search_dlopen+set}" = set; then
27372   echo $ECHO_N "(cached) $ECHO_C" >&6
27373 else
27374   ac_func_search_save_LIBS=$LIBS
27375 cat >conftest.$ac_ext <<_ACEOF
27376 /* confdefs.h.  */
27377 _ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h.  */
27381
27382 /* Override any GCC internal prototype to avoid an error.
27383    Use char because int might match the return type of a GCC
27384    builtin and then its argument prototype would still apply.  */
27385 #ifdef __cplusplus
27386 extern "C"
27387 #endif
27388 char dlopen ();
27389 int
27390 main ()
27391 {
27392 return dlopen ();
27393   ;
27394   return 0;
27395 }
27396 _ACEOF
27397 for ac_lib in '' dl; do
27398   if test -z "$ac_lib"; then
27399     ac_res="none required"
27400   else
27401     ac_res=-l$ac_lib
27402     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27403   fi
27404   rm -f conftest.$ac_objext conftest$ac_exeext
27405 if { (ac_try="$ac_link"
27406 case "(($ac_try" in
27407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408   *) ac_try_echo=$ac_try;;
27409 esac
27410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411   (eval "$ac_link") 2>conftest.er1
27412   ac_status=$?
27413   grep -v '^ *+' conftest.er1 >conftest.err
27414   rm -f conftest.er1
27415   cat conftest.err >&5
27416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); } &&
27418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27419   { (case "(($ac_try" in
27420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421   *) ac_try_echo=$ac_try;;
27422 esac
27423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424   (eval "$ac_try") 2>&5
27425   ac_status=$?
27426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427   (exit $ac_status); }; } &&
27428          { ac_try='test -s conftest$ac_exeext'
27429   { (case "(($ac_try" in
27430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27431   *) ac_try_echo=$ac_try;;
27432 esac
27433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27434   (eval "$ac_try") 2>&5
27435   ac_status=$?
27436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437   (exit $ac_status); }; }; then
27438   ac_cv_search_dlopen=$ac_res
27439 else
27440   echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27442
27443
27444 fi
27445
27446 rm -f core conftest.err conftest.$ac_objext \
27447       conftest$ac_exeext
27448   if test "${ac_cv_search_dlopen+set}" = set; then
27449   break
27450 fi
27451 done
27452 if test "${ac_cv_search_dlopen+set}" = set; then
27453   :
27454 else
27455   ac_cv_search_dlopen=no
27456 fi
27457 rm conftest.$ac_ext
27458 LIBS=$ac_func_search_save_LIBS
27459 fi
27460 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27461 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27462 ac_res=$ac_cv_search_dlopen
27463 if test "$ac_res" != no; then
27464   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27465
27466 cat >>confdefs.h <<\_ACEOF
27467 #define HAVE_DLOPEN 1
27468 _ACEOF
27469
27470 else
27471   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27472 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27473 fi
27474
27475
27476 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27477 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27478 if test "${ac_cv_search_ffi_call+set}" = set; then
27479   echo $ECHO_N "(cached) $ECHO_C" >&6
27480 else
27481   ac_func_search_save_LIBS=$LIBS
27482 cat >conftest.$ac_ext <<_ACEOF
27483 /* confdefs.h.  */
27484 _ACEOF
27485 cat confdefs.h >>conftest.$ac_ext
27486 cat >>conftest.$ac_ext <<_ACEOF
27487 /* end confdefs.h.  */
27488
27489 /* Override any GCC internal prototype to avoid an error.
27490    Use char because int might match the return type of a GCC
27491    builtin and then its argument prototype would still apply.  */
27492 #ifdef __cplusplus
27493 extern "C"
27494 #endif
27495 char ffi_call ();
27496 int
27497 main ()
27498 {
27499 return ffi_call ();
27500   ;
27501   return 0;
27502 }
27503 _ACEOF
27504 for ac_lib in '' ffi; do
27505   if test -z "$ac_lib"; then
27506     ac_res="none required"
27507   else
27508     ac_res=-l$ac_lib
27509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27510   fi
27511   rm -f conftest.$ac_objext conftest$ac_exeext
27512 if { (ac_try="$ac_link"
27513 case "(($ac_try" in
27514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515   *) ac_try_echo=$ac_try;;
27516 esac
27517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518   (eval "$ac_link") 2>conftest.er1
27519   ac_status=$?
27520   grep -v '^ *+' conftest.er1 >conftest.err
27521   rm -f conftest.er1
27522   cat conftest.err >&5
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); } &&
27525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27526   { (case "(($ac_try" in
27527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528   *) ac_try_echo=$ac_try;;
27529 esac
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531   (eval "$ac_try") 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); }; } &&
27535          { ac_try='test -s conftest$ac_exeext'
27536   { (case "(($ac_try" in
27537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538   *) ac_try_echo=$ac_try;;
27539 esac
27540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27541   (eval "$ac_try") 2>&5
27542   ac_status=$?
27543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544   (exit $ac_status); }; }; then
27545   ac_cv_search_ffi_call=$ac_res
27546 else
27547   echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27549
27550
27551 fi
27552
27553 rm -f core conftest.err conftest.$ac_objext \
27554       conftest$ac_exeext
27555   if test "${ac_cv_search_ffi_call+set}" = set; then
27556   break
27557 fi
27558 done
27559 if test "${ac_cv_search_ffi_call+set}" = set; then
27560   :
27561 else
27562   ac_cv_search_ffi_call=no
27563 fi
27564 rm conftest.$ac_ext
27565 LIBS=$ac_func_search_save_LIBS
27566 fi
27567 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27568 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27569 ac_res=$ac_cv_search_ffi_call
27570 if test "$ac_res" != no; then
27571   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27572
27573 cat >>confdefs.h <<\_ACEOF
27574 #define HAVE_FFI_CALL 1
27575 _ACEOF
27576
27577 else
27578   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27579 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27580 fi
27581
27582
27583 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27584 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27585 if test "${ac_cv_search_mallinfo+set}" = set; then
27586   echo $ECHO_N "(cached) $ECHO_C" >&6
27587 else
27588   ac_func_search_save_LIBS=$LIBS
27589 cat >conftest.$ac_ext <<_ACEOF
27590 /* confdefs.h.  */
27591 _ACEOF
27592 cat confdefs.h >>conftest.$ac_ext
27593 cat >>conftest.$ac_ext <<_ACEOF
27594 /* end confdefs.h.  */
27595
27596 /* Override any GCC internal prototype to avoid an error.
27597    Use char because int might match the return type of a GCC
27598    builtin and then its argument prototype would still apply.  */
27599 #ifdef __cplusplus
27600 extern "C"
27601 #endif
27602 char mallinfo ();
27603 int
27604 main ()
27605 {
27606 return mallinfo ();
27607   ;
27608   return 0;
27609 }
27610 _ACEOF
27611 for ac_lib in '' malloc; do
27612   if test -z "$ac_lib"; then
27613     ac_res="none required"
27614   else
27615     ac_res=-l$ac_lib
27616     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27617   fi
27618   rm -f conftest.$ac_objext conftest$ac_exeext
27619 if { (ac_try="$ac_link"
27620 case "(($ac_try" in
27621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622   *) ac_try_echo=$ac_try;;
27623 esac
27624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27625   (eval "$ac_link") 2>conftest.er1
27626   ac_status=$?
27627   grep -v '^ *+' conftest.er1 >conftest.err
27628   rm -f conftest.er1
27629   cat conftest.err >&5
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); } &&
27632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27633   { (case "(($ac_try" in
27634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27635   *) ac_try_echo=$ac_try;;
27636 esac
27637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27638   (eval "$ac_try") 2>&5
27639   ac_status=$?
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); }; } &&
27642          { ac_try='test -s conftest$ac_exeext'
27643   { (case "(($ac_try" in
27644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645   *) ac_try_echo=$ac_try;;
27646 esac
27647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648   (eval "$ac_try") 2>&5
27649   ac_status=$?
27650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); }; }; then
27652   ac_cv_search_mallinfo=$ac_res
27653 else
27654   echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27656
27657
27658 fi
27659
27660 rm -f core conftest.err conftest.$ac_objext \
27661       conftest$ac_exeext
27662   if test "${ac_cv_search_mallinfo+set}" = set; then
27663   break
27664 fi
27665 done
27666 if test "${ac_cv_search_mallinfo+set}" = set; then
27667   :
27668 else
27669   ac_cv_search_mallinfo=no
27670 fi
27671 rm conftest.$ac_ext
27672 LIBS=$ac_func_search_save_LIBS
27673 fi
27674 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27675 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27676 ac_res=$ac_cv_search_mallinfo
27677 if test "$ac_res" != no; then
27678   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27679
27680 cat >>confdefs.h <<\_ACEOF
27681 #define HAVE_MALLINFO 1
27682 _ACEOF
27683
27684 fi
27685
27686
27687 if test "$ENABLE_THREADS" -eq 1 ; then
27688
27689 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27690 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27691 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27692   echo $ECHO_N "(cached) $ECHO_C" >&6
27693 else
27694   ac_check_lib_save_LIBS=$LIBS
27695 LIBS="-lpthread  $LIBS"
27696 cat >conftest.$ac_ext <<_ACEOF
27697 /* confdefs.h.  */
27698 _ACEOF
27699 cat confdefs.h >>conftest.$ac_ext
27700 cat >>conftest.$ac_ext <<_ACEOF
27701 /* end confdefs.h.  */
27702
27703 /* Override any GCC internal prototype to avoid an error.
27704    Use char because int might match the return type of a GCC
27705    builtin and then its argument prototype would still apply.  */
27706 #ifdef __cplusplus
27707 extern "C"
27708 #endif
27709 char pthread_mutex_init ();
27710 int
27711 main ()
27712 {
27713 return pthread_mutex_init ();
27714   ;
27715   return 0;
27716 }
27717 _ACEOF
27718 rm -f conftest.$ac_objext conftest$ac_exeext
27719 if { (ac_try="$ac_link"
27720 case "(($ac_try" in
27721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722   *) ac_try_echo=$ac_try;;
27723 esac
27724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725   (eval "$ac_link") 2>conftest.er1
27726   ac_status=$?
27727   grep -v '^ *+' conftest.er1 >conftest.err
27728   rm -f conftest.er1
27729   cat conftest.err >&5
27730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); } &&
27732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27733   { (case "(($ac_try" in
27734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735   *) ac_try_echo=$ac_try;;
27736 esac
27737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738   (eval "$ac_try") 2>&5
27739   ac_status=$?
27740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741   (exit $ac_status); }; } &&
27742          { ac_try='test -s conftest$ac_exeext'
27743   { (case "(($ac_try" in
27744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745   *) ac_try_echo=$ac_try;;
27746 esac
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748   (eval "$ac_try") 2>&5
27749   ac_status=$?
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); }; }; then
27752   ac_cv_lib_pthread_pthread_mutex_init=yes
27753 else
27754   echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27756
27757         ac_cv_lib_pthread_pthread_mutex_init=no
27758 fi
27759
27760 rm -f core conftest.err conftest.$ac_objext \
27761       conftest$ac_exeext conftest.$ac_ext
27762 LIBS=$ac_check_lib_save_LIBS
27763 fi
27764 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27765 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27766 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27767   cat >>confdefs.h <<_ACEOF
27768 #define HAVE_LIBPTHREAD 1
27769 _ACEOF
27770
27771   LIBS="-lpthread $LIBS"
27772
27773 fi
27774
27775   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27776 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27777 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27778   echo $ECHO_N "(cached) $ECHO_C" >&6
27779 else
27780   ac_func_search_save_LIBS=$LIBS
27781 cat >conftest.$ac_ext <<_ACEOF
27782 /* confdefs.h.  */
27783 _ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h.  */
27787
27788 /* Override any GCC internal prototype to avoid an error.
27789    Use char because int might match the return type of a GCC
27790    builtin and then its argument prototype would still apply.  */
27791 #ifdef __cplusplus
27792 extern "C"
27793 #endif
27794 char pthread_mutex_lock ();
27795 int
27796 main ()
27797 {
27798 return pthread_mutex_lock ();
27799   ;
27800   return 0;
27801 }
27802 _ACEOF
27803 for ac_lib in '' pthread; do
27804   if test -z "$ac_lib"; then
27805     ac_res="none required"
27806   else
27807     ac_res=-l$ac_lib
27808     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27809   fi
27810   rm -f conftest.$ac_objext conftest$ac_exeext
27811 if { (ac_try="$ac_link"
27812 case "(($ac_try" in
27813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814   *) ac_try_echo=$ac_try;;
27815 esac
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817   (eval "$ac_link") 2>conftest.er1
27818   ac_status=$?
27819   grep -v '^ *+' conftest.er1 >conftest.err
27820   rm -f conftest.er1
27821   cat conftest.err >&5
27822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   (exit $ac_status); } &&
27824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27825   { (case "(($ac_try" in
27826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827   *) ac_try_echo=$ac_try;;
27828 esac
27829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27830   (eval "$ac_try") 2>&5
27831   ac_status=$?
27832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833   (exit $ac_status); }; } &&
27834          { ac_try='test -s conftest$ac_exeext'
27835   { (case "(($ac_try" in
27836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837   *) ac_try_echo=$ac_try;;
27838 esac
27839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840   (eval "$ac_try") 2>&5
27841   ac_status=$?
27842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843   (exit $ac_status); }; }; then
27844   ac_cv_search_pthread_mutex_lock=$ac_res
27845 else
27846   echo "$as_me: failed program was:" >&5
27847 sed 's/^/| /' conftest.$ac_ext >&5
27848
27849
27850 fi
27851
27852 rm -f core conftest.err conftest.$ac_objext \
27853       conftest$ac_exeext
27854   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27855   break
27856 fi
27857 done
27858 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27859   :
27860 else
27861   ac_cv_search_pthread_mutex_lock=no
27862 fi
27863 rm conftest.$ac_ext
27864 LIBS=$ac_func_search_save_LIBS
27865 fi
27866 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27867 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27868 ac_res=$ac_cv_search_pthread_mutex_lock
27869 if test "$ac_res" != no; then
27870   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27871
27872 cat >>confdefs.h <<\_ACEOF
27873 #define HAVE_PTHREAD_MUTEX_LOCK 1
27874 _ACEOF
27875
27876 fi
27877
27878 fi
27879
27880
27881 # Check whether --with-udis86 was given.
27882 if test "${with_udis86+set}" = set; then
27883   withval=$with_udis86;
27884       USE_UDIS86=1
27885
27886       case "$withval" in
27887         /usr/lib|yes) ;;
27888         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27889       esac
27890
27891 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27892 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27893 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27894   echo $ECHO_N "(cached) $ECHO_C" >&6
27895 else
27896   ac_check_lib_save_LIBS=$LIBS
27897 LIBS="-ludis86  $LIBS"
27898 cat >conftest.$ac_ext <<_ACEOF
27899 /* confdefs.h.  */
27900 _ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h.  */
27904
27905 /* Override any GCC internal prototype to avoid an error.
27906    Use char because int might match the return type of a GCC
27907    builtin and then its argument prototype would still apply.  */
27908 #ifdef __cplusplus
27909 extern "C"
27910 #endif
27911 char ud_init ();
27912 int
27913 main ()
27914 {
27915 return ud_init ();
27916   ;
27917   return 0;
27918 }
27919 _ACEOF
27920 rm -f conftest.$ac_objext conftest$ac_exeext
27921 if { (ac_try="$ac_link"
27922 case "(($ac_try" in
27923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27924   *) ac_try_echo=$ac_try;;
27925 esac
27926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27927   (eval "$ac_link") 2>conftest.er1
27928   ac_status=$?
27929   grep -v '^ *+' conftest.er1 >conftest.err
27930   rm -f conftest.er1
27931   cat conftest.err >&5
27932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933   (exit $ac_status); } &&
27934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27935   { (case "(($ac_try" in
27936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937   *) ac_try_echo=$ac_try;;
27938 esac
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940   (eval "$ac_try") 2>&5
27941   ac_status=$?
27942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943   (exit $ac_status); }; } &&
27944          { ac_try='test -s conftest$ac_exeext'
27945   { (case "(($ac_try" in
27946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947   *) ac_try_echo=$ac_try;;
27948 esac
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950   (eval "$ac_try") 2>&5
27951   ac_status=$?
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); }; }; then
27954   ac_cv_lib_udis86_ud_init=yes
27955 else
27956   echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27958
27959         ac_cv_lib_udis86_ud_init=no
27960 fi
27961
27962 rm -f core conftest.err conftest.$ac_objext \
27963       conftest$ac_exeext conftest.$ac_ext
27964 LIBS=$ac_check_lib_save_LIBS
27965 fi
27966 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27967 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27968 if test $ac_cv_lib_udis86_ud_init = yes; then
27969   cat >>confdefs.h <<_ACEOF
27970 #define HAVE_LIBUDIS86 1
27971 _ACEOF
27972
27973   LIBS="-ludis86 $LIBS"
27974
27975 else
27976
27977         echo "Error! You need to have libudis86 around."
27978         exit -1
27979
27980 fi
27981
27982
27983 else
27984   USE_UDIS86=0
27985
27986 fi
27987
27988
27989 cat >>confdefs.h <<_ACEOF
27990 #define USE_UDIS86 $USE_UDIS86
27991 _ACEOF
27992
27993
27994
27995
27996
27997
27998
27999
28000 ac_header_dirent=no
28001 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28002   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28003 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28004 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28006   echo $ECHO_N "(cached) $ECHO_C" >&6
28007 else
28008   cat >conftest.$ac_ext <<_ACEOF
28009 /* confdefs.h.  */
28010 _ACEOF
28011 cat confdefs.h >>conftest.$ac_ext
28012 cat >>conftest.$ac_ext <<_ACEOF
28013 /* end confdefs.h.  */
28014 #include <sys/types.h>
28015 #include <$ac_hdr>
28016
28017 int
28018 main ()
28019 {
28020 if ((DIR *) 0)
28021 return 0;
28022   ;
28023   return 0;
28024 }
28025 _ACEOF
28026 rm -f conftest.$ac_objext
28027 if { (ac_try="$ac_compile"
28028 case "(($ac_try" in
28029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030   *) ac_try_echo=$ac_try;;
28031 esac
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033   (eval "$ac_compile") 2>conftest.er1
28034   ac_status=$?
28035   grep -v '^ *+' conftest.er1 >conftest.err
28036   rm -f conftest.er1
28037   cat conftest.err >&5
28038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039   (exit $ac_status); } &&
28040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28041   { (case "(($ac_try" in
28042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28043   *) ac_try_echo=$ac_try;;
28044 esac
28045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28046   (eval "$ac_try") 2>&5
28047   ac_status=$?
28048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049   (exit $ac_status); }; } &&
28050          { ac_try='test -s conftest.$ac_objext'
28051   { (case "(($ac_try" in
28052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28053   *) ac_try_echo=$ac_try;;
28054 esac
28055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28056   (eval "$ac_try") 2>&5
28057   ac_status=$?
28058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059   (exit $ac_status); }; }; then
28060   eval "$as_ac_Header=yes"
28061 else
28062   echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28064
28065         eval "$as_ac_Header=no"
28066 fi
28067
28068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28069 fi
28070 ac_res=`eval echo '${'$as_ac_Header'}'`
28071                { echo "$as_me:$LINENO: result: $ac_res" >&5
28072 echo "${ECHO_T}$ac_res" >&6; }
28073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28074   cat >>confdefs.h <<_ACEOF
28075 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28076 _ACEOF
28077
28078 ac_header_dirent=$ac_hdr; break
28079 fi
28080
28081 done
28082 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28083 if test $ac_header_dirent = dirent.h; then
28084   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28085 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28086 if test "${ac_cv_search_opendir+set}" = set; then
28087   echo $ECHO_N "(cached) $ECHO_C" >&6
28088 else
28089   ac_func_search_save_LIBS=$LIBS
28090 cat >conftest.$ac_ext <<_ACEOF
28091 /* confdefs.h.  */
28092 _ACEOF
28093 cat confdefs.h >>conftest.$ac_ext
28094 cat >>conftest.$ac_ext <<_ACEOF
28095 /* end confdefs.h.  */
28096
28097 /* Override any GCC internal prototype to avoid an error.
28098    Use char because int might match the return type of a GCC
28099    builtin and then its argument prototype would still apply.  */
28100 #ifdef __cplusplus
28101 extern "C"
28102 #endif
28103 char opendir ();
28104 int
28105 main ()
28106 {
28107 return opendir ();
28108   ;
28109   return 0;
28110 }
28111 _ACEOF
28112 for ac_lib in '' dir; do
28113   if test -z "$ac_lib"; then
28114     ac_res="none required"
28115   else
28116     ac_res=-l$ac_lib
28117     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28118   fi
28119   rm -f conftest.$ac_objext conftest$ac_exeext
28120 if { (ac_try="$ac_link"
28121 case "(($ac_try" in
28122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123   *) ac_try_echo=$ac_try;;
28124 esac
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126   (eval "$ac_link") 2>conftest.er1
28127   ac_status=$?
28128   grep -v '^ *+' conftest.er1 >conftest.err
28129   rm -f conftest.er1
28130   cat conftest.err >&5
28131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132   (exit $ac_status); } &&
28133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28134   { (case "(($ac_try" in
28135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136   *) ac_try_echo=$ac_try;;
28137 esac
28138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139   (eval "$ac_try") 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); }; } &&
28143          { ac_try='test -s conftest$ac_exeext'
28144   { (case "(($ac_try" in
28145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146   *) ac_try_echo=$ac_try;;
28147 esac
28148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28149   (eval "$ac_try") 2>&5
28150   ac_status=$?
28151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152   (exit $ac_status); }; }; then
28153   ac_cv_search_opendir=$ac_res
28154 else
28155   echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28157
28158
28159 fi
28160
28161 rm -f core conftest.err conftest.$ac_objext \
28162       conftest$ac_exeext
28163   if test "${ac_cv_search_opendir+set}" = set; then
28164   break
28165 fi
28166 done
28167 if test "${ac_cv_search_opendir+set}" = set; then
28168   :
28169 else
28170   ac_cv_search_opendir=no
28171 fi
28172 rm conftest.$ac_ext
28173 LIBS=$ac_func_search_save_LIBS
28174 fi
28175 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28176 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28177 ac_res=$ac_cv_search_opendir
28178 if test "$ac_res" != no; then
28179   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28180
28181 fi
28182
28183 else
28184   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28185 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28186 if test "${ac_cv_search_opendir+set}" = set; then
28187   echo $ECHO_N "(cached) $ECHO_C" >&6
28188 else
28189   ac_func_search_save_LIBS=$LIBS
28190 cat >conftest.$ac_ext <<_ACEOF
28191 /* confdefs.h.  */
28192 _ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h.  */
28196
28197 /* Override any GCC internal prototype to avoid an error.
28198    Use char because int might match the return type of a GCC
28199    builtin and then its argument prototype would still apply.  */
28200 #ifdef __cplusplus
28201 extern "C"
28202 #endif
28203 char opendir ();
28204 int
28205 main ()
28206 {
28207 return opendir ();
28208   ;
28209   return 0;
28210 }
28211 _ACEOF
28212 for ac_lib in '' x; do
28213   if test -z "$ac_lib"; then
28214     ac_res="none required"
28215   else
28216     ac_res=-l$ac_lib
28217     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28218   fi
28219   rm -f conftest.$ac_objext conftest$ac_exeext
28220 if { (ac_try="$ac_link"
28221 case "(($ac_try" in
28222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28223   *) ac_try_echo=$ac_try;;
28224 esac
28225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28226   (eval "$ac_link") 2>conftest.er1
28227   ac_status=$?
28228   grep -v '^ *+' conftest.er1 >conftest.err
28229   rm -f conftest.er1
28230   cat conftest.err >&5
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); } &&
28233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28234   { (case "(($ac_try" in
28235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28236   *) ac_try_echo=$ac_try;;
28237 esac
28238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28239   (eval "$ac_try") 2>&5
28240   ac_status=$?
28241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242   (exit $ac_status); }; } &&
28243          { ac_try='test -s conftest$ac_exeext'
28244   { (case "(($ac_try" in
28245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246   *) ac_try_echo=$ac_try;;
28247 esac
28248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249   (eval "$ac_try") 2>&5
28250   ac_status=$?
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); }; }; then
28253   ac_cv_search_opendir=$ac_res
28254 else
28255   echo "$as_me: failed program was:" >&5
28256 sed 's/^/| /' conftest.$ac_ext >&5
28257
28258
28259 fi
28260
28261 rm -f core conftest.err conftest.$ac_objext \
28262       conftest$ac_exeext
28263   if test "${ac_cv_search_opendir+set}" = set; then
28264   break
28265 fi
28266 done
28267 if test "${ac_cv_search_opendir+set}" = set; then
28268   :
28269 else
28270   ac_cv_search_opendir=no
28271 fi
28272 rm conftest.$ac_ext
28273 LIBS=$ac_func_search_save_LIBS
28274 fi
28275 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28276 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28277 ac_res=$ac_cv_search_opendir
28278 if test "$ac_res" != no; then
28279   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28280
28281 fi
28282
28283 fi
28284
28285 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28286 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28287 if test "${ac_cv_header_mmap_anon+set}" = set; then
28288   echo $ECHO_N "(cached) $ECHO_C" >&6
28289 else
28290    ac_ext=c
28291 ac_cpp='$CPP $CPPFLAGS'
28292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28295
28296   cat >conftest.$ac_ext <<_ACEOF
28297 /* confdefs.h.  */
28298 _ACEOF
28299 cat confdefs.h >>conftest.$ac_ext
28300 cat >>conftest.$ac_ext <<_ACEOF
28301 /* end confdefs.h.  */
28302 #include <sys/mman.h>
28303 #include <unistd.h>
28304 #include <fcntl.h>
28305 int
28306 main ()
28307 {
28308 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28309   ;
28310   return 0;
28311 }
28312 _ACEOF
28313 rm -f conftest.$ac_objext
28314 if { (ac_try="$ac_compile"
28315 case "(($ac_try" in
28316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28317   *) ac_try_echo=$ac_try;;
28318 esac
28319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28320   (eval "$ac_compile") 2>conftest.er1
28321   ac_status=$?
28322   grep -v '^ *+' conftest.er1 >conftest.err
28323   rm -f conftest.er1
28324   cat conftest.err >&5
28325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326   (exit $ac_status); } &&
28327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28328   { (case "(($ac_try" in
28329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330   *) ac_try_echo=$ac_try;;
28331 esac
28332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333   (eval "$ac_try") 2>&5
28334   ac_status=$?
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); }; } &&
28337          { ac_try='test -s conftest.$ac_objext'
28338   { (case "(($ac_try" in
28339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340   *) ac_try_echo=$ac_try;;
28341 esac
28342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343   (eval "$ac_try") 2>&5
28344   ac_status=$?
28345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346   (exit $ac_status); }; }; then
28347   ac_cv_header_mmap_anon=yes
28348 else
28349   echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28351
28352         ac_cv_header_mmap_anon=no
28353 fi
28354
28355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28356   ac_ext=c
28357 ac_cpp='$CPP $CPPFLAGS'
28358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28361
28362
28363 fi
28364 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28365 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28366 if test "$ac_cv_header_mmap_anon" = yes; then
28367
28368 cat >>confdefs.h <<\_ACEOF
28369 #define HAVE_MMAP_ANONYMOUS 1
28370 _ACEOF
28371
28372 fi
28373
28374 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28375 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28376 if test "${ac_cv_header_stat_broken+set}" = set; then
28377   echo $ECHO_N "(cached) $ECHO_C" >&6
28378 else
28379   cat >conftest.$ac_ext <<_ACEOF
28380 /* confdefs.h.  */
28381 _ACEOF
28382 cat confdefs.h >>conftest.$ac_ext
28383 cat >>conftest.$ac_ext <<_ACEOF
28384 /* end confdefs.h.  */
28385 #include <sys/types.h>
28386 #include <sys/stat.h>
28387
28388 #if defined S_ISBLK && defined S_IFDIR
28389 # if S_ISBLK (S_IFDIR)
28390 You lose.
28391 # endif
28392 #endif
28393
28394 #if defined S_ISBLK && defined S_IFCHR
28395 # if S_ISBLK (S_IFCHR)
28396 You lose.
28397 # endif
28398 #endif
28399
28400 #if defined S_ISLNK && defined S_IFREG
28401 # if S_ISLNK (S_IFREG)
28402 You lose.
28403 # endif
28404 #endif
28405
28406 #if defined S_ISSOCK && defined S_IFREG
28407 # if S_ISSOCK (S_IFREG)
28408 You lose.
28409 # endif
28410 #endif
28411
28412 _ACEOF
28413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28414   $EGREP "You lose" >/dev/null 2>&1; then
28415   ac_cv_header_stat_broken=yes
28416 else
28417   ac_cv_header_stat_broken=no
28418 fi
28419 rm -f conftest*
28420
28421 fi
28422 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28423 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28424 if test $ac_cv_header_stat_broken = yes; then
28425
28426 cat >>confdefs.h <<\_ACEOF
28427 #define STAT_MACROS_BROKEN 1
28428 _ACEOF
28429
28430 fi
28431
28432 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28433 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28434 if test "${ac_cv_header_stdc+set}" = set; then
28435   echo $ECHO_N "(cached) $ECHO_C" >&6
28436 else
28437   cat >conftest.$ac_ext <<_ACEOF
28438 /* confdefs.h.  */
28439 _ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h.  */
28443 #include <stdlib.h>
28444 #include <stdarg.h>
28445 #include <string.h>
28446 #include <float.h>
28447
28448 int
28449 main ()
28450 {
28451
28452   ;
28453   return 0;
28454 }
28455 _ACEOF
28456 rm -f conftest.$ac_objext
28457 if { (ac_try="$ac_compile"
28458 case "(($ac_try" in
28459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460   *) ac_try_echo=$ac_try;;
28461 esac
28462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463   (eval "$ac_compile") 2>conftest.er1
28464   ac_status=$?
28465   grep -v '^ *+' conftest.er1 >conftest.err
28466   rm -f conftest.er1
28467   cat conftest.err >&5
28468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469   (exit $ac_status); } &&
28470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28471   { (case "(($ac_try" in
28472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473   *) ac_try_echo=$ac_try;;
28474 esac
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476   (eval "$ac_try") 2>&5
28477   ac_status=$?
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); }; } &&
28480          { ac_try='test -s conftest.$ac_objext'
28481   { (case "(($ac_try" in
28482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483   *) ac_try_echo=$ac_try;;
28484 esac
28485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486   (eval "$ac_try") 2>&5
28487   ac_status=$?
28488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489   (exit $ac_status); }; }; then
28490   ac_cv_header_stdc=yes
28491 else
28492   echo "$as_me: failed program was:" >&5
28493 sed 's/^/| /' conftest.$ac_ext >&5
28494
28495         ac_cv_header_stdc=no
28496 fi
28497
28498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28499
28500 if test $ac_cv_header_stdc = yes; then
28501   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28502   cat >conftest.$ac_ext <<_ACEOF
28503 /* confdefs.h.  */
28504 _ACEOF
28505 cat confdefs.h >>conftest.$ac_ext
28506 cat >>conftest.$ac_ext <<_ACEOF
28507 /* end confdefs.h.  */
28508 #include <string.h>
28509
28510 _ACEOF
28511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28512   $EGREP "memchr" >/dev/null 2>&1; then
28513   :
28514 else
28515   ac_cv_header_stdc=no
28516 fi
28517 rm -f conftest*
28518
28519 fi
28520
28521 if test $ac_cv_header_stdc = yes; then
28522   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28523   cat >conftest.$ac_ext <<_ACEOF
28524 /* confdefs.h.  */
28525 _ACEOF
28526 cat confdefs.h >>conftest.$ac_ext
28527 cat >>conftest.$ac_ext <<_ACEOF
28528 /* end confdefs.h.  */
28529 #include <stdlib.h>
28530
28531 _ACEOF
28532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28533   $EGREP "free" >/dev/null 2>&1; then
28534   :
28535 else
28536   ac_cv_header_stdc=no
28537 fi
28538 rm -f conftest*
28539
28540 fi
28541
28542 if test $ac_cv_header_stdc = yes; then
28543   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28544   if test "$cross_compiling" = yes; then
28545   :
28546 else
28547   cat >conftest.$ac_ext <<_ACEOF
28548 /* confdefs.h.  */
28549 _ACEOF
28550 cat confdefs.h >>conftest.$ac_ext
28551 cat >>conftest.$ac_ext <<_ACEOF
28552 /* end confdefs.h.  */
28553 #include <ctype.h>
28554 #include <stdlib.h>
28555 #if ((' ' & 0x0FF) == 0x020)
28556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28558 #else
28559 # define ISLOWER(c) \
28560                    (('a' <= (c) && (c) <= 'i') \
28561                      || ('j' <= (c) && (c) <= 'r') \
28562                      || ('s' <= (c) && (c) <= 'z'))
28563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28564 #endif
28565
28566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28567 int
28568 main ()
28569 {
28570   int i;
28571   for (i = 0; i < 256; i++)
28572     if (XOR (islower (i), ISLOWER (i))
28573         || toupper (i) != TOUPPER (i))
28574       return 2;
28575   return 0;
28576 }
28577 _ACEOF
28578 rm -f conftest$ac_exeext
28579 if { (ac_try="$ac_link"
28580 case "(($ac_try" in
28581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582   *) ac_try_echo=$ac_try;;
28583 esac
28584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28585   (eval "$ac_link") 2>&5
28586   ac_status=$?
28587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28589   { (case "(($ac_try" in
28590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591   *) ac_try_echo=$ac_try;;
28592 esac
28593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594   (eval "$ac_try") 2>&5
28595   ac_status=$?
28596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597   (exit $ac_status); }; }; then
28598   :
28599 else
28600   echo "$as_me: program exited with status $ac_status" >&5
28601 echo "$as_me: failed program was:" >&5
28602 sed 's/^/| /' conftest.$ac_ext >&5
28603
28604 ( exit $ac_status )
28605 ac_cv_header_stdc=no
28606 fi
28607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28608 fi
28609
28610
28611 fi
28612 fi
28613 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28614 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28615 if test $ac_cv_header_stdc = yes; then
28616
28617 cat >>confdefs.h <<\_ACEOF
28618 #define STDC_HEADERS 1
28619 _ACEOF
28620
28621 fi
28622
28623 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28624 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28625 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28626   echo $ECHO_N "(cached) $ECHO_C" >&6
28627 else
28628   cat >conftest.$ac_ext <<_ACEOF
28629 /* confdefs.h.  */
28630 _ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h.  */
28634 #include <sys/types.h>
28635 #include <sys/wait.h>
28636 #ifndef WEXITSTATUS
28637 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28638 #endif
28639 #ifndef WIFEXITED
28640 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28641 #endif
28642
28643 int
28644 main ()
28645 {
28646   int s;
28647   wait (&s);
28648   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28649   ;
28650   return 0;
28651 }
28652 _ACEOF
28653 rm -f conftest.$ac_objext
28654 if { (ac_try="$ac_compile"
28655 case "(($ac_try" in
28656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657   *) ac_try_echo=$ac_try;;
28658 esac
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660   (eval "$ac_compile") 2>conftest.er1
28661   ac_status=$?
28662   grep -v '^ *+' conftest.er1 >conftest.err
28663   rm -f conftest.er1
28664   cat conftest.err >&5
28665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666   (exit $ac_status); } &&
28667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28668   { (case "(($ac_try" in
28669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670   *) ac_try_echo=$ac_try;;
28671 esac
28672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673   (eval "$ac_try") 2>&5
28674   ac_status=$?
28675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676   (exit $ac_status); }; } &&
28677          { ac_try='test -s conftest.$ac_objext'
28678   { (case "(($ac_try" in
28679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680   *) ac_try_echo=$ac_try;;
28681 esac
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683   (eval "$ac_try") 2>&5
28684   ac_status=$?
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); }; }; then
28687   ac_cv_header_sys_wait_h=yes
28688 else
28689   echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28691
28692         ac_cv_header_sys_wait_h=no
28693 fi
28694
28695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28696 fi
28697 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28698 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28699 if test $ac_cv_header_sys_wait_h = yes; then
28700
28701 cat >>confdefs.h <<\_ACEOF
28702 #define HAVE_SYS_WAIT_H 1
28703 _ACEOF
28704
28705 fi
28706
28707 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28708 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28709 if test "${ac_cv_header_time+set}" = set; then
28710   echo $ECHO_N "(cached) $ECHO_C" >&6
28711 else
28712   cat >conftest.$ac_ext <<_ACEOF
28713 /* confdefs.h.  */
28714 _ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h.  */
28718 #include <sys/types.h>
28719 #include <sys/time.h>
28720 #include <time.h>
28721
28722 int
28723 main ()
28724 {
28725 if ((struct tm *) 0)
28726 return 0;
28727   ;
28728   return 0;
28729 }
28730 _ACEOF
28731 rm -f conftest.$ac_objext
28732 if { (ac_try="$ac_compile"
28733 case "(($ac_try" in
28734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28735   *) ac_try_echo=$ac_try;;
28736 esac
28737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28738   (eval "$ac_compile") 2>conftest.er1
28739   ac_status=$?
28740   grep -v '^ *+' conftest.er1 >conftest.err
28741   rm -f conftest.er1
28742   cat conftest.err >&5
28743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744   (exit $ac_status); } &&
28745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28746   { (case "(($ac_try" in
28747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748   *) ac_try_echo=$ac_try;;
28749 esac
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751   (eval "$ac_try") 2>&5
28752   ac_status=$?
28753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754   (exit $ac_status); }; } &&
28755          { ac_try='test -s conftest.$ac_objext'
28756   { (case "(($ac_try" in
28757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28758   *) ac_try_echo=$ac_try;;
28759 esac
28760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28761   (eval "$ac_try") 2>&5
28762   ac_status=$?
28763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764   (exit $ac_status); }; }; then
28765   ac_cv_header_time=yes
28766 else
28767   echo "$as_me: failed program was:" >&5
28768 sed 's/^/| /' conftest.$ac_ext >&5
28769
28770         ac_cv_header_time=no
28771 fi
28772
28773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28774 fi
28775 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28776 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28777 if test $ac_cv_header_time = yes; then
28778
28779 cat >>confdefs.h <<\_ACEOF
28780 #define TIME_WITH_SYS_TIME 1
28781 _ACEOF
28782
28783 fi
28784
28785
28786
28787
28788
28789
28790
28791
28792 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28793 do
28794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28796   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28799   echo $ECHO_N "(cached) $ECHO_C" >&6
28800 fi
28801 ac_res=`eval echo '${'$as_ac_Header'}'`
28802                { echo "$as_me:$LINENO: result: $ac_res" >&5
28803 echo "${ECHO_T}$ac_res" >&6; }
28804 else
28805   # Is the header compilable?
28806 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28808 cat >conftest.$ac_ext <<_ACEOF
28809 /* confdefs.h.  */
28810 _ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h.  */
28814 $ac_includes_default
28815 #include <$ac_header>
28816 _ACEOF
28817 rm -f conftest.$ac_objext
28818 if { (ac_try="$ac_compile"
28819 case "(($ac_try" in
28820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821   *) ac_try_echo=$ac_try;;
28822 esac
28823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824   (eval "$ac_compile") 2>conftest.er1
28825   ac_status=$?
28826   grep -v '^ *+' conftest.er1 >conftest.err
28827   rm -f conftest.er1
28828   cat conftest.err >&5
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); } &&
28831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28832   { (case "(($ac_try" in
28833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834   *) ac_try_echo=$ac_try;;
28835 esac
28836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837   (eval "$ac_try") 2>&5
28838   ac_status=$?
28839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); }; } &&
28841          { ac_try='test -s conftest.$ac_objext'
28842   { (case "(($ac_try" in
28843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844   *) ac_try_echo=$ac_try;;
28845 esac
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847   (eval "$ac_try") 2>&5
28848   ac_status=$?
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); }; }; then
28851   ac_header_compiler=yes
28852 else
28853   echo "$as_me: failed program was:" >&5
28854 sed 's/^/| /' conftest.$ac_ext >&5
28855
28856         ac_header_compiler=no
28857 fi
28858
28859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28861 echo "${ECHO_T}$ac_header_compiler" >&6; }
28862
28863 # Is the header present?
28864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28866 cat >conftest.$ac_ext <<_ACEOF
28867 /* confdefs.h.  */
28868 _ACEOF
28869 cat confdefs.h >>conftest.$ac_ext
28870 cat >>conftest.$ac_ext <<_ACEOF
28871 /* end confdefs.h.  */
28872 #include <$ac_header>
28873 _ACEOF
28874 if { (ac_try="$ac_cpp conftest.$ac_ext"
28875 case "(($ac_try" in
28876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28877   *) ac_try_echo=$ac_try;;
28878 esac
28879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28881   ac_status=$?
28882   grep -v '^ *+' conftest.er1 >conftest.err
28883   rm -f conftest.er1
28884   cat conftest.err >&5
28885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886   (exit $ac_status); } >/dev/null; then
28887   if test -s conftest.err; then
28888     ac_cpp_err=$ac_c_preproc_warn_flag
28889     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28890   else
28891     ac_cpp_err=
28892   fi
28893 else
28894   ac_cpp_err=yes
28895 fi
28896 if test -z "$ac_cpp_err"; then
28897   ac_header_preproc=yes
28898 else
28899   echo "$as_me: failed program was:" >&5
28900 sed 's/^/| /' conftest.$ac_ext >&5
28901
28902   ac_header_preproc=no
28903 fi
28904
28905 rm -f conftest.err conftest.$ac_ext
28906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28907 echo "${ECHO_T}$ac_header_preproc" >&6; }
28908
28909 # So?  What about this header?
28910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28911   yes:no: )
28912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28916     ac_header_preproc=yes
28917     ;;
28918   no:yes:* )
28919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28931     ( cat <<\_ASBOX
28932 ## ----------------------------------- ##
28933 ## Report this to llvmbugs@cs.uiuc.edu ##
28934 ## ----------------------------------- ##
28935 _ASBOX
28936      ) | sed "s/^/$as_me: WARNING:     /" >&2
28937     ;;
28938 esac
28939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28942   echo $ECHO_N "(cached) $ECHO_C" >&6
28943 else
28944   eval "$as_ac_Header=\$ac_header_preproc"
28945 fi
28946 ac_res=`eval echo '${'$as_ac_Header'}'`
28947                { echo "$as_me:$LINENO: result: $ac_res" >&5
28948 echo "${ECHO_T}$ac_res" >&6; }
28949
28950 fi
28951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28952   cat >>confdefs.h <<_ACEOF
28953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28954 _ACEOF
28955
28956 fi
28957
28958 done
28959
28960
28961
28962
28963
28964
28965
28966 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28967 do
28968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28970   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28973   echo $ECHO_N "(cached) $ECHO_C" >&6
28974 fi
28975 ac_res=`eval echo '${'$as_ac_Header'}'`
28976                { echo "$as_me:$LINENO: result: $ac_res" >&5
28977 echo "${ECHO_T}$ac_res" >&6; }
28978 else
28979   # Is the header compilable?
28980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28982 cat >conftest.$ac_ext <<_ACEOF
28983 /* confdefs.h.  */
28984 _ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h.  */
28988 $ac_includes_default
28989 #include <$ac_header>
28990 _ACEOF
28991 rm -f conftest.$ac_objext
28992 if { (ac_try="$ac_compile"
28993 case "(($ac_try" in
28994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995   *) ac_try_echo=$ac_try;;
28996 esac
28997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998   (eval "$ac_compile") 2>conftest.er1
28999   ac_status=$?
29000   grep -v '^ *+' conftest.er1 >conftest.err
29001   rm -f conftest.er1
29002   cat conftest.err >&5
29003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004   (exit $ac_status); } &&
29005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29006   { (case "(($ac_try" in
29007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008   *) ac_try_echo=$ac_try;;
29009 esac
29010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011   (eval "$ac_try") 2>&5
29012   ac_status=$?
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); }; } &&
29015          { ac_try='test -s conftest.$ac_objext'
29016   { (case "(($ac_try" in
29017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29018   *) ac_try_echo=$ac_try;;
29019 esac
29020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29021   (eval "$ac_try") 2>&5
29022   ac_status=$?
29023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); }; }; then
29025   ac_header_compiler=yes
29026 else
29027   echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29029
29030         ac_header_compiler=no
29031 fi
29032
29033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29035 echo "${ECHO_T}$ac_header_compiler" >&6; }
29036
29037 # Is the header present?
29038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29040 cat >conftest.$ac_ext <<_ACEOF
29041 /* confdefs.h.  */
29042 _ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h.  */
29046 #include <$ac_header>
29047 _ACEOF
29048 if { (ac_try="$ac_cpp conftest.$ac_ext"
29049 case "(($ac_try" in
29050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051   *) ac_try_echo=$ac_try;;
29052 esac
29053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29055   ac_status=$?
29056   grep -v '^ *+' conftest.er1 >conftest.err
29057   rm -f conftest.er1
29058   cat conftest.err >&5
29059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060   (exit $ac_status); } >/dev/null; then
29061   if test -s conftest.err; then
29062     ac_cpp_err=$ac_c_preproc_warn_flag
29063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29064   else
29065     ac_cpp_err=
29066   fi
29067 else
29068   ac_cpp_err=yes
29069 fi
29070 if test -z "$ac_cpp_err"; then
29071   ac_header_preproc=yes
29072 else
29073   echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29075
29076   ac_header_preproc=no
29077 fi
29078
29079 rm -f conftest.err conftest.$ac_ext
29080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29081 echo "${ECHO_T}$ac_header_preproc" >&6; }
29082
29083 # So?  What about this header?
29084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29085   yes:no: )
29086     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29090     ac_header_preproc=yes
29091     ;;
29092   no:yes:* )
29093     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29095     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29096 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29097     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29099     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29100 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29103     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29105     ( cat <<\_ASBOX
29106 ## ----------------------------------- ##
29107 ## Report this to llvmbugs@cs.uiuc.edu ##
29108 ## ----------------------------------- ##
29109 _ASBOX
29110      ) | sed "s/^/$as_me: WARNING:     /" >&2
29111     ;;
29112 esac
29113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29116   echo $ECHO_N "(cached) $ECHO_C" >&6
29117 else
29118   eval "$as_ac_Header=\$ac_header_preproc"
29119 fi
29120 ac_res=`eval echo '${'$as_ac_Header'}'`
29121                { echo "$as_me:$LINENO: result: $ac_res" >&5
29122 echo "${ECHO_T}$ac_res" >&6; }
29123
29124 fi
29125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29126   cat >>confdefs.h <<_ACEOF
29127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29128 _ACEOF
29129
29130 fi
29131
29132 done
29133
29134
29135 for ac_header in windows.h
29136 do
29137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29139   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29142   echo $ECHO_N "(cached) $ECHO_C" >&6
29143 fi
29144 ac_res=`eval echo '${'$as_ac_Header'}'`
29145                { echo "$as_me:$LINENO: result: $ac_res" >&5
29146 echo "${ECHO_T}$ac_res" >&6; }
29147 else
29148   # Is the header compilable?
29149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29151 cat >conftest.$ac_ext <<_ACEOF
29152 /* confdefs.h.  */
29153 _ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h.  */
29157 $ac_includes_default
29158 #include <$ac_header>
29159 _ACEOF
29160 rm -f conftest.$ac_objext
29161 if { (ac_try="$ac_compile"
29162 case "(($ac_try" in
29163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164   *) ac_try_echo=$ac_try;;
29165 esac
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167   (eval "$ac_compile") 2>conftest.er1
29168   ac_status=$?
29169   grep -v '^ *+' conftest.er1 >conftest.err
29170   rm -f conftest.er1
29171   cat conftest.err >&5
29172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173   (exit $ac_status); } &&
29174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29175   { (case "(($ac_try" in
29176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29177   *) ac_try_echo=$ac_try;;
29178 esac
29179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29180   (eval "$ac_try") 2>&5
29181   ac_status=$?
29182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183   (exit $ac_status); }; } &&
29184          { ac_try='test -s conftest.$ac_objext'
29185   { (case "(($ac_try" in
29186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29187   *) ac_try_echo=$ac_try;;
29188 esac
29189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29190   (eval "$ac_try") 2>&5
29191   ac_status=$?
29192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193   (exit $ac_status); }; }; then
29194   ac_header_compiler=yes
29195 else
29196   echo "$as_me: failed program was:" >&5
29197 sed 's/^/| /' conftest.$ac_ext >&5
29198
29199         ac_header_compiler=no
29200 fi
29201
29202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29204 echo "${ECHO_T}$ac_header_compiler" >&6; }
29205
29206 # Is the header present?
29207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29209 cat >conftest.$ac_ext <<_ACEOF
29210 /* confdefs.h.  */
29211 _ACEOF
29212 cat confdefs.h >>conftest.$ac_ext
29213 cat >>conftest.$ac_ext <<_ACEOF
29214 /* end confdefs.h.  */
29215 #include <$ac_header>
29216 _ACEOF
29217 if { (ac_try="$ac_cpp conftest.$ac_ext"
29218 case "(($ac_try" in
29219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220   *) ac_try_echo=$ac_try;;
29221 esac
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29224   ac_status=$?
29225   grep -v '^ *+' conftest.er1 >conftest.err
29226   rm -f conftest.er1
29227   cat conftest.err >&5
29228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); } >/dev/null; then
29230   if test -s conftest.err; then
29231     ac_cpp_err=$ac_c_preproc_warn_flag
29232     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29233   else
29234     ac_cpp_err=
29235   fi
29236 else
29237   ac_cpp_err=yes
29238 fi
29239 if test -z "$ac_cpp_err"; then
29240   ac_header_preproc=yes
29241 else
29242   echo "$as_me: failed program was:" >&5
29243 sed 's/^/| /' conftest.$ac_ext >&5
29244
29245   ac_header_preproc=no
29246 fi
29247
29248 rm -f conftest.err conftest.$ac_ext
29249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29250 echo "${ECHO_T}$ac_header_preproc" >&6; }
29251
29252 # So?  What about this header?
29253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29254   yes:no: )
29255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29259     ac_header_preproc=yes
29260     ;;
29261   no:yes:* )
29262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29274     ( cat <<\_ASBOX
29275 ## ----------------------------------- ##
29276 ## Report this to llvmbugs@cs.uiuc.edu ##
29277 ## ----------------------------------- ##
29278 _ASBOX
29279      ) | sed "s/^/$as_me: WARNING:     /" >&2
29280     ;;
29281 esac
29282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29285   echo $ECHO_N "(cached) $ECHO_C" >&6
29286 else
29287   eval "$as_ac_Header=\$ac_header_preproc"
29288 fi
29289 ac_res=`eval echo '${'$as_ac_Header'}'`
29290                { echo "$as_me:$LINENO: result: $ac_res" >&5
29291 echo "${ECHO_T}$ac_res" >&6; }
29292
29293 fi
29294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29295   cat >>confdefs.h <<_ACEOF
29296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29297 _ACEOF
29298
29299 fi
29300
29301 done
29302
29303
29304
29305
29306
29307 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29308 do
29309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29311   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29314   echo $ECHO_N "(cached) $ECHO_C" >&6
29315 fi
29316 ac_res=`eval echo '${'$as_ac_Header'}'`
29317                { echo "$as_me:$LINENO: result: $ac_res" >&5
29318 echo "${ECHO_T}$ac_res" >&6; }
29319 else
29320   # Is the header compilable?
29321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29323 cat >conftest.$ac_ext <<_ACEOF
29324 /* confdefs.h.  */
29325 _ACEOF
29326 cat confdefs.h >>conftest.$ac_ext
29327 cat >>conftest.$ac_ext <<_ACEOF
29328 /* end confdefs.h.  */
29329 $ac_includes_default
29330 #include <$ac_header>
29331 _ACEOF
29332 rm -f conftest.$ac_objext
29333 if { (ac_try="$ac_compile"
29334 case "(($ac_try" in
29335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29336   *) ac_try_echo=$ac_try;;
29337 esac
29338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29339   (eval "$ac_compile") 2>conftest.er1
29340   ac_status=$?
29341   grep -v '^ *+' conftest.er1 >conftest.err
29342   rm -f conftest.er1
29343   cat conftest.err >&5
29344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345   (exit $ac_status); } &&
29346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29347   { (case "(($ac_try" in
29348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29349   *) ac_try_echo=$ac_try;;
29350 esac
29351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352   (eval "$ac_try") 2>&5
29353   ac_status=$?
29354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355   (exit $ac_status); }; } &&
29356          { ac_try='test -s conftest.$ac_objext'
29357   { (case "(($ac_try" in
29358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29359   *) ac_try_echo=$ac_try;;
29360 esac
29361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29362   (eval "$ac_try") 2>&5
29363   ac_status=$?
29364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365   (exit $ac_status); }; }; then
29366   ac_header_compiler=yes
29367 else
29368   echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29370
29371         ac_header_compiler=no
29372 fi
29373
29374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29376 echo "${ECHO_T}$ac_header_compiler" >&6; }
29377
29378 # Is the header present?
29379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29381 cat >conftest.$ac_ext <<_ACEOF
29382 /* confdefs.h.  */
29383 _ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h.  */
29387 #include <$ac_header>
29388 _ACEOF
29389 if { (ac_try="$ac_cpp conftest.$ac_ext"
29390 case "(($ac_try" in
29391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392   *) ac_try_echo=$ac_try;;
29393 esac
29394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29396   ac_status=$?
29397   grep -v '^ *+' conftest.er1 >conftest.err
29398   rm -f conftest.er1
29399   cat conftest.err >&5
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); } >/dev/null; then
29402   if test -s conftest.err; then
29403     ac_cpp_err=$ac_c_preproc_warn_flag
29404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29405   else
29406     ac_cpp_err=
29407   fi
29408 else
29409   ac_cpp_err=yes
29410 fi
29411 if test -z "$ac_cpp_err"; then
29412   ac_header_preproc=yes
29413 else
29414   echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29416
29417   ac_header_preproc=no
29418 fi
29419
29420 rm -f conftest.err conftest.$ac_ext
29421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29422 echo "${ECHO_T}$ac_header_preproc" >&6; }
29423
29424 # So?  What about this header?
29425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29426   yes:no: )
29427     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29431     ac_header_preproc=yes
29432     ;;
29433   no:yes:* )
29434     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29436     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29437 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29438     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29440     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29441 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29444     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29446     ( cat <<\_ASBOX
29447 ## ----------------------------------- ##
29448 ## Report this to llvmbugs@cs.uiuc.edu ##
29449 ## ----------------------------------- ##
29450 _ASBOX
29451      ) | sed "s/^/$as_me: WARNING:     /" >&2
29452     ;;
29453 esac
29454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29457   echo $ECHO_N "(cached) $ECHO_C" >&6
29458 else
29459   eval "$as_ac_Header=\$ac_header_preproc"
29460 fi
29461 ac_res=`eval echo '${'$as_ac_Header'}'`
29462                { echo "$as_me:$LINENO: result: $ac_res" >&5
29463 echo "${ECHO_T}$ac_res" >&6; }
29464
29465 fi
29466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29467   cat >>confdefs.h <<_ACEOF
29468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29469 _ACEOF
29470
29471 fi
29472
29473 done
29474
29475
29476
29477
29478
29479 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29480 do
29481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29486   echo $ECHO_N "(cached) $ECHO_C" >&6
29487 fi
29488 ac_res=`eval echo '${'$as_ac_Header'}'`
29489                { echo "$as_me:$LINENO: result: $ac_res" >&5
29490 echo "${ECHO_T}$ac_res" >&6; }
29491 else
29492   # Is the header compilable?
29493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29495 cat >conftest.$ac_ext <<_ACEOF
29496 /* confdefs.h.  */
29497 _ACEOF
29498 cat confdefs.h >>conftest.$ac_ext
29499 cat >>conftest.$ac_ext <<_ACEOF
29500 /* end confdefs.h.  */
29501 $ac_includes_default
29502 #include <$ac_header>
29503 _ACEOF
29504 rm -f conftest.$ac_objext
29505 if { (ac_try="$ac_compile"
29506 case "(($ac_try" in
29507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508   *) ac_try_echo=$ac_try;;
29509 esac
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511   (eval "$ac_compile") 2>conftest.er1
29512   ac_status=$?
29513   grep -v '^ *+' conftest.er1 >conftest.err
29514   rm -f conftest.er1
29515   cat conftest.err >&5
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); } &&
29518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29519   { (case "(($ac_try" in
29520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521   *) ac_try_echo=$ac_try;;
29522 esac
29523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524   (eval "$ac_try") 2>&5
29525   ac_status=$?
29526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527   (exit $ac_status); }; } &&
29528          { ac_try='test -s conftest.$ac_objext'
29529   { (case "(($ac_try" in
29530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531   *) ac_try_echo=$ac_try;;
29532 esac
29533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29534   (eval "$ac_try") 2>&5
29535   ac_status=$?
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); }; }; then
29538   ac_header_compiler=yes
29539 else
29540   echo "$as_me: failed program was:" >&5
29541 sed 's/^/| /' conftest.$ac_ext >&5
29542
29543         ac_header_compiler=no
29544 fi
29545
29546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29548 echo "${ECHO_T}$ac_header_compiler" >&6; }
29549
29550 # Is the header present?
29551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29553 cat >conftest.$ac_ext <<_ACEOF
29554 /* confdefs.h.  */
29555 _ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h.  */
29559 #include <$ac_header>
29560 _ACEOF
29561 if { (ac_try="$ac_cpp conftest.$ac_ext"
29562 case "(($ac_try" in
29563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564   *) ac_try_echo=$ac_try;;
29565 esac
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29568   ac_status=$?
29569   grep -v '^ *+' conftest.er1 >conftest.err
29570   rm -f conftest.er1
29571   cat conftest.err >&5
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); } >/dev/null; then
29574   if test -s conftest.err; then
29575     ac_cpp_err=$ac_c_preproc_warn_flag
29576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29577   else
29578     ac_cpp_err=
29579   fi
29580 else
29581   ac_cpp_err=yes
29582 fi
29583 if test -z "$ac_cpp_err"; then
29584   ac_header_preproc=yes
29585 else
29586   echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29588
29589   ac_header_preproc=no
29590 fi
29591
29592 rm -f conftest.err conftest.$ac_ext
29593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29594 echo "${ECHO_T}$ac_header_preproc" >&6; }
29595
29596 # So?  What about this header?
29597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29598   yes:no: )
29599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29603     ac_header_preproc=yes
29604     ;;
29605   no:yes:* )
29606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29618     ( cat <<\_ASBOX
29619 ## ----------------------------------- ##
29620 ## Report this to llvmbugs@cs.uiuc.edu ##
29621 ## ----------------------------------- ##
29622 _ASBOX
29623      ) | sed "s/^/$as_me: WARNING:     /" >&2
29624     ;;
29625 esac
29626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29629   echo $ECHO_N "(cached) $ECHO_C" >&6
29630 else
29631   eval "$as_ac_Header=\$ac_header_preproc"
29632 fi
29633 ac_res=`eval echo '${'$as_ac_Header'}'`
29634                { echo "$as_me:$LINENO: result: $ac_res" >&5
29635 echo "${ECHO_T}$ac_res" >&6; }
29636
29637 fi
29638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29639   cat >>confdefs.h <<_ACEOF
29640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29641 _ACEOF
29642
29643 fi
29644
29645 done
29646
29647 if test "$ENABLE_THREADS" -eq 1 ; then
29648
29649 for ac_header in pthread.h
29650 do
29651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29653   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29656   echo $ECHO_N "(cached) $ECHO_C" >&6
29657 fi
29658 ac_res=`eval echo '${'$as_ac_Header'}'`
29659                { echo "$as_me:$LINENO: result: $ac_res" >&5
29660 echo "${ECHO_T}$ac_res" >&6; }
29661 else
29662   # Is the header compilable?
29663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29665 cat >conftest.$ac_ext <<_ACEOF
29666 /* confdefs.h.  */
29667 _ACEOF
29668 cat confdefs.h >>conftest.$ac_ext
29669 cat >>conftest.$ac_ext <<_ACEOF
29670 /* end confdefs.h.  */
29671 $ac_includes_default
29672 #include <$ac_header>
29673 _ACEOF
29674 rm -f conftest.$ac_objext
29675 if { (ac_try="$ac_compile"
29676 case "(($ac_try" in
29677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29678   *) ac_try_echo=$ac_try;;
29679 esac
29680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29681   (eval "$ac_compile") 2>conftest.er1
29682   ac_status=$?
29683   grep -v '^ *+' conftest.er1 >conftest.err
29684   rm -f conftest.er1
29685   cat conftest.err >&5
29686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687   (exit $ac_status); } &&
29688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29689   { (case "(($ac_try" in
29690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29691   *) ac_try_echo=$ac_try;;
29692 esac
29693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29694   (eval "$ac_try") 2>&5
29695   ac_status=$?
29696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697   (exit $ac_status); }; } &&
29698          { ac_try='test -s conftest.$ac_objext'
29699   { (case "(($ac_try" in
29700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29701   *) ac_try_echo=$ac_try;;
29702 esac
29703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29704   (eval "$ac_try") 2>&5
29705   ac_status=$?
29706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707   (exit $ac_status); }; }; then
29708   ac_header_compiler=yes
29709 else
29710   echo "$as_me: failed program was:" >&5
29711 sed 's/^/| /' conftest.$ac_ext >&5
29712
29713         ac_header_compiler=no
29714 fi
29715
29716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29718 echo "${ECHO_T}$ac_header_compiler" >&6; }
29719
29720 # Is the header present?
29721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29723 cat >conftest.$ac_ext <<_ACEOF
29724 /* confdefs.h.  */
29725 _ACEOF
29726 cat confdefs.h >>conftest.$ac_ext
29727 cat >>conftest.$ac_ext <<_ACEOF
29728 /* end confdefs.h.  */
29729 #include <$ac_header>
29730 _ACEOF
29731 if { (ac_try="$ac_cpp conftest.$ac_ext"
29732 case "(($ac_try" in
29733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734   *) ac_try_echo=$ac_try;;
29735 esac
29736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29738   ac_status=$?
29739   grep -v '^ *+' conftest.er1 >conftest.err
29740   rm -f conftest.er1
29741   cat conftest.err >&5
29742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743   (exit $ac_status); } >/dev/null; then
29744   if test -s conftest.err; then
29745     ac_cpp_err=$ac_c_preproc_warn_flag
29746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29747   else
29748     ac_cpp_err=
29749   fi
29750 else
29751   ac_cpp_err=yes
29752 fi
29753 if test -z "$ac_cpp_err"; then
29754   ac_header_preproc=yes
29755 else
29756   echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29758
29759   ac_header_preproc=no
29760 fi
29761
29762 rm -f conftest.err conftest.$ac_ext
29763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29764 echo "${ECHO_T}$ac_header_preproc" >&6; }
29765
29766 # So?  What about this header?
29767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29768   yes:no: )
29769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29773     ac_header_preproc=yes
29774     ;;
29775   no:yes:* )
29776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29788     ( cat <<\_ASBOX
29789 ## ----------------------------------- ##
29790 ## Report this to llvmbugs@cs.uiuc.edu ##
29791 ## ----------------------------------- ##
29792 _ASBOX
29793      ) | sed "s/^/$as_me: WARNING:     /" >&2
29794     ;;
29795 esac
29796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29799   echo $ECHO_N "(cached) $ECHO_C" >&6
29800 else
29801   eval "$as_ac_Header=\$ac_header_preproc"
29802 fi
29803 ac_res=`eval echo '${'$as_ac_Header'}'`
29804                { echo "$as_me:$LINENO: result: $ac_res" >&5
29805 echo "${ECHO_T}$ac_res" >&6; }
29806
29807 fi
29808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29809   cat >>confdefs.h <<_ACEOF
29810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29811 _ACEOF
29812  HAVE_PTHREAD=1
29813
29814 else
29815   HAVE_PTHREAD=0
29816
29817 fi
29818
29819 done
29820
29821 else
29822   HAVE_PTHREAD=0
29823
29824 fi
29825
29826
29827
29828 for ac_header in ffi.h ffi/ffi.h
29829 do
29830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29832   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29835   echo $ECHO_N "(cached) $ECHO_C" >&6
29836 fi
29837 ac_res=`eval echo '${'$as_ac_Header'}'`
29838                { echo "$as_me:$LINENO: result: $ac_res" >&5
29839 echo "${ECHO_T}$ac_res" >&6; }
29840 else
29841   # Is the header compilable?
29842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29844 cat >conftest.$ac_ext <<_ACEOF
29845 /* confdefs.h.  */
29846 _ACEOF
29847 cat confdefs.h >>conftest.$ac_ext
29848 cat >>conftest.$ac_ext <<_ACEOF
29849 /* end confdefs.h.  */
29850 $ac_includes_default
29851 #include <$ac_header>
29852 _ACEOF
29853 rm -f conftest.$ac_objext
29854 if { (ac_try="$ac_compile"
29855 case "(($ac_try" in
29856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29857   *) ac_try_echo=$ac_try;;
29858 esac
29859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29860   (eval "$ac_compile") 2>conftest.er1
29861   ac_status=$?
29862   grep -v '^ *+' conftest.er1 >conftest.err
29863   rm -f conftest.er1
29864   cat conftest.err >&5
29865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866   (exit $ac_status); } &&
29867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29868   { (case "(($ac_try" in
29869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29870   *) ac_try_echo=$ac_try;;
29871 esac
29872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29873   (eval "$ac_try") 2>&5
29874   ac_status=$?
29875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876   (exit $ac_status); }; } &&
29877          { ac_try='test -s conftest.$ac_objext'
29878   { (case "(($ac_try" in
29879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29880   *) ac_try_echo=$ac_try;;
29881 esac
29882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29883   (eval "$ac_try") 2>&5
29884   ac_status=$?
29885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886   (exit $ac_status); }; }; then
29887   ac_header_compiler=yes
29888 else
29889   echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29891
29892         ac_header_compiler=no
29893 fi
29894
29895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29897 echo "${ECHO_T}$ac_header_compiler" >&6; }
29898
29899 # Is the header present?
29900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29902 cat >conftest.$ac_ext <<_ACEOF
29903 /* confdefs.h.  */
29904 _ACEOF
29905 cat confdefs.h >>conftest.$ac_ext
29906 cat >>conftest.$ac_ext <<_ACEOF
29907 /* end confdefs.h.  */
29908 #include <$ac_header>
29909 _ACEOF
29910 if { (ac_try="$ac_cpp conftest.$ac_ext"
29911 case "(($ac_try" in
29912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29913   *) ac_try_echo=$ac_try;;
29914 esac
29915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29917   ac_status=$?
29918   grep -v '^ *+' conftest.er1 >conftest.err
29919   rm -f conftest.er1
29920   cat conftest.err >&5
29921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922   (exit $ac_status); } >/dev/null; then
29923   if test -s conftest.err; then
29924     ac_cpp_err=$ac_c_preproc_warn_flag
29925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29926   else
29927     ac_cpp_err=
29928   fi
29929 else
29930   ac_cpp_err=yes
29931 fi
29932 if test -z "$ac_cpp_err"; then
29933   ac_header_preproc=yes
29934 else
29935   echo "$as_me: failed program was:" >&5
29936 sed 's/^/| /' conftest.$ac_ext >&5
29937
29938   ac_header_preproc=no
29939 fi
29940
29941 rm -f conftest.err conftest.$ac_ext
29942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29943 echo "${ECHO_T}$ac_header_preproc" >&6; }
29944
29945 # So?  What about this header?
29946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29947   yes:no: )
29948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29952     ac_header_preproc=yes
29953     ;;
29954   no:yes:* )
29955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29957     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29958 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29959     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29961     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29962 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29965     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29967     ( cat <<\_ASBOX
29968 ## ----------------------------------- ##
29969 ## Report this to llvmbugs@cs.uiuc.edu ##
29970 ## ----------------------------------- ##
29971 _ASBOX
29972      ) | sed "s/^/$as_me: WARNING:     /" >&2
29973     ;;
29974 esac
29975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29978   echo $ECHO_N "(cached) $ECHO_C" >&6
29979 else
29980   eval "$as_ac_Header=\$ac_header_preproc"
29981 fi
29982 ac_res=`eval echo '${'$as_ac_Header'}'`
29983                { echo "$as_me:$LINENO: result: $ac_res" >&5
29984 echo "${ECHO_T}$ac_res" >&6; }
29985
29986 fi
29987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29988   cat >>confdefs.h <<_ACEOF
29989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29990 _ACEOF
29991
29992 fi
29993
29994 done
29995
29996
29997
29998
29999   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30000 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30001 if test "${ac_cv_huge_val_sanity+set}" = set; then
30002   echo $ECHO_N "(cached) $ECHO_C" >&6
30003 else
30004
30005     ac_ext=cpp
30006 ac_cpp='$CXXCPP $CPPFLAGS'
30007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30010
30011     CXXFLAGS=-pedantic
30012     if test "$cross_compiling" = yes; then
30013   ac_cv_huge_val_sanity=yes
30014 else
30015   cat >conftest.$ac_ext <<_ACEOF
30016 /* confdefs.h.  */
30017 _ACEOF
30018 cat confdefs.h >>conftest.$ac_ext
30019 cat >>conftest.$ac_ext <<_ACEOF
30020 /* end confdefs.h.  */
30021 #include <math.h>
30022 int
30023 main ()
30024 {
30025 double x = HUGE_VAL; return x != x;
30026   ;
30027   return 0;
30028 }
30029 _ACEOF
30030 rm -f conftest$ac_exeext
30031 if { (ac_try="$ac_link"
30032 case "(($ac_try" in
30033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034   *) ac_try_echo=$ac_try;;
30035 esac
30036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30037   (eval "$ac_link") 2>&5
30038   ac_status=$?
30039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30041   { (case "(($ac_try" in
30042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043   *) ac_try_echo=$ac_try;;
30044 esac
30045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30046   (eval "$ac_try") 2>&5
30047   ac_status=$?
30048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049   (exit $ac_status); }; }; then
30050   ac_cv_huge_val_sanity=yes
30051 else
30052   echo "$as_me: program exited with status $ac_status" >&5
30053 echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30055
30056 ( exit $ac_status )
30057 ac_cv_huge_val_sanity=no
30058 fi
30059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30060 fi
30061
30062
30063     ac_ext=c
30064 ac_cpp='$CPP $CPPFLAGS'
30065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30068
30069
30070 fi
30071 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30072 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30073   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30074
30075
30076 { echo "$as_me:$LINENO: checking for pid_t" >&5
30077 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30078 if test "${ac_cv_type_pid_t+set}" = set; then
30079   echo $ECHO_N "(cached) $ECHO_C" >&6
30080 else
30081   cat >conftest.$ac_ext <<_ACEOF
30082 /* confdefs.h.  */
30083 _ACEOF
30084 cat confdefs.h >>conftest.$ac_ext
30085 cat >>conftest.$ac_ext <<_ACEOF
30086 /* end confdefs.h.  */
30087 $ac_includes_default
30088 typedef pid_t ac__type_new_;
30089 int
30090 main ()
30091 {
30092 if ((ac__type_new_ *) 0)
30093   return 0;
30094 if (sizeof (ac__type_new_))
30095   return 0;
30096   ;
30097   return 0;
30098 }
30099 _ACEOF
30100 rm -f conftest.$ac_objext
30101 if { (ac_try="$ac_compile"
30102 case "(($ac_try" in
30103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30104   *) ac_try_echo=$ac_try;;
30105 esac
30106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30107   (eval "$ac_compile") 2>conftest.er1
30108   ac_status=$?
30109   grep -v '^ *+' conftest.er1 >conftest.err
30110   rm -f conftest.er1
30111   cat conftest.err >&5
30112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113   (exit $ac_status); } &&
30114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30115   { (case "(($ac_try" in
30116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30117   *) ac_try_echo=$ac_try;;
30118 esac
30119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30120   (eval "$ac_try") 2>&5
30121   ac_status=$?
30122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123   (exit $ac_status); }; } &&
30124          { ac_try='test -s conftest.$ac_objext'
30125   { (case "(($ac_try" in
30126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127   *) ac_try_echo=$ac_try;;
30128 esac
30129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130   (eval "$ac_try") 2>&5
30131   ac_status=$?
30132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133   (exit $ac_status); }; }; then
30134   ac_cv_type_pid_t=yes
30135 else
30136   echo "$as_me: failed program was:" >&5
30137 sed 's/^/| /' conftest.$ac_ext >&5
30138
30139         ac_cv_type_pid_t=no
30140 fi
30141
30142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30143 fi
30144 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30145 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30146 if test $ac_cv_type_pid_t = yes; then
30147   :
30148 else
30149
30150 cat >>confdefs.h <<_ACEOF
30151 #define pid_t int
30152 _ACEOF
30153
30154 fi
30155
30156 { echo "$as_me:$LINENO: checking for size_t" >&5
30157 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30158 if test "${ac_cv_type_size_t+set}" = set; then
30159   echo $ECHO_N "(cached) $ECHO_C" >&6
30160 else
30161   cat >conftest.$ac_ext <<_ACEOF
30162 /* confdefs.h.  */
30163 _ACEOF
30164 cat confdefs.h >>conftest.$ac_ext
30165 cat >>conftest.$ac_ext <<_ACEOF
30166 /* end confdefs.h.  */
30167 $ac_includes_default
30168 typedef size_t ac__type_new_;
30169 int
30170 main ()
30171 {
30172 if ((ac__type_new_ *) 0)
30173   return 0;
30174 if (sizeof (ac__type_new_))
30175   return 0;
30176   ;
30177   return 0;
30178 }
30179 _ACEOF
30180 rm -f conftest.$ac_objext
30181 if { (ac_try="$ac_compile"
30182 case "(($ac_try" in
30183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30184   *) ac_try_echo=$ac_try;;
30185 esac
30186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30187   (eval "$ac_compile") 2>conftest.er1
30188   ac_status=$?
30189   grep -v '^ *+' conftest.er1 >conftest.err
30190   rm -f conftest.er1
30191   cat conftest.err >&5
30192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193   (exit $ac_status); } &&
30194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30195   { (case "(($ac_try" in
30196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197   *) ac_try_echo=$ac_try;;
30198 esac
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200   (eval "$ac_try") 2>&5
30201   ac_status=$?
30202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203   (exit $ac_status); }; } &&
30204          { ac_try='test -s conftest.$ac_objext'
30205   { (case "(($ac_try" in
30206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207   *) ac_try_echo=$ac_try;;
30208 esac
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210   (eval "$ac_try") 2>&5
30211   ac_status=$?
30212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213   (exit $ac_status); }; }; then
30214   ac_cv_type_size_t=yes
30215 else
30216   echo "$as_me: failed program was:" >&5
30217 sed 's/^/| /' conftest.$ac_ext >&5
30218
30219         ac_cv_type_size_t=no
30220 fi
30221
30222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30223 fi
30224 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30225 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30226 if test $ac_cv_type_size_t = yes; then
30227   :
30228 else
30229
30230 cat >>confdefs.h <<_ACEOF
30231 #define size_t unsigned int
30232 _ACEOF
30233
30234 fi
30235
30236 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30237 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30238 if test "${ac_cv_type_signal+set}" = set; then
30239   echo $ECHO_N "(cached) $ECHO_C" >&6
30240 else
30241   cat >conftest.$ac_ext <<_ACEOF
30242 /* confdefs.h.  */
30243 _ACEOF
30244 cat confdefs.h >>conftest.$ac_ext
30245 cat >>conftest.$ac_ext <<_ACEOF
30246 /* end confdefs.h.  */
30247 #include <sys/types.h>
30248 #include <signal.h>
30249
30250 int
30251 main ()
30252 {
30253 return *(signal (0, 0)) (0) == 1;
30254   ;
30255   return 0;
30256 }
30257 _ACEOF
30258 rm -f conftest.$ac_objext
30259 if { (ac_try="$ac_compile"
30260 case "(($ac_try" in
30261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30262   *) ac_try_echo=$ac_try;;
30263 esac
30264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30265   (eval "$ac_compile") 2>conftest.er1
30266   ac_status=$?
30267   grep -v '^ *+' conftest.er1 >conftest.err
30268   rm -f conftest.er1
30269   cat conftest.err >&5
30270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271   (exit $ac_status); } &&
30272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30273   { (case "(($ac_try" in
30274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275   *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278   (eval "$ac_try") 2>&5
30279   ac_status=$?
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); }; } &&
30282          { ac_try='test -s conftest.$ac_objext'
30283   { (case "(($ac_try" in
30284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285   *) ac_try_echo=$ac_try;;
30286 esac
30287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288   (eval "$ac_try") 2>&5
30289   ac_status=$?
30290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291   (exit $ac_status); }; }; then
30292   ac_cv_type_signal=int
30293 else
30294   echo "$as_me: failed program was:" >&5
30295 sed 's/^/| /' conftest.$ac_ext >&5
30296
30297         ac_cv_type_signal=void
30298 fi
30299
30300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30301 fi
30302 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30303 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30304
30305 cat >>confdefs.h <<_ACEOF
30306 #define RETSIGTYPE $ac_cv_type_signal
30307 _ACEOF
30308
30309
30310 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30311 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30312 if test "${ac_cv_struct_tm+set}" = set; then
30313   echo $ECHO_N "(cached) $ECHO_C" >&6
30314 else
30315   cat >conftest.$ac_ext <<_ACEOF
30316 /* confdefs.h.  */
30317 _ACEOF
30318 cat confdefs.h >>conftest.$ac_ext
30319 cat >>conftest.$ac_ext <<_ACEOF
30320 /* end confdefs.h.  */
30321 #include <sys/types.h>
30322 #include <time.h>
30323
30324 int
30325 main ()
30326 {
30327 struct tm *tp; tp->tm_sec;
30328   ;
30329   return 0;
30330 }
30331 _ACEOF
30332 rm -f conftest.$ac_objext
30333 if { (ac_try="$ac_compile"
30334 case "(($ac_try" in
30335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336   *) ac_try_echo=$ac_try;;
30337 esac
30338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339   (eval "$ac_compile") 2>conftest.er1
30340   ac_status=$?
30341   grep -v '^ *+' conftest.er1 >conftest.err
30342   rm -f conftest.er1
30343   cat conftest.err >&5
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); } &&
30346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30347   { (case "(($ac_try" in
30348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349   *) ac_try_echo=$ac_try;;
30350 esac
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352   (eval "$ac_try") 2>&5
30353   ac_status=$?
30354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355   (exit $ac_status); }; } &&
30356          { ac_try='test -s conftest.$ac_objext'
30357   { (case "(($ac_try" in
30358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359   *) ac_try_echo=$ac_try;;
30360 esac
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362   (eval "$ac_try") 2>&5
30363   ac_status=$?
30364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365   (exit $ac_status); }; }; then
30366   ac_cv_struct_tm=time.h
30367 else
30368   echo "$as_me: failed program was:" >&5
30369 sed 's/^/| /' conftest.$ac_ext >&5
30370
30371         ac_cv_struct_tm=sys/time.h
30372 fi
30373
30374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30375 fi
30376 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30377 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30378 if test $ac_cv_struct_tm = sys/time.h; then
30379
30380 cat >>confdefs.h <<\_ACEOF
30381 #define TM_IN_SYS_TIME 1
30382 _ACEOF
30383
30384 fi
30385
30386 { echo "$as_me:$LINENO: checking for int64_t" >&5
30387 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30388 if test "${ac_cv_type_int64_t+set}" = set; then
30389   echo $ECHO_N "(cached) $ECHO_C" >&6
30390 else
30391   cat >conftest.$ac_ext <<_ACEOF
30392 /* confdefs.h.  */
30393 _ACEOF
30394 cat confdefs.h >>conftest.$ac_ext
30395 cat >>conftest.$ac_ext <<_ACEOF
30396 /* end confdefs.h.  */
30397 $ac_includes_default
30398 typedef int64_t ac__type_new_;
30399 int
30400 main ()
30401 {
30402 if ((ac__type_new_ *) 0)
30403   return 0;
30404 if (sizeof (ac__type_new_))
30405   return 0;
30406   ;
30407   return 0;
30408 }
30409 _ACEOF
30410 rm -f conftest.$ac_objext
30411 if { (ac_try="$ac_compile"
30412 case "(($ac_try" in
30413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414   *) ac_try_echo=$ac_try;;
30415 esac
30416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417   (eval "$ac_compile") 2>conftest.er1
30418   ac_status=$?
30419   grep -v '^ *+' conftest.er1 >conftest.err
30420   rm -f conftest.er1
30421   cat conftest.err >&5
30422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423   (exit $ac_status); } &&
30424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30425   { (case "(($ac_try" in
30426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30427   *) ac_try_echo=$ac_try;;
30428 esac
30429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30430   (eval "$ac_try") 2>&5
30431   ac_status=$?
30432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433   (exit $ac_status); }; } &&
30434          { ac_try='test -s conftest.$ac_objext'
30435   { (case "(($ac_try" in
30436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30437   *) ac_try_echo=$ac_try;;
30438 esac
30439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30440   (eval "$ac_try") 2>&5
30441   ac_status=$?
30442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443   (exit $ac_status); }; }; then
30444   ac_cv_type_int64_t=yes
30445 else
30446   echo "$as_me: failed program was:" >&5
30447 sed 's/^/| /' conftest.$ac_ext >&5
30448
30449         ac_cv_type_int64_t=no
30450 fi
30451
30452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30453 fi
30454 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30455 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30456 if test $ac_cv_type_int64_t = yes; then
30457
30458 cat >>confdefs.h <<_ACEOF
30459 #define HAVE_INT64_T 1
30460 _ACEOF
30461
30462
30463 else
30464   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30465 echo "$as_me: error: Type int64_t required but not found" >&2;}
30466    { (exit 1); exit 1; }; }
30467 fi
30468
30469 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30470 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30471 if test "${ac_cv_type_uint64_t+set}" = set; then
30472   echo $ECHO_N "(cached) $ECHO_C" >&6
30473 else
30474   cat >conftest.$ac_ext <<_ACEOF
30475 /* confdefs.h.  */
30476 _ACEOF
30477 cat confdefs.h >>conftest.$ac_ext
30478 cat >>conftest.$ac_ext <<_ACEOF
30479 /* end confdefs.h.  */
30480 $ac_includes_default
30481 typedef uint64_t ac__type_new_;
30482 int
30483 main ()
30484 {
30485 if ((ac__type_new_ *) 0)
30486   return 0;
30487 if (sizeof (ac__type_new_))
30488   return 0;
30489   ;
30490   return 0;
30491 }
30492 _ACEOF
30493 rm -f conftest.$ac_objext
30494 if { (ac_try="$ac_compile"
30495 case "(($ac_try" in
30496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30497   *) ac_try_echo=$ac_try;;
30498 esac
30499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30500   (eval "$ac_compile") 2>conftest.er1
30501   ac_status=$?
30502   grep -v '^ *+' conftest.er1 >conftest.err
30503   rm -f conftest.er1
30504   cat conftest.err >&5
30505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506   (exit $ac_status); } &&
30507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30508   { (case "(($ac_try" in
30509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510   *) ac_try_echo=$ac_try;;
30511 esac
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513   (eval "$ac_try") 2>&5
30514   ac_status=$?
30515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516   (exit $ac_status); }; } &&
30517          { ac_try='test -s conftest.$ac_objext'
30518   { (case "(($ac_try" in
30519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520   *) ac_try_echo=$ac_try;;
30521 esac
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523   (eval "$ac_try") 2>&5
30524   ac_status=$?
30525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526   (exit $ac_status); }; }; then
30527   ac_cv_type_uint64_t=yes
30528 else
30529   echo "$as_me: failed program was:" >&5
30530 sed 's/^/| /' conftest.$ac_ext >&5
30531
30532         ac_cv_type_uint64_t=no
30533 fi
30534
30535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30536 fi
30537 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30538 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30539 if test $ac_cv_type_uint64_t = yes; then
30540
30541 cat >>confdefs.h <<_ACEOF
30542 #define HAVE_UINT64_T 1
30543 _ACEOF
30544
30545
30546 else
30547   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30548 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30549 if test "${ac_cv_type_u_int64_t+set}" = set; then
30550   echo $ECHO_N "(cached) $ECHO_C" >&6
30551 else
30552   cat >conftest.$ac_ext <<_ACEOF
30553 /* confdefs.h.  */
30554 _ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h.  */
30558 $ac_includes_default
30559 typedef u_int64_t ac__type_new_;
30560 int
30561 main ()
30562 {
30563 if ((ac__type_new_ *) 0)
30564   return 0;
30565 if (sizeof (ac__type_new_))
30566   return 0;
30567   ;
30568   return 0;
30569 }
30570 _ACEOF
30571 rm -f conftest.$ac_objext
30572 if { (ac_try="$ac_compile"
30573 case "(($ac_try" in
30574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575   *) ac_try_echo=$ac_try;;
30576 esac
30577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30578   (eval "$ac_compile") 2>conftest.er1
30579   ac_status=$?
30580   grep -v '^ *+' conftest.er1 >conftest.err
30581   rm -f conftest.er1
30582   cat conftest.err >&5
30583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584   (exit $ac_status); } &&
30585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30586   { (case "(($ac_try" in
30587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588   *) ac_try_echo=$ac_try;;
30589 esac
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591   (eval "$ac_try") 2>&5
30592   ac_status=$?
30593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594   (exit $ac_status); }; } &&
30595          { ac_try='test -s conftest.$ac_objext'
30596   { (case "(($ac_try" in
30597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598   *) ac_try_echo=$ac_try;;
30599 esac
30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601   (eval "$ac_try") 2>&5
30602   ac_status=$?
30603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604   (exit $ac_status); }; }; then
30605   ac_cv_type_u_int64_t=yes
30606 else
30607   echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30609
30610         ac_cv_type_u_int64_t=no
30611 fi
30612
30613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30614 fi
30615 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30616 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30617 if test $ac_cv_type_u_int64_t = yes; then
30618
30619 cat >>confdefs.h <<_ACEOF
30620 #define HAVE_U_INT64_T 1
30621 _ACEOF
30622
30623
30624 else
30625   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30626 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30627    { (exit 1); exit 1; }; }
30628 fi
30629
30630 fi
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30642 do
30643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30647   echo $ECHO_N "(cached) $ECHO_C" >&6
30648 else
30649   cat >conftest.$ac_ext <<_ACEOF
30650 /* confdefs.h.  */
30651 _ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h.  */
30655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30657 #define $ac_func innocuous_$ac_func
30658
30659 /* System header to define __stub macros and hopefully few prototypes,
30660     which can conflict with char $ac_func (); below.
30661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30662     <limits.h> exists even on freestanding compilers.  */
30663
30664 #ifdef __STDC__
30665 # include <limits.h>
30666 #else
30667 # include <assert.h>
30668 #endif
30669
30670 #undef $ac_func
30671
30672 /* Override any GCC internal prototype to avoid an error.
30673    Use char because int might match the return type of a GCC
30674    builtin and then its argument prototype would still apply.  */
30675 #ifdef __cplusplus
30676 extern "C"
30677 #endif
30678 char $ac_func ();
30679 /* The GNU C library defines this for functions which it implements
30680     to always fail with ENOSYS.  Some functions are actually named
30681     something starting with __ and the normal name is an alias.  */
30682 #if defined __stub_$ac_func || defined __stub___$ac_func
30683 choke me
30684 #endif
30685
30686 int
30687 main ()
30688 {
30689 return $ac_func ();
30690   ;
30691   return 0;
30692 }
30693 _ACEOF
30694 rm -f conftest.$ac_objext conftest$ac_exeext
30695 if { (ac_try="$ac_link"
30696 case "(($ac_try" in
30697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698   *) ac_try_echo=$ac_try;;
30699 esac
30700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701   (eval "$ac_link") 2>conftest.er1
30702   ac_status=$?
30703   grep -v '^ *+' conftest.er1 >conftest.err
30704   rm -f conftest.er1
30705   cat conftest.err >&5
30706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707   (exit $ac_status); } &&
30708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30709   { (case "(($ac_try" in
30710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30711   *) ac_try_echo=$ac_try;;
30712 esac
30713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30714   (eval "$ac_try") 2>&5
30715   ac_status=$?
30716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717   (exit $ac_status); }; } &&
30718          { ac_try='test -s conftest$ac_exeext'
30719   { (case "(($ac_try" in
30720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721   *) ac_try_echo=$ac_try;;
30722 esac
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724   (eval "$ac_try") 2>&5
30725   ac_status=$?
30726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727   (exit $ac_status); }; }; then
30728   eval "$as_ac_var=yes"
30729 else
30730   echo "$as_me: failed program was:" >&5
30731 sed 's/^/| /' conftest.$ac_ext >&5
30732
30733         eval "$as_ac_var=no"
30734 fi
30735
30736 rm -f core conftest.err conftest.$ac_objext \
30737       conftest$ac_exeext conftest.$ac_ext
30738 fi
30739 ac_res=`eval echo '${'$as_ac_var'}'`
30740                { echo "$as_me:$LINENO: result: $ac_res" >&5
30741 echo "${ECHO_T}$ac_res" >&6; }
30742 if test `eval echo '${'$as_ac_var'}'` = yes; then
30743   cat >>confdefs.h <<_ACEOF
30744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30745 _ACEOF
30746
30747 fi
30748 done
30749
30750
30751
30752
30753
30754 for ac_func in powf fmodf strtof round
30755 do
30756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30760   echo $ECHO_N "(cached) $ECHO_C" >&6
30761 else
30762   cat >conftest.$ac_ext <<_ACEOF
30763 /* confdefs.h.  */
30764 _ACEOF
30765 cat confdefs.h >>conftest.$ac_ext
30766 cat >>conftest.$ac_ext <<_ACEOF
30767 /* end confdefs.h.  */
30768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30770 #define $ac_func innocuous_$ac_func
30771
30772 /* System header to define __stub macros and hopefully few prototypes,
30773     which can conflict with char $ac_func (); below.
30774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30775     <limits.h> exists even on freestanding compilers.  */
30776
30777 #ifdef __STDC__
30778 # include <limits.h>
30779 #else
30780 # include <assert.h>
30781 #endif
30782
30783 #undef $ac_func
30784
30785 /* Override any GCC internal prototype to avoid an error.
30786    Use char because int might match the return type of a GCC
30787    builtin and then its argument prototype would still apply.  */
30788 #ifdef __cplusplus
30789 extern "C"
30790 #endif
30791 char $ac_func ();
30792 /* The GNU C library defines this for functions which it implements
30793     to always fail with ENOSYS.  Some functions are actually named
30794     something starting with __ and the normal name is an alias.  */
30795 #if defined __stub_$ac_func || defined __stub___$ac_func
30796 choke me
30797 #endif
30798
30799 int
30800 main ()
30801 {
30802 return $ac_func ();
30803   ;
30804   return 0;
30805 }
30806 _ACEOF
30807 rm -f conftest.$ac_objext conftest$ac_exeext
30808 if { (ac_try="$ac_link"
30809 case "(($ac_try" in
30810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811   *) ac_try_echo=$ac_try;;
30812 esac
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814   (eval "$ac_link") 2>conftest.er1
30815   ac_status=$?
30816   grep -v '^ *+' conftest.er1 >conftest.err
30817   rm -f conftest.er1
30818   cat conftest.err >&5
30819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820   (exit $ac_status); } &&
30821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30822   { (case "(($ac_try" in
30823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30824   *) ac_try_echo=$ac_try;;
30825 esac
30826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30827   (eval "$ac_try") 2>&5
30828   ac_status=$?
30829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830   (exit $ac_status); }; } &&
30831          { ac_try='test -s conftest$ac_exeext'
30832   { (case "(($ac_try" in
30833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30834   *) ac_try_echo=$ac_try;;
30835 esac
30836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30837   (eval "$ac_try") 2>&5
30838   ac_status=$?
30839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840   (exit $ac_status); }; }; then
30841   eval "$as_ac_var=yes"
30842 else
30843   echo "$as_me: failed program was:" >&5
30844 sed 's/^/| /' conftest.$ac_ext >&5
30845
30846         eval "$as_ac_var=no"
30847 fi
30848
30849 rm -f core conftest.err conftest.$ac_objext \
30850       conftest$ac_exeext conftest.$ac_ext
30851 fi
30852 ac_res=`eval echo '${'$as_ac_var'}'`
30853                { echo "$as_me:$LINENO: result: $ac_res" >&5
30854 echo "${ECHO_T}$ac_res" >&6; }
30855 if test `eval echo '${'$as_ac_var'}'` = yes; then
30856   cat >>confdefs.h <<_ACEOF
30857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30858 _ACEOF
30859
30860 fi
30861 done
30862
30863
30864
30865
30866
30867
30868 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30869 do
30870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30874   echo $ECHO_N "(cached) $ECHO_C" >&6
30875 else
30876   cat >conftest.$ac_ext <<_ACEOF
30877 /* confdefs.h.  */
30878 _ACEOF
30879 cat confdefs.h >>conftest.$ac_ext
30880 cat >>conftest.$ac_ext <<_ACEOF
30881 /* end confdefs.h.  */
30882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30884 #define $ac_func innocuous_$ac_func
30885
30886 /* System header to define __stub macros and hopefully few prototypes,
30887     which can conflict with char $ac_func (); below.
30888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889     <limits.h> exists even on freestanding compilers.  */
30890
30891 #ifdef __STDC__
30892 # include <limits.h>
30893 #else
30894 # include <assert.h>
30895 #endif
30896
30897 #undef $ac_func
30898
30899 /* Override any GCC internal prototype to avoid an error.
30900    Use char because int might match the return type of a GCC
30901    builtin and then its argument prototype would still apply.  */
30902 #ifdef __cplusplus
30903 extern "C"
30904 #endif
30905 char $ac_func ();
30906 /* The GNU C library defines this for functions which it implements
30907     to always fail with ENOSYS.  Some functions are actually named
30908     something starting with __ and the normal name is an alias.  */
30909 #if defined __stub_$ac_func || defined __stub___$ac_func
30910 choke me
30911 #endif
30912
30913 int
30914 main ()
30915 {
30916 return $ac_func ();
30917   ;
30918   return 0;
30919 }
30920 _ACEOF
30921 rm -f conftest.$ac_objext conftest$ac_exeext
30922 if { (ac_try="$ac_link"
30923 case "(($ac_try" in
30924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925   *) ac_try_echo=$ac_try;;
30926 esac
30927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928   (eval "$ac_link") 2>conftest.er1
30929   ac_status=$?
30930   grep -v '^ *+' conftest.er1 >conftest.err
30931   rm -f conftest.er1
30932   cat conftest.err >&5
30933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934   (exit $ac_status); } &&
30935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30936   { (case "(($ac_try" in
30937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938   *) ac_try_echo=$ac_try;;
30939 esac
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941   (eval "$ac_try") 2>&5
30942   ac_status=$?
30943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944   (exit $ac_status); }; } &&
30945          { ac_try='test -s conftest$ac_exeext'
30946   { (case "(($ac_try" in
30947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948   *) ac_try_echo=$ac_try;;
30949 esac
30950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951   (eval "$ac_try") 2>&5
30952   ac_status=$?
30953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954   (exit $ac_status); }; }; then
30955   eval "$as_ac_var=yes"
30956 else
30957   echo "$as_me: failed program was:" >&5
30958 sed 's/^/| /' conftest.$ac_ext >&5
30959
30960         eval "$as_ac_var=no"
30961 fi
30962
30963 rm -f core conftest.err conftest.$ac_objext \
30964       conftest$ac_exeext conftest.$ac_ext
30965 fi
30966 ac_res=`eval echo '${'$as_ac_var'}'`
30967                { echo "$as_me:$LINENO: result: $ac_res" >&5
30968 echo "${ECHO_T}$ac_res" >&6; }
30969 if test `eval echo '${'$as_ac_var'}'` = yes; then
30970   cat >>confdefs.h <<_ACEOF
30971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30972 _ACEOF
30973
30974 fi
30975 done
30976
30977
30978
30979
30980 for ac_func in isatty mkdtemp mkstemp
30981 do
30982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30986   echo $ECHO_N "(cached) $ECHO_C" >&6
30987 else
30988   cat >conftest.$ac_ext <<_ACEOF
30989 /* confdefs.h.  */
30990 _ACEOF
30991 cat confdefs.h >>conftest.$ac_ext
30992 cat >>conftest.$ac_ext <<_ACEOF
30993 /* end confdefs.h.  */
30994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30996 #define $ac_func innocuous_$ac_func
30997
30998 /* System header to define __stub macros and hopefully few prototypes,
30999     which can conflict with char $ac_func (); below.
31000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31001     <limits.h> exists even on freestanding compilers.  */
31002
31003 #ifdef __STDC__
31004 # include <limits.h>
31005 #else
31006 # include <assert.h>
31007 #endif
31008
31009 #undef $ac_func
31010
31011 /* Override any GCC internal prototype to avoid an error.
31012    Use char because int might match the return type of a GCC
31013    builtin and then its argument prototype would still apply.  */
31014 #ifdef __cplusplus
31015 extern "C"
31016 #endif
31017 char $ac_func ();
31018 /* The GNU C library defines this for functions which it implements
31019     to always fail with ENOSYS.  Some functions are actually named
31020     something starting with __ and the normal name is an alias.  */
31021 #if defined __stub_$ac_func || defined __stub___$ac_func
31022 choke me
31023 #endif
31024
31025 int
31026 main ()
31027 {
31028 return $ac_func ();
31029   ;
31030   return 0;
31031 }
31032 _ACEOF
31033 rm -f conftest.$ac_objext conftest$ac_exeext
31034 if { (ac_try="$ac_link"
31035 case "(($ac_try" in
31036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037   *) ac_try_echo=$ac_try;;
31038 esac
31039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31040   (eval "$ac_link") 2>conftest.er1
31041   ac_status=$?
31042   grep -v '^ *+' conftest.er1 >conftest.err
31043   rm -f conftest.er1
31044   cat conftest.err >&5
31045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046   (exit $ac_status); } &&
31047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31048   { (case "(($ac_try" in
31049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050   *) ac_try_echo=$ac_try;;
31051 esac
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053   (eval "$ac_try") 2>&5
31054   ac_status=$?
31055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056   (exit $ac_status); }; } &&
31057          { ac_try='test -s conftest$ac_exeext'
31058   { (case "(($ac_try" in
31059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060   *) ac_try_echo=$ac_try;;
31061 esac
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063   (eval "$ac_try") 2>&5
31064   ac_status=$?
31065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066   (exit $ac_status); }; }; then
31067   eval "$as_ac_var=yes"
31068 else
31069   echo "$as_me: failed program was:" >&5
31070 sed 's/^/| /' conftest.$ac_ext >&5
31071
31072         eval "$as_ac_var=no"
31073 fi
31074
31075 rm -f core conftest.err conftest.$ac_objext \
31076       conftest$ac_exeext conftest.$ac_ext
31077 fi
31078 ac_res=`eval echo '${'$as_ac_var'}'`
31079                { echo "$as_me:$LINENO: result: $ac_res" >&5
31080 echo "${ECHO_T}$ac_res" >&6; }
31081 if test `eval echo '${'$as_ac_var'}'` = yes; then
31082   cat >>confdefs.h <<_ACEOF
31083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31084 _ACEOF
31085
31086 fi
31087 done
31088
31089
31090
31091
31092
31093
31094
31095
31096 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31097 do
31098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31102   echo $ECHO_N "(cached) $ECHO_C" >&6
31103 else
31104   cat >conftest.$ac_ext <<_ACEOF
31105 /* confdefs.h.  */
31106 _ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h.  */
31110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31112 #define $ac_func innocuous_$ac_func
31113
31114 /* System header to define __stub macros and hopefully few prototypes,
31115     which can conflict with char $ac_func (); below.
31116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31117     <limits.h> exists even on freestanding compilers.  */
31118
31119 #ifdef __STDC__
31120 # include <limits.h>
31121 #else
31122 # include <assert.h>
31123 #endif
31124
31125 #undef $ac_func
31126
31127 /* Override any GCC internal prototype to avoid an error.
31128    Use char because int might match the return type of a GCC
31129    builtin and then its argument prototype would still apply.  */
31130 #ifdef __cplusplus
31131 extern "C"
31132 #endif
31133 char $ac_func ();
31134 /* The GNU C library defines this for functions which it implements
31135     to always fail with ENOSYS.  Some functions are actually named
31136     something starting with __ and the normal name is an alias.  */
31137 #if defined __stub_$ac_func || defined __stub___$ac_func
31138 choke me
31139 #endif
31140
31141 int
31142 main ()
31143 {
31144 return $ac_func ();
31145   ;
31146   return 0;
31147 }
31148 _ACEOF
31149 rm -f conftest.$ac_objext conftest$ac_exeext
31150 if { (ac_try="$ac_link"
31151 case "(($ac_try" in
31152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153   *) ac_try_echo=$ac_try;;
31154 esac
31155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156   (eval "$ac_link") 2>conftest.er1
31157   ac_status=$?
31158   grep -v '^ *+' conftest.er1 >conftest.err
31159   rm -f conftest.er1
31160   cat conftest.err >&5
31161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162   (exit $ac_status); } &&
31163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31164   { (case "(($ac_try" in
31165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166   *) ac_try_echo=$ac_try;;
31167 esac
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169   (eval "$ac_try") 2>&5
31170   ac_status=$?
31171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172   (exit $ac_status); }; } &&
31173          { ac_try='test -s conftest$ac_exeext'
31174   { (case "(($ac_try" in
31175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176   *) ac_try_echo=$ac_try;;
31177 esac
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179   (eval "$ac_try") 2>&5
31180   ac_status=$?
31181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182   (exit $ac_status); }; }; then
31183   eval "$as_ac_var=yes"
31184 else
31185   echo "$as_me: failed program was:" >&5
31186 sed 's/^/| /' conftest.$ac_ext >&5
31187
31188         eval "$as_ac_var=no"
31189 fi
31190
31191 rm -f core conftest.err conftest.$ac_objext \
31192       conftest$ac_exeext conftest.$ac_ext
31193 fi
31194 ac_res=`eval echo '${'$as_ac_var'}'`
31195                { echo "$as_me:$LINENO: result: $ac_res" >&5
31196 echo "${ECHO_T}$ac_res" >&6; }
31197 if test `eval echo '${'$as_ac_var'}'` = yes; then
31198   cat >>confdefs.h <<_ACEOF
31199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31200 _ACEOF
31201
31202 fi
31203 done
31204
31205
31206
31207
31208
31209 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31210 do
31211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31215   echo $ECHO_N "(cached) $ECHO_C" >&6
31216 else
31217   cat >conftest.$ac_ext <<_ACEOF
31218 /* confdefs.h.  */
31219 _ACEOF
31220 cat confdefs.h >>conftest.$ac_ext
31221 cat >>conftest.$ac_ext <<_ACEOF
31222 /* end confdefs.h.  */
31223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31225 #define $ac_func innocuous_$ac_func
31226
31227 /* System header to define __stub macros and hopefully few prototypes,
31228     which can conflict with char $ac_func (); below.
31229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31230     <limits.h> exists even on freestanding compilers.  */
31231
31232 #ifdef __STDC__
31233 # include <limits.h>
31234 #else
31235 # include <assert.h>
31236 #endif
31237
31238 #undef $ac_func
31239
31240 /* Override any GCC internal prototype to avoid an error.
31241    Use char because int might match the return type of a GCC
31242    builtin and then its argument prototype would still apply.  */
31243 #ifdef __cplusplus
31244 extern "C"
31245 #endif
31246 char $ac_func ();
31247 /* The GNU C library defines this for functions which it implements
31248     to always fail with ENOSYS.  Some functions are actually named
31249     something starting with __ and the normal name is an alias.  */
31250 #if defined __stub_$ac_func || defined __stub___$ac_func
31251 choke me
31252 #endif
31253
31254 int
31255 main ()
31256 {
31257 return $ac_func ();
31258   ;
31259   return 0;
31260 }
31261 _ACEOF
31262 rm -f conftest.$ac_objext conftest$ac_exeext
31263 if { (ac_try="$ac_link"
31264 case "(($ac_try" in
31265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266   *) ac_try_echo=$ac_try;;
31267 esac
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269   (eval "$ac_link") 2>conftest.er1
31270   ac_status=$?
31271   grep -v '^ *+' conftest.er1 >conftest.err
31272   rm -f conftest.er1
31273   cat conftest.err >&5
31274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275   (exit $ac_status); } &&
31276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31277   { (case "(($ac_try" in
31278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31279   *) ac_try_echo=$ac_try;;
31280 esac
31281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31282   (eval "$ac_try") 2>&5
31283   ac_status=$?
31284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285   (exit $ac_status); }; } &&
31286          { ac_try='test -s conftest$ac_exeext'
31287   { (case "(($ac_try" in
31288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289   *) ac_try_echo=$ac_try;;
31290 esac
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292   (eval "$ac_try") 2>&5
31293   ac_status=$?
31294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295   (exit $ac_status); }; }; then
31296   eval "$as_ac_var=yes"
31297 else
31298   echo "$as_me: failed program was:" >&5
31299 sed 's/^/| /' conftest.$ac_ext >&5
31300
31301         eval "$as_ac_var=no"
31302 fi
31303
31304 rm -f core conftest.err conftest.$ac_objext \
31305       conftest$ac_exeext conftest.$ac_ext
31306 fi
31307 ac_res=`eval echo '${'$as_ac_var'}'`
31308                { echo "$as_me:$LINENO: result: $ac_res" >&5
31309 echo "${ECHO_T}$ac_res" >&6; }
31310 if test `eval echo '${'$as_ac_var'}'` = yes; then
31311   cat >>confdefs.h <<_ACEOF
31312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31313 _ACEOF
31314
31315 fi
31316 done
31317
31318
31319
31320
31321
31322 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31323 do
31324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31328   echo $ECHO_N "(cached) $ECHO_C" >&6
31329 else
31330   cat >conftest.$ac_ext <<_ACEOF
31331 /* confdefs.h.  */
31332 _ACEOF
31333 cat confdefs.h >>conftest.$ac_ext
31334 cat >>conftest.$ac_ext <<_ACEOF
31335 /* end confdefs.h.  */
31336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31338 #define $ac_func innocuous_$ac_func
31339
31340 /* System header to define __stub macros and hopefully few prototypes,
31341     which can conflict with char $ac_func (); below.
31342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31343     <limits.h> exists even on freestanding compilers.  */
31344
31345 #ifdef __STDC__
31346 # include <limits.h>
31347 #else
31348 # include <assert.h>
31349 #endif
31350
31351 #undef $ac_func
31352
31353 /* Override any GCC internal prototype to avoid an error.
31354    Use char because int might match the return type of a GCC
31355    builtin and then its argument prototype would still apply.  */
31356 #ifdef __cplusplus
31357 extern "C"
31358 #endif
31359 char $ac_func ();
31360 /* The GNU C library defines this for functions which it implements
31361     to always fail with ENOSYS.  Some functions are actually named
31362     something starting with __ and the normal name is an alias.  */
31363 #if defined __stub_$ac_func || defined __stub___$ac_func
31364 choke me
31365 #endif
31366
31367 int
31368 main ()
31369 {
31370 return $ac_func ();
31371   ;
31372   return 0;
31373 }
31374 _ACEOF
31375 rm -f conftest.$ac_objext conftest$ac_exeext
31376 if { (ac_try="$ac_link"
31377 case "(($ac_try" in
31378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379   *) ac_try_echo=$ac_try;;
31380 esac
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382   (eval "$ac_link") 2>conftest.er1
31383   ac_status=$?
31384   grep -v '^ *+' conftest.er1 >conftest.err
31385   rm -f conftest.er1
31386   cat conftest.err >&5
31387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388   (exit $ac_status); } &&
31389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31390   { (case "(($ac_try" in
31391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392   *) ac_try_echo=$ac_try;;
31393 esac
31394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395   (eval "$ac_try") 2>&5
31396   ac_status=$?
31397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398   (exit $ac_status); }; } &&
31399          { ac_try='test -s conftest$ac_exeext'
31400   { (case "(($ac_try" in
31401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402   *) ac_try_echo=$ac_try;;
31403 esac
31404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405   (eval "$ac_try") 2>&5
31406   ac_status=$?
31407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408   (exit $ac_status); }; }; then
31409   eval "$as_ac_var=yes"
31410 else
31411   echo "$as_me: failed program was:" >&5
31412 sed 's/^/| /' conftest.$ac_ext >&5
31413
31414         eval "$as_ac_var=no"
31415 fi
31416
31417 rm -f core conftest.err conftest.$ac_objext \
31418       conftest$ac_exeext conftest.$ac_ext
31419 fi
31420 ac_res=`eval echo '${'$as_ac_var'}'`
31421                { echo "$as_me:$LINENO: result: $ac_res" >&5
31422 echo "${ECHO_T}$ac_res" >&6; }
31423 if test `eval echo '${'$as_ac_var'}'` = yes; then
31424   cat >>confdefs.h <<_ACEOF
31425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31426 _ACEOF
31427
31428 fi
31429 done
31430
31431 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31432 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31433 if test "${llvm_cv_c_printf_a+set}" = set; then
31434   echo $ECHO_N "(cached) $ECHO_C" >&6
31435 else
31436   ac_ext=c
31437 ac_cpp='$CPP $CPPFLAGS'
31438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31441
31442  if test "$cross_compiling" = yes; then
31443   llvmac_cv_c_printf_a=no
31444 else
31445   cat >conftest.$ac_ext <<_ACEOF
31446
31447   /* confdefs.h.  */
31448 _ACEOF
31449 cat confdefs.h >>conftest.$ac_ext
31450 cat >>conftest.$ac_ext <<_ACEOF
31451 /* end confdefs.h.  */
31452
31453 #include <stdio.h>
31454 #include <stdlib.h>
31455
31456 int
31457 main ()
31458 {
31459
31460 volatile double A, B;
31461 char Buffer[100];
31462 A = 1;
31463 A /= 10.0;
31464 sprintf(Buffer, "%a", A);
31465 B = atof(Buffer);
31466 if (A != B)
31467   return (1);
31468 if (A != 0x1.999999999999ap-4)
31469   return (1);
31470 return (0);
31471   ;
31472   return 0;
31473 }
31474 _ACEOF
31475 rm -f conftest$ac_exeext
31476 if { (ac_try="$ac_link"
31477 case "(($ac_try" in
31478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31479   *) ac_try_echo=$ac_try;;
31480 esac
31481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31482   (eval "$ac_link") 2>&5
31483   ac_status=$?
31484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31486   { (case "(($ac_try" in
31487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31488   *) ac_try_echo=$ac_try;;
31489 esac
31490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491   (eval "$ac_try") 2>&5
31492   ac_status=$?
31493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494   (exit $ac_status); }; }; then
31495   llvm_cv_c_printf_a=yes
31496 else
31497   echo "$as_me: program exited with status $ac_status" >&5
31498 echo "$as_me: failed program was:" >&5
31499 sed 's/^/| /' conftest.$ac_ext >&5
31500
31501 ( exit $ac_status )
31502 llvmac_cv_c_printf_a=no
31503 fi
31504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31505 fi
31506
31507
31508  ac_ext=c
31509 ac_cpp='$CPP $CPPFLAGS'
31510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31513
31514 fi
31515 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31516 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31517  if test "$llvm_cv_c_printf_a" = "yes"; then
31518
31519 cat >>confdefs.h <<\_ACEOF
31520 #define HAVE_PRINTF_A 1
31521 _ACEOF
31522
31523  fi
31524
31525 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31526 # for constant arguments.  Useless!
31527 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31528 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31529 if test "${ac_cv_working_alloca_h+set}" = set; then
31530   echo $ECHO_N "(cached) $ECHO_C" >&6
31531 else
31532   cat >conftest.$ac_ext <<_ACEOF
31533 /* confdefs.h.  */
31534 _ACEOF
31535 cat confdefs.h >>conftest.$ac_ext
31536 cat >>conftest.$ac_ext <<_ACEOF
31537 /* end confdefs.h.  */
31538 #include <alloca.h>
31539 int
31540 main ()
31541 {
31542 char *p = (char *) alloca (2 * sizeof (int));
31543                           if (p) return 0;
31544   ;
31545   return 0;
31546 }
31547 _ACEOF
31548 rm -f conftest.$ac_objext conftest$ac_exeext
31549 if { (ac_try="$ac_link"
31550 case "(($ac_try" in
31551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552   *) ac_try_echo=$ac_try;;
31553 esac
31554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555   (eval "$ac_link") 2>conftest.er1
31556   ac_status=$?
31557   grep -v '^ *+' conftest.er1 >conftest.err
31558   rm -f conftest.er1
31559   cat conftest.err >&5
31560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561   (exit $ac_status); } &&
31562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31563   { (case "(($ac_try" in
31564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31565   *) ac_try_echo=$ac_try;;
31566 esac
31567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31568   (eval "$ac_try") 2>&5
31569   ac_status=$?
31570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571   (exit $ac_status); }; } &&
31572          { ac_try='test -s conftest$ac_exeext'
31573   { (case "(($ac_try" in
31574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31575   *) ac_try_echo=$ac_try;;
31576 esac
31577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31578   (eval "$ac_try") 2>&5
31579   ac_status=$?
31580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581   (exit $ac_status); }; }; then
31582   ac_cv_working_alloca_h=yes
31583 else
31584   echo "$as_me: failed program was:" >&5
31585 sed 's/^/| /' conftest.$ac_ext >&5
31586
31587         ac_cv_working_alloca_h=no
31588 fi
31589
31590 rm -f core conftest.err conftest.$ac_objext \
31591       conftest$ac_exeext conftest.$ac_ext
31592 fi
31593 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31594 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31595 if test $ac_cv_working_alloca_h = yes; then
31596
31597 cat >>confdefs.h <<\_ACEOF
31598 #define HAVE_ALLOCA_H 1
31599 _ACEOF
31600
31601 fi
31602
31603 { echo "$as_me:$LINENO: checking for alloca" >&5
31604 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31605 if test "${ac_cv_func_alloca_works+set}" = set; then
31606   echo $ECHO_N "(cached) $ECHO_C" >&6
31607 else
31608   cat >conftest.$ac_ext <<_ACEOF
31609 /* confdefs.h.  */
31610 _ACEOF
31611 cat confdefs.h >>conftest.$ac_ext
31612 cat >>conftest.$ac_ext <<_ACEOF
31613 /* end confdefs.h.  */
31614 #ifdef __GNUC__
31615 # define alloca __builtin_alloca
31616 #else
31617 # ifdef _MSC_VER
31618 #  include <malloc.h>
31619 #  define alloca _alloca
31620 # else
31621 #  if HAVE_ALLOCA_H
31622 #   include <alloca.h>
31623 #  else
31624 #   ifdef _AIX
31625  #pragma alloca
31626 #   else
31627 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31628 char *alloca ();
31629 #    endif
31630 #   endif
31631 #  endif
31632 # endif
31633 #endif
31634
31635 int
31636 main ()
31637 {
31638 char *p = (char *) alloca (1);
31639                                     if (p) return 0;
31640   ;
31641   return 0;
31642 }
31643 _ACEOF
31644 rm -f conftest.$ac_objext conftest$ac_exeext
31645 if { (ac_try="$ac_link"
31646 case "(($ac_try" in
31647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31648   *) ac_try_echo=$ac_try;;
31649 esac
31650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31651   (eval "$ac_link") 2>conftest.er1
31652   ac_status=$?
31653   grep -v '^ *+' conftest.er1 >conftest.err
31654   rm -f conftest.er1
31655   cat conftest.err >&5
31656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657   (exit $ac_status); } &&
31658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31659   { (case "(($ac_try" in
31660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31661   *) ac_try_echo=$ac_try;;
31662 esac
31663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31664   (eval "$ac_try") 2>&5
31665   ac_status=$?
31666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667   (exit $ac_status); }; } &&
31668          { ac_try='test -s conftest$ac_exeext'
31669   { (case "(($ac_try" in
31670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671   *) ac_try_echo=$ac_try;;
31672 esac
31673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674   (eval "$ac_try") 2>&5
31675   ac_status=$?
31676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677   (exit $ac_status); }; }; then
31678   ac_cv_func_alloca_works=yes
31679 else
31680   echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31682
31683         ac_cv_func_alloca_works=no
31684 fi
31685
31686 rm -f core conftest.err conftest.$ac_objext \
31687       conftest$ac_exeext conftest.$ac_ext
31688 fi
31689 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31690 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31691
31692 if test $ac_cv_func_alloca_works = yes; then
31693
31694 cat >>confdefs.h <<\_ACEOF
31695 #define HAVE_ALLOCA 1
31696 _ACEOF
31697
31698 else
31699   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31700 # that cause trouble.  Some versions do not even contain alloca or
31701 # contain a buggy version.  If you still want to use their alloca,
31702 # use ar to extract alloca.o from them instead of compiling alloca.c.
31703
31704 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31705
31706 cat >>confdefs.h <<\_ACEOF
31707 #define C_ALLOCA 1
31708 _ACEOF
31709
31710
31711 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31712 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31713 if test "${ac_cv_os_cray+set}" = set; then
31714   echo $ECHO_N "(cached) $ECHO_C" >&6
31715 else
31716   cat >conftest.$ac_ext <<_ACEOF
31717 /* confdefs.h.  */
31718 _ACEOF
31719 cat confdefs.h >>conftest.$ac_ext
31720 cat >>conftest.$ac_ext <<_ACEOF
31721 /* end confdefs.h.  */
31722 #if defined CRAY && ! defined CRAY2
31723 webecray
31724 #else
31725 wenotbecray
31726 #endif
31727
31728 _ACEOF
31729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31730   $EGREP "webecray" >/dev/null 2>&1; then
31731   ac_cv_os_cray=yes
31732 else
31733   ac_cv_os_cray=no
31734 fi
31735 rm -f conftest*
31736
31737 fi
31738 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31739 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31740 if test $ac_cv_os_cray = yes; then
31741   for ac_func in _getb67 GETB67 getb67; do
31742     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31746   echo $ECHO_N "(cached) $ECHO_C" >&6
31747 else
31748   cat >conftest.$ac_ext <<_ACEOF
31749 /* confdefs.h.  */
31750 _ACEOF
31751 cat confdefs.h >>conftest.$ac_ext
31752 cat >>conftest.$ac_ext <<_ACEOF
31753 /* end confdefs.h.  */
31754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31756 #define $ac_func innocuous_$ac_func
31757
31758 /* System header to define __stub macros and hopefully few prototypes,
31759     which can conflict with char $ac_func (); below.
31760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31761     <limits.h> exists even on freestanding compilers.  */
31762
31763 #ifdef __STDC__
31764 # include <limits.h>
31765 #else
31766 # include <assert.h>
31767 #endif
31768
31769 #undef $ac_func
31770
31771 /* Override any GCC internal prototype to avoid an error.
31772    Use char because int might match the return type of a GCC
31773    builtin and then its argument prototype would still apply.  */
31774 #ifdef __cplusplus
31775 extern "C"
31776 #endif
31777 char $ac_func ();
31778 /* The GNU C library defines this for functions which it implements
31779     to always fail with ENOSYS.  Some functions are actually named
31780     something starting with __ and the normal name is an alias.  */
31781 #if defined __stub_$ac_func || defined __stub___$ac_func
31782 choke me
31783 #endif
31784
31785 int
31786 main ()
31787 {
31788 return $ac_func ();
31789   ;
31790   return 0;
31791 }
31792 _ACEOF
31793 rm -f conftest.$ac_objext conftest$ac_exeext
31794 if { (ac_try="$ac_link"
31795 case "(($ac_try" in
31796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31797   *) ac_try_echo=$ac_try;;
31798 esac
31799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31800   (eval "$ac_link") 2>conftest.er1
31801   ac_status=$?
31802   grep -v '^ *+' conftest.er1 >conftest.err
31803   rm -f conftest.er1
31804   cat conftest.err >&5
31805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806   (exit $ac_status); } &&
31807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31808   { (case "(($ac_try" in
31809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31810   *) ac_try_echo=$ac_try;;
31811 esac
31812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31813   (eval "$ac_try") 2>&5
31814   ac_status=$?
31815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816   (exit $ac_status); }; } &&
31817          { ac_try='test -s conftest$ac_exeext'
31818   { (case "(($ac_try" in
31819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31820   *) ac_try_echo=$ac_try;;
31821 esac
31822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31823   (eval "$ac_try") 2>&5
31824   ac_status=$?
31825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826   (exit $ac_status); }; }; then
31827   eval "$as_ac_var=yes"
31828 else
31829   echo "$as_me: failed program was:" >&5
31830 sed 's/^/| /' conftest.$ac_ext >&5
31831
31832         eval "$as_ac_var=no"
31833 fi
31834
31835 rm -f core conftest.err conftest.$ac_objext \
31836       conftest$ac_exeext conftest.$ac_ext
31837 fi
31838 ac_res=`eval echo '${'$as_ac_var'}'`
31839                { echo "$as_me:$LINENO: result: $ac_res" >&5
31840 echo "${ECHO_T}$ac_res" >&6; }
31841 if test `eval echo '${'$as_ac_var'}'` = yes; then
31842
31843 cat >>confdefs.h <<_ACEOF
31844 #define CRAY_STACKSEG_END $ac_func
31845 _ACEOF
31846
31847     break
31848 fi
31849
31850   done
31851 fi
31852
31853 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31854 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31855 if test "${ac_cv_c_stack_direction+set}" = set; then
31856   echo $ECHO_N "(cached) $ECHO_C" >&6
31857 else
31858   if test "$cross_compiling" = yes; then
31859   ac_cv_c_stack_direction=0
31860 else
31861   cat >conftest.$ac_ext <<_ACEOF
31862 /* confdefs.h.  */
31863 _ACEOF
31864 cat confdefs.h >>conftest.$ac_ext
31865 cat >>conftest.$ac_ext <<_ACEOF
31866 /* end confdefs.h.  */
31867 $ac_includes_default
31868 int
31869 find_stack_direction ()
31870 {
31871   static char *addr = 0;
31872   auto char dummy;
31873   if (addr == 0)
31874     {
31875       addr = &dummy;
31876       return find_stack_direction ();
31877     }
31878   else
31879     return (&dummy > addr) ? 1 : -1;
31880 }
31881
31882 int
31883 main ()
31884 {
31885   return find_stack_direction () < 0;
31886 }
31887 _ACEOF
31888 rm -f conftest$ac_exeext
31889 if { (ac_try="$ac_link"
31890 case "(($ac_try" in
31891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892   *) ac_try_echo=$ac_try;;
31893 esac
31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895   (eval "$ac_link") 2>&5
31896   ac_status=$?
31897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31899   { (case "(($ac_try" in
31900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901   *) ac_try_echo=$ac_try;;
31902 esac
31903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31904   (eval "$ac_try") 2>&5
31905   ac_status=$?
31906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907   (exit $ac_status); }; }; then
31908   ac_cv_c_stack_direction=1
31909 else
31910   echo "$as_me: program exited with status $ac_status" >&5
31911 echo "$as_me: failed program was:" >&5
31912 sed 's/^/| /' conftest.$ac_ext >&5
31913
31914 ( exit $ac_status )
31915 ac_cv_c_stack_direction=-1
31916 fi
31917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31918 fi
31919
31920
31921 fi
31922 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31923 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31924
31925 cat >>confdefs.h <<_ACEOF
31926 #define STACK_DIRECTION $ac_cv_c_stack_direction
31927 _ACEOF
31928
31929
31930 fi
31931
31932
31933 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31934 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31935 if test "${ac_cv_func_rand48+set}" = set; then
31936   echo $ECHO_N "(cached) $ECHO_C" >&6
31937 else
31938   ac_ext=cpp
31939 ac_cpp='$CXXCPP $CPPFLAGS'
31940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31943
31944    cat >conftest.$ac_ext <<_ACEOF
31945 /* confdefs.h.  */
31946 _ACEOF
31947 cat confdefs.h >>conftest.$ac_ext
31948 cat >>conftest.$ac_ext <<_ACEOF
31949 /* end confdefs.h.  */
31950 #include <stdlib.h>
31951 int
31952 main ()
31953 {
31954 srand48(0);lrand48();drand48();
31955   ;
31956   return 0;
31957 }
31958 _ACEOF
31959 rm -f conftest.$ac_objext
31960 if { (ac_try="$ac_compile"
31961 case "(($ac_try" in
31962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963   *) ac_try_echo=$ac_try;;
31964 esac
31965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966   (eval "$ac_compile") 2>conftest.er1
31967   ac_status=$?
31968   grep -v '^ *+' conftest.er1 >conftest.err
31969   rm -f conftest.er1
31970   cat conftest.err >&5
31971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972   (exit $ac_status); } &&
31973          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31974   { (case "(($ac_try" in
31975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976   *) ac_try_echo=$ac_try;;
31977 esac
31978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979   (eval "$ac_try") 2>&5
31980   ac_status=$?
31981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982   (exit $ac_status); }; } &&
31983          { ac_try='test -s conftest.$ac_objext'
31984   { (case "(($ac_try" in
31985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31986   *) ac_try_echo=$ac_try;;
31987 esac
31988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31989   (eval "$ac_try") 2>&5
31990   ac_status=$?
31991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992   (exit $ac_status); }; }; then
31993   ac_cv_func_rand48=yes
31994 else
31995   echo "$as_me: failed program was:" >&5
31996 sed 's/^/| /' conftest.$ac_ext >&5
31997
31998         ac_cv_func_rand48=no
31999 fi
32000
32001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32002   ac_ext=c
32003 ac_cpp='$CPP $CPPFLAGS'
32004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32007
32008 fi
32009 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32010 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32011
32012 if test "$ac_cv_func_rand48" = "yes" ; then
32013
32014 cat >>confdefs.h <<\_ACEOF
32015 #define HAVE_RAND48 1
32016 _ACEOF
32017
32018 fi
32019
32020
32021 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32022 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32023 if test "${ac_cv_cxx_namespaces+set}" = set; then
32024   echo $ECHO_N "(cached) $ECHO_C" >&6
32025 else
32026   ac_ext=cpp
32027 ac_cpp='$CXXCPP $CPPFLAGS'
32028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32031
32032  cat >conftest.$ac_ext <<_ACEOF
32033 /* confdefs.h.  */
32034 _ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h.  */
32038 namespace Outer { namespace Inner { int i = 0; }}
32039 int
32040 main ()
32041 {
32042 using namespace Outer::Inner; return i;
32043   ;
32044   return 0;
32045 }
32046 _ACEOF
32047 rm -f conftest.$ac_objext
32048 if { (ac_try="$ac_compile"
32049 case "(($ac_try" in
32050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051   *) ac_try_echo=$ac_try;;
32052 esac
32053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32054   (eval "$ac_compile") 2>conftest.er1
32055   ac_status=$?
32056   grep -v '^ *+' conftest.er1 >conftest.err
32057   rm -f conftest.er1
32058   cat conftest.err >&5
32059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060   (exit $ac_status); } &&
32061          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32062   { (case "(($ac_try" in
32063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32064   *) ac_try_echo=$ac_try;;
32065 esac
32066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32067   (eval "$ac_try") 2>&5
32068   ac_status=$?
32069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070   (exit $ac_status); }; } &&
32071          { ac_try='test -s conftest.$ac_objext'
32072   { (case "(($ac_try" in
32073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074   *) ac_try_echo=$ac_try;;
32075 esac
32076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077   (eval "$ac_try") 2>&5
32078   ac_status=$?
32079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080   (exit $ac_status); }; }; then
32081   ac_cv_cxx_namespaces=yes
32082 else
32083   echo "$as_me: failed program was:" >&5
32084 sed 's/^/| /' conftest.$ac_ext >&5
32085
32086         ac_cv_cxx_namespaces=no
32087 fi
32088
32089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32090  ac_ext=c
32091 ac_cpp='$CPP $CPPFLAGS'
32092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32095
32096
32097 fi
32098 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32099 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32100 if test "$ac_cv_cxx_namespaces" = yes; then
32101
32102 cat >>confdefs.h <<\_ACEOF
32103 #define HAVE_NAMESPACES
32104 _ACEOF
32105
32106 fi
32107
32108 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32109 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32110 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32111   echo $ECHO_N "(cached) $ECHO_C" >&6
32112 else
32113
32114   ac_ext=cpp
32115 ac_cpp='$CXXCPP $CPPFLAGS'
32116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32119
32120   cat >conftest.$ac_ext <<_ACEOF
32121 /* confdefs.h.  */
32122 _ACEOF
32123 cat confdefs.h >>conftest.$ac_ext
32124 cat >>conftest.$ac_ext <<_ACEOF
32125 /* end confdefs.h.  */
32126 #include <iterator>
32127 #ifdef HAVE_NAMESPACES
32128 using namespace std;
32129 #endif
32130 int
32131 main ()
32132 {
32133 iterator<int,int,int> t; return 0;
32134   ;
32135   return 0;
32136 }
32137 _ACEOF
32138 rm -f conftest.$ac_objext
32139 if { (ac_try="$ac_compile"
32140 case "(($ac_try" in
32141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32142   *) ac_try_echo=$ac_try;;
32143 esac
32144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32145   (eval "$ac_compile") 2>conftest.er1
32146   ac_status=$?
32147   grep -v '^ *+' conftest.er1 >conftest.err
32148   rm -f conftest.er1
32149   cat conftest.err >&5
32150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151   (exit $ac_status); } &&
32152          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32153   { (case "(($ac_try" in
32154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155   *) ac_try_echo=$ac_try;;
32156 esac
32157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158   (eval "$ac_try") 2>&5
32159   ac_status=$?
32160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161   (exit $ac_status); }; } &&
32162          { ac_try='test -s conftest.$ac_objext'
32163   { (case "(($ac_try" in
32164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32165   *) ac_try_echo=$ac_try;;
32166 esac
32167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32168   (eval "$ac_try") 2>&5
32169   ac_status=$?
32170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171   (exit $ac_status); }; }; then
32172   ac_cv_cxx_have_std_iterator=yes
32173 else
32174   echo "$as_me: failed program was:" >&5
32175 sed 's/^/| /' conftest.$ac_ext >&5
32176
32177         ac_cv_cxx_have_std_iterator=no
32178 fi
32179
32180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32181   ac_ext=c
32182 ac_cpp='$CPP $CPPFLAGS'
32183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32186
32187
32188 fi
32189 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32190 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32191 if test "$ac_cv_cxx_have_std_iterator" = yes
32192 then
32193
32194 cat >>confdefs.h <<\_ACEOF
32195 #define HAVE_STD_ITERATOR 1
32196 _ACEOF
32197
32198 else
32199
32200 cat >>confdefs.h <<\_ACEOF
32201 #define HAVE_STD_ITERATOR 0
32202 _ACEOF
32203
32204 fi
32205
32206 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32207 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32208 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32209   echo $ECHO_N "(cached) $ECHO_C" >&6
32210 else
32211
32212   ac_ext=cpp
32213 ac_cpp='$CXXCPP $CPPFLAGS'
32214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32217
32218   cat >conftest.$ac_ext <<_ACEOF
32219 /* confdefs.h.  */
32220 _ACEOF
32221 cat confdefs.h >>conftest.$ac_ext
32222 cat >>conftest.$ac_ext <<_ACEOF
32223 /* end confdefs.h.  */
32224 #include <iterator>
32225 #ifdef HAVE_NAMESPACES
32226 using namespace std;
32227 #endif
32228 int
32229 main ()
32230 {
32231 bidirectional_iterator<int,int> t; return 0;
32232   ;
32233   return 0;
32234 }
32235 _ACEOF
32236 rm -f conftest.$ac_objext
32237 if { (ac_try="$ac_compile"
32238 case "(($ac_try" in
32239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240   *) ac_try_echo=$ac_try;;
32241 esac
32242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243   (eval "$ac_compile") 2>conftest.er1
32244   ac_status=$?
32245   grep -v '^ *+' conftest.er1 >conftest.err
32246   rm -f conftest.er1
32247   cat conftest.err >&5
32248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249   (exit $ac_status); } &&
32250          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32251   { (case "(($ac_try" in
32252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32253   *) ac_try_echo=$ac_try;;
32254 esac
32255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32256   (eval "$ac_try") 2>&5
32257   ac_status=$?
32258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259   (exit $ac_status); }; } &&
32260          { ac_try='test -s conftest.$ac_objext'
32261   { (case "(($ac_try" in
32262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32263   *) ac_try_echo=$ac_try;;
32264 esac
32265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32266   (eval "$ac_try") 2>&5
32267   ac_status=$?
32268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269   (exit $ac_status); }; }; then
32270   ac_cv_cxx_have_bi_iterator=yes
32271 else
32272   echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32274
32275         ac_cv_cxx_have_bi_iterator=no
32276 fi
32277
32278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32279   ac_ext=c
32280 ac_cpp='$CPP $CPPFLAGS'
32281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32284
32285
32286 fi
32287 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32288 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32289 if test "$ac_cv_cxx_have_bi_iterator" = yes
32290 then
32291
32292 cat >>confdefs.h <<\_ACEOF
32293 #define HAVE_BI_ITERATOR 1
32294 _ACEOF
32295
32296 else
32297
32298 cat >>confdefs.h <<\_ACEOF
32299 #define HAVE_BI_ITERATOR 0
32300 _ACEOF
32301
32302 fi
32303
32304 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32305 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32306 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32307   echo $ECHO_N "(cached) $ECHO_C" >&6
32308 else
32309
32310   ac_ext=cpp
32311 ac_cpp='$CXXCPP $CPPFLAGS'
32312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32315
32316   cat >conftest.$ac_ext <<_ACEOF
32317 /* confdefs.h.  */
32318 _ACEOF
32319 cat confdefs.h >>conftest.$ac_ext
32320 cat >>conftest.$ac_ext <<_ACEOF
32321 /* end confdefs.h.  */
32322 #include <iterator>
32323 #ifdef HAVE_NAMESPACES
32324 using namespace std;
32325 #endif
32326 int
32327 main ()
32328 {
32329 forward_iterator<int,int> t; return 0;
32330   ;
32331   return 0;
32332 }
32333 _ACEOF
32334 rm -f conftest.$ac_objext
32335 if { (ac_try="$ac_compile"
32336 case "(($ac_try" in
32337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338   *) ac_try_echo=$ac_try;;
32339 esac
32340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341   (eval "$ac_compile") 2>conftest.er1
32342   ac_status=$?
32343   grep -v '^ *+' conftest.er1 >conftest.err
32344   rm -f conftest.er1
32345   cat conftest.err >&5
32346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347   (exit $ac_status); } &&
32348          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32349   { (case "(($ac_try" in
32350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351   *) ac_try_echo=$ac_try;;
32352 esac
32353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354   (eval "$ac_try") 2>&5
32355   ac_status=$?
32356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357   (exit $ac_status); }; } &&
32358          { ac_try='test -s conftest.$ac_objext'
32359   { (case "(($ac_try" in
32360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361   *) ac_try_echo=$ac_try;;
32362 esac
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364   (eval "$ac_try") 2>&5
32365   ac_status=$?
32366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367   (exit $ac_status); }; }; then
32368   ac_cv_cxx_have_fwd_iterator=yes
32369 else
32370   echo "$as_me: failed program was:" >&5
32371 sed 's/^/| /' conftest.$ac_ext >&5
32372
32373         ac_cv_cxx_have_fwd_iterator=no
32374 fi
32375
32376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32377   ac_ext=c
32378 ac_cpp='$CPP $CPPFLAGS'
32379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32382
32383
32384 fi
32385 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32386 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32387 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32388 then
32389
32390 cat >>confdefs.h <<\_ACEOF
32391 #define HAVE_FWD_ITERATOR 1
32392 _ACEOF
32393
32394 else
32395
32396 cat >>confdefs.h <<\_ACEOF
32397 #define HAVE_FWD_ITERATOR 0
32398 _ACEOF
32399
32400 fi
32401
32402
32403 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32404 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32405 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32406   echo $ECHO_N "(cached) $ECHO_C" >&6
32407 else
32408   ac_ext=cpp
32409 ac_cpp='$CXXCPP $CPPFLAGS'
32410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32413
32414    cat >conftest.$ac_ext <<_ACEOF
32415 /* confdefs.h.  */
32416 _ACEOF
32417 cat confdefs.h >>conftest.$ac_ext
32418 cat >>conftest.$ac_ext <<_ACEOF
32419 /* end confdefs.h.  */
32420 #include <math.h>
32421 int
32422 main ()
32423 {
32424 float f; isnan(f);
32425   ;
32426   return 0;
32427 }
32428 _ACEOF
32429 rm -f conftest.$ac_objext
32430 if { (ac_try="$ac_compile"
32431 case "(($ac_try" in
32432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433   *) ac_try_echo=$ac_try;;
32434 esac
32435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32436   (eval "$ac_compile") 2>conftest.er1
32437   ac_status=$?
32438   grep -v '^ *+' conftest.er1 >conftest.err
32439   rm -f conftest.er1
32440   cat conftest.err >&5
32441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442   (exit $ac_status); } &&
32443          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32444   { (case "(($ac_try" in
32445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32446   *) ac_try_echo=$ac_try;;
32447 esac
32448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32449   (eval "$ac_try") 2>&5
32450   ac_status=$?
32451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452   (exit $ac_status); }; } &&
32453          { ac_try='test -s conftest.$ac_objext'
32454   { (case "(($ac_try" in
32455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456   *) ac_try_echo=$ac_try;;
32457 esac
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459   (eval "$ac_try") 2>&5
32460   ac_status=$?
32461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462   (exit $ac_status); }; }; then
32463   ac_cv_func_isnan_in_math_h=yes
32464 else
32465   echo "$as_me: failed program was:" >&5
32466 sed 's/^/| /' conftest.$ac_ext >&5
32467
32468         ac_cv_func_isnan_in_math_h=no
32469 fi
32470
32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32472   ac_ext=c
32473 ac_cpp='$CPP $CPPFLAGS'
32474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32477
32478 fi
32479 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32480 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32481
32482
32483 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32484
32485 cat >>confdefs.h <<\_ACEOF
32486 #define HAVE_ISNAN_IN_MATH_H 1
32487 _ACEOF
32488
32489 fi
32490
32491 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32492 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32493 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32494   echo $ECHO_N "(cached) $ECHO_C" >&6
32495 else
32496   ac_ext=cpp
32497 ac_cpp='$CXXCPP $CPPFLAGS'
32498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32501
32502    cat >conftest.$ac_ext <<_ACEOF
32503 /* confdefs.h.  */
32504 _ACEOF
32505 cat confdefs.h >>conftest.$ac_ext
32506 cat >>conftest.$ac_ext <<_ACEOF
32507 /* end confdefs.h.  */
32508 #include <cmath>
32509 int
32510 main ()
32511 {
32512 float f; isnan(f);
32513   ;
32514   return 0;
32515 }
32516 _ACEOF
32517 rm -f conftest.$ac_objext
32518 if { (ac_try="$ac_compile"
32519 case "(($ac_try" in
32520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521   *) ac_try_echo=$ac_try;;
32522 esac
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524   (eval "$ac_compile") 2>conftest.er1
32525   ac_status=$?
32526   grep -v '^ *+' conftest.er1 >conftest.err
32527   rm -f conftest.er1
32528   cat conftest.err >&5
32529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530   (exit $ac_status); } &&
32531          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32532   { (case "(($ac_try" in
32533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534   *) ac_try_echo=$ac_try;;
32535 esac
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537   (eval "$ac_try") 2>&5
32538   ac_status=$?
32539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540   (exit $ac_status); }; } &&
32541          { ac_try='test -s conftest.$ac_objext'
32542   { (case "(($ac_try" in
32543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544   *) ac_try_echo=$ac_try;;
32545 esac
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547   (eval "$ac_try") 2>&5
32548   ac_status=$?
32549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550   (exit $ac_status); }; }; then
32551   ac_cv_func_isnan_in_cmath=yes
32552 else
32553   echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32555
32556         ac_cv_func_isnan_in_cmath=no
32557 fi
32558
32559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32560   ac_ext=c
32561 ac_cpp='$CPP $CPPFLAGS'
32562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32565
32566 fi
32567 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32568 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32569
32570 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32571
32572 cat >>confdefs.h <<\_ACEOF
32573 #define HAVE_ISNAN_IN_CMATH 1
32574 _ACEOF
32575
32576 fi
32577
32578 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32579 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32580 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32581   echo $ECHO_N "(cached) $ECHO_C" >&6
32582 else
32583   ac_ext=cpp
32584 ac_cpp='$CXXCPP $CPPFLAGS'
32585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32588
32589    cat >conftest.$ac_ext <<_ACEOF
32590 /* confdefs.h.  */
32591 _ACEOF
32592 cat confdefs.h >>conftest.$ac_ext
32593 cat >>conftest.$ac_ext <<_ACEOF
32594 /* end confdefs.h.  */
32595 #include <cmath>
32596 int
32597 main ()
32598 {
32599 float f; std::isnan(f);
32600   ;
32601   return 0;
32602 }
32603 _ACEOF
32604 rm -f conftest.$ac_objext
32605 if { (ac_try="$ac_compile"
32606 case "(($ac_try" in
32607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608   *) ac_try_echo=$ac_try;;
32609 esac
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611   (eval "$ac_compile") 2>conftest.er1
32612   ac_status=$?
32613   grep -v '^ *+' conftest.er1 >conftest.err
32614   rm -f conftest.er1
32615   cat conftest.err >&5
32616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617   (exit $ac_status); } &&
32618          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32619   { (case "(($ac_try" in
32620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32621   *) ac_try_echo=$ac_try;;
32622 esac
32623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32624   (eval "$ac_try") 2>&5
32625   ac_status=$?
32626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627   (exit $ac_status); }; } &&
32628          { ac_try='test -s conftest.$ac_objext'
32629   { (case "(($ac_try" in
32630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631   *) ac_try_echo=$ac_try;;
32632 esac
32633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634   (eval "$ac_try") 2>&5
32635   ac_status=$?
32636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637   (exit $ac_status); }; }; then
32638   ac_cv_func_std_isnan_in_cmath=yes
32639 else
32640   echo "$as_me: failed program was:" >&5
32641 sed 's/^/| /' conftest.$ac_ext >&5
32642
32643         ac_cv_func_std_isnan_in_cmath=no
32644 fi
32645
32646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32647   ac_ext=c
32648 ac_cpp='$CPP $CPPFLAGS'
32649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32652
32653 fi
32654 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32655 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32656
32657 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32658
32659 cat >>confdefs.h <<\_ACEOF
32660 #define HAVE_STD_ISNAN_IN_CMATH 1
32661 _ACEOF
32662
32663 fi
32664
32665
32666 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32667 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32668 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32669   echo $ECHO_N "(cached) $ECHO_C" >&6
32670 else
32671   ac_ext=cpp
32672 ac_cpp='$CXXCPP $CPPFLAGS'
32673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32676
32677    cat >conftest.$ac_ext <<_ACEOF
32678 /* confdefs.h.  */
32679 _ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h.  */
32683 #include <math.h>
32684 int
32685 main ()
32686 {
32687 float f; isinf(f);
32688   ;
32689   return 0;
32690 }
32691 _ACEOF
32692 rm -f conftest.$ac_objext
32693 if { (ac_try="$ac_compile"
32694 case "(($ac_try" in
32695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696   *) ac_try_echo=$ac_try;;
32697 esac
32698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699   (eval "$ac_compile") 2>conftest.er1
32700   ac_status=$?
32701   grep -v '^ *+' conftest.er1 >conftest.err
32702   rm -f conftest.er1
32703   cat conftest.err >&5
32704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705   (exit $ac_status); } &&
32706          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32707   { (case "(($ac_try" in
32708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709   *) ac_try_echo=$ac_try;;
32710 esac
32711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712   (eval "$ac_try") 2>&5
32713   ac_status=$?
32714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715   (exit $ac_status); }; } &&
32716          { ac_try='test -s conftest.$ac_objext'
32717   { (case "(($ac_try" in
32718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719   *) ac_try_echo=$ac_try;;
32720 esac
32721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722   (eval "$ac_try") 2>&5
32723   ac_status=$?
32724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725   (exit $ac_status); }; }; then
32726   ac_cv_func_isinf_in_math_h=yes
32727 else
32728   echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32730
32731         ac_cv_func_isinf_in_math_h=no
32732 fi
32733
32734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32735   ac_ext=c
32736 ac_cpp='$CPP $CPPFLAGS'
32737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32740
32741 fi
32742 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32743 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32744
32745 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32746
32747 cat >>confdefs.h <<\_ACEOF
32748 #define HAVE_ISINF_IN_MATH_H 1
32749 _ACEOF
32750
32751 fi
32752
32753 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32754 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32755 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32756   echo $ECHO_N "(cached) $ECHO_C" >&6
32757 else
32758   ac_ext=cpp
32759 ac_cpp='$CXXCPP $CPPFLAGS'
32760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32763
32764    cat >conftest.$ac_ext <<_ACEOF
32765 /* confdefs.h.  */
32766 _ACEOF
32767 cat confdefs.h >>conftest.$ac_ext
32768 cat >>conftest.$ac_ext <<_ACEOF
32769 /* end confdefs.h.  */
32770 #include <cmath>
32771 int
32772 main ()
32773 {
32774 float f; isinf(f);
32775   ;
32776   return 0;
32777 }
32778 _ACEOF
32779 rm -f conftest.$ac_objext
32780 if { (ac_try="$ac_compile"
32781 case "(($ac_try" in
32782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783   *) ac_try_echo=$ac_try;;
32784 esac
32785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786   (eval "$ac_compile") 2>conftest.er1
32787   ac_status=$?
32788   grep -v '^ *+' conftest.er1 >conftest.err
32789   rm -f conftest.er1
32790   cat conftest.err >&5
32791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792   (exit $ac_status); } &&
32793          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32794   { (case "(($ac_try" in
32795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796   *) ac_try_echo=$ac_try;;
32797 esac
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799   (eval "$ac_try") 2>&5
32800   ac_status=$?
32801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802   (exit $ac_status); }; } &&
32803          { ac_try='test -s conftest.$ac_objext'
32804   { (case "(($ac_try" in
32805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806   *) ac_try_echo=$ac_try;;
32807 esac
32808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809   (eval "$ac_try") 2>&5
32810   ac_status=$?
32811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812   (exit $ac_status); }; }; then
32813   ac_cv_func_isinf_in_cmath=yes
32814 else
32815   echo "$as_me: failed program was:" >&5
32816 sed 's/^/| /' conftest.$ac_ext >&5
32817
32818         ac_cv_func_isinf_in_cmath=no
32819 fi
32820
32821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32822   ac_ext=c
32823 ac_cpp='$CPP $CPPFLAGS'
32824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32827
32828 fi
32829 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32830 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32831
32832 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32833
32834 cat >>confdefs.h <<\_ACEOF
32835 #define HAVE_ISINF_IN_CMATH 1
32836 _ACEOF
32837
32838 fi
32839
32840 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32841 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32842 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32843   echo $ECHO_N "(cached) $ECHO_C" >&6
32844 else
32845   ac_ext=cpp
32846 ac_cpp='$CXXCPP $CPPFLAGS'
32847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32850
32851    cat >conftest.$ac_ext <<_ACEOF
32852 /* confdefs.h.  */
32853 _ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h.  */
32857 #include <cmath>
32858 int
32859 main ()
32860 {
32861 float f; std::isinf(f)}
32862   ;
32863   return 0;
32864 }
32865 _ACEOF
32866 rm -f conftest.$ac_objext
32867 if { (ac_try="$ac_compile"
32868 case "(($ac_try" in
32869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870   *) ac_try_echo=$ac_try;;
32871 esac
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873   (eval "$ac_compile") 2>conftest.er1
32874   ac_status=$?
32875   grep -v '^ *+' conftest.er1 >conftest.err
32876   rm -f conftest.er1
32877   cat conftest.err >&5
32878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879   (exit $ac_status); } &&
32880          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32881   { (case "(($ac_try" in
32882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32883   *) ac_try_echo=$ac_try;;
32884 esac
32885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32886   (eval "$ac_try") 2>&5
32887   ac_status=$?
32888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889   (exit $ac_status); }; } &&
32890          { ac_try='test -s conftest.$ac_objext'
32891   { (case "(($ac_try" in
32892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893   *) ac_try_echo=$ac_try;;
32894 esac
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896   (eval "$ac_try") 2>&5
32897   ac_status=$?
32898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32899   (exit $ac_status); }; }; then
32900   ac_cv_func_std_isinf_in_cmath=yes
32901 else
32902   echo "$as_me: failed program was:" >&5
32903 sed 's/^/| /' conftest.$ac_ext >&5
32904
32905         ac_cv_func_std_isinf_in_cmath=no
32906 fi
32907
32908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32909   ac_ext=c
32910 ac_cpp='$CPP $CPPFLAGS'
32911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32914
32915 fi
32916 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32917 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32918
32919 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32920
32921 cat >>confdefs.h <<\_ACEOF
32922 #define HAVE_STD_ISINF_IN_CMATH 1
32923 _ACEOF
32924
32925 fi
32926
32927 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32928 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32929 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32930   echo $ECHO_N "(cached) $ECHO_C" >&6
32931 else
32932   ac_ext=cpp
32933 ac_cpp='$CXXCPP $CPPFLAGS'
32934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32937
32938    cat >conftest.$ac_ext <<_ACEOF
32939 /* confdefs.h.  */
32940 _ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h.  */
32944 #include <ieeefp.h>
32945 int
32946 main ()
32947 {
32948 float f; finite(f);
32949   ;
32950   return 0;
32951 }
32952 _ACEOF
32953 rm -f conftest.$ac_objext
32954 if { (ac_try="$ac_compile"
32955 case "(($ac_try" in
32956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957   *) ac_try_echo=$ac_try;;
32958 esac
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960   (eval "$ac_compile") 2>conftest.er1
32961   ac_status=$?
32962   grep -v '^ *+' conftest.er1 >conftest.err
32963   rm -f conftest.er1
32964   cat conftest.err >&5
32965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966   (exit $ac_status); } &&
32967          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32968   { (case "(($ac_try" in
32969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32970   *) ac_try_echo=$ac_try;;
32971 esac
32972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32973   (eval "$ac_try") 2>&5
32974   ac_status=$?
32975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976   (exit $ac_status); }; } &&
32977          { ac_try='test -s conftest.$ac_objext'
32978   { (case "(($ac_try" in
32979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980   *) ac_try_echo=$ac_try;;
32981 esac
32982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983   (eval "$ac_try") 2>&5
32984   ac_status=$?
32985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986   (exit $ac_status); }; }; then
32987   ac_cv_func_finite_in_ieeefp_h=yes
32988 else
32989   echo "$as_me: failed program was:" >&5
32990 sed 's/^/| /' conftest.$ac_ext >&5
32991
32992         ac_cv_func_finite_in_ieeefp_h=no
32993 fi
32994
32995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32996   ac_ext=c
32997 ac_cpp='$CPP $CPPFLAGS'
32998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33001
33002 fi
33003 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33004 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33005
33006 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33007
33008 cat >>confdefs.h <<\_ACEOF
33009 #define HAVE_FINITE_IN_IEEEFP_H 1
33010 _ACEOF
33011
33012 fi
33013
33014
33015
33016 if test "$llvm_cv_platform_type" = "Unix" ; then
33017
33018
33019 for ac_header in stdlib.h unistd.h
33020 do
33021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33023   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33026   echo $ECHO_N "(cached) $ECHO_C" >&6
33027 fi
33028 ac_res=`eval echo '${'$as_ac_Header'}'`
33029                { echo "$as_me:$LINENO: result: $ac_res" >&5
33030 echo "${ECHO_T}$ac_res" >&6; }
33031 else
33032   # Is the header compilable?
33033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33035 cat >conftest.$ac_ext <<_ACEOF
33036 /* confdefs.h.  */
33037 _ACEOF
33038 cat confdefs.h >>conftest.$ac_ext
33039 cat >>conftest.$ac_ext <<_ACEOF
33040 /* end confdefs.h.  */
33041 $ac_includes_default
33042 #include <$ac_header>
33043 _ACEOF
33044 rm -f conftest.$ac_objext
33045 if { (ac_try="$ac_compile"
33046 case "(($ac_try" in
33047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048   *) ac_try_echo=$ac_try;;
33049 esac
33050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051   (eval "$ac_compile") 2>conftest.er1
33052   ac_status=$?
33053   grep -v '^ *+' conftest.er1 >conftest.err
33054   rm -f conftest.er1
33055   cat conftest.err >&5
33056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057   (exit $ac_status); } &&
33058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33059   { (case "(($ac_try" in
33060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061   *) ac_try_echo=$ac_try;;
33062 esac
33063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064   (eval "$ac_try") 2>&5
33065   ac_status=$?
33066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067   (exit $ac_status); }; } &&
33068          { ac_try='test -s conftest.$ac_objext'
33069   { (case "(($ac_try" in
33070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071   *) ac_try_echo=$ac_try;;
33072 esac
33073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074   (eval "$ac_try") 2>&5
33075   ac_status=$?
33076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077   (exit $ac_status); }; }; then
33078   ac_header_compiler=yes
33079 else
33080   echo "$as_me: failed program was:" >&5
33081 sed 's/^/| /' conftest.$ac_ext >&5
33082
33083         ac_header_compiler=no
33084 fi
33085
33086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33088 echo "${ECHO_T}$ac_header_compiler" >&6; }
33089
33090 # Is the header present?
33091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33093 cat >conftest.$ac_ext <<_ACEOF
33094 /* confdefs.h.  */
33095 _ACEOF
33096 cat confdefs.h >>conftest.$ac_ext
33097 cat >>conftest.$ac_ext <<_ACEOF
33098 /* end confdefs.h.  */
33099 #include <$ac_header>
33100 _ACEOF
33101 if { (ac_try="$ac_cpp conftest.$ac_ext"
33102 case "(($ac_try" in
33103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33104   *) ac_try_echo=$ac_try;;
33105 esac
33106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33108   ac_status=$?
33109   grep -v '^ *+' conftest.er1 >conftest.err
33110   rm -f conftest.er1
33111   cat conftest.err >&5
33112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113   (exit $ac_status); } >/dev/null; then
33114   if test -s conftest.err; then
33115     ac_cpp_err=$ac_c_preproc_warn_flag
33116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33117   else
33118     ac_cpp_err=
33119   fi
33120 else
33121   ac_cpp_err=yes
33122 fi
33123 if test -z "$ac_cpp_err"; then
33124   ac_header_preproc=yes
33125 else
33126   echo "$as_me: failed program was:" >&5
33127 sed 's/^/| /' conftest.$ac_ext >&5
33128
33129   ac_header_preproc=no
33130 fi
33131
33132 rm -f conftest.err conftest.$ac_ext
33133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33134 echo "${ECHO_T}$ac_header_preproc" >&6; }
33135
33136 # So?  What about this header?
33137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33138   yes:no: )
33139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33143     ac_header_preproc=yes
33144     ;;
33145   no:yes:* )
33146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33148     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33149 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33150     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33152     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33153 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33156     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33158     ( cat <<\_ASBOX
33159 ## ----------------------------------- ##
33160 ## Report this to llvmbugs@cs.uiuc.edu ##
33161 ## ----------------------------------- ##
33162 _ASBOX
33163      ) | sed "s/^/$as_me: WARNING:     /" >&2
33164     ;;
33165 esac
33166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33169   echo $ECHO_N "(cached) $ECHO_C" >&6
33170 else
33171   eval "$as_ac_Header=\$ac_header_preproc"
33172 fi
33173 ac_res=`eval echo '${'$as_ac_Header'}'`
33174                { echo "$as_me:$LINENO: result: $ac_res" >&5
33175 echo "${ECHO_T}$ac_res" >&6; }
33176
33177 fi
33178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33179   cat >>confdefs.h <<_ACEOF
33180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33181 _ACEOF
33182
33183 fi
33184
33185 done
33186
33187
33188 for ac_func in getpagesize
33189 do
33190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33194   echo $ECHO_N "(cached) $ECHO_C" >&6
33195 else
33196   cat >conftest.$ac_ext <<_ACEOF
33197 /* confdefs.h.  */
33198 _ACEOF
33199 cat confdefs.h >>conftest.$ac_ext
33200 cat >>conftest.$ac_ext <<_ACEOF
33201 /* end confdefs.h.  */
33202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33204 #define $ac_func innocuous_$ac_func
33205
33206 /* System header to define __stub macros and hopefully few prototypes,
33207     which can conflict with char $ac_func (); below.
33208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33209     <limits.h> exists even on freestanding compilers.  */
33210
33211 #ifdef __STDC__
33212 # include <limits.h>
33213 #else
33214 # include <assert.h>
33215 #endif
33216
33217 #undef $ac_func
33218
33219 /* Override any GCC internal prototype to avoid an error.
33220    Use char because int might match the return type of a GCC
33221    builtin and then its argument prototype would still apply.  */
33222 #ifdef __cplusplus
33223 extern "C"
33224 #endif
33225 char $ac_func ();
33226 /* The GNU C library defines this for functions which it implements
33227     to always fail with ENOSYS.  Some functions are actually named
33228     something starting with __ and the normal name is an alias.  */
33229 #if defined __stub_$ac_func || defined __stub___$ac_func
33230 choke me
33231 #endif
33232
33233 int
33234 main ()
33235 {
33236 return $ac_func ();
33237   ;
33238   return 0;
33239 }
33240 _ACEOF
33241 rm -f conftest.$ac_objext conftest$ac_exeext
33242 if { (ac_try="$ac_link"
33243 case "(($ac_try" in
33244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245   *) ac_try_echo=$ac_try;;
33246 esac
33247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248   (eval "$ac_link") 2>conftest.er1
33249   ac_status=$?
33250   grep -v '^ *+' conftest.er1 >conftest.err
33251   rm -f conftest.er1
33252   cat conftest.err >&5
33253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254   (exit $ac_status); } &&
33255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33256   { (case "(($ac_try" in
33257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258   *) ac_try_echo=$ac_try;;
33259 esac
33260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261   (eval "$ac_try") 2>&5
33262   ac_status=$?
33263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264   (exit $ac_status); }; } &&
33265          { ac_try='test -s conftest$ac_exeext'
33266   { (case "(($ac_try" in
33267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268   *) ac_try_echo=$ac_try;;
33269 esac
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271   (eval "$ac_try") 2>&5
33272   ac_status=$?
33273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274   (exit $ac_status); }; }; then
33275   eval "$as_ac_var=yes"
33276 else
33277   echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33279
33280         eval "$as_ac_var=no"
33281 fi
33282
33283 rm -f core conftest.err conftest.$ac_objext \
33284       conftest$ac_exeext conftest.$ac_ext
33285 fi
33286 ac_res=`eval echo '${'$as_ac_var'}'`
33287                { echo "$as_me:$LINENO: result: $ac_res" >&5
33288 echo "${ECHO_T}$ac_res" >&6; }
33289 if test `eval echo '${'$as_ac_var'}'` = yes; then
33290   cat >>confdefs.h <<_ACEOF
33291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33292 _ACEOF
33293
33294 fi
33295 done
33296
33297 { echo "$as_me:$LINENO: checking for working mmap" >&5
33298 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33299 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33300   echo $ECHO_N "(cached) $ECHO_C" >&6
33301 else
33302   if test "$cross_compiling" = yes; then
33303   ac_cv_func_mmap_fixed_mapped=no
33304 else
33305   cat >conftest.$ac_ext <<_ACEOF
33306 /* confdefs.h.  */
33307 _ACEOF
33308 cat confdefs.h >>conftest.$ac_ext
33309 cat >>conftest.$ac_ext <<_ACEOF
33310 /* end confdefs.h.  */
33311 $ac_includes_default
33312 /* malloc might have been renamed as rpl_malloc. */
33313 #undef malloc
33314
33315 /* Thanks to Mike Haertel and Jim Avera for this test.
33316    Here is a matrix of mmap possibilities:
33317         mmap private not fixed
33318         mmap private fixed at somewhere currently unmapped
33319         mmap private fixed at somewhere already mapped
33320         mmap shared not fixed
33321         mmap shared fixed at somewhere currently unmapped
33322         mmap shared fixed at somewhere already mapped
33323    For private mappings, we should verify that changes cannot be read()
33324    back from the file, nor mmap's back from the file at a different
33325    address.  (There have been systems where private was not correctly
33326    implemented like the infamous i386 svr4.0, and systems where the
33327    VM page cache was not coherent with the file system buffer cache
33328    like early versions of FreeBSD and possibly contemporary NetBSD.)
33329    For shared mappings, we should conversely verify that changes get
33330    propagated back to all the places they're supposed to be.
33331
33332    Grep wants private fixed already mapped.
33333    The main things grep needs to know about mmap are:
33334    * does it exist and is it safe to write into the mmap'd area
33335    * how to use it (BSD variants)  */
33336
33337 #include <fcntl.h>
33338 #include <sys/mman.h>
33339
33340 #if !STDC_HEADERS && !HAVE_STDLIB_H
33341 char *malloc ();
33342 #endif
33343
33344 /* This mess was copied from the GNU getpagesize.h.  */
33345 #if !HAVE_GETPAGESIZE
33346 /* Assume that all systems that can run configure have sys/param.h.  */
33347 # if !HAVE_SYS_PARAM_H
33348 #  define HAVE_SYS_PARAM_H 1
33349 # endif
33350
33351 # ifdef _SC_PAGESIZE
33352 #  define getpagesize() sysconf(_SC_PAGESIZE)
33353 # else /* no _SC_PAGESIZE */
33354 #  if HAVE_SYS_PARAM_H
33355 #   include <sys/param.h>
33356 #   ifdef EXEC_PAGESIZE
33357 #    define getpagesize() EXEC_PAGESIZE
33358 #   else /* no EXEC_PAGESIZE */
33359 #    ifdef NBPG
33360 #     define getpagesize() NBPG * CLSIZE
33361 #     ifndef CLSIZE
33362 #      define CLSIZE 1
33363 #     endif /* no CLSIZE */
33364 #    else /* no NBPG */
33365 #     ifdef NBPC
33366 #      define getpagesize() NBPC
33367 #     else /* no NBPC */
33368 #      ifdef PAGESIZE
33369 #       define getpagesize() PAGESIZE
33370 #      endif /* PAGESIZE */
33371 #     endif /* no NBPC */
33372 #    endif /* no NBPG */
33373 #   endif /* no EXEC_PAGESIZE */
33374 #  else /* no HAVE_SYS_PARAM_H */
33375 #   define getpagesize() 8192   /* punt totally */
33376 #  endif /* no HAVE_SYS_PARAM_H */
33377 # endif /* no _SC_PAGESIZE */
33378
33379 #endif /* no HAVE_GETPAGESIZE */
33380
33381 int
33382 main ()
33383 {
33384   char *data, *data2, *data3;
33385   int i, pagesize;
33386   int fd;
33387
33388   pagesize = getpagesize ();
33389
33390   /* First, make a file with some known garbage in it. */
33391   data = (char *) malloc (pagesize);
33392   if (!data)
33393     return 1;
33394   for (i = 0; i < pagesize; ++i)
33395     *(data + i) = rand ();
33396   umask (0);
33397   fd = creat ("conftest.mmap", 0600);
33398   if (fd < 0)
33399     return 1;
33400   if (write (fd, data, pagesize) != pagesize)
33401     return 1;
33402   close (fd);
33403
33404   /* Next, try to mmap the file at a fixed address which already has
33405      something else allocated at it.  If we can, also make sure that
33406      we see the same garbage.  */
33407   fd = open ("conftest.mmap", O_RDWR);
33408   if (fd < 0)
33409     return 1;
33410   data2 = (char *) malloc (2 * pagesize);
33411   if (!data2)
33412     return 1;
33413   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33414   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33415                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33416     return 1;
33417   for (i = 0; i < pagesize; ++i)
33418     if (*(data + i) != *(data2 + i))
33419       return 1;
33420
33421   /* Finally, make sure that changes to the mapped area do not
33422      percolate back to the file as seen by read().  (This is a bug on
33423      some variants of i386 svr4.0.)  */
33424   for (i = 0; i < pagesize; ++i)
33425     *(data2 + i) = *(data2 + i) + 1;
33426   data3 = (char *) malloc (pagesize);
33427   if (!data3)
33428     return 1;
33429   if (read (fd, data3, pagesize) != pagesize)
33430     return 1;
33431   for (i = 0; i < pagesize; ++i)
33432     if (*(data + i) != *(data3 + i))
33433       return 1;
33434   close (fd);
33435   return 0;
33436 }
33437 _ACEOF
33438 rm -f conftest$ac_exeext
33439 if { (ac_try="$ac_link"
33440 case "(($ac_try" in
33441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33442   *) ac_try_echo=$ac_try;;
33443 esac
33444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33445   (eval "$ac_link") 2>&5
33446   ac_status=$?
33447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33449   { (case "(($ac_try" in
33450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451   *) ac_try_echo=$ac_try;;
33452 esac
33453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454   (eval "$ac_try") 2>&5
33455   ac_status=$?
33456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457   (exit $ac_status); }; }; then
33458   ac_cv_func_mmap_fixed_mapped=yes
33459 else
33460   echo "$as_me: program exited with status $ac_status" >&5
33461 echo "$as_me: failed program was:" >&5
33462 sed 's/^/| /' conftest.$ac_ext >&5
33463
33464 ( exit $ac_status )
33465 ac_cv_func_mmap_fixed_mapped=no
33466 fi
33467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33468 fi
33469
33470
33471 fi
33472 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33473 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33474 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33475
33476 cat >>confdefs.h <<\_ACEOF
33477 #define HAVE_MMAP 1
33478 _ACEOF
33479
33480 fi
33481 rm -f conftest.mmap
33482
33483   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33484 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33485 if test "${ac_cv_func_mmap_file+set}" = set; then
33486   echo $ECHO_N "(cached) $ECHO_C" >&6
33487 else
33488    ac_ext=c
33489 ac_cpp='$CPP $CPPFLAGS'
33490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33493
33494   if test "$cross_compiling" = yes; then
33495   ac_cv_func_mmap_file=no
33496 else
33497   cat >conftest.$ac_ext <<_ACEOF
33498
33499     /* confdefs.h.  */
33500 _ACEOF
33501 cat confdefs.h >>conftest.$ac_ext
33502 cat >>conftest.$ac_ext <<_ACEOF
33503 /* end confdefs.h.  */
33504
33505 #include <sys/types.h>
33506 #include <sys/mman.h>
33507 #include <fcntl.h>
33508
33509 int
33510 main ()
33511 {
33512
33513   int fd;
33514   fd = creat ("foo",0777);
33515   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33516   unlink ("foo");
33517   return (fd != (int) MAP_FAILED);
33518   ;
33519   return 0;
33520 }
33521 _ACEOF
33522 rm -f conftest$ac_exeext
33523 if { (ac_try="$ac_link"
33524 case "(($ac_try" in
33525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33526   *) ac_try_echo=$ac_try;;
33527 esac
33528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33529   (eval "$ac_link") 2>&5
33530   ac_status=$?
33531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33533   { (case "(($ac_try" in
33534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535   *) ac_try_echo=$ac_try;;
33536 esac
33537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538   (eval "$ac_try") 2>&5
33539   ac_status=$?
33540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541   (exit $ac_status); }; }; then
33542   ac_cv_func_mmap_file=yes
33543 else
33544   echo "$as_me: program exited with status $ac_status" >&5
33545 echo "$as_me: failed program was:" >&5
33546 sed 's/^/| /' conftest.$ac_ext >&5
33547
33548 ( exit $ac_status )
33549 ac_cv_func_mmap_file=no
33550 fi
33551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33552 fi
33553
33554
33555   ac_ext=c
33556 ac_cpp='$CPP $CPPFLAGS'
33557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33560
33561
33562 fi
33563 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33564 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33565 if test "$ac_cv_func_mmap_file" = yes; then
33566
33567 cat >>confdefs.h <<\_ACEOF
33568 #define HAVE_MMAP_FILE
33569 _ACEOF
33570
33571    MMAP_FILE=yes
33572
33573 fi
33574
33575   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33576 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33577 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33578   echo $ECHO_N "(cached) $ECHO_C" >&6
33579 else
33580   if test "$llvm_cv_os_type" = "Interix" ; then
33581    ac_cv_need_dev_zero_for_mmap=yes
33582  else
33583    ac_cv_need_dev_zero_for_mmap=no
33584  fi
33585
33586 fi
33587 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33588 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33589 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33590
33591 cat >>confdefs.h <<\_ACEOF
33592 #define NEED_DEV_ZERO_FOR_MMAP 1
33593 _ACEOF
33594
33595 fi
33596
33597   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33598   then
33599     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33600 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33601   fi
33602   if test "$ac_cv_func_mmap_file" = "no"
33603   then
33604     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33605 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33606   fi
33607 fi
33608
33609
33610
33611 for ac_func in __dso_handle
33612 do
33613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33617   echo $ECHO_N "(cached) $ECHO_C" >&6
33618 else
33619   cat >conftest.$ac_ext <<_ACEOF
33620 /* confdefs.h.  */
33621 _ACEOF
33622 cat confdefs.h >>conftest.$ac_ext
33623 cat >>conftest.$ac_ext <<_ACEOF
33624 /* end confdefs.h.  */
33625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33627 #define $ac_func innocuous_$ac_func
33628
33629 /* System header to define __stub macros and hopefully few prototypes,
33630     which can conflict with char $ac_func (); below.
33631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33632     <limits.h> exists even on freestanding compilers.  */
33633
33634 #ifdef __STDC__
33635 # include <limits.h>
33636 #else
33637 # include <assert.h>
33638 #endif
33639
33640 #undef $ac_func
33641
33642 /* Override any GCC internal prototype to avoid an error.
33643    Use char because int might match the return type of a GCC
33644    builtin and then its argument prototype would still apply.  */
33645 #ifdef __cplusplus
33646 extern "C"
33647 #endif
33648 char $ac_func ();
33649 /* The GNU C library defines this for functions which it implements
33650     to always fail with ENOSYS.  Some functions are actually named
33651     something starting with __ and the normal name is an alias.  */
33652 #if defined __stub_$ac_func || defined __stub___$ac_func
33653 choke me
33654 #endif
33655
33656 int
33657 main ()
33658 {
33659 return $ac_func ();
33660   ;
33661   return 0;
33662 }
33663 _ACEOF
33664 rm -f conftest.$ac_objext conftest$ac_exeext
33665 if { (ac_try="$ac_link"
33666 case "(($ac_try" in
33667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33668   *) ac_try_echo=$ac_try;;
33669 esac
33670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33671   (eval "$ac_link") 2>conftest.er1
33672   ac_status=$?
33673   grep -v '^ *+' conftest.er1 >conftest.err
33674   rm -f conftest.er1
33675   cat conftest.err >&5
33676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677   (exit $ac_status); } &&
33678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33679   { (case "(($ac_try" in
33680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33681   *) ac_try_echo=$ac_try;;
33682 esac
33683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33684   (eval "$ac_try") 2>&5
33685   ac_status=$?
33686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687   (exit $ac_status); }; } &&
33688          { ac_try='test -s conftest$ac_exeext'
33689   { (case "(($ac_try" in
33690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33691   *) ac_try_echo=$ac_try;;
33692 esac
33693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33694   (eval "$ac_try") 2>&5
33695   ac_status=$?
33696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697   (exit $ac_status); }; }; then
33698   eval "$as_ac_var=yes"
33699 else
33700   echo "$as_me: failed program was:" >&5
33701 sed 's/^/| /' conftest.$ac_ext >&5
33702
33703         eval "$as_ac_var=no"
33704 fi
33705
33706 rm -f core conftest.err conftest.$ac_objext \
33707       conftest$ac_exeext conftest.$ac_ext
33708 fi
33709 ac_res=`eval echo '${'$as_ac_var'}'`
33710                { echo "$as_me:$LINENO: result: $ac_res" >&5
33711 echo "${ECHO_T}$ac_res" >&6; }
33712 if test `eval echo '${'$as_ac_var'}'` = yes; then
33713   cat >>confdefs.h <<_ACEOF
33714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33715 _ACEOF
33716
33717 fi
33718 done
33719
33720
33721 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33722 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33723 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33724   echo $ECHO_N "(cached) $ECHO_C" >&6
33725 else
33726   llvm_cv_llvmgcc_sanity="no"
33727 if test -x "$LLVMGCC" ; then
33728   cp /dev/null conftest.c
33729   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33730       grep 'target datalayout =' > /dev/null 2>&1
33731   if test $? -eq 0 ; then
33732     llvm_cv_llvmgcc_sanity="yes"
33733   fi
33734   rm conftest.c
33735 fi
33736 fi
33737 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33738 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33739
33740 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33741   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33742 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33743   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33744   LLVMCC1=$llvmcc1path
33745
33746   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33747   LLVMCC1PLUS=$llvmcc1pluspath
33748
33749   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33750   LLVMGCCDIR=$llvmgccdir
33751
33752   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33753   LLVMGCCLIBEXEC=$llvmgcclibexec
33754
33755   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33756   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33757   LLVMGCC_VERSION=$llvmgccversion
33758
33759   LLVMGCC_MAJVERS=$llvmgccmajvers
33760
33761   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33762   LLVMGCC_LANGS=$llvmgcclangs
33763
33764   { echo "$as_me:$LINENO: result: ok" >&5
33765 echo "${ECHO_T}ok" >&6; }
33766 fi
33767
33768 SHLIBEXT=$libltdl_cv_shlibext
33769
33770
33771 # Translate the various configuration directories and other basic
33772 # information into substitutions that will end up in Makefile.config.in
33773 # that these configured values can be used by the makefiles
33774 if test "${prefix}" = "NONE" ; then
33775   prefix="/usr/local"
33776 fi
33777 eval LLVM_PREFIX="${prefix}";
33778 eval LLVM_BINDIR="${prefix}/bin";
33779 eval LLVM_LIBDIR="${prefix}/lib";
33780 eval LLVM_DATADIR="${prefix}/share/llvm";
33781 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33782 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33783 eval LLVM_INCLUDEDIR="${prefix}/include";
33784 eval LLVM_INFODIR="${prefix}/info";
33785 eval LLVM_MANDIR="${prefix}/man";
33786 LLVM_CONFIGTIME=`date`
33787
33788
33789
33790
33791
33792
33793
33794
33795
33796
33797
33798 # Place the various directores into the config.h file as #defines so that we
33799 # can know about the installation paths within LLVM.
33800
33801 cat >>confdefs.h <<_ACEOF
33802 #define LLVM_PREFIX "$LLVM_PREFIX"
33803 _ACEOF
33804
33805
33806 cat >>confdefs.h <<_ACEOF
33807 #define LLVM_BINDIR "$LLVM_BINDIR"
33808 _ACEOF
33809
33810
33811 cat >>confdefs.h <<_ACEOF
33812 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33813 _ACEOF
33814
33815
33816 cat >>confdefs.h <<_ACEOF
33817 #define LLVM_DATADIR "$LLVM_DATADIR"
33818 _ACEOF
33819
33820
33821 cat >>confdefs.h <<_ACEOF
33822 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33823 _ACEOF
33824
33825
33826 cat >>confdefs.h <<_ACEOF
33827 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33828 _ACEOF
33829
33830
33831 cat >>confdefs.h <<_ACEOF
33832 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33833 _ACEOF
33834
33835
33836 cat >>confdefs.h <<_ACEOF
33837 #define LLVM_INFODIR "$LLVM_INFODIR"
33838 _ACEOF
33839
33840
33841 cat >>confdefs.h <<_ACEOF
33842 #define LLVM_MANDIR "$LLVM_MANDIR"
33843 _ACEOF
33844
33845
33846 cat >>confdefs.h <<_ACEOF
33847 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33848 _ACEOF
33849
33850
33851 cat >>confdefs.h <<_ACEOF
33852 #define LLVM_HOSTTRIPLE "$host"
33853 _ACEOF
33854
33855
33856 # Determine which bindings to build.
33857 if test "$BINDINGS_TO_BUILD" = auto ; then
33858   BINDINGS_TO_BUILD=""
33859   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33860     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33861   fi
33862 fi
33863 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33864
33865
33866 # This isn't really configurey, but it avoids having to repeat the list in
33867 # other files.
33868 ALL_BINDINGS=ocaml
33869
33870
33871 # Do any work necessary to ensure that bindings have what they need.
33872 binding_prereqs_failed=0
33873 for a_binding in $BINDINGS_TO_BUILD ; do
33874   case "$a_binding" in
33875   ocaml)
33876     if test "x$OCAMLC" = x ; then
33877       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33878 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33879       binding_prereqs_failed=1
33880     fi
33881     if test "x$OCAMLDEP" = x ; then
33882       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33883 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33884       binding_prereqs_failed=1
33885     fi
33886     if test "x$OCAMLOPT" = x ; then
33887       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33888 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33889           fi
33890     if test "x$with_ocaml_libdir" != xauto ; then
33891       OCAML_LIBDIR=$with_ocaml_libdir
33892
33893     else
33894       ocaml_stdlib="`"$OCAMLC" -where`"
33895       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33896       then
33897         # ocaml stdlib is beneath our prefix; use stdlib
33898         OCAML_LIBDIR=$ocaml_stdlib
33899
33900       else
33901         # ocaml stdlib is outside our prefix; use libdir/ocaml
33902         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33903
33904       fi
33905     fi
33906     ;;
33907   esac
33908 done
33909 if test "$binding_prereqs_failed" = 1 ; then
33910   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33911 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33912    { (exit 1); exit 1; }; }
33913 fi
33914
33915 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33916 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33917 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33918   echo $ECHO_N "(cached) $ECHO_C" >&6
33919 else
33920    ac_ext=cpp
33921 ac_cpp='$CXXCPP $CPPFLAGS'
33922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33925
33926   oldcxxflags="$CXXFLAGS"
33927   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33928   cat >conftest.$ac_ext <<_ACEOF
33929 /* confdefs.h.  */
33930 _ACEOF
33931 cat confdefs.h >>conftest.$ac_ext
33932 cat >>conftest.$ac_ext <<_ACEOF
33933 /* end confdefs.h.  */
33934
33935 int
33936 main ()
33937 {
33938
33939   ;
33940   return 0;
33941 }
33942 _ACEOF
33943 rm -f conftest.$ac_objext
33944 if { (ac_try="$ac_compile"
33945 case "(($ac_try" in
33946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33947   *) ac_try_echo=$ac_try;;
33948 esac
33949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33950   (eval "$ac_compile") 2>conftest.er1
33951   ac_status=$?
33952   grep -v '^ *+' conftest.er1 >conftest.err
33953   rm -f conftest.er1
33954   cat conftest.err >&5
33955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956   (exit $ac_status); } &&
33957          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33958   { (case "(($ac_try" in
33959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960   *) ac_try_echo=$ac_try;;
33961 esac
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963   (eval "$ac_try") 2>&5
33964   ac_status=$?
33965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966   (exit $ac_status); }; } &&
33967          { ac_try='test -s conftest.$ac_objext'
33968   { (case "(($ac_try" in
33969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970   *) ac_try_echo=$ac_try;;
33971 esac
33972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973   (eval "$ac_try") 2>&5
33974   ac_status=$?
33975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976   (exit $ac_status); }; }; then
33977   llvm_cv_cxx_visibility_inlines_hidden=yes
33978 else
33979   echo "$as_me: failed program was:" >&5
33980 sed 's/^/| /' conftest.$ac_ext >&5
33981
33982         llvm_cv_cxx_visibility_inlines_hidden=no
33983 fi
33984
33985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33986   CXXFLAGS="$oldcxxflags"
33987   ac_ext=c
33988 ac_cpp='$CPP $CPPFLAGS'
33989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33992
33993
33994 fi
33995 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33996 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33997 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33998   ENABLE_VISIBILITY_INLINES_HIDDEN=1
33999
34000 else
34001   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34002
34003 fi
34004
34005
34006 if test "$llvm_cv_link_use_r" = "yes" ; then
34007   RPATH="-Wl,-R"
34008 else
34009   RPATH="-Wl,-rpath"
34010 fi
34011
34012
34013 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34014   RDYNAMIC="-Wl,-export-dynamic"
34015 else
34016   RDYNAMIC=""
34017 fi
34018
34019
34020
34021 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34022
34023 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34024
34025 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34026
34027
34028 ac_config_files="$ac_config_files Makefile.config"
34029
34030
34031 ac_config_files="$ac_config_files llvm.spec"
34032
34033
34034 ac_config_files="$ac_config_files docs/doxygen.cfg"
34035
34036
34037 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34038
34039
34040 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34041
34042
34043 ac_config_commands="$ac_config_commands setup"
34044
34045 ac_config_commands="$ac_config_commands Makefile"
34046
34047
34048 ac_config_commands="$ac_config_commands Makefile.common"
34049
34050
34051 ac_config_commands="$ac_config_commands examples/Makefile"
34052
34053
34054 ac_config_commands="$ac_config_commands lib/Makefile"
34055
34056
34057 ac_config_commands="$ac_config_commands runtime/Makefile"
34058
34059
34060 ac_config_commands="$ac_config_commands test/Makefile"
34061
34062
34063 ac_config_commands="$ac_config_commands test/Makefile.tests"
34064
34065
34066 ac_config_commands="$ac_config_commands unittests/Makefile"
34067
34068
34069 ac_config_commands="$ac_config_commands tools/Makefile"
34070
34071
34072 ac_config_commands="$ac_config_commands utils/Makefile"
34073
34074
34075 ac_config_commands="$ac_config_commands projects/Makefile"
34076
34077
34078 ac_config_commands="$ac_config_commands bindings/Makefile"
34079
34080
34081 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34082
34083
34084
34085 cat >confcache <<\_ACEOF
34086 # This file is a shell script that caches the results of configure
34087 # tests run on this system so they can be shared between configure
34088 # scripts and configure runs, see configure's option --config-cache.
34089 # It is not useful on other systems.  If it contains results you don't
34090 # want to keep, you may remove or edit it.
34091 #
34092 # config.status only pays attention to the cache file if you give it
34093 # the --recheck option to rerun configure.
34094 #
34095 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34096 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34097 # following values.
34098
34099 _ACEOF
34100
34101 # The following way of writing the cache mishandles newlines in values,
34102 # but we know of no workaround that is simple, portable, and efficient.
34103 # So, we kill variables containing newlines.
34104 # Ultrix sh set writes to stderr and can't be redirected directly,
34105 # and sets the high bit in the cache file unless we assign to the vars.
34106 (
34107   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34108     eval ac_val=\$$ac_var
34109     case $ac_val in #(
34110     *${as_nl}*)
34111       case $ac_var in #(
34112       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34113 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34114       esac
34115       case $ac_var in #(
34116       _ | IFS | as_nl) ;; #(
34117       *) $as_unset $ac_var ;;
34118       esac ;;
34119     esac
34120   done
34121
34122   (set) 2>&1 |
34123     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34124     *${as_nl}ac_space=\ *)
34125       # `set' does not quote correctly, so add quotes (double-quote
34126       # substitution turns \\\\ into \\, and sed turns \\ into \).
34127       sed -n \
34128         "s/'/'\\\\''/g;
34129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34130       ;; #(
34131     *)
34132       # `set' quotes correctly as required by POSIX, so do not add quotes.
34133       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34134       ;;
34135     esac |
34136     sort
34137 ) |
34138   sed '
34139      /^ac_cv_env_/b end
34140      t clear
34141      :clear
34142      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34143      t end
34144      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34145      :end' >>confcache
34146 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34147   if test -w "$cache_file"; then
34148     test "x$cache_file" != "x/dev/null" &&
34149       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34150 echo "$as_me: updating cache $cache_file" >&6;}
34151     cat confcache >$cache_file
34152   else
34153     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34154 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34155   fi
34156 fi
34157 rm -f confcache
34158
34159 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34160 # Let make expand exec_prefix.
34161 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34162
34163 DEFS=-DHAVE_CONFIG_H
34164
34165 ac_libobjs=
34166 ac_ltlibobjs=
34167 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34168   # 1. Remove the extension, and $U if already installed.
34169   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34170   ac_i=`echo "$ac_i" | sed "$ac_script"`
34171   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34172   #    will be set to the directory where LIBOBJS objects are built.
34173   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34174   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34175 done
34176 LIBOBJS=$ac_libobjs
34177
34178 LTLIBOBJS=$ac_ltlibobjs
34179
34180
34181 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34182   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34183 Usually this means the macro was only invoked conditionally." >&5
34184 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34185 Usually this means the macro was only invoked conditionally." >&2;}
34186    { (exit 1); exit 1; }; }
34187 fi
34188 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34189   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34190 Usually this means the macro was only invoked conditionally." >&5
34191 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34192 Usually this means the macro was only invoked conditionally." >&2;}
34193    { (exit 1); exit 1; }; }
34194 fi
34195
34196 : ${CONFIG_STATUS=./config.status}
34197 ac_clean_files_save=$ac_clean_files
34198 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34199 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34200 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34201 cat >$CONFIG_STATUS <<_ACEOF
34202 #! $SHELL
34203 # Generated by $as_me.
34204 # Run this file to recreate the current configuration.
34205 # Compiler output produced by configure, useful for debugging
34206 # configure, is in config.log if it exists.
34207
34208 debug=false
34209 ac_cs_recheck=false
34210 ac_cs_silent=false
34211 SHELL=\${CONFIG_SHELL-$SHELL}
34212 _ACEOF
34213
34214 cat >>$CONFIG_STATUS <<\_ACEOF
34215 ## --------------------- ##
34216 ## M4sh Initialization.  ##
34217 ## --------------------- ##
34218
34219 # Be Bourne compatible
34220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34221   emulate sh
34222   NULLCMD=:
34223   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34224   # is contrary to our usage.  Disable this feature.
34225   alias -g '${1+"$@"}'='"$@"'
34226   setopt NO_GLOB_SUBST
34227 else
34228   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34229 fi
34230 BIN_SH=xpg4; export BIN_SH # for Tru64
34231 DUALCASE=1; export DUALCASE # for MKS sh
34232
34233
34234 # PATH needs CR
34235 # Avoid depending upon Character Ranges.
34236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34239 as_cr_digits='0123456789'
34240 as_cr_alnum=$as_cr_Letters$as_cr_digits
34241
34242 # The user is always right.
34243 if test "${PATH_SEPARATOR+set}" != set; then
34244   echo "#! /bin/sh" >conf$$.sh
34245   echo  "exit 0"   >>conf$$.sh
34246   chmod +x conf$$.sh
34247   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34248     PATH_SEPARATOR=';'
34249   else
34250     PATH_SEPARATOR=:
34251   fi
34252   rm -f conf$$.sh
34253 fi
34254
34255 # Support unset when possible.
34256 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34257   as_unset=unset
34258 else
34259   as_unset=false
34260 fi
34261
34262
34263 # IFS
34264 # We need space, tab and new line, in precisely that order.  Quoting is
34265 # there to prevent editors from complaining about space-tab.
34266 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34267 # splitting by setting IFS to empty value.)
34268 as_nl='
34269 '
34270 IFS=" ""        $as_nl"
34271
34272 # Find who we are.  Look in the path if we contain no directory separator.
34273 case $0 in
34274   *[\\/]* ) as_myself=$0 ;;
34275   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34276 for as_dir in $PATH
34277 do
34278   IFS=$as_save_IFS
34279   test -z "$as_dir" && as_dir=.
34280   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34281 done
34282 IFS=$as_save_IFS
34283
34284      ;;
34285 esac
34286 # We did not find ourselves, most probably we were run as `sh COMMAND'
34287 # in which case we are not to be found in the path.
34288 if test "x$as_myself" = x; then
34289   as_myself=$0
34290 fi
34291 if test ! -f "$as_myself"; then
34292   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34293   { (exit 1); exit 1; }
34294 fi
34295
34296 # Work around bugs in pre-3.0 UWIN ksh.
34297 for as_var in ENV MAIL MAILPATH
34298 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34299 done
34300 PS1='$ '
34301 PS2='> '
34302 PS4='+ '
34303
34304 # NLS nuisances.
34305 for as_var in \
34306   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34307   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34308   LC_TELEPHONE LC_TIME
34309 do
34310   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34311     eval $as_var=C; export $as_var
34312   else
34313     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34314   fi
34315 done
34316
34317 # Required to use basename.
34318 if expr a : '\(a\)' >/dev/null 2>&1 &&
34319    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34320   as_expr=expr
34321 else
34322   as_expr=false
34323 fi
34324
34325 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34326   as_basename=basename
34327 else
34328   as_basename=false
34329 fi
34330
34331
34332 # Name of the executable.
34333 as_me=`$as_basename -- "$0" ||
34334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34335          X"$0" : 'X\(//\)$' \| \
34336          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34337 echo X/"$0" |
34338     sed '/^.*\/\([^/][^/]*\)\/*$/{
34339             s//\1/
34340             q
34341           }
34342           /^X\/\(\/\/\)$/{
34343             s//\1/
34344             q
34345           }
34346           /^X\/\(\/\).*/{
34347             s//\1/
34348             q
34349           }
34350           s/.*/./; q'`
34351
34352 # CDPATH.
34353 $as_unset CDPATH
34354
34355
34356
34357   as_lineno_1=$LINENO
34358   as_lineno_2=$LINENO
34359   test "x$as_lineno_1" != "x$as_lineno_2" &&
34360   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34361
34362   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34363   # uniformly replaced by the line number.  The first 'sed' inserts a
34364   # line-number line after each line using $LINENO; the second 'sed'
34365   # does the real work.  The second script uses 'N' to pair each
34366   # line-number line with the line containing $LINENO, and appends
34367   # trailing '-' during substitution so that $LINENO is not a special
34368   # case at line end.
34369   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34370   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34371   # E. McMahon (1931-1989) for sed's syntax.  :-)
34372   sed -n '
34373     p
34374     /[$]LINENO/=
34375   ' <$as_myself |
34376     sed '
34377       s/[$]LINENO.*/&-/
34378       t lineno
34379       b
34380       :lineno
34381       N
34382       :loop
34383       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34384       t loop
34385       s/-\n.*//
34386     ' >$as_me.lineno &&
34387   chmod +x "$as_me.lineno" ||
34388     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34389    { (exit 1); exit 1; }; }
34390
34391   # Don't try to exec as it changes $[0], causing all sort of problems
34392   # (the dirname of $[0] is not the place where we might find the
34393   # original and so on.  Autoconf is especially sensitive to this).
34394   . "./$as_me.lineno"
34395   # Exit status is that of the last command.
34396   exit
34397 }
34398
34399
34400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34401   as_dirname=dirname
34402 else
34403   as_dirname=false
34404 fi
34405
34406 ECHO_C= ECHO_N= ECHO_T=
34407 case `echo -n x` in
34408 -n*)
34409   case `echo 'x\c'` in
34410   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34411   *)   ECHO_C='\c';;
34412   esac;;
34413 *)
34414   ECHO_N='-n';;
34415 esac
34416
34417 if expr a : '\(a\)' >/dev/null 2>&1 &&
34418    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34419   as_expr=expr
34420 else
34421   as_expr=false
34422 fi
34423
34424 rm -f conf$$ conf$$.exe conf$$.file
34425 if test -d conf$$.dir; then
34426   rm -f conf$$.dir/conf$$.file
34427 else
34428   rm -f conf$$.dir
34429   mkdir conf$$.dir
34430 fi
34431 echo >conf$$.file
34432 if ln -s conf$$.file conf$$ 2>/dev/null; then
34433   as_ln_s='ln -s'
34434   # ... but there are two gotchas:
34435   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34436   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34437   # In both cases, we have to default to `cp -p'.
34438   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34439     as_ln_s='cp -p'
34440 elif ln conf$$.file conf$$ 2>/dev/null; then
34441   as_ln_s=ln
34442 else
34443   as_ln_s='cp -p'
34444 fi
34445 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34446 rmdir conf$$.dir 2>/dev/null
34447
34448 if mkdir -p . 2>/dev/null; then
34449   as_mkdir_p=:
34450 else
34451   test -d ./-p && rmdir ./-p
34452   as_mkdir_p=false
34453 fi
34454
34455 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34456 # systems may use methods other than mode bits to determine executability.
34457 cat >conf$$.file <<_ASEOF
34458 #! /bin/sh
34459 exit 0
34460 _ASEOF
34461 chmod +x conf$$.file
34462 if test -x conf$$.file >/dev/null 2>&1; then
34463   as_executable_p="test -x"
34464 else
34465   as_executable_p=:
34466 fi
34467 rm -f conf$$.file
34468
34469 # Sed expression to map a string onto a valid CPP name.
34470 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34471
34472 # Sed expression to map a string onto a valid variable name.
34473 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34474
34475
34476 exec 6>&1
34477
34478 # Save the log message, to keep $[0] and so on meaningful, and to
34479 # report actual input values of CONFIG_FILES etc. instead of their
34480 # values after options handling.
34481 ac_log="
34482 This file was extended by llvm $as_me 2.6svn, which was
34483 generated by GNU Autoconf 2.60.  Invocation command line was
34484
34485   CONFIG_FILES    = $CONFIG_FILES
34486   CONFIG_HEADERS  = $CONFIG_HEADERS
34487   CONFIG_LINKS    = $CONFIG_LINKS
34488   CONFIG_COMMANDS = $CONFIG_COMMANDS
34489   $ $0 $@
34490
34491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34492 "
34493
34494 _ACEOF
34495
34496 cat >>$CONFIG_STATUS <<_ACEOF
34497 # Files that config.status was made for.
34498 config_files="$ac_config_files"
34499 config_headers="$ac_config_headers"
34500 config_commands="$ac_config_commands"
34501
34502 _ACEOF
34503
34504 cat >>$CONFIG_STATUS <<\_ACEOF
34505 ac_cs_usage="\
34506 \`$as_me' instantiates files from templates according to the
34507 current configuration.
34508
34509 Usage: $0 [OPTIONS] [FILE]...
34510
34511   -h, --help       print this help, then exit
34512   -V, --version    print version number, then exit
34513   -q, --quiet      do not print progress messages
34514   -d, --debug      don't remove temporary files
34515       --recheck    update $as_me by reconfiguring in the same conditions
34516   --file=FILE[:TEMPLATE]
34517                    instantiate the configuration file FILE
34518   --header=FILE[:TEMPLATE]
34519                    instantiate the configuration header FILE
34520
34521 Configuration files:
34522 $config_files
34523
34524 Configuration headers:
34525 $config_headers
34526
34527 Configuration commands:
34528 $config_commands
34529
34530 Report bugs to <bug-autoconf@gnu.org>."
34531
34532 _ACEOF
34533 cat >>$CONFIG_STATUS <<_ACEOF
34534 ac_cs_version="\\
34535 llvm config.status 2.6svn
34536 configured by $0, generated by GNU Autoconf 2.60,
34537   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34538
34539 Copyright (C) 2006 Free Software Foundation, Inc.
34540 This config.status script is free software; the Free Software Foundation
34541 gives unlimited permission to copy, distribute and modify it."
34542
34543 ac_pwd='$ac_pwd'
34544 srcdir='$srcdir'
34545 INSTALL='$INSTALL'
34546 _ACEOF
34547
34548 cat >>$CONFIG_STATUS <<\_ACEOF
34549 # If no file are specified by the user, then we need to provide default
34550 # value.  By we need to know if files were specified by the user.
34551 ac_need_defaults=:
34552 while test $# != 0
34553 do
34554   case $1 in
34555   --*=*)
34556     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34557     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34558     ac_shift=:
34559     ;;
34560   *)
34561     ac_option=$1
34562     ac_optarg=$2
34563     ac_shift=shift
34564     ;;
34565   esac
34566
34567   case $ac_option in
34568   # Handling of the options.
34569   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34570     ac_cs_recheck=: ;;
34571   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34572     echo "$ac_cs_version"; exit ;;
34573   --debug | --debu | --deb | --de | --d | -d )
34574     debug=: ;;
34575   --file | --fil | --fi | --f )
34576     $ac_shift
34577     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34578     ac_need_defaults=false;;
34579   --header | --heade | --head | --hea )
34580     $ac_shift
34581     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34582     ac_need_defaults=false;;
34583   --he | --h)
34584     # Conflict between --help and --header
34585     { echo "$as_me: error: ambiguous option: $1
34586 Try \`$0 --help' for more information." >&2
34587    { (exit 1); exit 1; }; };;
34588   --help | --hel | -h )
34589     echo "$ac_cs_usage"; exit ;;
34590   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34591   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34592     ac_cs_silent=: ;;
34593
34594   # This is an error.
34595   -*) { echo "$as_me: error: unrecognized option: $1
34596 Try \`$0 --help' for more information." >&2
34597    { (exit 1); exit 1; }; } ;;
34598
34599   *) ac_config_targets="$ac_config_targets $1"
34600      ac_need_defaults=false ;;
34601
34602   esac
34603   shift
34604 done
34605
34606 ac_configure_extra_args=
34607
34608 if $ac_cs_silent; then
34609   exec 6>/dev/null
34610   ac_configure_extra_args="$ac_configure_extra_args --silent"
34611 fi
34612
34613 _ACEOF
34614 cat >>$CONFIG_STATUS <<_ACEOF
34615 if \$ac_cs_recheck; then
34616   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34617   CONFIG_SHELL=$SHELL
34618   export CONFIG_SHELL
34619   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34620 fi
34621
34622 _ACEOF
34623 cat >>$CONFIG_STATUS <<\_ACEOF
34624 exec 5>>config.log
34625 {
34626   echo
34627   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34628 ## Running $as_me. ##
34629 _ASBOX
34630   echo "$ac_log"
34631 } >&5
34632
34633 _ACEOF
34634 cat >>$CONFIG_STATUS <<_ACEOF
34635 #
34636 # INIT-COMMANDS
34637 #
34638 llvm_src="${srcdir}"
34639
34640 _ACEOF
34641
34642 cat >>$CONFIG_STATUS <<\_ACEOF
34643
34644 # Handling of arguments.
34645 for ac_config_target in $ac_config_targets
34646 do
34647   case $ac_config_target in
34648     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34649     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34650     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34651     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34652     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34653     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34654     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34655     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34656     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34657     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34658     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34659     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34660     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34661     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34662     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34663     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34664     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34665     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34666     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34667     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34668     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34669     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34670
34671   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34672 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34673    { (exit 1); exit 1; }; };;
34674   esac
34675 done
34676
34677
34678 # If the user did not use the arguments to specify the items to instantiate,
34679 # then the envvar interface is used.  Set only those that are not.
34680 # We use the long form for the default assignment because of an extremely
34681 # bizarre bug on SunOS 4.1.3.
34682 if $ac_need_defaults; then
34683   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34684   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34685   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34686 fi
34687
34688 # Have a temporary directory for convenience.  Make it in the build tree
34689 # simply because there is no reason against having it here, and in addition,
34690 # creating and moving files from /tmp can sometimes cause problems.
34691 # Hook for its removal unless debugging.
34692 # Note that there is a small window in which the directory will not be cleaned:
34693 # after its creation but before its name has been assigned to `$tmp'.
34694 $debug ||
34695 {
34696   tmp=
34697   trap 'exit_status=$?
34698   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34699 ' 0
34700   trap '{ (exit 1); exit 1; }' 1 2 13 15
34701 }
34702 # Create a (secure) tmp directory for tmp files.
34703
34704 {
34705   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34706   test -n "$tmp" && test -d "$tmp"
34707 }  ||
34708 {
34709   tmp=./conf$$-$RANDOM
34710   (umask 077 && mkdir "$tmp")
34711 } ||
34712 {
34713    echo "$me: cannot create a temporary directory in ." >&2
34714    { (exit 1); exit 1; }
34715 }
34716
34717 #
34718 # Set up the sed scripts for CONFIG_FILES section.
34719 #
34720
34721 # No need to generate the scripts if there are no CONFIG_FILES.
34722 # This happens for instance when ./config.status config.h
34723 if test -n "$CONFIG_FILES"; then
34724
34725 _ACEOF
34726
34727
34728
34729 ac_delim='%!_!# '
34730 for ac_last_try in false false false false false :; do
34731   cat >conf$$subs.sed <<_ACEOF
34732 SHELL!$SHELL$ac_delim
34733 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34734 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34735 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34736 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34737 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34738 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34739 exec_prefix!$exec_prefix$ac_delim
34740 prefix!$prefix$ac_delim
34741 program_transform_name!$program_transform_name$ac_delim
34742 bindir!$bindir$ac_delim
34743 sbindir!$sbindir$ac_delim
34744 libexecdir!$libexecdir$ac_delim
34745 datarootdir!$datarootdir$ac_delim
34746 datadir!$datadir$ac_delim
34747 sysconfdir!$sysconfdir$ac_delim
34748 sharedstatedir!$sharedstatedir$ac_delim
34749 localstatedir!$localstatedir$ac_delim
34750 includedir!$includedir$ac_delim
34751 oldincludedir!$oldincludedir$ac_delim
34752 docdir!$docdir$ac_delim
34753 infodir!$infodir$ac_delim
34754 htmldir!$htmldir$ac_delim
34755 dvidir!$dvidir$ac_delim
34756 pdfdir!$pdfdir$ac_delim
34757 psdir!$psdir$ac_delim
34758 libdir!$libdir$ac_delim
34759 localedir!$localedir$ac_delim
34760 mandir!$mandir$ac_delim
34761 DEFS!$DEFS$ac_delim
34762 ECHO_C!$ECHO_C$ac_delim
34763 ECHO_N!$ECHO_N$ac_delim
34764 ECHO_T!$ECHO_T$ac_delim
34765 LIBS!$LIBS$ac_delim
34766 build_alias!$build_alias$ac_delim
34767 host_alias!$host_alias$ac_delim
34768 target_alias!$target_alias$ac_delim
34769 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34770 subdirs!$subdirs$ac_delim
34771 build!$build$ac_delim
34772 build_cpu!$build_cpu$ac_delim
34773 build_vendor!$build_vendor$ac_delim
34774 build_os!$build_os$ac_delim
34775 host!$host$ac_delim
34776 host_cpu!$host_cpu$ac_delim
34777 host_vendor!$host_vendor$ac_delim
34778 host_os!$host_os$ac_delim
34779 target!$target$ac_delim
34780 target_cpu!$target_cpu$ac_delim
34781 target_vendor!$target_vendor$ac_delim
34782 target_os!$target_os$ac_delim
34783 OS!$OS$ac_delim
34784 LINKALL!$LINKALL$ac_delim
34785 NOLINKALL!$NOLINKALL$ac_delim
34786 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34787 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34788 ARCH!$ARCH$ac_delim
34789 ENDIAN!$ENDIAN$ac_delim
34790 CC!$CC$ac_delim
34791 CFLAGS!$CFLAGS$ac_delim
34792 LDFLAGS!$LDFLAGS$ac_delim
34793 CPPFLAGS!$CPPFLAGS$ac_delim
34794 ac_ct_CC!$ac_ct_CC$ac_delim
34795 EXEEXT!$EXEEXT$ac_delim
34796 OBJEXT!$OBJEXT$ac_delim
34797 CPP!$CPP$ac_delim
34798 GREP!$GREP$ac_delim
34799 EGREP!$EGREP$ac_delim
34800 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34801 BUILD_CC!$BUILD_CC$ac_delim
34802 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34803 BUILD_CXX!$BUILD_CXX$ac_delim
34804 CVSBUILD!$CVSBUILD$ac_delim
34805 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34806 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
34807 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34808 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34809 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34810 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34811 JIT!$JIT$ac_delim
34812 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34813 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34814 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34815 ENABLE_PIC!$ENABLE_PIC$ac_delim
34816 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34817 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34818 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34819 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34820 CXX!$CXX$ac_delim
34821 CXXFLAGS!$CXXFLAGS$ac_delim
34822 ac_ct_CXX!$ac_ct_CXX$ac_delim
34823 NM!$NM$ac_delim
34824 ifGNUmake!$ifGNUmake$ac_delim
34825 LN_S!$LN_S$ac_delim
34826 CMP!$CMP$ac_delim
34827 CP!$CP$ac_delim
34828 DATE!$DATE$ac_delim
34829 _ACEOF
34830
34831   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34832     break
34833   elif $ac_last_try; then
34834     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34835 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34836    { (exit 1); exit 1; }; }
34837   else
34838     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34839   fi
34840 done
34841
34842 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34843 if test -n "$ac_eof"; then
34844   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34845   ac_eof=`expr $ac_eof + 1`
34846 fi
34847
34848 cat >>$CONFIG_STATUS <<_ACEOF
34849 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34851 _ACEOF
34852 sed '
34853 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34854 s/^/s,@/; s/!/@,|#_!!_#|/
34855 :n
34856 t n
34857 s/'"$ac_delim"'$/,g/; t
34858 s/$/\\/; p
34859 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34860 ' >>$CONFIG_STATUS <conf$$subs.sed
34861 rm -f conf$$subs.sed
34862 cat >>$CONFIG_STATUS <<_ACEOF
34863 CEOF$ac_eof
34864 _ACEOF
34865
34866
34867 ac_delim='%!_!# '
34868 for ac_last_try in false false false false false :; do
34869   cat >conf$$subs.sed <<_ACEOF
34870 FIND!$FIND$ac_delim
34871 MKDIR!$MKDIR$ac_delim
34872 MV!$MV$ac_delim
34873 RANLIB!$RANLIB$ac_delim
34874 RM!$RM$ac_delim
34875 SED!$SED$ac_delim
34876 TAR!$TAR$ac_delim
34877 BINPWD!$BINPWD$ac_delim
34878 GRAPHVIZ!$GRAPHVIZ$ac_delim
34879 DOT!$DOT$ac_delim
34880 GV!$GV$ac_delim
34881 DOTTY!$DOTTY$ac_delim
34882 PERL!$PERL$ac_delim
34883 HAVE_PERL!$HAVE_PERL$ac_delim
34884 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34885 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34886 INSTALL_DATA!$INSTALL_DATA$ac_delim
34887 BZIP2!$BZIP2$ac_delim
34888 DOXYGEN!$DOXYGEN$ac_delim
34889 GROFF!$GROFF$ac_delim
34890 GZIP!$GZIP$ac_delim
34891 POD2HTML!$POD2HTML$ac_delim
34892 POD2MAN!$POD2MAN$ac_delim
34893 RUNTEST!$RUNTEST$ac_delim
34894 TCLSH!$TCLSH$ac_delim
34895 ZIP!$ZIP$ac_delim
34896 OCAMLC!$OCAMLC$ac_delim
34897 OCAMLOPT!$OCAMLOPT$ac_delim
34898 OCAMLDEP!$OCAMLDEP$ac_delim
34899 OCAMLDOC!$OCAMLDOC$ac_delim
34900 GAS!$GAS$ac_delim
34901 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34902 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34903 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34904 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34905 LIBADD_DL!$LIBADD_DL$ac_delim
34906 ECHO!$ECHO$ac_delim
34907 AR!$AR$ac_delim
34908 STRIP!$STRIP$ac_delim
34909 CXXCPP!$CXXCPP$ac_delim
34910 F77!$F77$ac_delim
34911 FFLAGS!$FFLAGS$ac_delim
34912 ac_ct_F77!$ac_ct_F77$ac_delim
34913 LIBTOOL!$LIBTOOL$ac_delim
34914 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
34915 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
34916 LLVMGCC!$LLVMGCC$ac_delim
34917 LLVMGXX!$LLVMGXX$ac_delim
34918 USE_UDIS86!$USE_UDIS86$ac_delim
34919 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34920 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34921 ALLOCA!$ALLOCA$ac_delim
34922 MMAP_FILE!$MMAP_FILE$ac_delim
34923 LLVMCC1!$LLVMCC1$ac_delim
34924 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34925 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34926 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34927 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34928 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34929 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34930 SHLIBEXT!$SHLIBEXT$ac_delim
34931 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34932 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34933 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34934 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34935 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34936 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34937 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34938 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34939 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34940 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34941 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34942 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
34943 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
34944 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
34945 RPATH!$RPATH$ac_delim
34946 RDYNAMIC!$RDYNAMIC$ac_delim
34947 LIBOBJS!$LIBOBJS$ac_delim
34948 LTLIBOBJS!$LTLIBOBJS$ac_delim
34949 _ACEOF
34950
34951   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
34952     break
34953   elif $ac_last_try; then
34954     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34955 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34956    { (exit 1); exit 1; }; }
34957   else
34958     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34959   fi
34960 done
34961
34962 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34963 if test -n "$ac_eof"; then
34964   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34965   ac_eof=`expr $ac_eof + 1`
34966 fi
34967
34968 cat >>$CONFIG_STATUS <<_ACEOF
34969 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34971 _ACEOF
34972 sed '
34973 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34974 s/^/s,@/; s/!/@,|#_!!_#|/
34975 :n
34976 t n
34977 s/'"$ac_delim"'$/,g/; t
34978 s/$/\\/; p
34979 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34980 ' >>$CONFIG_STATUS <conf$$subs.sed
34981 rm -f conf$$subs.sed
34982 cat >>$CONFIG_STATUS <<_ACEOF
34983 :end
34984 s/|#_!!_#|//g
34985 CEOF$ac_eof
34986 _ACEOF
34987
34988
34989 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34990 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34991 # trailing colons and then remove the whole line if VPATH becomes empty
34992 # (actually we leave an empty line to preserve line numbers).
34993 if test "x$srcdir" = x.; then
34994   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34995 s/:*\$(srcdir):*/:/
34996 s/:*\${srcdir}:*/:/
34997 s/:*@srcdir@:*/:/
34998 s/^\([^=]*=[     ]*\):*/\1/
34999 s/:*$//
35000 s/^[^=]*=[       ]*$//
35001 }'
35002 fi
35003
35004 cat >>$CONFIG_STATUS <<\_ACEOF
35005 fi # test -n "$CONFIG_FILES"
35006
35007
35008 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35009 do
35010   case $ac_tag in
35011   :[FHLC]) ac_mode=$ac_tag; continue;;
35012   esac
35013   case $ac_mode$ac_tag in
35014   :[FHL]*:*);;
35015   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35016 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35017    { (exit 1); exit 1; }; };;
35018   :[FH]-) ac_tag=-:-;;
35019   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35020   esac
35021   ac_save_IFS=$IFS
35022   IFS=:
35023   set x $ac_tag
35024   IFS=$ac_save_IFS
35025   shift
35026   ac_file=$1
35027   shift
35028
35029   case $ac_mode in
35030   :L) ac_source=$1;;
35031   :[FH])
35032     ac_file_inputs=
35033     for ac_f
35034     do
35035       case $ac_f in
35036       -) ac_f="$tmp/stdin";;
35037       *) # Look for the file first in the build tree, then in the source tree
35038          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35039          # because $ac_f cannot contain `:'.
35040          test -f "$ac_f" ||
35041            case $ac_f in
35042            [\\/$]*) false;;
35043            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35044            esac ||
35045            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35046 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35047    { (exit 1); exit 1; }; };;
35048       esac
35049       ac_file_inputs="$ac_file_inputs $ac_f"
35050     done
35051
35052     # Let's still pretend it is `configure' which instantiates (i.e., don't
35053     # use $as_me), people would be surprised to read:
35054     #    /* config.h.  Generated by config.status.  */
35055     configure_input="Generated from "`IFS=:
35056           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35057     if test x"$ac_file" != x-; then
35058       configure_input="$ac_file.  $configure_input"
35059       { echo "$as_me:$LINENO: creating $ac_file" >&5
35060 echo "$as_me: creating $ac_file" >&6;}
35061     fi
35062
35063     case $ac_tag in
35064     *:-:* | *:-) cat >"$tmp/stdin";;
35065     esac
35066     ;;
35067   esac
35068
35069   ac_dir=`$as_dirname -- "$ac_file" ||
35070 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35071          X"$ac_file" : 'X\(//\)[^/]' \| \
35072          X"$ac_file" : 'X\(//\)$' \| \
35073          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35074 echo X"$ac_file" |
35075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35076             s//\1/
35077             q
35078           }
35079           /^X\(\/\/\)[^/].*/{
35080             s//\1/
35081             q
35082           }
35083           /^X\(\/\/\)$/{
35084             s//\1/
35085             q
35086           }
35087           /^X\(\/\).*/{
35088             s//\1/
35089             q
35090           }
35091           s/.*/./; q'`
35092   { as_dir="$ac_dir"
35093   case $as_dir in #(
35094   -*) as_dir=./$as_dir;;
35095   esac
35096   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35097     as_dirs=
35098     while :; do
35099       case $as_dir in #(
35100       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35101       *) as_qdir=$as_dir;;
35102       esac
35103       as_dirs="'$as_qdir' $as_dirs"
35104       as_dir=`$as_dirname -- "$as_dir" ||
35105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35106          X"$as_dir" : 'X\(//\)[^/]' \| \
35107          X"$as_dir" : 'X\(//\)$' \| \
35108          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35109 echo X"$as_dir" |
35110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35111             s//\1/
35112             q
35113           }
35114           /^X\(\/\/\)[^/].*/{
35115             s//\1/
35116             q
35117           }
35118           /^X\(\/\/\)$/{
35119             s//\1/
35120             q
35121           }
35122           /^X\(\/\).*/{
35123             s//\1/
35124             q
35125           }
35126           s/.*/./; q'`
35127       test -d "$as_dir" && break
35128     done
35129     test -z "$as_dirs" || eval "mkdir $as_dirs"
35130   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35131 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35132    { (exit 1); exit 1; }; }; }
35133   ac_builddir=.
35134
35135 case "$ac_dir" in
35136 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35137 *)
35138   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35139   # A ".." for each directory in $ac_dir_suffix.
35140   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35141   case $ac_top_builddir_sub in
35142   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35143   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35144   esac ;;
35145 esac
35146 ac_abs_top_builddir=$ac_pwd
35147 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35148 # for backward compatibility:
35149 ac_top_builddir=$ac_top_build_prefix
35150
35151 case $srcdir in
35152   .)  # We are building in place.
35153     ac_srcdir=.
35154     ac_top_srcdir=$ac_top_builddir_sub
35155     ac_abs_top_srcdir=$ac_pwd ;;
35156   [\\/]* | ?:[\\/]* )  # Absolute name.
35157     ac_srcdir=$srcdir$ac_dir_suffix;
35158     ac_top_srcdir=$srcdir
35159     ac_abs_top_srcdir=$srcdir ;;
35160   *) # Relative name.
35161     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35162     ac_top_srcdir=$ac_top_build_prefix$srcdir
35163     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35164 esac
35165 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35166
35167
35168   case $ac_mode in
35169   :F)
35170   #
35171   # CONFIG_FILE
35172   #
35173
35174   case $INSTALL in
35175   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35176   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35177   esac
35178 _ACEOF
35179
35180 cat >>$CONFIG_STATUS <<\_ACEOF
35181 # If the template does not know about datarootdir, expand it.
35182 # FIXME: This hack should be removed a few years after 2.60.
35183 ac_datarootdir_hack=; ac_datarootdir_seen=
35184
35185 case `sed -n '/datarootdir/ {
35186   p
35187   q
35188 }
35189 /@datadir@/p
35190 /@docdir@/p
35191 /@infodir@/p
35192 /@localedir@/p
35193 /@mandir@/p
35194 ' $ac_file_inputs` in
35195 *datarootdir*) ac_datarootdir_seen=yes;;
35196 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35197   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35198 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35199 _ACEOF
35200 cat >>$CONFIG_STATUS <<_ACEOF
35201   ac_datarootdir_hack='
35202   s&@datadir@&$datadir&g
35203   s&@docdir@&$docdir&g
35204   s&@infodir@&$infodir&g
35205   s&@localedir@&$localedir&g
35206   s&@mandir@&$mandir&g
35207     s&\\\${datarootdir}&$datarootdir&g' ;;
35208 esac
35209 _ACEOF
35210
35211 # Neutralize VPATH when `$srcdir' = `.'.
35212 # Shell code in configure.ac might set extrasub.
35213 # FIXME: do we really want to maintain this feature?
35214 cat >>$CONFIG_STATUS <<_ACEOF
35215   sed "$ac_vpsub
35216 $extrasub
35217 _ACEOF
35218 cat >>$CONFIG_STATUS <<\_ACEOF
35219 :t
35220 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35221 s&@configure_input@&$configure_input&;t t
35222 s&@top_builddir@&$ac_top_builddir_sub&;t t
35223 s&@srcdir@&$ac_srcdir&;t t
35224 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35225 s&@top_srcdir@&$ac_top_srcdir&;t t
35226 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35227 s&@builddir@&$ac_builddir&;t t
35228 s&@abs_builddir@&$ac_abs_builddir&;t t
35229 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35230 s&@INSTALL@&$ac_INSTALL&;t t
35231 $ac_datarootdir_hack
35232 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35233
35234 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35235   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35236   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35237   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35238 which seems to be undefined.  Please make sure it is defined." >&5
35239 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35240 which seems to be undefined.  Please make sure it is defined." >&2;}
35241
35242   rm -f "$tmp/stdin"
35243   case $ac_file in
35244   -) cat "$tmp/out"; rm -f "$tmp/out";;
35245   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35246   esac
35247  ;;
35248   :H)
35249   #
35250   # CONFIG_HEADER
35251   #
35252 _ACEOF
35253
35254 # Transform confdefs.h into a sed script `conftest.defines', that
35255 # substitutes the proper values into config.h.in to produce config.h.
35256 rm -f conftest.defines conftest.tail
35257 # First, append a space to every undef/define line, to ease matching.
35258 echo 's/$/ /' >conftest.defines
35259 # Then, protect against being on the right side of a sed subst, or in
35260 # an unquoted here document, in config.status.  If some macros were
35261 # called several times there might be several #defines for the same
35262 # symbol, which is useless.  But do not sort them, since the last
35263 # AC_DEFINE must be honored.
35264 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35265 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35266 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35267 # PARAMS is the parameter list in the macro definition--in most cases, it's
35268 # just an empty string.
35269 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35270 ac_dB='\\)[      (].*,\\1define\\2'
35271 ac_dC=' '
35272 ac_dD=' ,'
35273
35274 uniq confdefs.h |
35275   sed -n '
35276         t rset
35277         :rset
35278         s/^[     ]*#[    ]*define[       ][      ]*//
35279         t ok
35280         d
35281         :ok
35282         s/[\\&,]/\\&/g
35283         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35284         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35285   ' >>conftest.defines
35286
35287 # Remove the space that was appended to ease matching.
35288 # Then replace #undef with comments.  This is necessary, for
35289 # example, in the case of _POSIX_SOURCE, which is predefined and required
35290 # on some systems where configure will not decide to define it.
35291 # (The regexp can be short, since the line contains either #define or #undef.)
35292 echo 's/ $//
35293 s,^[     #]*u.*,/* & */,' >>conftest.defines
35294
35295 # Break up conftest.defines:
35296 ac_max_sed_lines=50
35297
35298 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35299 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35300 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35301 # et cetera.
35302 ac_in='$ac_file_inputs'
35303 ac_out='"$tmp/out1"'
35304 ac_nxt='"$tmp/out2"'
35305
35306 while :
35307 do
35308   # Write a here document:
35309     cat >>$CONFIG_STATUS <<_ACEOF
35310     # First, check the format of the line:
35311     cat >"\$tmp/defines.sed" <<\\CEOF
35312 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35313 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35314 b
35315 :def
35316 _ACEOF
35317   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35318   echo 'CEOF
35319     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35320   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35321   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35322   grep . conftest.tail >/dev/null || break
35323   rm -f conftest.defines
35324   mv conftest.tail conftest.defines
35325 done
35326 rm -f conftest.defines conftest.tail
35327
35328 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35329 cat >>$CONFIG_STATUS <<\_ACEOF
35330   if test x"$ac_file" != x-; then
35331     echo "/* $configure_input  */" >"$tmp/config.h"
35332     cat "$ac_result" >>"$tmp/config.h"
35333     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35334       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35335 echo "$as_me: $ac_file is unchanged" >&6;}
35336     else
35337       rm -f $ac_file
35338       mv "$tmp/config.h" $ac_file
35339     fi
35340   else
35341     echo "/* $configure_input  */"
35342     cat "$ac_result"
35343   fi
35344   rm -f "$tmp/out12"
35345  ;;
35346
35347   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35348 echo "$as_me: executing $ac_file commands" >&6;}
35349  ;;
35350   esac
35351
35352
35353   case $ac_file$ac_mode in
35354     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35355    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35356     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35357    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35358     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35359    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35360     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35361    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35362     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35363    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35364     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35365    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35366     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35367    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35368     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35369    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35370     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35371    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35372     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35373    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35374     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35375    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35376     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35377    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35378     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35379    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35380
35381   esac
35382 done # for ac_tag
35383
35384
35385 { (exit 0); exit 0; }
35386 _ACEOF
35387 chmod +x $CONFIG_STATUS
35388 ac_clean_files=$ac_clean_files_save
35389
35390
35391 # configure is writing to config.log, and then calls config.status.
35392 # config.status does its own redirection, appending to config.log.
35393 # Unfortunately, on DOS this fails, as config.log is still kept open
35394 # by configure, so config.status won't be able to write to it; its
35395 # output is simply discarded.  So we exec the FD to /dev/null,
35396 # effectively closing config.log, so it can be properly (re)opened and
35397 # appended to by config.status.  When coming back to configure, we
35398 # need to make the FD available again.
35399 if test "$no_create" != yes; then
35400   ac_cs_success=:
35401   ac_config_status_args=
35402   test "$silent" = yes &&
35403     ac_config_status_args="$ac_config_status_args --quiet"
35404   exec 5>/dev/null
35405   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35406   exec 5>>config.log
35407   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35408   # would make configure fail if this is the last instruction.
35409   $ac_cs_success || { (exit 1); exit 1; }
35410 fi
35411
35412 #
35413 # CONFIG_SUBDIRS section.
35414 #
35415 if test "$no_recursion" != yes; then
35416
35417   # Remove --cache-file and --srcdir arguments so they do not pile up.
35418   ac_sub_configure_args=
35419   ac_prev=
35420   eval "set x $ac_configure_args"
35421   shift
35422   for ac_arg
35423   do
35424     if test -n "$ac_prev"; then
35425       ac_prev=
35426       continue
35427     fi
35428     case $ac_arg in
35429     -cache-file | --cache-file | --cache-fil | --cache-fi \
35430     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35431       ac_prev=cache_file ;;
35432     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35433     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35434     | --c=*)
35435       ;;
35436     --config-cache | -C)
35437       ;;
35438     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35439       ac_prev=srcdir ;;
35440     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35441       ;;
35442     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35443       ac_prev=prefix ;;
35444     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35445       ;;
35446     *)
35447       case $ac_arg in
35448       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35449       esac
35450       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35451     esac
35452   done
35453
35454   # Always prepend --prefix to ensure using the same prefix
35455   # in subdir configurations.
35456   ac_arg="--prefix=$prefix"
35457   case $ac_arg in
35458   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35459   esac
35460   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35461
35462   ac_popdir=`pwd`
35463   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35464
35465     # Do not complain, so a configure script can configure whichever
35466     # parts of a large source tree are present.
35467     test -d "$srcdir/$ac_dir" || continue
35468
35469     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35470     echo "$as_me:$LINENO: $ac_msg" >&5
35471     echo "$ac_msg" >&6
35472     { as_dir="$ac_dir"
35473   case $as_dir in #(
35474   -*) as_dir=./$as_dir;;
35475   esac
35476   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35477     as_dirs=
35478     while :; do
35479       case $as_dir in #(
35480       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35481       *) as_qdir=$as_dir;;
35482       esac
35483       as_dirs="'$as_qdir' $as_dirs"
35484       as_dir=`$as_dirname -- "$as_dir" ||
35485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35486          X"$as_dir" : 'X\(//\)[^/]' \| \
35487          X"$as_dir" : 'X\(//\)$' \| \
35488          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35489 echo X"$as_dir" |
35490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35491             s//\1/
35492             q
35493           }
35494           /^X\(\/\/\)[^/].*/{
35495             s//\1/
35496             q
35497           }
35498           /^X\(\/\/\)$/{
35499             s//\1/
35500             q
35501           }
35502           /^X\(\/\).*/{
35503             s//\1/
35504             q
35505           }
35506           s/.*/./; q'`
35507       test -d "$as_dir" && break
35508     done
35509     test -z "$as_dirs" || eval "mkdir $as_dirs"
35510   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35511 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35512    { (exit 1); exit 1; }; }; }
35513     ac_builddir=.
35514
35515 case "$ac_dir" in
35516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35517 *)
35518   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35519   # A ".." for each directory in $ac_dir_suffix.
35520   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35521   case $ac_top_builddir_sub in
35522   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35523   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35524   esac ;;
35525 esac
35526 ac_abs_top_builddir=$ac_pwd
35527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35528 # for backward compatibility:
35529 ac_top_builddir=$ac_top_build_prefix
35530
35531 case $srcdir in
35532   .)  # We are building in place.
35533     ac_srcdir=.
35534     ac_top_srcdir=$ac_top_builddir_sub
35535     ac_abs_top_srcdir=$ac_pwd ;;
35536   [\\/]* | ?:[\\/]* )  # Absolute name.
35537     ac_srcdir=$srcdir$ac_dir_suffix;
35538     ac_top_srcdir=$srcdir
35539     ac_abs_top_srcdir=$srcdir ;;
35540   *) # Relative name.
35541     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35542     ac_top_srcdir=$ac_top_build_prefix$srcdir
35543     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35544 esac
35545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35546
35547
35548     cd "$ac_dir"
35549
35550     # Check for guested configure; otherwise get Cygnus style configure.
35551     if test -f "$ac_srcdir/configure.gnu"; then
35552       ac_sub_configure=$ac_srcdir/configure.gnu
35553     elif test -f "$ac_srcdir/configure"; then
35554       ac_sub_configure=$ac_srcdir/configure
35555     elif test -f "$ac_srcdir/configure.in"; then
35556       # This should be Cygnus configure.
35557       ac_sub_configure=$ac_aux_dir/configure
35558     else
35559       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35561       ac_sub_configure=
35562     fi
35563
35564     # The recursion is here.
35565     if test -n "$ac_sub_configure"; then
35566       # Make the cache file name correct relative to the subdirectory.
35567       case $cache_file in
35568       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35569       *) # Relative name.
35570         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35571       esac
35572
35573       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35574 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35575       # The eval makes quoting arguments work.
35576       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35577            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35578         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35579 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35580    { (exit 1); exit 1; }; }
35581     fi
35582
35583     cd "$ac_popdir"
35584   done
35585 fi
35586