Regenerate.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 DISABLE_ASSERTIONS
834 ENABLE_EXPENSIVE_CHECKS
835 EXPENSIVE_CHECKS
836 DEBUG_RUNTIME
837 JIT
838 TARGET_HAS_JIT
839 ENABLE_DOXYGEN
840 ENABLE_THREADS
841 ENABLE_PIC
842 TARGETS_TO_BUILD
843 ENABLE_CBE_PRINTF_A
844 EXTRA_OPTIONS
845 BINUTILS_INCDIR
846 CXX
847 CXXFLAGS
848 ac_ct_CXX
849 NM
850 ifGNUmake
851 LN_S
852 CMP
853 CP
854 DATE
855 FIND
856 MKDIR
857 MV
858 RANLIB
859 RM
860 SED
861 TAR
862 BINPWD
863 GRAPHVIZ
864 DOT
865 GV
866 DOTTY
867 PERL
868 HAVE_PERL
869 INSTALL_PROGRAM
870 INSTALL_SCRIPT
871 INSTALL_DATA
872 BZIP2
873 DOXYGEN
874 GROFF
875 GZIP
876 POD2HTML
877 POD2MAN
878 RUNTEST
879 TCLSH
880 ZIP
881 OCAMLC
882 OCAMLOPT
883 OCAMLDEP
884 OCAMLDOC
885 GAS
886 INSTALL_LTDL_TRUE
887 INSTALL_LTDL_FALSE
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
890 LIBADD_DL
891 ECHO
892 AR
893 STRIP
894 CXXCPP
895 F77
896 FFLAGS
897 ac_ct_F77
898 LIBTOOL
899 LLVMGCC
900 LLVMGXX
901 USE_UDIS86
902 HAVE_PTHREAD
903 HAVE_FFI
904 HUGE_VAL_SANITY
905 ALLOCA
906 MMAP_FILE
907 LLVMCC1
908 LLVMCC1PLUS
909 LLVMGCCDIR
910 LLVMGCCLIBEXEC
911 LLVMGCC_VERSION
912 LLVMGCC_MAJVERS
913 LLVMGCC_LANGS
914 SHLIBEXT
915 LLVM_PREFIX
916 LLVM_BINDIR
917 LLVM_LIBDIR
918 LLVM_DATADIR
919 LLVM_DOCSDIR
920 LLVM_ETCDIR
921 LLVM_INCLUDEDIR
922 LLVM_INFODIR
923 LLVM_MANDIR
924 LLVM_CONFIGTIME
925 BINDINGS_TO_BUILD
926 ALL_BINDINGS
927 OCAML_LIBDIR
928 ENABLE_VISIBILITY_INLINES_HIDDEN
929 LIBOBJS
930 LTLIBOBJS'
931 ac_subst_files=''
932       ac_precious_vars='build_alias
933 host_alias
934 target_alias
935 CC
936 CFLAGS
937 LDFLAGS
938 CPPFLAGS
939 CPP
940 CXX
941 CXXFLAGS
942 CCC
943 CXXCPP
944 F77
945 FFLAGS'
946 ac_subdirs_all='projects/sample
947 projects/privbracket
948 projects/llvm-stacker
949 projects/llvm-test
950 projects/test-suite
951 projects/llvm-reopt
952 projects/llvm-gcc
953 projects/llvm-java
954 projects/llvm-tv
955 projects/llvm-poolalloc
956 projects/poolalloc
957 projects/llvm-kernel'
958
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
978
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
996 infodir='${datarootdir}/info'
997 htmldir='${docdir}'
998 dvidir='${docdir}'
999 pdfdir='${docdir}'
1000 psdir='${docdir}'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1004
1005 ac_prev=
1006 ac_dashdash=
1007 for ac_option
1008 do
1009   # If the previous option needs an argument, assign it.
1010   if test -n "$ac_prev"; then
1011     eval $ac_prev=\$ac_option
1012     ac_prev=
1013     continue
1014   fi
1015
1016   case $ac_option in
1017   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018   *)    ac_optarg=yes ;;
1019   esac
1020
1021   # Accept the important Cygnus configure options, so we can diagnose typos.
1022
1023   case $ac_dashdash$ac_option in
1024   --)
1025     ac_dashdash=yes ;;
1026
1027   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028     ac_prev=bindir ;;
1029   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030     bindir=$ac_optarg ;;
1031
1032   -build | --build | --buil | --bui | --bu)
1033     ac_prev=build_alias ;;
1034   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035     build_alias=$ac_optarg ;;
1036
1037   -cache-file | --cache-file | --cache-fil | --cache-fi \
1038   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039     ac_prev=cache_file ;;
1040   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042     cache_file=$ac_optarg ;;
1043
1044   --config-cache | -C)
1045     cache_file=config.cache ;;
1046
1047   -datadir | --datadir | --datadi | --datad)
1048     ac_prev=datadir ;;
1049   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050     datadir=$ac_optarg ;;
1051
1052   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053   | --dataroo | --dataro | --datar)
1054     ac_prev=datarootdir ;;
1055   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057     datarootdir=$ac_optarg ;;
1058
1059   -disable-* | --disable-*)
1060     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1063       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1064    { (exit 1); exit 1; }; }
1065     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1066     eval enable_$ac_feature=no ;;
1067
1068   -docdir | --docdir | --docdi | --doc | --do)
1069     ac_prev=docdir ;;
1070   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071     docdir=$ac_optarg ;;
1072
1073   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074     ac_prev=dvidir ;;
1075   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076     dvidir=$ac_optarg ;;
1077
1078   -enable-* | --enable-*)
1079     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080     # Reject names that are not valid shell variable names.
1081     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1082       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1083    { (exit 1); exit 1; }; }
1084     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1085     eval enable_$ac_feature=\$ac_optarg ;;
1086
1087   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089   | --exec | --exe | --ex)
1090     ac_prev=exec_prefix ;;
1091   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093   | --exec=* | --exe=* | --ex=*)
1094     exec_prefix=$ac_optarg ;;
1095
1096   -gas | --gas | --ga | --g)
1097     # Obsolete; use --with-gas.
1098     with_gas=yes ;;
1099
1100   -help | --help | --hel | --he | -h)
1101     ac_init_help=long ;;
1102   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103     ac_init_help=recursive ;;
1104   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105     ac_init_help=short ;;
1106
1107   -host | --host | --hos | --ho)
1108     ac_prev=host_alias ;;
1109   -host=* | --host=* | --hos=* | --ho=*)
1110     host_alias=$ac_optarg ;;
1111
1112   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113     ac_prev=htmldir ;;
1114   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115   | --ht=*)
1116     htmldir=$ac_optarg ;;
1117
1118   -includedir | --includedir | --includedi | --included | --include \
1119   | --includ | --inclu | --incl | --inc)
1120     ac_prev=includedir ;;
1121   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122   | --includ=* | --inclu=* | --incl=* | --inc=*)
1123     includedir=$ac_optarg ;;
1124
1125   -infodir | --infodir | --infodi | --infod | --info | --inf)
1126     ac_prev=infodir ;;
1127   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128     infodir=$ac_optarg ;;
1129
1130   -libdir | --libdir | --libdi | --libd)
1131     ac_prev=libdir ;;
1132   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133     libdir=$ac_optarg ;;
1134
1135   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136   | --libexe | --libex | --libe)
1137     ac_prev=libexecdir ;;
1138   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139   | --libexe=* | --libex=* | --libe=*)
1140     libexecdir=$ac_optarg ;;
1141
1142   -localedir | --localedir | --localedi | --localed | --locale)
1143     ac_prev=localedir ;;
1144   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145     localedir=$ac_optarg ;;
1146
1147   -localstatedir | --localstatedir | --localstatedi | --localstated \
1148   | --localstate | --localstat | --localsta | --localst | --locals)
1149     ac_prev=localstatedir ;;
1150   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152     localstatedir=$ac_optarg ;;
1153
1154   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155     ac_prev=mandir ;;
1156   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157     mandir=$ac_optarg ;;
1158
1159   -nfp | --nfp | --nf)
1160     # Obsolete; use --without-fp.
1161     with_fp=no ;;
1162
1163   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164   | --no-cr | --no-c | -n)
1165     no_create=yes ;;
1166
1167   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169     no_recursion=yes ;;
1170
1171   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173   | --oldin | --oldi | --old | --ol | --o)
1174     ac_prev=oldincludedir ;;
1175   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178     oldincludedir=$ac_optarg ;;
1179
1180   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181     ac_prev=prefix ;;
1182   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183     prefix=$ac_optarg ;;
1184
1185   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186   | --program-pre | --program-pr | --program-p)
1187     ac_prev=program_prefix ;;
1188   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190     program_prefix=$ac_optarg ;;
1191
1192   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193   | --program-suf | --program-su | --program-s)
1194     ac_prev=program_suffix ;;
1195   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197     program_suffix=$ac_optarg ;;
1198
1199   -program-transform-name | --program-transform-name \
1200   | --program-transform-nam | --program-transform-na \
1201   | --program-transform-n | --program-transform- \
1202   | --program-transform | --program-transfor \
1203   | --program-transfo | --program-transf \
1204   | --program-trans | --program-tran \
1205   | --progr-tra | --program-tr | --program-t)
1206     ac_prev=program_transform_name ;;
1207   -program-transform-name=* | --program-transform-name=* \
1208   | --program-transform-nam=* | --program-transform-na=* \
1209   | --program-transform-n=* | --program-transform-=* \
1210   | --program-transform=* | --program-transfor=* \
1211   | --program-transfo=* | --program-transf=* \
1212   | --program-trans=* | --program-tran=* \
1213   | --progr-tra=* | --program-tr=* | --program-t=*)
1214     program_transform_name=$ac_optarg ;;
1215
1216   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217     ac_prev=pdfdir ;;
1218   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219     pdfdir=$ac_optarg ;;
1220
1221   -psdir | --psdir | --psdi | --psd | --ps)
1222     ac_prev=psdir ;;
1223   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224     psdir=$ac_optarg ;;
1225
1226   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227   | -silent | --silent | --silen | --sile | --sil)
1228     silent=yes ;;
1229
1230   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231     ac_prev=sbindir ;;
1232   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233   | --sbi=* | --sb=*)
1234     sbindir=$ac_optarg ;;
1235
1236   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238   | --sharedst | --shareds | --shared | --share | --shar \
1239   | --sha | --sh)
1240     ac_prev=sharedstatedir ;;
1241   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244   | --sha=* | --sh=*)
1245     sharedstatedir=$ac_optarg ;;
1246
1247   -site | --site | --sit)
1248     ac_prev=site ;;
1249   -site=* | --site=* | --sit=*)
1250     site=$ac_optarg ;;
1251
1252   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253     ac_prev=srcdir ;;
1254   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255     srcdir=$ac_optarg ;;
1256
1257   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258   | --syscon | --sysco | --sysc | --sys | --sy)
1259     ac_prev=sysconfdir ;;
1260   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262     sysconfdir=$ac_optarg ;;
1263
1264   -target | --target | --targe | --targ | --tar | --ta | --t)
1265     ac_prev=target_alias ;;
1266   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267     target_alias=$ac_optarg ;;
1268
1269   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270     verbose=yes ;;
1271
1272   -version | --version | --versio | --versi | --vers | -V)
1273     ac_init_version=: ;;
1274
1275   -with-* | --with-*)
1276     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1279       { echo "$as_me: error: invalid package name: $ac_package" >&2
1280    { (exit 1); exit 1; }; }
1281     ac_package=`echo $ac_package| sed 's/-/_/g'`
1282     eval with_$ac_package=\$ac_optarg ;;
1283
1284   -without-* | --without-*)
1285     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286     # Reject names that are not valid shell variable names.
1287     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1288       { echo "$as_me: error: invalid package name: $ac_package" >&2
1289    { (exit 1); exit 1; }; }
1290     ac_package=`echo $ac_package | sed 's/-/_/g'`
1291     eval with_$ac_package=no ;;
1292
1293   --x)
1294     # Obsolete; use --with-x.
1295     with_x=yes ;;
1296
1297   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298   | --x-incl | --x-inc | --x-in | --x-i)
1299     ac_prev=x_includes ;;
1300   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302     x_includes=$ac_optarg ;;
1303
1304   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306     ac_prev=x_libraries ;;
1307   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309     x_libraries=$ac_optarg ;;
1310
1311   -*) { echo "$as_me: error: unrecognized option: $ac_option
1312 Try \`$0 --help' for more information." >&2
1313    { (exit 1); exit 1; }; }
1314     ;;
1315
1316   *=*)
1317     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318     # Reject names that are not valid shell variable names.
1319     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1320       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1321    { (exit 1); exit 1; }; }
1322     eval $ac_envvar=\$ac_optarg
1323     export $ac_envvar ;;
1324
1325   *)
1326     # FIXME: should be removed in autoconf 3.0.
1327     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1331     ;;
1332
1333   esac
1334 done
1335
1336 if test -n "$ac_prev"; then
1337   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338   { echo "$as_me: error: missing argument to $ac_option" >&2
1339    { (exit 1); exit 1; }; }
1340 fi
1341
1342 # Be sure to have absolute directory names.
1343 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344                 datadir sysconfdir sharedstatedir localstatedir includedir \
1345                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346                 libdir localedir mandir
1347 do
1348   eval ac_val=\$$ac_var
1349   case $ac_val in
1350     [\\/$]* | ?:[\\/]* )  continue;;
1351     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352   esac
1353   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1354    { (exit 1); exit 1; }; }
1355 done
1356
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366   if test "x$build_alias" = x; then
1367     cross_compiling=maybe
1368     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369     If a cross compiler is detected then cross compile mode will be used." >&2
1370   elif test "x$build_alias" != "x$host_alias"; then
1371     cross_compiling=yes
1372   fi
1373 fi
1374
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378 test "$silent" = yes && exec 6>/dev/null
1379
1380
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384   { echo "$as_me: error: Working directory cannot be determined" >&2
1385    { (exit 1); exit 1; }; }
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387   { echo "$as_me: error: pwd does not report name of working directory" >&2
1388    { (exit 1); exit 1; }; }
1389
1390
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393   ac_srcdir_defaulted=yes
1394   # Try the directory containing this script, then the parent directory.
1395   ac_confdir=`$as_dirname -- "$0" ||
1396 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397          X"$0" : 'X\(//\)[^/]' \| \
1398          X"$0" : 'X\(//\)$' \| \
1399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1400 echo X"$0" |
1401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\/\)[^/].*/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\).*/{
1414             s//\1/
1415             q
1416           }
1417           s/.*/./; q'`
1418   srcdir=$ac_confdir
1419   if test ! -r "$srcdir/$ac_unique_file"; then
1420     srcdir=..
1421   fi
1422 else
1423   ac_srcdir_defaulted=no
1424 fi
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1428    { (exit 1); exit 1; }; }
1429 fi
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1433    { (exit 1); exit 1; }; }
1434         pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437   srcdir=.
1438 fi
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_env_${ac_var}_value=\$${ac_var}
1448   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1451
1452 #
1453 # Report the --help message.
1454 #
1455 if test "$ac_init_help" = "long"; then
1456   # Omit some internal or obsolete options to make the list less imposing.
1457   # This message is too long to be a string in the A/UX 3.1 sh.
1458   cat <<_ACEOF
1459 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1460
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE.  See below for descriptions of some of the useful variables.
1465
1466 Defaults for the options are specified in brackets.
1467
1468 Configuration:
1469   -h, --help              display this help and exit
1470       --help=short        display options specific to this package
1471       --help=recursive    display the short help of all the included packages
1472   -V, --version           display version information and exit
1473   -q, --quiet, --silent   do not print \`checking...' messages
1474       --cache-file=FILE   cache test results in FILE [disabled]
1475   -C, --config-cache      alias for \`--cache-file=config.cache'
1476   -n, --no-create         do not create output files
1477       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1478
1479 Installation directories:
1480   --prefix=PREFIX         install architecture-independent files in PREFIX
1481                           [$ac_default_prefix]
1482   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1483                           [PREFIX]
1484
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1489
1490 For better control, use the options below.
1491
1492 Fine tuning of the installation directories:
1493   --bindir=DIR           user executables [EPREFIX/bin]
1494   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1495   --libexecdir=DIR       program executables [EPREFIX/libexec]
1496   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1497   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1498   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1499   --libdir=DIR           object code libraries [EPREFIX/lib]
1500   --includedir=DIR       C header files [PREFIX/include]
1501   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1502   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1503   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1504   --infodir=DIR          info documentation [DATAROOTDIR/info]
1505   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1506   --mandir=DIR           man documentation [DATAROOTDIR/man]
1507   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1508   --htmldir=DIR          html documentation [DOCDIR]
1509   --dvidir=DIR           dvi documentation [DOCDIR]
1510   --pdfdir=DIR           pdf documentation [DOCDIR]
1511   --psdir=DIR            ps documentation [DOCDIR]
1512 _ACEOF
1513
1514   cat <<\_ACEOF
1515
1516 System types:
1517   --build=BUILD     configure for building on BUILD [guessed]
1518   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1519   --target=TARGET   configure for building compilers for TARGET [HOST]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524   case $ac_init_help in
1525      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1526    esac
1527   cat <<\_ACEOF
1528
1529 Optional Features:
1530   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1531   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1532   --enable-optimized
1533   --enable-assertions
1534   --enable-expensive-checks
1535
1536   --enable-debug-runtime
1537   --enable-jit            Enable Just In Time Compiling (default is YES)
1538   --enable-doxygen        Build doxygen documentation (default is NO)
1539   --enable-threads        Use threads if available (default is YES)
1540   --enable-pic            Build LLVM with Position Independent Code (default
1541                           is YES)
1542   --enable-targets        Build specific host targets:
1543                           all,host-only,{target-name} (default=all)
1544   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1545                           %a (default is YES)
1546   --enable-bindings       Build specific language bindings:
1547                           all,auto,none,{binding-name} (default=auto)
1548   --enable-ltdl-install   install libltdl
1549   --enable-shared[=PKGS]  build shared libraries
1550                           [default=yes]
1551   --enable-static[=PKGS]  build static libraries
1552                           [default=yes]
1553   --enable-fast-install[=PKGS]
1554                           optimize for fast installation
1555                           [default=yes]
1556   --disable-libtool-lock  avoid locking (might break parallel builds)
1557
1558 Optional Packages:
1559   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1560   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1561   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1562                           searches PATH)
1563   --with-llvmgcc          Specify location of llvm-gcc driver (default
1564                           searches PATH)
1565   --with-llvmgxx          Specify location of llvm-g++ driver (default
1566                           searches PATH)
1567   --with-extra-options    Specify addtional options to compile LLVM with
1568   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1569                           is stdlib)
1570   --with-binutils-include Specify path to binutils/include/ containing
1571                           plugin-api.h file for gold plugin.
1572   --with-tclinclude       directory where tcl headers are
1573   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1574   --with-pic              try to use only PIC/non-PIC objects [default=use
1575                           both]
1576   --with-tags[=TAGS]      include additional configurations [automatic]
1577   --with-udis86=<path>    Use udis86 external x86 disassembler library
1578
1579 Some influential environment variables:
1580   CC          C compiler command
1581   CFLAGS      C compiler flags
1582   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1583               nonstandard directory <lib dir>
1584   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585               you have headers in a nonstandard directory <include dir>
1586   CPP         C preprocessor
1587   CXX         C++ compiler command
1588   CXXFLAGS    C++ compiler flags
1589   CXXCPP      C++ preprocessor
1590   F77         Fortran 77 compiler command
1591   FFLAGS      Fortran 77 compiler flags
1592
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1595
1596 Report bugs to <llvmbugs@cs.uiuc.edu>.
1597 _ACEOF
1598 ac_status=$?
1599 fi
1600
1601 if test "$ac_init_help" = "recursive"; then
1602   # If there are subdirs, report their specific --help.
1603   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604     test -d "$ac_dir" || continue
1605     ac_builddir=.
1606
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *)
1610   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1611   # A ".." for each directory in $ac_dir_suffix.
1612   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1613   case $ac_top_builddir_sub in
1614   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616   esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1622
1623 case $srcdir in
1624   .)  # We are building in place.
1625     ac_srcdir=.
1626     ac_top_srcdir=$ac_top_builddir_sub
1627     ac_abs_top_srcdir=$ac_pwd ;;
1628   [\\/]* | ?:[\\/]* )  # Absolute name.
1629     ac_srcdir=$srcdir$ac_dir_suffix;
1630     ac_top_srcdir=$srcdir
1631     ac_abs_top_srcdir=$srcdir ;;
1632   *) # Relative name.
1633     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634     ac_top_srcdir=$ac_top_build_prefix$srcdir
1635     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639     cd "$ac_dir" || { ac_status=$?; continue; }
1640     # Check for guested configure.
1641     if test -f "$ac_srcdir/configure.gnu"; then
1642       echo &&
1643       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644     elif test -f "$ac_srcdir/configure"; then
1645       echo &&
1646       $SHELL "$ac_srcdir/configure" --help=recursive
1647     else
1648       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649     fi || ac_status=$?
1650     cd "$ac_pwd" || { ac_status=$?; break; }
1651   done
1652 fi
1653
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656   cat <<\_ACEOF
1657 llvm configure 2.6svn
1658 generated by GNU Autoconf 2.60
1659
1660 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1661 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1664
1665 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1666 _ACEOF
1667   exit
1668 fi
1669 cat >config.log <<_ACEOF
1670 This file contains any messages produced by compilers while
1671 running configure, to aid debugging if configure makes a mistake.
1672
1673 It was created by llvm $as_me 2.6svn, which was
1674 generated by GNU Autoconf 2.60.  Invocation command line was
1675
1676   $ $0 $@
1677
1678 _ACEOF
1679 exec 5>>config.log
1680 {
1681 cat <<_ASUNAME
1682 ## --------- ##
1683 ## Platform. ##
1684 ## --------- ##
1685
1686 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1687 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1688 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1689 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1690 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1691
1692 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1693 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1694
1695 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1696 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1697 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1698 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1699 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1700 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1701 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1702
1703 _ASUNAME
1704
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   echo "PATH: $as_dir"
1711 done
1712 IFS=$as_save_IFS
1713
1714 } >&5
1715
1716 cat >&5 <<_ACEOF
1717
1718
1719 ## ----------- ##
1720 ## Core tests. ##
1721 ## ----------- ##
1722
1723 _ACEOF
1724
1725
1726 # Keep a trace of the command line.
1727 # Strip out --no-create and --no-recursion so they do not pile up.
1728 # Strip out --silent because we don't want to record it for future runs.
1729 # Also quote any args containing shell meta-characters.
1730 # Make two passes to allow for proper duplicate-argument suppression.
1731 ac_configure_args=
1732 ac_configure_args0=
1733 ac_configure_args1=
1734 ac_must_keep_next=false
1735 for ac_pass in 1 2
1736 do
1737   for ac_arg
1738   do
1739     case $ac_arg in
1740     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1741     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1742     | -silent | --silent | --silen | --sile | --sil)
1743       continue ;;
1744     *\'*)
1745       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1746     esac
1747     case $ac_pass in
1748     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1749     2)
1750       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1751       if test $ac_must_keep_next = true; then
1752         ac_must_keep_next=false # Got value, back to normal.
1753       else
1754         case $ac_arg in
1755           *=* | --config-cache | -C | -disable-* | --disable-* \
1756           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1757           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1758           | -with-* | --with-* | -without-* | --without-* | --x)
1759             case "$ac_configure_args0 " in
1760               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1761             esac
1762             ;;
1763           -* ) ac_must_keep_next=true ;;
1764         esac
1765       fi
1766       ac_configure_args="$ac_configure_args '$ac_arg'"
1767       ;;
1768     esac
1769   done
1770 done
1771 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1772 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1773
1774 # When interrupted or exit'd, cleanup temporary files, and complete
1775 # config.log.  We remove comments because anyway the quotes in there
1776 # would cause problems or look ugly.
1777 # WARNING: Use '\'' to represent an apostrophe within the trap.
1778 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1779 trap 'exit_status=$?
1780   # Save into config.log some information that might help in debugging.
1781   {
1782     echo
1783
1784     cat <<\_ASBOX
1785 ## ---------------- ##
1786 ## Cache variables. ##
1787 ## ---------------- ##
1788 _ASBOX
1789     echo
1790     # The following way of writing the cache mishandles newlines in values,
1791 (
1792   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1793     eval ac_val=\$$ac_var
1794     case $ac_val in #(
1795     *${as_nl}*)
1796       case $ac_var in #(
1797       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1798 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1799       esac
1800       case $ac_var in #(
1801       _ | IFS | as_nl) ;; #(
1802       *) $as_unset $ac_var ;;
1803       esac ;;
1804     esac
1805   done
1806   (set) 2>&1 |
1807     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1808     *${as_nl}ac_space=\ *)
1809       sed -n \
1810         "s/'\''/'\''\\\\'\'''\''/g;
1811           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1812       ;; #(
1813     *)
1814       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1815       ;;
1816     esac |
1817     sort
1818 )
1819     echo
1820
1821     cat <<\_ASBOX
1822 ## ----------------- ##
1823 ## Output variables. ##
1824 ## ----------------- ##
1825 _ASBOX
1826     echo
1827     for ac_var in $ac_subst_vars
1828     do
1829       eval ac_val=\$$ac_var
1830       case $ac_val in
1831       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832       esac
1833       echo "$ac_var='\''$ac_val'\''"
1834     done | sort
1835     echo
1836
1837     if test -n "$ac_subst_files"; then
1838       cat <<\_ASBOX
1839 ## ------------------- ##
1840 ## File substitutions. ##
1841 ## ------------------- ##
1842 _ASBOX
1843       echo
1844       for ac_var in $ac_subst_files
1845       do
1846         eval ac_val=\$$ac_var
1847         case $ac_val in
1848         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849         esac
1850         echo "$ac_var='\''$ac_val'\''"
1851       done | sort
1852       echo
1853     fi
1854
1855     if test -s confdefs.h; then
1856       cat <<\_ASBOX
1857 ## ----------- ##
1858 ## confdefs.h. ##
1859 ## ----------- ##
1860 _ASBOX
1861       echo
1862       cat confdefs.h
1863       echo
1864     fi
1865     test "$ac_signal" != 0 &&
1866       echo "$as_me: caught signal $ac_signal"
1867     echo "$as_me: exit $exit_status"
1868   } >&5
1869   rm -f core *.core core.conftest.* &&
1870     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1871     exit $exit_status
1872 ' 0
1873 for ac_signal in 1 2 13 15; do
1874   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875 done
1876 ac_signal=0
1877
1878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1879 rm -f -r conftest* confdefs.h
1880
1881 # Predefined preprocessor variables.
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_STRING "$PACKAGE_STRING"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905 _ACEOF
1906
1907
1908 # Let the site file select an alternate cache file if it wants to.
1909 # Prefer explicitly selected file to automatically selected ones.
1910 if test -n "$CONFIG_SITE"; then
1911   set x "$CONFIG_SITE"
1912 elif test "x$prefix" != xNONE; then
1913   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1914 else
1915   set x "$ac_default_prefix/share/config.site" \
1916         "$ac_default_prefix/etc/config.site"
1917 fi
1918 shift
1919 for ac_site_file
1920 do
1921   if test -r "$ac_site_file"; then
1922     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 echo "$as_me: loading site script $ac_site_file" >&6;}
1924     sed 's/^/| /' "$ac_site_file" >&5
1925     . "$ac_site_file"
1926   fi
1927 done
1928
1929 if test -r "$cache_file"; then
1930   # Some versions of bash will fail to source /dev/null (special
1931   # files actually), so we avoid doing that.
1932   if test -f "$cache_file"; then
1933     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 echo "$as_me: loading cache $cache_file" >&6;}
1935     case $cache_file in
1936       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937       *)                      . "./$cache_file";;
1938     esac
1939   fi
1940 else
1941   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 echo "$as_me: creating cache $cache_file" >&6;}
1943   >$cache_file
1944 fi
1945
1946 # Check that the precious variables saved in the cache have kept the same
1947 # value.
1948 ac_cache_corrupted=false
1949 for ac_var in $ac_precious_vars; do
1950   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1951   eval ac_new_set=\$ac_env_${ac_var}_set
1952   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1953   eval ac_new_val=\$ac_env_${ac_var}_value
1954   case $ac_old_set,$ac_new_set in
1955     set,)
1956       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1957 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1958       ac_cache_corrupted=: ;;
1959     ,set)
1960       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1961 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1962       ac_cache_corrupted=: ;;
1963     ,);;
1964     *)
1965       if test "x$ac_old_val" != "x$ac_new_val"; then
1966         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1967 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1968         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1969 echo "$as_me:   former value:  $ac_old_val" >&2;}
1970         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1971 echo "$as_me:   current value: $ac_new_val" >&2;}
1972         ac_cache_corrupted=:
1973       fi;;
1974   esac
1975   # Pass precious variables to config.status.
1976   if test "$ac_new_set" = set; then
1977     case $ac_new_val in
1978     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1979     *) ac_arg=$ac_var=$ac_new_val ;;
1980     esac
1981     case " $ac_configure_args " in
1982       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1983       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1984     esac
1985   fi
1986 done
1987 if $ac_cache_corrupted; then
1988   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1989 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1990   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1991 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1992    { (exit 1); exit 1; }; }
1993 fi
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019 ac_ext=c
2020 ac_cpp='$CPP $CPPFLAGS'
2021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024
2025
2026
2027 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2028
2029
2030
2031
2032
2033
2034
2035 ac_aux_dir=
2036 for ac_dir in autoconf "$srcdir"/autoconf; do
2037   if test -f "$ac_dir/install-sh"; then
2038     ac_aux_dir=$ac_dir
2039     ac_install_sh="$ac_aux_dir/install-sh -c"
2040     break
2041   elif test -f "$ac_dir/install.sh"; then
2042     ac_aux_dir=$ac_dir
2043     ac_install_sh="$ac_aux_dir/install.sh -c"
2044     break
2045   elif test -f "$ac_dir/shtool"; then
2046     ac_aux_dir=$ac_dir
2047     ac_install_sh="$ac_aux_dir/shtool install -c"
2048     break
2049   fi
2050 done
2051 if test -z "$ac_aux_dir"; then
2052   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2053 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2054    { (exit 1); exit 1; }; }
2055 fi
2056
2057 # These three variables are undocumented and unsupported,
2058 # and are intended to be withdrawn in a future Autoconf release.
2059 # They can cause serious problems if a builder's source tree is in a directory
2060 # whose full name contains unusual characters.
2061 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2062 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2063 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2064
2065
2066
2067 if test ${srcdir} != "." ; then
2068   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2069     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2070 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2071    { (exit 1); exit 1; }; }
2072   fi
2073 fi
2074
2075 for i in `ls ${srcdir}/projects`
2076 do
2077   if test -d ${srcdir}/projects/${i} ; then
2078     case ${i} in
2079       CVS) ;;
2080       sample)       subdirs="$subdirs projects/sample"
2081     ;;
2082       privbracket)  subdirs="$subdirs projects/privbracket"
2083  ;;
2084       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2085  ;;
2086       # llvm-test is the old name of the test-suite, kept here for backwards
2087       # compatibility
2088       llvm-test)    subdirs="$subdirs projects/llvm-test"
2089  ;;
2090       test-suite)   subdirs="$subdirs projects/test-suite"
2091  ;;
2092       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2093 ;;
2094       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2095   ;;
2096       llvm-java)    subdirs="$subdirs projects/llvm-java"
2097  ;;
2098       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2099    ;;
2100       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2101  ;;
2102       poolalloc)    subdirs="$subdirs projects/poolalloc"
2103  ;;
2104       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2105  ;;
2106       *)
2107         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2108 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2109         ;;
2110     esac
2111   fi
2112 done
2113
2114
2115 # Make sure we can run config.sub.
2116 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2117   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119    { (exit 1); exit 1; }; }
2120
2121 { echo "$as_me:$LINENO: checking build system type" >&5
2122 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2123 if test "${ac_cv_build+set}" = set; then
2124   echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126   ac_build_alias=$build_alias
2127 test "x$ac_build_alias" = x &&
2128   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2129 test "x$ac_build_alias" = x &&
2130   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132    { (exit 1); exit 1; }; }
2133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136    { (exit 1); exit 1; }; }
2137
2138 fi
2139 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140 echo "${ECHO_T}$ac_cv_build" >&6; }
2141 case $ac_cv_build in
2142 *-*-*) ;;
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144 echo "$as_me: error: invalid value of canonical build" >&2;}
2145    { (exit 1); exit 1; }; };;
2146 esac
2147 build=$ac_cv_build
2148 ac_save_IFS=$IFS; IFS='-'
2149 set x $ac_cv_build
2150 shift
2151 build_cpu=$1
2152 build_vendor=$2
2153 shift; shift
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2156 build_os=$*
2157 IFS=$ac_save_IFS
2158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2159
2160
2161 { echo "$as_me:$LINENO: checking host system type" >&5
2162 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_host+set}" = set; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166   if test "x$host_alias" = x; then
2167   ac_cv_host=$ac_cv_build
2168 else
2169   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172    { (exit 1); exit 1; }; }
2173 fi
2174
2175 fi
2176 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177 echo "${ECHO_T}$ac_cv_host" >&6; }
2178 case $ac_cv_host in
2179 *-*-*) ;;
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181 echo "$as_me: error: invalid value of canonical host" >&2;}
2182    { (exit 1); exit 1; }; };;
2183 esac
2184 host=$ac_cv_host
2185 ac_save_IFS=$IFS; IFS='-'
2186 set x $ac_cv_host
2187 shift
2188 host_cpu=$1
2189 host_vendor=$2
2190 shift; shift
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2193 host_os=$*
2194 IFS=$ac_save_IFS
2195 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2196
2197
2198 { echo "$as_me:$LINENO: checking target system type" >&5
2199 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2200 if test "${ac_cv_target+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   if test "x$target_alias" = x; then
2204   ac_cv_target=$ac_cv_host
2205 else
2206   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2207     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2208 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2209    { (exit 1); exit 1; }; }
2210 fi
2211
2212 fi
2213 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2214 echo "${ECHO_T}$ac_cv_target" >&6; }
2215 case $ac_cv_target in
2216 *-*-*) ;;
2217 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2218 echo "$as_me: error: invalid value of canonical target" >&2;}
2219    { (exit 1); exit 1; }; };;
2220 esac
2221 target=$ac_cv_target
2222 ac_save_IFS=$IFS; IFS='-'
2223 set x $ac_cv_target
2224 shift
2225 target_cpu=$1
2226 target_vendor=$2
2227 shift; shift
2228 # Remember, the first character of IFS is used to create $*,
2229 # except with old shells:
2230 target_os=$*
2231 IFS=$ac_save_IFS
2232 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2233
2234
2235 # The aliases save the names the user supplied, while $host etc.
2236 # will get canonicalized.
2237 test -n "$target_alias" &&
2238   test "$program_prefix$program_suffix$program_transform_name" = \
2239     NONENONEs,x,x, &&
2240   program_prefix=${target_alias}-
2241
2242 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2243 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2244 if test "${llvm_cv_os_type+set}" = set; then
2245   echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247   case $host in
2248   *-*-aix*)
2249     llvm_cv_link_all_option="-Wl,--whole-archive"
2250     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251     llvm_cv_os_type="AIX"
2252     llvm_cv_platform_type="Unix" ;;
2253   *-*-irix*)
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="IRIX"
2257     llvm_cv_platform_type="Unix" ;;
2258   *-*-cygwin*)
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="Cygwin"
2262     llvm_cv_platform_type="Unix" ;;
2263   *-*-darwin*)
2264     llvm_cv_link_all_option="-Wl,-all_load"
2265     llvm_cv_no_link_all_option="-Wl,-noall_load"
2266     llvm_cv_os_type="Darwin"
2267     llvm_cv_platform_type="Unix" ;;
2268   *-*-freebsd*)
2269     llvm_cv_link_all_option="-Wl,--whole-archive"
2270     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271     llvm_cv_os_type="FreeBSD"
2272     llvm_cv_platform_type="Unix" ;;
2273   *-*-openbsd*)
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="OpenBSD"
2277     llvm_cv_platform_type="Unix" ;;
2278   *-*-netbsd*)
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="NetBSD"
2282     llvm_cv_platform_type="Unix" ;;
2283   *-*-dragonfly*)
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="DragonFly"
2287     llvm_cv_platform_type="Unix" ;;
2288   *-*-hpux*)
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="HP-UX"
2292     llvm_cv_platform_type="Unix" ;;
2293   *-*-interix*)
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="Interix"
2297     llvm_cv_platform_type="Unix" ;;
2298   *-*-linux*)
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="Linux"
2302     llvm_cv_platform_type="Unix" ;;
2303   *-*-solaris*)
2304     llvm_cv_link_all_option="-Wl,-z,allextract"
2305     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2306     llvm_cv_os_type="SunOS"
2307     llvm_cv_platform_type="Unix" ;;
2308   *-*-win32*)
2309     llvm_cv_link_all_option="-Wl,--whole-archive"
2310     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311     llvm_cv_os_type="Win32"
2312     llvm_cv_platform_type="Win32" ;;
2313   *-*-mingw*)
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="MingW"
2317     llvm_cv_platform_type="Win32" ;;
2318   *)
2319     llvm_cv_link_all_option=""
2320     llvm_cv_no_link_all_option=""
2321     llvm_cv_os_type="Unknown"
2322     llvm_cv_platform_type="Unknown" ;;
2323 esac
2324 fi
2325 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2326 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2327
2328 if test "$llvm_cv_os_type" = "Unknown" ; then
2329   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2330 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2331    { (exit 1); exit 1; }; }
2332 fi
2333
2334 OS=$llvm_cv_os_type
2335
2336
2337 LINKALL=$llvm_cv_link_all_option
2338
2339 NOLINKALL=$llvm_cv_no_link_all_option
2340
2341
2342 case $llvm_cv_platform_type in
2343   Unix)
2344
2345 cat >>confdefs.h <<\_ACEOF
2346 #define LLVM_ON_UNIX 1
2347 _ACEOF
2348
2349     LLVM_ON_UNIX=1
2350
2351     LLVM_ON_WIN32=0
2352
2353     ;;
2354   Win32)
2355
2356 cat >>confdefs.h <<\_ACEOF
2357 #define LLVM_ON_WIN32 1
2358 _ACEOF
2359
2360     LLVM_ON_UNIX=0
2361
2362     LLVM_ON_WIN32=1
2363
2364     ;;
2365 esac
2366
2367 { echo "$as_me:$LINENO: checking target architecture" >&5
2368 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2369 if test "${llvm_cv_target_arch+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   case $target in
2373   i?86-*)                 llvm_cv_target_arch="x86" ;;
2374   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2375   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2376   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2377   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2378   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2379   arm-*)                  llvm_cv_target_arch="ARM" ;;
2380   mips-*)                 llvm_cv_target_arch="Mips" ;;
2381   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2382   xcore-*)                llvm_cv_target_arch="XCore" ;;
2383   *)                      llvm_cv_target_arch="Unknown" ;;
2384 esac
2385 fi
2386 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2387 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2388
2389 if test "$llvm_cv_target_arch" = "Unknown" ; then
2390   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2391 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2392 fi
2393
2394 ARCH=$llvm_cv_target_arch
2395
2396
2397 ac_ext=c
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402 if test -n "$ac_tool_prefix"; then
2403   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_CC+set}" = set; then
2408   echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410   if test -n "$CC"; then
2411   ac_cv_prog_CC="$CC" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416   IFS=$as_save_IFS
2417   test -z "$as_dir" && as_dir=.
2418   for ac_exec_ext in '' $ac_executable_extensions; do
2419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422     break 2
2423   fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 CC=$ac_cv_prog_CC
2431 if test -n "$CC"; then
2432   { echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6; }
2434 else
2435   { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2437 fi
2438
2439
2440 fi
2441 if test -z "$ac_cv_prog_CC"; then
2442   ac_ct_CC=$CC
2443   # Extract the first word of "gcc", so it can be a program name with args.
2444 set dummy gcc; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   if test -n "$ac_ct_CC"; then
2451   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456   IFS=$as_save_IFS
2457   test -z "$as_dir" && as_dir=.
2458   for ac_exec_ext in '' $ac_executable_extensions; do
2459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460     ac_cv_prog_ac_ct_CC="gcc"
2461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462     break 2
2463   fi
2464 done
2465 done
2466 IFS=$as_save_IFS
2467
2468 fi
2469 fi
2470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471 if test -n "$ac_ct_CC"; then
2472   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473 echo "${ECHO_T}$ac_ct_CC" >&6; }
2474 else
2475   { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2477 fi
2478
2479   if test "x$ac_ct_CC" = x; then
2480     CC=""
2481   else
2482     case $cross_compiling:$ac_tool_warned in
2483 yes:)
2484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2485 whose name does not start with the host triplet.  If you think this
2486 configuration is useful to you, please write to autoconf@gnu.org." >&5
2487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet.  If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2490 ac_tool_warned=yes ;;
2491 esac
2492     CC=$ac_ct_CC
2493   fi
2494 else
2495   CC="$ac_cv_prog_CC"
2496 fi
2497
2498 if test -z "$CC"; then
2499           if test -n "$ac_tool_prefix"; then
2500     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2501 set dummy ${ac_tool_prefix}cc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$CC"; then
2508   ac_cv_prog_CC="$CC" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517     ac_cv_prog_CC="${ac_tool_prefix}cc"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 fi
2526 fi
2527 CC=$ac_cv_prog_CC
2528 if test -n "$CC"; then
2529   { echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6; }
2531 else
2532   { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2534 fi
2535
2536
2537   fi
2538 fi
2539 if test -z "$CC"; then
2540   # Extract the first word of "cc", so it can be a program name with args.
2541 set dummy cc; ac_word=$2
2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545   echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547   if test -n "$CC"; then
2548   ac_cv_prog_CC="$CC" # Let the user override the test.
2549 else
2550   ac_prog_rejected=no
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554   IFS=$as_save_IFS
2555   test -z "$as_dir" && as_dir=.
2556   for ac_exec_ext in '' $ac_executable_extensions; do
2557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2558     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2559        ac_prog_rejected=yes
2560        continue
2561      fi
2562     ac_cv_prog_CC="cc"
2563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564     break 2
2565   fi
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 if test $ac_prog_rejected = yes; then
2571   # We found a bogon in the path, so make sure we never use it.
2572   set dummy $ac_cv_prog_CC
2573   shift
2574   if test $# != 0; then
2575     # We chose a different compiler from the bogus one.
2576     # However, it has the same basename, so the bogon will be chosen
2577     # first if we set CC to just the basename; use the full file name.
2578     shift
2579     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2580   fi
2581 fi
2582 fi
2583 fi
2584 CC=$ac_cv_prog_CC
2585 if test -n "$CC"; then
2586   { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2588 else
2589   { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2591 fi
2592
2593
2594 fi
2595 if test -z "$CC"; then
2596   if test -n "$ac_tool_prefix"; then
2597   for ac_prog in cl.exe
2598   do
2599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_CC+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   if test -n "$CC"; then
2607   ac_cv_prog_CC="$CC" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614   for ac_exec_ext in '' $ac_executable_extensions; do
2615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2616     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618     break 2
2619   fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 fi
2625 fi
2626 CC=$ac_cv_prog_CC
2627 if test -n "$CC"; then
2628   { echo "$as_me:$LINENO: result: $CC" >&5
2629 echo "${ECHO_T}$CC" >&6; }
2630 else
2631   { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2633 fi
2634
2635
2636     test -n "$CC" && break
2637   done
2638 fi
2639 if test -z "$CC"; then
2640   ac_ct_CC=$CC
2641   for ac_prog in cl.exe
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   if test -n "$ac_ct_CC"; then
2651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658   for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_ac_ct_CC="$ac_prog"
2661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673 echo "${ECHO_T}$ac_ct_CC" >&6; }
2674 else
2675   { echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6; }
2677 fi
2678
2679
2680   test -n "$ac_ct_CC" && break
2681 done
2682
2683   if test "x$ac_ct_CC" = x; then
2684     CC=""
2685   else
2686     case $cross_compiling:$ac_tool_warned in
2687 yes:)
2688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet.  If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&5
2691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692 whose name does not start with the host triplet.  If you think this
2693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694 ac_tool_warned=yes ;;
2695 esac
2696     CC=$ac_ct_CC
2697   fi
2698 fi
2699
2700 fi
2701
2702
2703 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2704 See \`config.log' for more details." >&5
2705 echo "$as_me: error: no acceptable C compiler found in \$PATH
2706 See \`config.log' for more details." >&2;}
2707    { (exit 1); exit 1; }; }
2708
2709 # Provide some information about the compiler.
2710 echo "$as_me:$LINENO: checking for C compiler version" >&5
2711 ac_compiler=`set X $ac_compile; echo $2`
2712 { (ac_try="$ac_compiler --version >&5"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compiler --version >&5") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }
2722 { (ac_try="$ac_compiler -v >&5"
2723 case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_compiler -v >&5") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }
2732 { (ac_try="$ac_compiler -V >&5"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compiler -V >&5") 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }
2742
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749
2750 int
2751 main ()
2752 {
2753
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 ac_clean_files_save=$ac_clean_files
2759 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2760 # Try to create an executable without -o first, disregard a.out.
2761 # It will help us diagnose broken compilers, and finding out an intuition
2762 # of exeext.
2763 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2764 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2765 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2766 #
2767 # List of possible output files, starting from the most likely.
2768 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2769 # only as a last resort.  b.out is created by i960 compilers.
2770 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2771 #
2772 # The IRIX 6 linker writes into existing files which may not be
2773 # executable, retaining their permissions.  Remove them first so a
2774 # subsequent execution test works.
2775 ac_rmfiles=
2776 for ac_file in $ac_files
2777 do
2778   case $ac_file in
2779     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2780     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2781   esac
2782 done
2783 rm -f $ac_rmfiles
2784
2785 if { (ac_try="$ac_link_default"
2786 case "(($ac_try" in
2787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788   *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791   (eval "$ac_link_default") 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; then
2795   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2796 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2797 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2798 # so that the user can short-circuit this test for compilers unknown to
2799 # Autoconf.
2800 for ac_file in $ac_files
2801 do
2802   test -f "$ac_file" || continue
2803   case $ac_file in
2804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2805         ;;
2806     [ab].out )
2807         # We found the default executable, but exeext='' is most
2808         # certainly right.
2809         break;;
2810     *.* )
2811         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2812         then :; else
2813            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2814         fi
2815         # We set ac_cv_exeext here because the later test for it is not
2816         # safe: cross compilers may not add the suffix if given an `-o'
2817         # argument, so we may need to know it at that point already.
2818         # Even if this section looks crufty: it has the advantage of
2819         # actually working.
2820         break;;
2821     * )
2822         break;;
2823   esac
2824 done
2825 test "$ac_cv_exeext" = no && ac_cv_exeext=
2826
2827 else
2828   echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2832 See \`config.log' for more details." >&5
2833 echo "$as_me: error: C compiler cannot create executables
2834 See \`config.log' for more details." >&2;}
2835    { (exit 77); exit 77; }; }
2836 fi
2837
2838 ac_exeext=$ac_cv_exeext
2839 { echo "$as_me:$LINENO: result: $ac_file" >&5
2840 echo "${ECHO_T}$ac_file" >&6; }
2841
2842 # Check that the compiler produces executables we can run.  If not, either
2843 # the compiler is broken, or we cross compile.
2844 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2847 # If not cross compiling, check that we can run a simple program.
2848 if test "$cross_compiling" != yes; then
2849   if { ac_try='./$ac_file'
2850   { (case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855   (eval "$ac_try") 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859     cross_compiling=no
2860   else
2861     if test "$cross_compiling" = maybe; then
2862         cross_compiling=yes
2863     else
2864         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&2;}
2870    { (exit 1); exit 1; }; }
2871     fi
2872   fi
2873 fi
2874 { echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6; }
2876
2877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 # Check that the compiler produces executables we can run.  If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2883 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2884 echo "${ECHO_T}$cross_compiling" >&6; }
2885
2886 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2888 if { (ac_try="$ac_link"
2889 case "(($ac_try" in
2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891   *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894   (eval "$ac_link") 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; then
2898   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2900 # work properly (i.e., refer to `conftest.exe'), while it won't with
2901 # `rm'.
2902 for ac_file in conftest.exe conftest conftest.*; do
2903   test -f "$ac_file" || continue
2904   case $ac_file in
2905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907           break;;
2908     * ) break;;
2909   esac
2910 done
2911 else
2912   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2915 See \`config.log' for more details." >&2;}
2916    { (exit 1); exit 1; }; }
2917 fi
2918
2919 rm -f conftest$ac_cv_exeext
2920 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2921 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2922
2923 rm -f conftest.$ac_ext
2924 EXEEXT=$ac_cv_exeext
2925 ac_exeext=$EXEEXT
2926 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2927 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2928 if test "${ac_cv_objext+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937
2938 int
2939 main ()
2940 {
2941
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.o conftest.obj
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compile") 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; then
2957   for ac_file in conftest.o conftest.obj conftest.*; do
2958   test -f "$ac_file" || continue;
2959   case $ac_file in
2960     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2961     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2962        break;;
2963   esac
2964 done
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2972 See \`config.log' for more details." >&2;}
2973    { (exit 1); exit 1; }; }
2974 fi
2975
2976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977 fi
2978 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979 echo "${ECHO_T}$ac_cv_objext" >&6; }
2980 OBJEXT=$ac_cv_objext
2981 ac_objext=$OBJEXT
2982 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h.  */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h.  */
2993
2994 int
2995 main ()
2996 {
2997 #ifndef __GNUC__
2998        choke me
2999 #endif
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020   { (case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_try") 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; } &&
3029          { ac_try='test -s conftest.$ac_objext'
3030   { (case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_try") 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   ac_compiler_gnu=yes
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044         ac_compiler_gnu=no
3045 fi
3046
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049
3050 fi
3051 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3052 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3053 GCC=`test $ac_compiler_gnu = yes && echo yes`
3054 ac_test_CFLAGS=${CFLAGS+set}
3055 ac_save_CFLAGS=$CFLAGS
3056 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_cc_g+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   ac_save_c_werror_flag=$ac_c_werror_flag
3062    ac_c_werror_flag=yes
3063    ac_cv_prog_cc_g=no
3064    CFLAGS="-g"
3065    cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095   { (case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; } &&
3104          { ac_try='test -s conftest.$ac_objext'
3105   { (case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_try") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   ac_cv_prog_cc_g=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119         CFLAGS=""
3120       cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_compile") 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } &&
3149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169   :
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174         ac_c_werror_flag=$ac_save_c_werror_flag
3175          CFLAGS="-g"
3176          cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198   (eval "$ac_compile") 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } &&
3205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3206   { (case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211   (eval "$ac_try") 2>&5
3212   ac_status=$?
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); }; } &&
3215          { ac_try='test -s conftest.$ac_objext'
3216   { (case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_try") 2>&5
3222   ac_status=$?
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); }; }; then
3225   ac_cv_prog_cc_g=yes
3226 else
3227   echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 fi
3235
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240    ac_c_werror_flag=$ac_save_c_werror_flag
3241 fi
3242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3244 if test "$ac_test_CFLAGS" = set; then
3245   CFLAGS=$ac_save_CFLAGS
3246 elif test $ac_cv_prog_cc_g = yes; then
3247   if test "$GCC" = yes; then
3248     CFLAGS="-g -O2"
3249   else
3250     CFLAGS="-g"
3251   fi
3252 else
3253   if test "$GCC" = yes; then
3254     CFLAGS="-O2"
3255   else
3256     CFLAGS=
3257   fi
3258 fi
3259 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3260 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_c89+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   ac_cv_prog_cc_c89=no
3265 ac_save_CC=$CC
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <stdarg.h>
3273 #include <stdio.h>
3274 #include <sys/types.h>
3275 #include <sys/stat.h>
3276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3277 struct buf { int x; };
3278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279 static char *e (p, i)
3280      char **p;
3281      int i;
3282 {
3283   return p[i];
3284 }
3285 static char *f (char * (*g) (char **, int), char **p, ...)
3286 {
3287   char *s;
3288   va_list v;
3289   va_start (v,p);
3290   s = g (p, va_arg (v,int));
3291   va_end (v);
3292   return s;
3293 }
3294
3295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3296    function prototypes and stuff, but not '\xHH' hex character constants.
3297    These don't provoke an error unfortunately, instead are silently treated
3298    as 'x'.  The following induces an error, until -std is added to get
3299    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3300    array size at least.  It's necessary to write '\x00'==0 to get something
3301    that's true only with -std.  */
3302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303
3304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3305    inside strings and character constants.  */
3306 #define FOO(x) 'x'
3307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 int argc;
3314 char **argv;
3315 int
3316 main ()
3317 {
3318 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3324         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325 do
3326   CC="$ac_save_CC $ac_arg"
3327   rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334   (eval "$ac_compile") 2>conftest.er1
3335   ac_status=$?
3336   grep -v '^ *+' conftest.er1 >conftest.err
3337   rm -f conftest.er1
3338   cat conftest.err >&5
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); } &&
3341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342   { (case "(($ac_try" in
3343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344   *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347   (eval "$ac_try") 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); }; } &&
3351          { ac_try='test -s conftest.$ac_objext'
3352   { (case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357   (eval "$ac_try") 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; }; then
3361   ac_cv_prog_cc_c89=$ac_arg
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366
3367 fi
3368
3369 rm -f core conftest.err conftest.$ac_objext
3370   test "x$ac_cv_prog_cc_c89" != "xno" && break
3371 done
3372 rm -f conftest.$ac_ext
3373 CC=$ac_save_CC
3374
3375 fi
3376 # AC_CACHE_VAL
3377 case "x$ac_cv_prog_cc_c89" in
3378   x)
3379     { echo "$as_me:$LINENO: result: none needed" >&5
3380 echo "${ECHO_T}none needed" >&6; } ;;
3381   xno)
3382     { echo "$as_me:$LINENO: result: unsupported" >&5
3383 echo "${ECHO_T}unsupported" >&6; } ;;
3384   *)
3385     CC="$CC $ac_cv_prog_cc_c89"
3386     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3387 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3388 esac
3389
3390
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
3398 ac_ext=c
3399 ac_cpp='$CPP $CPPFLAGS'
3400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3404 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3405 # On Suns, sometimes $CPP names a directory.
3406 if test -n "$CPP" && test -d "$CPP"; then
3407   CPP=
3408 fi
3409 if test -z "$CPP"; then
3410   if test "${ac_cv_prog_CPP+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413       # Double quotes because CPP needs to be expanded
3414     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3415     do
3416       ac_preproc_ok=false
3417 for ac_c_preproc_warn_flag in '' yes
3418 do
3419   # Use a header file that comes with gcc, so configuring glibc
3420   # with a fresh cross-compiler works.
3421   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3422   # <limits.h> exists even on freestanding compilers.
3423   # On the NeXT, cc -E runs the code through the compiler's parser,
3424   # not just through cpp. "Syntax error" is here to catch this case.
3425   cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431 #ifdef __STDC__
3432 # include <limits.h>
3433 #else
3434 # include <assert.h>
3435 #endif
3436                      Syntax error
3437 _ACEOF
3438 if { (ac_try="$ac_cpp conftest.$ac_ext"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3445   ac_status=$?
3446   grep -v '^ *+' conftest.er1 >conftest.err
3447   rm -f conftest.er1
3448   cat conftest.err >&5
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); } >/dev/null; then
3451   if test -s conftest.err; then
3452     ac_cpp_err=$ac_c_preproc_warn_flag
3453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454   else
3455     ac_cpp_err=
3456   fi
3457 else
3458   ac_cpp_err=yes
3459 fi
3460 if test -z "$ac_cpp_err"; then
3461   :
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466   # Broken: fails on valid input.
3467 continue
3468 fi
3469
3470 rm -f conftest.err conftest.$ac_ext
3471
3472   # OK, works on sane cases.  Now check whether nonexistent headers
3473   # can be detected and how.
3474   cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h.  */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h.  */
3480 #include <ac_nonexistent.h>
3481 _ACEOF
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } >/dev/null; then
3495   if test -s conftest.err; then
3496     ac_cpp_err=$ac_c_preproc_warn_flag
3497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3498   else
3499     ac_cpp_err=
3500   fi
3501 else
3502   ac_cpp_err=yes
3503 fi
3504 if test -z "$ac_cpp_err"; then
3505   # Broken: success on invalid input.
3506 continue
3507 else
3508   echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511   # Passes both tests.
3512 ac_preproc_ok=:
3513 break
3514 fi
3515
3516 rm -f conftest.err conftest.$ac_ext
3517
3518 done
3519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3520 rm -f conftest.err conftest.$ac_ext
3521 if $ac_preproc_ok; then
3522   break
3523 fi
3524
3525     done
3526     ac_cv_prog_CPP=$CPP
3527
3528 fi
3529   CPP=$ac_cv_prog_CPP
3530 else
3531   ac_cv_prog_CPP=$CPP
3532 fi
3533 { echo "$as_me:$LINENO: result: $CPP" >&5
3534 echo "${ECHO_T}$CPP" >&6; }
3535 ac_preproc_ok=false
3536 for ac_c_preproc_warn_flag in '' yes
3537 do
3538   # Use a header file that comes with gcc, so configuring glibc
3539   # with a fresh cross-compiler works.
3540   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3541   # <limits.h> exists even on freestanding compilers.
3542   # On the NeXT, cc -E runs the code through the compiler's parser,
3543   # not just through cpp. "Syntax error" is here to catch this case.
3544   cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h.  */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h.  */
3550 #ifdef __STDC__
3551 # include <limits.h>
3552 #else
3553 # include <assert.h>
3554 #endif
3555                      Syntax error
3556 _ACEOF
3557 if { (ac_try="$ac_cpp conftest.$ac_ext"
3558 case "(($ac_try" in
3559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560   *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564   ac_status=$?
3565   grep -v '^ *+' conftest.er1 >conftest.err
3566   rm -f conftest.er1
3567   cat conftest.err >&5
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } >/dev/null; then
3570   if test -s conftest.err; then
3571     ac_cpp_err=$ac_c_preproc_warn_flag
3572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573   else
3574     ac_cpp_err=
3575   fi
3576 else
3577   ac_cpp_err=yes
3578 fi
3579 if test -z "$ac_cpp_err"; then
3580   :
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585   # Broken: fails on valid input.
3586 continue
3587 fi
3588
3589 rm -f conftest.err conftest.$ac_ext
3590
3591   # OK, works on sane cases.  Now check whether nonexistent headers
3592   # can be detected and how.
3593   cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599 #include <ac_nonexistent.h>
3600 _ACEOF
3601 if { (ac_try="$ac_cpp conftest.$ac_ext"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } >/dev/null; then
3614   if test -s conftest.err; then
3615     ac_cpp_err=$ac_c_preproc_warn_flag
3616     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3617   else
3618     ac_cpp_err=
3619   fi
3620 else
3621   ac_cpp_err=yes
3622 fi
3623 if test -z "$ac_cpp_err"; then
3624   # Broken: success on invalid input.
3625 continue
3626 else
3627   echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630   # Passes both tests.
3631 ac_preproc_ok=:
3632 break
3633 fi
3634
3635 rm -f conftest.err conftest.$ac_ext
3636
3637 done
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then
3641   :
3642 else
3643   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details." >&2;}
3647    { (exit 1); exit 1; }; }
3648 fi
3649
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656
3657 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3658 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   # Extract the first word of "grep ggrep" to use in msg output
3663 if test -z "$GREP"; then
3664 set dummy grep ggrep; ac_prog_name=$2
3665 if test "${ac_cv_path_GREP+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   ac_path_GREP_found=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_prog in grep ggrep; do
3676   for ac_exec_ext in '' $ac_executable_extensions; do
3677     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3678     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3679     # Check for GNU ac_path_GREP and select it if it is found.
3680   # Check for GNU $ac_path_GREP
3681 case `"$ac_path_GREP" --version 2>&1` in
3682 *GNU*)
3683   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3684 *)
3685   ac_count=0
3686   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687   while :
3688   do
3689     cat "conftest.in" "conftest.in" >"conftest.tmp"
3690     mv "conftest.tmp" "conftest.in"
3691     cp "conftest.in" "conftest.nl"
3692     echo 'GREP' >> "conftest.nl"
3693     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695     ac_count=`expr $ac_count + 1`
3696     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3697       # Best one so far, save it but keep looking for a better one
3698       ac_cv_path_GREP="$ac_path_GREP"
3699       ac_path_GREP_max=$ac_count
3700     fi
3701     # 10*(2^10) chars as input seems more than enough
3702     test $ac_count -gt 10 && break
3703   done
3704   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705 esac
3706
3707
3708     $ac_path_GREP_found && break 3
3709   done
3710 done
3711
3712 done
3713 IFS=$as_save_IFS
3714
3715
3716 fi
3717
3718 GREP="$ac_cv_path_GREP"
3719 if test -z "$GREP"; then
3720   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722    { (exit 1); exit 1; }; }
3723 fi
3724
3725 else
3726   ac_cv_path_GREP=$GREP
3727 fi
3728
3729
3730 fi
3731 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3732 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3733  GREP="$ac_cv_path_GREP"
3734
3735
3736 { echo "$as_me:$LINENO: checking for egrep" >&5
3737 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3738 if test "${ac_cv_path_EGREP+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3742    then ac_cv_path_EGREP="$GREP -E"
3743    else
3744      # Extract the first word of "egrep" to use in msg output
3745 if test -z "$EGREP"; then
3746 set dummy egrep; ac_prog_name=$2
3747 if test "${ac_cv_path_EGREP+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   ac_path_EGREP_found=false
3751 # Loop through the user's path and test for each of PROGNAME-LIST
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3754 do
3755   IFS=$as_save_IFS
3756   test -z "$as_dir" && as_dir=.
3757   for ac_prog in egrep; do
3758   for ac_exec_ext in '' $ac_executable_extensions; do
3759     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3760     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3761     # Check for GNU ac_path_EGREP and select it if it is found.
3762   # Check for GNU $ac_path_EGREP
3763 case `"$ac_path_EGREP" --version 2>&1` in
3764 *GNU*)
3765   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3766 *)
3767   ac_count=0
3768   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3769   while :
3770   do
3771     cat "conftest.in" "conftest.in" >"conftest.tmp"
3772     mv "conftest.tmp" "conftest.in"
3773     cp "conftest.in" "conftest.nl"
3774     echo 'EGREP' >> "conftest.nl"
3775     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3776     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3777     ac_count=`expr $ac_count + 1`
3778     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3779       # Best one so far, save it but keep looking for a better one
3780       ac_cv_path_EGREP="$ac_path_EGREP"
3781       ac_path_EGREP_max=$ac_count
3782     fi
3783     # 10*(2^10) chars as input seems more than enough
3784     test $ac_count -gt 10 && break
3785   done
3786   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3787 esac
3788
3789
3790     $ac_path_EGREP_found && break 3
3791   done
3792 done
3793
3794 done
3795 IFS=$as_save_IFS
3796
3797
3798 fi
3799
3800 EGREP="$ac_cv_path_EGREP"
3801 if test -z "$EGREP"; then
3802   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3803 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3804    { (exit 1); exit 1; }; }
3805 fi
3806
3807 else
3808   ac_cv_path_EGREP=$EGREP
3809 fi
3810
3811
3812    fi
3813 fi
3814 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3815 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3816  EGREP="$ac_cv_path_EGREP"
3817
3818
3819 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3820 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3821 if test "${ac_cv_header_stdc+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h.  */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h.  */
3830 #include <stdlib.h>
3831 #include <stdarg.h>
3832 #include <string.h>
3833 #include <float.h>
3834
3835 int
3836 main ()
3837 {
3838
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 rm -f conftest.$ac_objext
3844 if { (ac_try="$ac_compile"
3845 case "(($ac_try" in
3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847   *) ac_try_echo=$ac_try;;
3848 esac
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850   (eval "$ac_compile") 2>conftest.er1
3851   ac_status=$?
3852   grep -v '^ *+' conftest.er1 >conftest.err
3853   rm -f conftest.er1
3854   cat conftest.err >&5
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); } &&
3857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3858   { (case "(($ac_try" in
3859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860   *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863   (eval "$ac_try") 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; } &&
3867          { ac_try='test -s conftest.$ac_objext'
3868   { (case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873   (eval "$ac_try") 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; }; then
3877   ac_cv_header_stdc=yes
3878 else
3879   echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882         ac_cv_header_stdc=no
3883 fi
3884
3885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886
3887 if test $ac_cv_header_stdc = yes; then
3888   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3889   cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h.  */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h.  */
3895 #include <string.h>
3896
3897 _ACEOF
3898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899   $EGREP "memchr" >/dev/null 2>&1; then
3900   :
3901 else
3902   ac_cv_header_stdc=no
3903 fi
3904 rm -f conftest*
3905
3906 fi
3907
3908 if test $ac_cv_header_stdc = yes; then
3909   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3910   cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h.  */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h.  */
3916 #include <stdlib.h>
3917
3918 _ACEOF
3919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920   $EGREP "free" >/dev/null 2>&1; then
3921   :
3922 else
3923   ac_cv_header_stdc=no
3924 fi
3925 rm -f conftest*
3926
3927 fi
3928
3929 if test $ac_cv_header_stdc = yes; then
3930   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3931   if test "$cross_compiling" = yes; then
3932   :
3933 else
3934   cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h.  */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h.  */
3940 #include <ctype.h>
3941 #include <stdlib.h>
3942 #if ((' ' & 0x0FF) == 0x020)
3943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3945 #else
3946 # define ISLOWER(c) \
3947                    (('a' <= (c) && (c) <= 'i') \
3948                      || ('j' <= (c) && (c) <= 'r') \
3949                      || ('s' <= (c) && (c) <= 'z'))
3950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3951 #endif
3952
3953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3954 int
3955 main ()
3956 {
3957   int i;
3958   for (i = 0; i < 256; i++)
3959     if (XOR (islower (i), ISLOWER (i))
3960         || toupper (i) != TOUPPER (i))
3961       return 2;
3962   return 0;
3963 }
3964 _ACEOF
3965 rm -f conftest$ac_exeext
3966 if { (ac_try="$ac_link"
3967 case "(($ac_try" in
3968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969   *) ac_try_echo=$ac_try;;
3970 esac
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972   (eval "$ac_link") 2>&5
3973   ac_status=$?
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3976   { (case "(($ac_try" in
3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978   *) ac_try_echo=$ac_try;;
3979 esac
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981   (eval "$ac_try") 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); }; }; then
3985   :
3986 else
3987   echo "$as_me: program exited with status $ac_status" >&5
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 ( exit $ac_status )
3992 ac_cv_header_stdc=no
3993 fi
3994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3995 fi
3996
3997
3998 fi
3999 fi
4000 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4001 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4002 if test $ac_cv_header_stdc = yes; then
4003
4004 cat >>confdefs.h <<\_ACEOF
4005 #define STDC_HEADERS 1
4006 _ACEOF
4007
4008 fi
4009
4010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4021                   inttypes.h stdint.h unistd.h
4022 do
4023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035 $ac_includes_default
4036
4037 #include <$ac_header>
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4041 case "(($ac_try" in
4042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043   *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046   (eval "$ac_compile") 2>conftest.er1
4047   ac_status=$?
4048   grep -v '^ *+' conftest.er1 >conftest.err
4049   rm -f conftest.er1
4050   cat conftest.err >&5
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); } &&
4053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4054   { (case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059   (eval "$ac_try") 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }; } &&
4063          { ac_try='test -s conftest.$ac_objext'
4064   { (case "(($ac_try" in
4065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066   *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069   (eval "$ac_try") 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); }; }; then
4073   eval "$as_ac_Header=yes"
4074 else
4075   echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4077
4078         eval "$as_ac_Header=no"
4079 fi
4080
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 fi
4083 ac_res=`eval echo '${'$as_ac_Header'}'`
4084                { echo "$as_me:$LINENO: result: $ac_res" >&5
4085 echo "${ECHO_T}$ac_res" >&6; }
4086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4087   cat >>confdefs.h <<_ACEOF
4088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4089 _ACEOF
4090
4091 fi
4092
4093 done
4094
4095
4096 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4097 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4098 if test "${ac_cv_c_bigendian+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   # See if sys/param.h defines the BYTE_ORDER macro.
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h.  */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h.  */
4108 #include <sys/types.h>
4109 #include <sys/param.h>
4110
4111 int
4112 main ()
4113 {
4114 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4115  bogus endian macros
4116 #endif
4117
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122 rm -f conftest.$ac_objext
4123 if { (ac_try="$ac_compile"
4124 case "(($ac_try" in
4125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126   *) ac_try_echo=$ac_try;;
4127 esac
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129   (eval "$ac_compile") 2>conftest.er1
4130   ac_status=$?
4131   grep -v '^ *+' conftest.er1 >conftest.err
4132   rm -f conftest.er1
4133   cat conftest.err >&5
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); } &&
4136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4137   { (case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142   (eval "$ac_try") 2>&5
4143   ac_status=$?
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); }; } &&
4146          { ac_try='test -s conftest.$ac_objext'
4147   { (case "(($ac_try" in
4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149   *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152   (eval "$ac_try") 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; }; then
4156   # It does; now see whether it defined to BIG_ENDIAN or not.
4157 cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h.  */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h.  */
4163 #include <sys/types.h>
4164 #include <sys/param.h>
4165
4166 int
4167 main ()
4168 {
4169 #if BYTE_ORDER != BIG_ENDIAN
4170  not big endian
4171 #endif
4172
4173   ;
4174   return 0;
4175 }
4176 _ACEOF
4177 rm -f conftest.$ac_objext
4178 if { (ac_try="$ac_compile"
4179 case "(($ac_try" in
4180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181   *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184   (eval "$ac_compile") 2>conftest.er1
4185   ac_status=$?
4186   grep -v '^ *+' conftest.er1 >conftest.err
4187   rm -f conftest.er1
4188   cat conftest.err >&5
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); } &&
4191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4192   { (case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197   (eval "$ac_try") 2>&5
4198   ac_status=$?
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); }; } &&
4201          { ac_try='test -s conftest.$ac_objext'
4202   { (case "(($ac_try" in
4203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204   *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207   (eval "$ac_try") 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); }; }; then
4211   ac_cv_c_bigendian=yes
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216         ac_cv_c_bigendian=no
4217 fi
4218
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 else
4221   echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224         # It does not; compile a test program.
4225 if test "$cross_compiling" = yes; then
4226   # try to guess the endianness by grepping values into an object file
4227   ac_cv_c_bigendian=unknown
4228   cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h.  */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h.  */
4234 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4235 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4236 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4237 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4238 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4239 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4240 int
4241 main ()
4242 {
4243  _ascii (); _ebcdic ();
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (ac_try="$ac_compile"
4250 case "(($ac_try" in
4251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252   *) ac_try_echo=$ac_try;;
4253 esac
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255   (eval "$ac_compile") 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4263   { (case "(($ac_try" in
4264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265   *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268   (eval "$ac_try") 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; } &&
4272          { ac_try='test -s conftest.$ac_objext'
4273   { (case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278   (eval "$ac_try") 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; }; then
4282   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4283   ac_cv_c_bigendian=yes
4284 fi
4285 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4286   if test "$ac_cv_c_bigendian" = unknown; then
4287     ac_cv_c_bigendian=no
4288   else
4289     # finding both strings is unlikely to happen, but who knows?
4290     ac_cv_c_bigendian=unknown
4291   fi
4292 fi
4293 else
4294   echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297
4298 fi
4299
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 else
4302   cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h.  */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h.  */
4308 $ac_includes_default
4309 int
4310 main ()
4311 {
4312
4313   /* Are we little or big endian?  From Harbison&Steele.  */
4314   union
4315   {
4316     long int l;
4317     char c[sizeof (long int)];
4318   } u;
4319   u.l = 1;
4320   return u.c[sizeof (long int) - 1] == 1;
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest$ac_exeext
4327 if { (ac_try="$ac_link"
4328 case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333   (eval "$ac_link") 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4337   { (case "(($ac_try" in
4338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339   *) ac_try_echo=$ac_try;;
4340 esac
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342   (eval "$ac_try") 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   ac_cv_c_bigendian=no
4347 else
4348   echo "$as_me: program exited with status $ac_status" >&5
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 ( exit $ac_status )
4353 ac_cv_c_bigendian=yes
4354 fi
4355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4356 fi
4357
4358
4359 fi
4360
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 fi
4363 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4364 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4365 case $ac_cv_c_bigendian in
4366   yes)
4367     ENDIAN=big
4368  ;;
4369   no)
4370     ENDIAN=little
4371  ;;
4372   *)
4373     { { echo "$as_me:$LINENO: error: unknown endianness
4374 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4375 echo "$as_me: error: unknown endianness
4376 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4377    { (exit 1); exit 1; }; } ;;
4378 esac
4379
4380
4381 if test "$cross_compiling" = yes; then
4382   LLVM_CROSS_COMPILING=1
4383
4384
4385 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4386 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4387 if test "${ac_cv_build_exeext+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4391   ac_cv_build_exeext=.exe
4392 else
4393   ac_build_prefix=${build_alias}-
4394
4395   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4396 set dummy ${ac_build_prefix}gcc; ac_word=$2
4397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   if test -n "$BUILD_CC"; then
4403   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410   for ac_exec_ext in '' $ac_executable_extensions; do
4411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4412     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414     break 2
4415   fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 BUILD_CC=$ac_cv_prog_BUILD_CC
4423 if test -n "$BUILD_CC"; then
4424   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4425 echo "${ECHO_T}$BUILD_CC" >&6; }
4426 else
4427   { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4429 fi
4430
4431
4432   if test -z "$BUILD_CC"; then
4433      # Extract the first word of "gcc", so it can be a program name with args.
4434 set dummy gcc; ac_word=$2
4435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4438   echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440   if test -n "$BUILD_CC"; then
4441   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446   IFS=$as_save_IFS
4447   test -z "$as_dir" && as_dir=.
4448   for ac_exec_ext in '' $ac_executable_extensions; do
4449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4450     ac_cv_prog_BUILD_CC="gcc"
4451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452     break 2
4453   fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 fi
4459 fi
4460 BUILD_CC=$ac_cv_prog_BUILD_CC
4461 if test -n "$BUILD_CC"; then
4462   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4463 echo "${ECHO_T}$BUILD_CC" >&6; }
4464 else
4465   { echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6; }
4467 fi
4468
4469
4470      if test -z "$BUILD_CC"; then
4471        # Extract the first word of "cc", so it can be a program name with args.
4472 set dummy cc; ac_word=$2
4473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4476   echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478   if test -n "$BUILD_CC"; then
4479   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4480 else
4481   ac_prog_rejected=no
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485   IFS=$as_save_IFS
4486   test -z "$as_dir" && as_dir=.
4487   for ac_exec_ext in '' $ac_executable_extensions; do
4488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4489     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4490        ac_prog_rejected=yes
4491        continue
4492      fi
4493     ac_cv_prog_BUILD_CC="cc"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 if test $ac_prog_rejected = yes; then
4502   # We found a bogon in the path, so make sure we never use it.
4503   set dummy $ac_cv_prog_BUILD_CC
4504   shift
4505   if test $# != 0; then
4506     # We chose a different compiler from the bogus one.
4507     # However, it has the same basename, so the bogon will be chosen
4508     # first if we set BUILD_CC to just the basename; use the full file name.
4509     shift
4510     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4511   fi
4512 fi
4513 fi
4514 fi
4515 BUILD_CC=$ac_cv_prog_BUILD_CC
4516 if test -n "$BUILD_CC"; then
4517   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4518 echo "${ECHO_T}$BUILD_CC" >&6; }
4519 else
4520   { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4522 fi
4523
4524
4525      fi
4526   fi
4527   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4528 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4529    { (exit 1); exit 1; }; }
4530   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4531   rm -f conftest*
4532   echo 'int main () { return 0; }' > conftest.$ac_ext
4533   ac_cv_build_exeext=
4534   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4535   (eval $ac_build_link) 2>&5
4536   ac_status=$?
4537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538   (exit $ac_status); }; then
4539     for file in conftest.*; do
4540       case $file in
4541       *.c | *.o | *.obj | *.dSYM) ;;
4542       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4543       esac
4544     done
4545   else
4546     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4547 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4548    { (exit 1); exit 1; }; }
4549   fi
4550   rm -f conftest*
4551   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4552 fi
4553 fi
4554
4555 BUILD_EXEEXT=""
4556 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4557 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4558 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4559 ac_build_exeext=$BUILD_EXEEXT
4560
4561   ac_build_prefix=${build_alias}-
4562   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4563 set dummy ${ac_build_prefix}g++; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   if test -n "$BUILD_CXX"; then
4570   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575   IFS=$as_save_IFS
4576   test -z "$as_dir" && as_dir=.
4577   for ac_exec_ext in '' $ac_executable_extensions; do
4578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4579     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581     break 2
4582   fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4590 if test -n "$BUILD_CXX"; then
4591   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4592 echo "${ECHO_T}$BUILD_CXX" >&6; }
4593 else
4594   { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4596 fi
4597
4598
4599   if test -z "$BUILD_CXX"; then
4600      # Extract the first word of "g++", so it can be a program name with args.
4601 set dummy g++; ac_word=$2
4602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   if test -n "$BUILD_CXX"; then
4608   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613   IFS=$as_save_IFS
4614   test -z "$as_dir" && as_dir=.
4615   for ac_exec_ext in '' $ac_executable_extensions; do
4616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4617     ac_cv_prog_BUILD_CXX="g++"
4618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619     break 2
4620   fi
4621 done
4622 done
4623 IFS=$as_save_IFS
4624
4625 fi
4626 fi
4627 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4628 if test -n "$BUILD_CXX"; then
4629   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4630 echo "${ECHO_T}$BUILD_CXX" >&6; }
4631 else
4632   { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4634 fi
4635
4636
4637      if test -z "$BUILD_CXX"; then
4638        # Extract the first word of "c++", so it can be a program name with args.
4639 set dummy c++; ac_word=$2
4640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4642 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   if test -n "$BUILD_CXX"; then
4646   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4647 else
4648   ac_prog_rejected=no
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654   for ac_exec_ext in '' $ac_executable_extensions; do
4655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4656     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4657        ac_prog_rejected=yes
4658        continue
4659      fi
4660     ac_cv_prog_BUILD_CXX="c++"
4661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 if test $ac_prog_rejected = yes; then
4669   # We found a bogon in the path, so make sure we never use it.
4670   set dummy $ac_cv_prog_BUILD_CXX
4671   shift
4672   if test $# != 0; then
4673     # We chose a different compiler from the bogus one.
4674     # However, it has the same basename, so the bogon will be chosen
4675     # first if we set BUILD_CXX to just the basename; use the full file name.
4676     shift
4677     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4678   fi
4679 fi
4680 fi
4681 fi
4682 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4683 if test -n "$BUILD_CXX"; then
4684   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4685 echo "${ECHO_T}$BUILD_CXX" >&6; }
4686 else
4687   { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4689 fi
4690
4691
4692      fi
4693   fi
4694 else
4695   LLVM_CROSS_COMPILING=0
4696
4697 fi
4698
4699 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4700   cvsbuild="yes"
4701   optimize="no"
4702   CVSBUILD=CVSBUILD=1
4703
4704 else
4705   cvsbuild="no"
4706   optimize="yes"
4707 fi
4708
4709
4710 # Check whether --enable-optimized was given.
4711 if test "${enable_optimized+set}" = set; then
4712   enableval=$enable_optimized;
4713 else
4714   enableval=$optimize
4715 fi
4716
4717 if test ${enableval} = "no" ; then
4718   ENABLE_OPTIMIZED=
4719
4720 else
4721   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4722
4723 fi
4724
4725 # Check whether --enable-assertions was given.
4726 if test "${enable_assertions+set}" = set; then
4727   enableval=$enable_assertions;
4728 else
4729   enableval="yes"
4730 fi
4731
4732 if test ${enableval} = "yes" ; then
4733   DISABLE_ASSERTIONS=
4734
4735 else
4736   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4737
4738 fi
4739
4740 # Check whether --enable-expensive-checks was given.
4741 if test "${enable_expensive_checks+set}" = set; then
4742   enableval=$enable_expensive_checks;
4743 else
4744   enableval="no"
4745 fi
4746
4747 if test ${enableval} = "yes" ; then
4748   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4749
4750   EXPENSIVE_CHECKS=yes
4751
4752 else
4753   ENABLE_EXPENSIVE_CHECKS=
4754
4755   EXPENSIVE_CHECKS=no
4756
4757 fi
4758
4759 # Check whether --enable-debug-runtime was given.
4760 if test "${enable_debug_runtime+set}" = set; then
4761   enableval=$enable_debug_runtime;
4762 else
4763   enableval=no
4764 fi
4765
4766 if test ${enableval} = "no" ; then
4767   DEBUG_RUNTIME=
4768
4769 else
4770   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4771
4772 fi
4773
4774 # Check whether --enable-jit was given.
4775 if test "${enable_jit+set}" = set; then
4776   enableval=$enable_jit;
4777 else
4778   enableval=default
4779 fi
4780
4781 if test ${enableval} = "no"
4782 then
4783   JIT=
4784
4785 else
4786   case "$llvm_cv_target_arch" in
4787     x86)     TARGET_HAS_JIT=1
4788  ;;
4789     Sparc)   TARGET_HAS_JIT=0
4790  ;;
4791     PowerPC) TARGET_HAS_JIT=1
4792  ;;
4793     x86_64)  TARGET_HAS_JIT=1
4794  ;;
4795     Alpha)   TARGET_HAS_JIT=1
4796  ;;
4797     IA64)    TARGET_HAS_JIT=0
4798  ;;
4799     ARM)     TARGET_HAS_JIT=0
4800  ;;
4801     Mips)    TARGET_HAS_JIT=0
4802  ;;
4803     PIC16)   TARGET_HAS_JIT=0
4804  ;;
4805     XCore)   TARGET_HAS_JIT=0
4806  ;;
4807     *)       TARGET_HAS_JIT=0
4808  ;;
4809   esac
4810 fi
4811
4812 # Check whether --enable-doxygen was given.
4813 if test "${enable_doxygen+set}" = set; then
4814   enableval=$enable_doxygen;
4815 else
4816   enableval=default
4817 fi
4818
4819 case "$enableval" in
4820   yes) ENABLE_DOXYGEN=1
4821  ;;
4822   no)  ENABLE_DOXYGEN=0
4823  ;;
4824   default) ENABLE_DOXYGEN=0
4825  ;;
4826   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4827 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4828    { (exit 1); exit 1; }; } ;;
4829 esac
4830
4831 # Check whether --enable-threads was given.
4832 if test "${enable_threads+set}" = set; then
4833   enableval=$enable_threads;
4834 else
4835   enableval=default
4836 fi
4837
4838 case "$enableval" in
4839   yes) ENABLE_THREADS=1
4840  ;;
4841   no)  ENABLE_THREADS=0
4842  ;;
4843   default) ENABLE_THREADS=1
4844  ;;
4845   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4846 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4847    { (exit 1); exit 1; }; } ;;
4848 esac
4849
4850 cat >>confdefs.h <<_ACEOF
4851 #define ENABLE_THREADS $ENABLE_THREADS
4852 _ACEOF
4853
4854
4855 # Check whether --enable-pic was given.
4856 if test "${enable_pic+set}" = set; then
4857   enableval=$enable_pic;
4858 else
4859   enableval=default
4860 fi
4861
4862 case "$enableval" in
4863   yes) ENABLE_PIC=1
4864  ;;
4865   no)  ENABLE_PIC=0
4866  ;;
4867   default) ENABLE_PIC=1
4868  ;;
4869   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4870 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4871    { (exit 1); exit 1; }; } ;;
4872 esac
4873
4874 cat >>confdefs.h <<_ACEOF
4875 #define ENABLE_PIC $ENABLE_PIC
4876 _ACEOF
4877
4878
4879 TARGETS_TO_BUILD=""
4880 # Check whether --enable-targets was given.
4881 if test "${enable_targets+set}" = set; then
4882   enableval=$enable_targets;
4883 else
4884   enableval=all
4885 fi
4886
4887 case "$enableval" in
4888   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4889   host-only)
4890     case "$llvm_cv_target_arch" in
4891       x86)     TARGETS_TO_BUILD="X86" ;;
4892       x86_64)  TARGETS_TO_BUILD="X86" ;;
4893       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4894       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4895       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4896       IA64)    TARGETS_TO_BUILD="IA64" ;;
4897       ARM)     TARGETS_TO_BUILD="ARM" ;;
4898       Mips)    TARGETS_TO_BUILD="Mips" ;;
4899       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4900       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4901       XCore)   TARGETS_TO_BUILD="XCore" ;;
4902       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4903 echo "$as_me: error: Can not set target to build" >&2;}
4904    { (exit 1); exit 1; }; } ;;
4905     esac
4906     ;;
4907   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4908       case "$a_target" in
4909         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4910         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4911         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4912         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4913         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4914         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4915         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4916         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4917         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4918         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4919         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4920         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4921         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4922         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4923         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4924 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4925    { (exit 1); exit 1; }; } ;;
4926       esac
4927   done
4928   ;;
4929 esac
4930 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4931
4932
4933 # Check whether --enable-cbe-printf-a was given.
4934 if test "${enable_cbe_printf_a+set}" = set; then
4935   enableval=$enable_cbe_printf_a;
4936 else
4937   enableval=default
4938 fi
4939
4940 case "$enableval" in
4941   yes) ENABLE_CBE_PRINTF_A=1
4942  ;;
4943   no)  ENABLE_CBE_PRINTF_A=0
4944  ;;
4945   default)  ENABLE_CBE_PRINTF_A=1
4946  ;;
4947   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4948 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4949    { (exit 1); exit 1; }; } ;;
4950 esac
4951
4952 cat >>confdefs.h <<_ACEOF
4953 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4954 _ACEOF
4955
4956
4957
4958 # Check whether --with-llvmgccdir was given.
4959 if test "${with_llvmgccdir+set}" = set; then
4960   withval=$with_llvmgccdir;
4961 else
4962   withval=default
4963 fi
4964
4965 case "$withval" in
4966   default) WITH_LLVMGCCDIR=default ;;
4967   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4968   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4969 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4970    { (exit 1); exit 1; }; } ;;
4971 esac
4972
4973
4974 # Check whether --with-llvmgcc was given.
4975 if test "${with_llvmgcc+set}" = set; then
4976   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4977       WITH_LLVMGCCDIR=""
4978 fi
4979
4980
4981
4982 # Check whether --with-llvmgxx was given.
4983 if test "${with_llvmgxx+set}" = set; then
4984   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4985     WITH_LLVMGCCDIR=""
4986 fi
4987
4988
4989 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4990    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4991 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4992    { (exit 1); exit 1; }; };
4993 fi
4994
4995 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4996    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4997 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4998    { (exit 1); exit 1; }; };
4999 fi
5000
5001
5002 # Check whether --with-extra-options was given.
5003 if test "${with_extra_options+set}" = set; then
5004   withval=$with_extra_options;
5005 else
5006   withval=default
5007 fi
5008
5009 case "$withval" in
5010   default) EXTRA_OPTIONS= ;;
5011   *) EXTRA_OPTIONS=$withval ;;
5012 esac
5013 EXTRA_OPTIONS=$EXTRA_OPTIONS
5014
5015
5016 # Check whether --enable-bindings was given.
5017 if test "${enable_bindings+set}" = set; then
5018   enableval=$enable_bindings;
5019 else
5020   enableval=default
5021 fi
5022
5023 BINDINGS_TO_BUILD=""
5024 case "$enableval" in
5025   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5026   all ) BINDINGS_TO_BUILD="ocaml" ;;
5027   none | no) BINDINGS_TO_BUILD="" ;;
5028   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5029       case "$a_binding" in
5030         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5031         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5032 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5033    { (exit 1); exit 1; }; } ;;
5034       esac
5035   done
5036   ;;
5037 esac
5038
5039
5040 # Check whether --with-ocaml-libdir was given.
5041 if test "${with_ocaml_libdir+set}" = set; then
5042   withval=$with_ocaml_libdir;
5043 else
5044   withval=auto
5045 fi
5046
5047 case "$withval" in
5048   auto) with_ocaml_libdir="$withval" ;;
5049   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5050   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5051 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5052    { (exit 1); exit 1; }; } ;;
5053 esac
5054
5055
5056 # Check whether --with-binutils-include was given.
5057 if test "${with_binutils_include+set}" = set; then
5058   withval=$with_binutils_include;
5059 else
5060   withval=default
5061 fi
5062
5063 case "$withval" in
5064   default) WITH_BINUTILS_INCDIR=default ;;
5065   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5066   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5067 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5068    { (exit 1); exit 1; }; } ;;
5069 esac
5070 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5071   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5072
5073   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5074      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5075      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5076 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5077    { (exit 1); exit 1; }; };
5078   fi
5079 fi
5080
5081
5082 ac_ext=c
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5088 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5089 # On Suns, sometimes $CPP names a directory.
5090 if test -n "$CPP" && test -d "$CPP"; then
5091   CPP=
5092 fi
5093 if test -z "$CPP"; then
5094   if test "${ac_cv_prog_CPP+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097       # Double quotes because CPP needs to be expanded
5098     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5099     do
5100       ac_preproc_ok=false
5101 for ac_c_preproc_warn_flag in '' yes
5102 do
5103   # Use a header file that comes with gcc, so configuring glibc
5104   # with a fresh cross-compiler works.
5105   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106   # <limits.h> exists even on freestanding compilers.
5107   # On the NeXT, cc -E runs the code through the compiler's parser,
5108   # not just through cpp. "Syntax error" is here to catch this case.
5109   cat >conftest.$ac_ext <<_ACEOF
5110 /* confdefs.h.  */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h.  */
5115 #ifdef __STDC__
5116 # include <limits.h>
5117 #else
5118 # include <assert.h>
5119 #endif
5120                      Syntax error
5121 _ACEOF
5122 if { (ac_try="$ac_cpp conftest.$ac_ext"
5123 case "(($ac_try" in
5124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125   *) ac_try_echo=$ac_try;;
5126 esac
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } >/dev/null; then
5135   if test -s conftest.err; then
5136     ac_cpp_err=$ac_c_preproc_warn_flag
5137     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5138   else
5139     ac_cpp_err=
5140   fi
5141 else
5142   ac_cpp_err=yes
5143 fi
5144 if test -z "$ac_cpp_err"; then
5145   :
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150   # Broken: fails on valid input.
5151 continue
5152 fi
5153
5154 rm -f conftest.err conftest.$ac_ext
5155
5156   # OK, works on sane cases.  Now check whether nonexistent headers
5157   # can be detected and how.
5158   cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h.  */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h.  */
5164 #include <ac_nonexistent.h>
5165 _ACEOF
5166 if { (ac_try="$ac_cpp conftest.$ac_ext"
5167 case "(($ac_try" in
5168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169   *) ac_try_echo=$ac_try;;
5170 esac
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5173   ac_status=$?
5174   grep -v '^ *+' conftest.er1 >conftest.err
5175   rm -f conftest.er1
5176   cat conftest.err >&5
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); } >/dev/null; then
5179   if test -s conftest.err; then
5180     ac_cpp_err=$ac_c_preproc_warn_flag
5181     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5182   else
5183     ac_cpp_err=
5184   fi
5185 else
5186   ac_cpp_err=yes
5187 fi
5188 if test -z "$ac_cpp_err"; then
5189   # Broken: success on invalid input.
5190 continue
5191 else
5192   echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
5195   # Passes both tests.
5196 ac_preproc_ok=:
5197 break
5198 fi
5199
5200 rm -f conftest.err conftest.$ac_ext
5201
5202 done
5203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204 rm -f conftest.err conftest.$ac_ext
5205 if $ac_preproc_ok; then
5206   break
5207 fi
5208
5209     done
5210     ac_cv_prog_CPP=$CPP
5211
5212 fi
5213   CPP=$ac_cv_prog_CPP
5214 else
5215   ac_cv_prog_CPP=$CPP
5216 fi
5217 { echo "$as_me:$LINENO: result: $CPP" >&5
5218 echo "${ECHO_T}$CPP" >&6; }
5219 ac_preproc_ok=false
5220 for ac_c_preproc_warn_flag in '' yes
5221 do
5222   # Use a header file that comes with gcc, so configuring glibc
5223   # with a fresh cross-compiler works.
5224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225   # <limits.h> exists even on freestanding compilers.
5226   # On the NeXT, cc -E runs the code through the compiler's parser,
5227   # not just through cpp. "Syntax error" is here to catch this case.
5228   cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h.  */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h.  */
5234 #ifdef __STDC__
5235 # include <limits.h>
5236 #else
5237 # include <assert.h>
5238 #endif
5239                      Syntax error
5240 _ACEOF
5241 if { (ac_try="$ac_cpp conftest.$ac_ext"
5242 case "(($ac_try" in
5243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244   *) ac_try_echo=$ac_try;;
5245 esac
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5248   ac_status=$?
5249   grep -v '^ *+' conftest.er1 >conftest.err
5250   rm -f conftest.er1
5251   cat conftest.err >&5
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } >/dev/null; then
5254   if test -s conftest.err; then
5255     ac_cpp_err=$ac_c_preproc_warn_flag
5256     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5257   else
5258     ac_cpp_err=
5259   fi
5260 else
5261   ac_cpp_err=yes
5262 fi
5263 if test -z "$ac_cpp_err"; then
5264   :
5265 else
5266   echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269   # Broken: fails on valid input.
5270 continue
5271 fi
5272
5273 rm -f conftest.err conftest.$ac_ext
5274
5275   # OK, works on sane cases.  Now check whether nonexistent headers
5276   # can be detected and how.
5277   cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h.  */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h.  */
5283 #include <ac_nonexistent.h>
5284 _ACEOF
5285 if { (ac_try="$ac_cpp conftest.$ac_ext"
5286 case "(($ac_try" in
5287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288   *) ac_try_echo=$ac_try;;
5289 esac
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5292   ac_status=$?
5293   grep -v '^ *+' conftest.er1 >conftest.err
5294   rm -f conftest.er1
5295   cat conftest.err >&5
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); } >/dev/null; then
5298   if test -s conftest.err; then
5299     ac_cpp_err=$ac_c_preproc_warn_flag
5300     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5301   else
5302     ac_cpp_err=
5303   fi
5304 else
5305   ac_cpp_err=yes
5306 fi
5307 if test -z "$ac_cpp_err"; then
5308   # Broken: success on invalid input.
5309 continue
5310 else
5311   echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5313
5314   # Passes both tests.
5315 ac_preproc_ok=:
5316 break
5317 fi
5318
5319 rm -f conftest.err conftest.$ac_ext
5320
5321 done
5322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5323 rm -f conftest.err conftest.$ac_ext
5324 if $ac_preproc_ok; then
5325   :
5326 else
5327   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5328 See \`config.log' for more details." >&5
5329 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5330 See \`config.log' for more details." >&2;}
5331    { (exit 1); exit 1; }; }
5332 fi
5333
5334 ac_ext=c
5335 ac_cpp='$CPP $CPPFLAGS'
5336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5339
5340 ac_ext=c
5341 ac_cpp='$CPP $CPPFLAGS'
5342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345 if test -n "$ac_tool_prefix"; then
5346   for ac_prog in gcc
5347   do
5348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5352 if test "${ac_cv_prog_CC+set}" = set; then
5353   echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5355   if test -n "$CC"; then
5356   ac_cv_prog_CC="$CC" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361   IFS=$as_save_IFS
5362   test -z "$as_dir" && as_dir=.
5363   for ac_exec_ext in '' $ac_executable_extensions; do
5364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5365     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370 done
5371 IFS=$as_save_IFS
5372
5373 fi
5374 fi
5375 CC=$ac_cv_prog_CC
5376 if test -n "$CC"; then
5377   { echo "$as_me:$LINENO: result: $CC" >&5
5378 echo "${ECHO_T}$CC" >&6; }
5379 else
5380   { echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6; }
5382 fi
5383
5384
5385     test -n "$CC" && break
5386   done
5387 fi
5388 if test -z "$CC"; then
5389   ac_ct_CC=$CC
5390   for ac_prog in gcc
5391 do
5392   # Extract the first word of "$ac_prog", so it can be a program name with args.
5393 set dummy $ac_prog; ac_word=$2
5394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   if test -n "$ac_ct_CC"; then
5400   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407   for ac_exec_ext in '' $ac_executable_extensions; do
5408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5409     ac_cv_prog_ac_ct_CC="$ac_prog"
5410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414 done
5415 IFS=$as_save_IFS
5416
5417 fi
5418 fi
5419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5420 if test -n "$ac_ct_CC"; then
5421   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5422 echo "${ECHO_T}$ac_ct_CC" >&6; }
5423 else
5424   { echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6; }
5426 fi
5427
5428
5429   test -n "$ac_ct_CC" && break
5430 done
5431
5432   if test "x$ac_ct_CC" = x; then
5433     CC=""
5434   else
5435     case $cross_compiling:$ac_tool_warned in
5436 yes:)
5437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5438 whose name does not start with the host triplet.  If you think this
5439 configuration is useful to you, please write to autoconf@gnu.org." >&5
5440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5441 whose name does not start with the host triplet.  If you think this
5442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5443 ac_tool_warned=yes ;;
5444 esac
5445     CC=$ac_ct_CC
5446   fi
5447 fi
5448
5449
5450 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5451 See \`config.log' for more details." >&5
5452 echo "$as_me: error: no acceptable C compiler found in \$PATH
5453 See \`config.log' for more details." >&2;}
5454    { (exit 1); exit 1; }; }
5455
5456 # Provide some information about the compiler.
5457 echo "$as_me:$LINENO: checking for C compiler version" >&5
5458 ac_compiler=`set X $ac_compile; echo $2`
5459 { (ac_try="$ac_compiler --version >&5"
5460 case "(($ac_try" in
5461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462   *) ac_try_echo=$ac_try;;
5463 esac
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465   (eval "$ac_compiler --version >&5") 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); }
5469 { (ac_try="$ac_compiler -v >&5"
5470 case "(($ac_try" in
5471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472   *) ac_try_echo=$ac_try;;
5473 esac
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475   (eval "$ac_compiler -v >&5") 2>&5
5476   ac_status=$?
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); }
5479 { (ac_try="$ac_compiler -V >&5"
5480 case "(($ac_try" in
5481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482   *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485   (eval "$ac_compiler -V >&5") 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); }
5489
5490 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5491 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5492 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5493   echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495   cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h.  */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h.  */
5501
5502 int
5503 main ()
5504 {
5505 #ifndef __GNUC__
5506        choke me
5507 #endif
5508
5509   ;
5510   return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (ac_try="$ac_compile"
5515 case "(($ac_try" in
5516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517   *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520   (eval "$ac_compile") 2>conftest.er1
5521   ac_status=$?
5522   grep -v '^ *+' conftest.er1 >conftest.err
5523   rm -f conftest.er1
5524   cat conftest.err >&5
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); } &&
5527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5528   { (case "(($ac_try" in
5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530   *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533   (eval "$ac_try") 2>&5
5534   ac_status=$?
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); }; } &&
5537          { ac_try='test -s conftest.$ac_objext'
5538   { (case "(($ac_try" in
5539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540   *) ac_try_echo=$ac_try;;
5541 esac
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543   (eval "$ac_try") 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); }; }; then
5547   ac_compiler_gnu=yes
5548 else
5549   echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5551
5552         ac_compiler_gnu=no
5553 fi
5554
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5557
5558 fi
5559 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5560 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5561 GCC=`test $ac_compiler_gnu = yes && echo yes`
5562 ac_test_CFLAGS=${CFLAGS+set}
5563 ac_save_CFLAGS=$CFLAGS
5564 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5565 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5566 if test "${ac_cv_prog_cc_g+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   ac_save_c_werror_flag=$ac_c_werror_flag
5570    ac_c_werror_flag=yes
5571    ac_cv_prog_cc_g=no
5572    CFLAGS="-g"
5573    cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579
5580 int
5581 main ()
5582 {
5583
5584   ;
5585   return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (ac_try="$ac_compile"
5590 case "(($ac_try" in
5591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592   *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595   (eval "$ac_compile") 2>conftest.er1
5596   ac_status=$?
5597   grep -v '^ *+' conftest.er1 >conftest.err
5598   rm -f conftest.er1
5599   cat conftest.err >&5
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); } &&
5602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5603   { (case "(($ac_try" in
5604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605   *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608   (eval "$ac_try") 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; } &&
5612          { ac_try='test -s conftest.$ac_objext'
5613   { (case "(($ac_try" in
5614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615   *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618   (eval "$ac_try") 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }; }; then
5622   ac_cv_prog_cc_g=yes
5623 else
5624   echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627         CFLAGS=""
5628       cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h.  */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h.  */
5634
5635 int
5636 main ()
5637 {
5638
5639   ;
5640   return 0;
5641 }
5642 _ACEOF
5643 rm -f conftest.$ac_objext
5644 if { (ac_try="$ac_compile"
5645 case "(($ac_try" in
5646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647   *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650   (eval "$ac_compile") 2>conftest.er1
5651   ac_status=$?
5652   grep -v '^ *+' conftest.er1 >conftest.err
5653   rm -f conftest.er1
5654   cat conftest.err >&5
5655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656   (exit $ac_status); } &&
5657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5658   { (case "(($ac_try" in
5659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660   *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663   (eval "$ac_try") 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); }; } &&
5667          { ac_try='test -s conftest.$ac_objext'
5668   { (case "(($ac_try" in
5669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670   *) ac_try_echo=$ac_try;;
5671 esac
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673   (eval "$ac_try") 2>&5
5674   ac_status=$?
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); }; }; then
5677   :
5678 else
5679   echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682         ac_c_werror_flag=$ac_save_c_werror_flag
5683          CFLAGS="-g"
5684          cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690
5691 int
5692 main ()
5693 {
5694
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5707   ac_status=$?
5708   grep -v '^ *+' conftest.er1 >conftest.err
5709   rm -f conftest.er1
5710   cat conftest.err >&5
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); } &&
5713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5714   { (case "(($ac_try" in
5715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716   *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719   (eval "$ac_try") 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; } &&
5723          { ac_try='test -s conftest.$ac_objext'
5724   { (case "(($ac_try" in
5725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726   *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729   (eval "$ac_try") 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   ac_cv_prog_cc_g=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738
5739 fi
5740
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 fi
5743
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 fi
5746
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748    ac_c_werror_flag=$ac_save_c_werror_flag
5749 fi
5750 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5751 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5752 if test "$ac_test_CFLAGS" = set; then
5753   CFLAGS=$ac_save_CFLAGS
5754 elif test $ac_cv_prog_cc_g = yes; then
5755   if test "$GCC" = yes; then
5756     CFLAGS="-g -O2"
5757   else
5758     CFLAGS="-g"
5759   fi
5760 else
5761   if test "$GCC" = yes; then
5762     CFLAGS="-O2"
5763   else
5764     CFLAGS=
5765   fi
5766 fi
5767 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5768 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5769 if test "${ac_cv_prog_cc_c89+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   ac_cv_prog_cc_c89=no
5773 ac_save_CC=$CC
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h.  */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h.  */
5780 #include <stdarg.h>
5781 #include <stdio.h>
5782 #include <sys/types.h>
5783 #include <sys/stat.h>
5784 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5785 struct buf { int x; };
5786 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5787 static char *e (p, i)
5788      char **p;
5789      int i;
5790 {
5791   return p[i];
5792 }
5793 static char *f (char * (*g) (char **, int), char **p, ...)
5794 {
5795   char *s;
5796   va_list v;
5797   va_start (v,p);
5798   s = g (p, va_arg (v,int));
5799   va_end (v);
5800   return s;
5801 }
5802
5803 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5804    function prototypes and stuff, but not '\xHH' hex character constants.
5805    These don't provoke an error unfortunately, instead are silently treated
5806    as 'x'.  The following induces an error, until -std is added to get
5807    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5808    array size at least.  It's necessary to write '\x00'==0 to get something
5809    that's true only with -std.  */
5810 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5811
5812 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5813    inside strings and character constants.  */
5814 #define FOO(x) 'x'
5815 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5816
5817 int test (int i, double x);
5818 struct s1 {int (*f) (int a);};
5819 struct s2 {int (*f) (double a);};
5820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5821 int argc;
5822 char **argv;
5823 int
5824 main ()
5825 {
5826 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5827   ;
5828   return 0;
5829 }
5830 _ACEOF
5831 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5832         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5833 do
5834   CC="$ac_save_CC $ac_arg"
5835   rm -f conftest.$ac_objext
5836 if { (ac_try="$ac_compile"
5837 case "(($ac_try" in
5838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839   *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842   (eval "$ac_compile") 2>conftest.er1
5843   ac_status=$?
5844   grep -v '^ *+' conftest.er1 >conftest.err
5845   rm -f conftest.er1
5846   cat conftest.err >&5
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); } &&
5849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850   { (case "(($ac_try" in
5851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852   *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855   (eval "$ac_try") 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; } &&
5859          { ac_try='test -s conftest.$ac_objext'
5860   { (case "(($ac_try" in
5861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862   *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865   (eval "$ac_try") 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; }; then
5869   ac_cv_prog_cc_c89=$ac_arg
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874
5875 fi
5876
5877 rm -f core conftest.err conftest.$ac_objext
5878   test "x$ac_cv_prog_cc_c89" != "xno" && break
5879 done
5880 rm -f conftest.$ac_ext
5881 CC=$ac_save_CC
5882
5883 fi
5884 # AC_CACHE_VAL
5885 case "x$ac_cv_prog_cc_c89" in
5886   x)
5887     { echo "$as_me:$LINENO: result: none needed" >&5
5888 echo "${ECHO_T}none needed" >&6; } ;;
5889   xno)
5890     { echo "$as_me:$LINENO: result: unsupported" >&5
5891 echo "${ECHO_T}unsupported" >&6; } ;;
5892   *)
5893     CC="$CC $ac_cv_prog_cc_c89"
5894     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5895 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5896 esac
5897
5898
5899 ac_ext=c
5900 ac_cpp='$CPP $CPPFLAGS'
5901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5904
5905 ac_ext=cpp
5906 ac_cpp='$CXXCPP $CPPFLAGS'
5907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5910 if test -z "$CXX"; then
5911   if test -n "$CCC"; then
5912     CXX=$CCC
5913   else
5914     if test -n "$ac_tool_prefix"; then
5915   for ac_prog in g++
5916   do
5917     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921 if test "${ac_cv_prog_CXX+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   if test -n "$CXX"; then
5925   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   for ac_exec_ext in '' $ac_executable_extensions; do
5933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 CXX=$ac_cv_prog_CXX
5945 if test -n "$CXX"; then
5946   { echo "$as_me:$LINENO: result: $CXX" >&5
5947 echo "${ECHO_T}$CXX" >&6; }
5948 else
5949   { echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6; }
5951 fi
5952
5953
5954     test -n "$CXX" && break
5955   done
5956 fi
5957 if test -z "$CXX"; then
5958   ac_ct_CXX=$CXX
5959   for ac_prog in g++
5960 do
5961   # Extract the first word of "$ac_prog", so it can be a program name with args.
5962 set dummy $ac_prog; ac_word=$2
5963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5966   echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968   if test -n "$ac_ct_CXX"; then
5969   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5970 else
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974   IFS=$as_save_IFS
5975   test -z "$as_dir" && as_dir=.
5976   for ac_exec_ext in '' $ac_executable_extensions; do
5977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5978     ac_cv_prog_ac_ct_CXX="$ac_prog"
5979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980     break 2
5981   fi
5982 done
5983 done
5984 IFS=$as_save_IFS
5985
5986 fi
5987 fi
5988 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5989 if test -n "$ac_ct_CXX"; then
5990   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5991 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5992 else
5993   { echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6; }
5995 fi
5996
5997
5998   test -n "$ac_ct_CXX" && break
5999 done
6000
6001   if test "x$ac_ct_CXX" = x; then
6002     CXX="g++"
6003   else
6004     case $cross_compiling:$ac_tool_warned in
6005 yes:)
6006 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6007 whose name does not start with the host triplet.  If you think this
6008 configuration is useful to you, please write to autoconf@gnu.org." >&5
6009 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6010 whose name does not start with the host triplet.  If you think this
6011 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6012 ac_tool_warned=yes ;;
6013 esac
6014     CXX=$ac_ct_CXX
6015   fi
6016 fi
6017
6018   fi
6019 fi
6020 # Provide some information about the compiler.
6021 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6022 ac_compiler=`set X $ac_compile; echo $2`
6023 { (ac_try="$ac_compiler --version >&5"
6024 case "(($ac_try" in
6025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026   *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029   (eval "$ac_compiler --version >&5") 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }
6033 { (ac_try="$ac_compiler -v >&5"
6034 case "(($ac_try" in
6035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036   *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039   (eval "$ac_compiler -v >&5") 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }
6043 { (ac_try="$ac_compiler -V >&5"
6044 case "(($ac_try" in
6045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046   *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049   (eval "$ac_compiler -V >&5") 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); }
6053
6054 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6055 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6056 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065
6066 int
6067 main ()
6068 {
6069 #ifndef __GNUC__
6070        choke me
6071 #endif
6072
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6079 case "(($ac_try" in
6080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081   *) ac_try_echo=$ac_try;;
6082 esac
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084   (eval "$ac_compile") 2>conftest.er1
6085   ac_status=$?
6086   grep -v '^ *+' conftest.er1 >conftest.err
6087   rm -f conftest.er1
6088   cat conftest.err >&5
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } &&
6091          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6092   { (case "(($ac_try" in
6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094   *) ac_try_echo=$ac_try;;
6095 esac
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097   (eval "$ac_try") 2>&5
6098   ac_status=$?
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); }; } &&
6101          { ac_try='test -s conftest.$ac_objext'
6102   { (case "(($ac_try" in
6103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104   *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107   (eval "$ac_try") 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; }; then
6111   ac_compiler_gnu=yes
6112 else
6113   echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116         ac_compiler_gnu=no
6117 fi
6118
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6121
6122 fi
6123 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6124 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6125 GXX=`test $ac_compiler_gnu = yes && echo yes`
6126 ac_test_CXXFLAGS=${CXXFLAGS+set}
6127 ac_save_CXXFLAGS=$CXXFLAGS
6128 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6129 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6130 if test "${ac_cv_prog_cxx_g+set}" = set; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6134    ac_cxx_werror_flag=yes
6135    ac_cv_prog_cxx_g=no
6136    CXXFLAGS="-g"
6137    cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143
6144 int
6145 main ()
6146 {
6147
6148   ;
6149   return 0;
6150 }
6151 _ACEOF
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6154 case "(($ac_try" in
6155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156   *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159   (eval "$ac_compile") 2>conftest.er1
6160   ac_status=$?
6161   grep -v '^ *+' conftest.er1 >conftest.err
6162   rm -f conftest.er1
6163   cat conftest.err >&5
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } &&
6166          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6167   { (case "(($ac_try" in
6168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169   *) ac_try_echo=$ac_try;;
6170 esac
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172   (eval "$ac_try") 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; } &&
6176          { ac_try='test -s conftest.$ac_objext'
6177   { (case "(($ac_try" in
6178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179   *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182   (eval "$ac_try") 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); }; }; then
6186   ac_cv_prog_cxx_g=yes
6187 else
6188   echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6190
6191         CXXFLAGS=""
6192       cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h.  */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h.  */
6198
6199 int
6200 main ()
6201 {
6202
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (ac_try="$ac_compile"
6209 case "(($ac_try" in
6210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211   *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214   (eval "$ac_compile") 2>conftest.er1
6215   ac_status=$?
6216   grep -v '^ *+' conftest.er1 >conftest.err
6217   rm -f conftest.er1
6218   cat conftest.err >&5
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); } &&
6221          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6222   { (case "(($ac_try" in
6223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224   *) ac_try_echo=$ac_try;;
6225 esac
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227   (eval "$ac_try") 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); }; } &&
6231          { ac_try='test -s conftest.$ac_objext'
6232   { (case "(($ac_try" in
6233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234   *) ac_try_echo=$ac_try;;
6235 esac
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237   (eval "$ac_try") 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   :
6242 else
6243   echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6247          CXXFLAGS="-g"
6248          cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h.  */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h.  */
6254
6255 int
6256 main ()
6257 {
6258
6259   ;
6260   return 0;
6261 }
6262 _ACEOF
6263 rm -f conftest.$ac_objext
6264 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6271   ac_status=$?
6272   grep -v '^ *+' conftest.er1 >conftest.err
6273   rm -f conftest.er1
6274   cat conftest.err >&5
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); } &&
6277          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6278   { (case "(($ac_try" in
6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280   *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283   (eval "$ac_try") 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }; } &&
6287          { ac_try='test -s conftest.$ac_objext'
6288   { (case "(($ac_try" in
6289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290   *) ac_try_echo=$ac_try;;
6291 esac
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293   (eval "$ac_try") 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; }; then
6297   ac_cv_prog_cxx_g=yes
6298 else
6299   echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302
6303 fi
6304
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 fi
6307
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 fi
6310
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6313 fi
6314 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6315 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6316 if test "$ac_test_CXXFLAGS" = set; then
6317   CXXFLAGS=$ac_save_CXXFLAGS
6318 elif test $ac_cv_prog_cxx_g = yes; then
6319   if test "$GXX" = yes; then
6320     CXXFLAGS="-g -O2"
6321   else
6322     CXXFLAGS="-g"
6323   fi
6324 else
6325   if test "$GXX" = yes; then
6326     CXXFLAGS="-O2"
6327   else
6328     CXXFLAGS=
6329   fi
6330 fi
6331 ac_ext=c
6332 ac_cpp='$CPP $CPPFLAGS'
6333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336
6337
6338 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6339 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6340 if test "${lt_cv_path_NM+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   if test -n "$NM"; then
6344   # Let the user override the test.
6345   lt_cv_path_NM="$NM"
6346 else
6347   lt_nm_to_check="${ac_tool_prefix}nm"
6348   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6349     lt_nm_to_check="$lt_nm_to_check nm"
6350   fi
6351   for lt_tmp_nm in $lt_nm_to_check; do
6352     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6353     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6354       IFS="$lt_save_ifs"
6355       test -z "$ac_dir" && ac_dir=.
6356       tmp_nm="$ac_dir/$lt_tmp_nm"
6357       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6358         # Check to see if the nm accepts a BSD-compat flag.
6359         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6360         #   nm: unknown option "B" ignored
6361         # Tru64's nm complains that /dev/null is an invalid object file
6362         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6363         */dev/null* | *'Invalid file or object type'*)
6364           lt_cv_path_NM="$tmp_nm -B"
6365           break
6366           ;;
6367         *)
6368           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6369           */dev/null*)
6370             lt_cv_path_NM="$tmp_nm -p"
6371             break
6372             ;;
6373           *)
6374             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6375             continue # so that we can try to find one that supports BSD flags
6376             ;;
6377           esac
6378           ;;
6379         esac
6380       fi
6381     done
6382     IFS="$lt_save_ifs"
6383   done
6384   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6385 fi
6386 fi
6387 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6388 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6389 NM="$lt_cv_path_NM"
6390
6391
6392
6393 { echo "$as_me:$LINENO: checking for GNU make" >&5
6394 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6395 if test "${llvm_cv_gnu_make_command+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   llvm_cv_gnu_make_command=''
6399  for a in "$MAKE" make gmake gnumake ; do
6400   if test -z "$a" ; then continue ; fi ;
6401   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6402   then
6403    llvm_cv_gnu_make_command=$a ;
6404    break;
6405   fi
6406  done
6407 fi
6408 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6409 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6410  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6411    ifGNUmake='' ;
6412  else
6413    ifGNUmake='#' ;
6414    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6415 echo "${ECHO_T}\"Not found\"" >&6; };
6416  fi
6417
6418
6419 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6420 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6421 LN_S=$as_ln_s
6422 if test "$LN_S" = "ln -s"; then
6423   { echo "$as_me:$LINENO: result: yes" >&5
6424 echo "${ECHO_T}yes" >&6; }
6425 else
6426   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6427 echo "${ECHO_T}no, using $LN_S" >&6; }
6428 fi
6429
6430 # Extract the first word of "cmp", so it can be a program name with args.
6431 set dummy cmp; ac_word=$2
6432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434 if test "${ac_cv_path_CMP+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   case $CMP in
6438   [\\/]* | ?:[\\/]*)
6439   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6440   ;;
6441   *)
6442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445   IFS=$as_save_IFS
6446   test -z "$as_dir" && as_dir=.
6447   for ac_exec_ext in '' $ac_executable_extensions; do
6448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451     break 2
6452   fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6458   ;;
6459 esac
6460 fi
6461 CMP=$ac_cv_path_CMP
6462 if test -n "$CMP"; then
6463   { echo "$as_me:$LINENO: result: $CMP" >&5
6464 echo "${ECHO_T}$CMP" >&6; }
6465 else
6466   { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6468 fi
6469
6470
6471 # Extract the first word of "cp", so it can be a program name with args.
6472 set dummy cp; ac_word=$2
6473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6475 if test "${ac_cv_path_CP+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   case $CP in
6479   [\\/]* | ?:[\\/]*)
6480   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6481   ;;
6482   *)
6483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488   for ac_exec_ext in '' $ac_executable_extensions; do
6489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6490     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495 done
6496 IFS=$as_save_IFS
6497
6498   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6499   ;;
6500 esac
6501 fi
6502 CP=$ac_cv_path_CP
6503 if test -n "$CP"; then
6504   { echo "$as_me:$LINENO: result: $CP" >&5
6505 echo "${ECHO_T}$CP" >&6; }
6506 else
6507   { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6509 fi
6510
6511
6512 # Extract the first word of "date", so it can be a program name with args.
6513 set dummy date; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_path_DATE+set}" = set; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519   case $DATE in
6520   [\\/]* | ?:[\\/]*)
6521   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6522   ;;
6523   *)
6524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529   for ac_exec_ext in '' $ac_executable_extensions; do
6530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6531     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6540   ;;
6541 esac
6542 fi
6543 DATE=$ac_cv_path_DATE
6544 if test -n "$DATE"; then
6545   { echo "$as_me:$LINENO: result: $DATE" >&5
6546 echo "${ECHO_T}$DATE" >&6; }
6547 else
6548   { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6550 fi
6551
6552
6553 # Extract the first word of "find", so it can be a program name with args.
6554 set dummy find; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_path_FIND+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560   case $FIND in
6561   [\\/]* | ?:[\\/]*)
6562   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6563   ;;
6564   *)
6565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570   for ac_exec_ext in '' $ac_executable_extensions; do
6571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6572     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6581   ;;
6582 esac
6583 fi
6584 FIND=$ac_cv_path_FIND
6585 if test -n "$FIND"; then
6586   { echo "$as_me:$LINENO: result: $FIND" >&5
6587 echo "${ECHO_T}$FIND" >&6; }
6588 else
6589   { echo "$as_me:$LINENO: result: no" >&5
6590 echo "${ECHO_T}no" >&6; }
6591 fi
6592
6593
6594 # Extract the first word of "grep", so it can be a program name with args.
6595 set dummy grep; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_path_GREP+set}" = set; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   case $GREP in
6602   [\\/]* | ?:[\\/]*)
6603   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6604   ;;
6605   *)
6606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611   for ac_exec_ext in '' $ac_executable_extensions; do
6612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6613     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6622   ;;
6623 esac
6624 fi
6625 GREP=$ac_cv_path_GREP
6626 if test -n "$GREP"; then
6627   { echo "$as_me:$LINENO: result: $GREP" >&5
6628 echo "${ECHO_T}$GREP" >&6; }
6629 else
6630   { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6632 fi
6633
6634
6635 # Extract the first word of "mkdir", so it can be a program name with args.
6636 set dummy mkdir; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_path_MKDIR+set}" = set; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   case $MKDIR in
6643   [\\/]* | ?:[\\/]*)
6644   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6645   ;;
6646   *)
6647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652   for ac_exec_ext in '' $ac_executable_extensions; do
6653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6654     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6663   ;;
6664 esac
6665 fi
6666 MKDIR=$ac_cv_path_MKDIR
6667 if test -n "$MKDIR"; then
6668   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6669 echo "${ECHO_T}$MKDIR" >&6; }
6670 else
6671   { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6673 fi
6674
6675
6676 # Extract the first word of "mv", so it can be a program name with args.
6677 set dummy mv; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_path_MV+set}" = set; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   case $MV in
6684   [\\/]* | ?:[\\/]*)
6685   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6686   ;;
6687   *)
6688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693   for ac_exec_ext in '' $ac_executable_extensions; do
6694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6695     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6704   ;;
6705 esac
6706 fi
6707 MV=$ac_cv_path_MV
6708 if test -n "$MV"; then
6709   { echo "$as_me:$LINENO: result: $MV" >&5
6710 echo "${ECHO_T}$MV" >&6; }
6711 else
6712   { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6714 fi
6715
6716
6717 if test -n "$ac_tool_prefix"; then
6718   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_RANLIB+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   if test -n "$RANLIB"; then
6726   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 RANLIB=$ac_cv_prog_RANLIB
6746 if test -n "$RANLIB"; then
6747   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6748 echo "${ECHO_T}$RANLIB" >&6; }
6749 else
6750   { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6753
6754
6755 fi
6756 if test -z "$ac_cv_prog_RANLIB"; then
6757   ac_ct_RANLIB=$RANLIB
6758   # Extract the first word of "ranlib", so it can be a program name with args.
6759 set dummy ranlib; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   if test -n "$ac_ct_RANLIB"; then
6766   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_ac_ct_RANLIB="ranlib"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6786 if test -n "$ac_ct_RANLIB"; then
6787   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6788 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794   if test "x$ac_ct_RANLIB" = x; then
6795     RANLIB=":"
6796   else
6797     case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet.  If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet.  If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807     RANLIB=$ac_ct_RANLIB
6808   fi
6809 else
6810   RANLIB="$ac_cv_prog_RANLIB"
6811 fi
6812
6813 # Extract the first word of "rm", so it can be a program name with args.
6814 set dummy rm; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_path_RM+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   case $RM in
6821   [\\/]* | ?:[\\/]*)
6822   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6823   ;;
6824   *)
6825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830   for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837 done
6838 IFS=$as_save_IFS
6839
6840   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6841   ;;
6842 esac
6843 fi
6844 RM=$ac_cv_path_RM
6845 if test -n "$RM"; then
6846   { echo "$as_me:$LINENO: result: $RM" >&5
6847 echo "${ECHO_T}$RM" >&6; }
6848 else
6849   { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6851 fi
6852
6853
6854 # Extract the first word of "sed", so it can be a program name with args.
6855 set dummy sed; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_SED+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   case $SED in
6862   [\\/]* | ?:[\\/]*)
6863   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6864   ;;
6865   *)
6866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869   IFS=$as_save_IFS
6870   test -z "$as_dir" && as_dir=.
6871   for ac_exec_ext in '' $ac_executable_extensions; do
6872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6873     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875     break 2
6876   fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6882   ;;
6883 esac
6884 fi
6885 SED=$ac_cv_path_SED
6886 if test -n "$SED"; then
6887   { echo "$as_me:$LINENO: result: $SED" >&5
6888 echo "${ECHO_T}$SED" >&6; }
6889 else
6890   { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6892 fi
6893
6894
6895 # Extract the first word of "tar", so it can be a program name with args.
6896 set dummy tar; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_path_TAR+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   case $TAR in
6903   [\\/]* | ?:[\\/]*)
6904   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6905   ;;
6906   *)
6907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910   IFS=$as_save_IFS
6911   test -z "$as_dir" && as_dir=.
6912   for ac_exec_ext in '' $ac_executable_extensions; do
6913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6914     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916     break 2
6917   fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6923   ;;
6924 esac
6925 fi
6926 TAR=$ac_cv_path_TAR
6927 if test -n "$TAR"; then
6928   { echo "$as_me:$LINENO: result: $TAR" >&5
6929 echo "${ECHO_T}$TAR" >&6; }
6930 else
6931   { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6933 fi
6934
6935
6936 # Extract the first word of "pwd", so it can be a program name with args.
6937 set dummy pwd; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_BINPWD+set}" = set; then
6941   echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943   case $BINPWD in
6944   [\\/]* | ?:[\\/]*)
6945   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6946   ;;
6947   *)
6948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953   for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6964   ;;
6965 esac
6966 fi
6967 BINPWD=$ac_cv_path_BINPWD
6968 if test -n "$BINPWD"; then
6969   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6970 echo "${ECHO_T}$BINPWD" >&6; }
6971 else
6972   { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6974 fi
6975
6976
6977
6978 # Extract the first word of "Graphviz", so it can be a program name with args.
6979 set dummy Graphviz; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   case $GRAPHVIZ in
6986   [\\/]* | ?:[\\/]*)
6987   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6988   ;;
6989   *)
6990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995   for ac_exec_ext in '' $ac_executable_extensions; do
6996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7006   ;;
7007 esac
7008 fi
7009 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7010 if test -n "$GRAPHVIZ"; then
7011   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7012 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018
7019 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7020
7021 cat >>confdefs.h <<\_ACEOF
7022 #define HAVE_GRAPHVIZ 1
7023 _ACEOF
7024
7025     if test "$llvm_cv_os_type" = "MingW" ; then
7026     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027   fi
7028
7029 cat >>confdefs.h <<_ACEOF
7030 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7031 _ACEOF
7032
7033 fi
7034 # Extract the first word of "dot", so it can be a program name with args.
7035 set dummy dot; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_DOT+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $DOT in
7042   [\\/]* | ?:[\\/]*)
7043   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7044   ;;
7045   *)
7046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7062   ;;
7063 esac
7064 fi
7065 DOT=$ac_cv_path_DOT
7066 if test -n "$DOT"; then
7067   { echo "$as_me:$LINENO: result: $DOT" >&5
7068 echo "${ECHO_T}$DOT" >&6; }
7069 else
7070   { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7072 fi
7073
7074
7075 if test "$DOT" != "echo dot" ; then
7076
7077 cat >>confdefs.h <<\_ACEOF
7078 #define HAVE_DOT 1
7079 _ACEOF
7080
7081     if test "$llvm_cv_os_type" = "MingW" ; then
7082     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7083   fi
7084
7085 cat >>confdefs.h <<_ACEOF
7086 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7087 _ACEOF
7088
7089 fi
7090 for ac_prog in gv gsview32
7091 do
7092   # Extract the first word of "$ac_prog", so it can be a program name with args.
7093 set dummy $ac_prog; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_path_GV+set}" = set; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099   case $GV in
7100   [\\/]* | ?:[\\/]*)
7101   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7102   ;;
7103   *)
7104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109   for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119   ;;
7120 esac
7121 fi
7122 GV=$ac_cv_path_GV
7123 if test -n "$GV"; then
7124   { echo "$as_me:$LINENO: result: $GV" >&5
7125 echo "${ECHO_T}$GV" >&6; }
7126 else
7127   { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7129 fi
7130
7131
7132   test -n "$GV" && break
7133 done
7134 test -n "$GV" || GV="echo gv"
7135
7136 if test "$GV" != "echo gv" ; then
7137
7138 cat >>confdefs.h <<\_ACEOF
7139 #define HAVE_GV 1
7140 _ACEOF
7141
7142     if test "$llvm_cv_os_type" = "MingW" ; then
7143     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7144   fi
7145
7146 cat >>confdefs.h <<_ACEOF
7147 #define LLVM_PATH_GV "$GV${EXEEXT}"
7148 _ACEOF
7149
7150 fi
7151 # Extract the first word of "dotty", so it can be a program name with args.
7152 set dummy dotty; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_path_DOTTY+set}" = set; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   case $DOTTY in
7159   [\\/]* | ?:[\\/]*)
7160   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7161   ;;
7162   *)
7163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166   IFS=$as_save_IFS
7167   test -z "$as_dir" && as_dir=.
7168   for ac_exec_ext in '' $ac_executable_extensions; do
7169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7170     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172     break 2
7173   fi
7174 done
7175 done
7176 IFS=$as_save_IFS
7177
7178   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7179   ;;
7180 esac
7181 fi
7182 DOTTY=$ac_cv_path_DOTTY
7183 if test -n "$DOTTY"; then
7184   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7185 echo "${ECHO_T}$DOTTY" >&6; }
7186 else
7187   { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7189 fi
7190
7191
7192 if test "$DOTTY" != "echo dotty" ; then
7193
7194 cat >>confdefs.h <<\_ACEOF
7195 #define HAVE_DOTTY 1
7196 _ACEOF
7197
7198     if test "$llvm_cv_os_type" = "MingW" ; then
7199     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7200   fi
7201
7202 cat >>confdefs.h <<_ACEOF
7203 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7204 _ACEOF
7205
7206 fi
7207
7208
7209 # Extract the first word of "perl", so it can be a program name with args.
7210 set dummy perl; ac_word=$2
7211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7213 if test "${ac_cv_path_PERL+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   case $PERL in
7217   [\\/]* | ?:[\\/]*)
7218   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7219   ;;
7220   *)
7221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224   IFS=$as_save_IFS
7225   test -z "$as_dir" && as_dir=.
7226   for ac_exec_ext in '' $ac_executable_extensions; do
7227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7228     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230     break 2
7231   fi
7232 done
7233 done
7234 IFS=$as_save_IFS
7235
7236   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7237   ;;
7238 esac
7239 fi
7240 PERL=$ac_cv_path_PERL
7241 if test -n "$PERL"; then
7242   { echo "$as_me:$LINENO: result: $PERL" >&5
7243 echo "${ECHO_T}$PERL" >&6; }
7244 else
7245   { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7247 fi
7248
7249
7250 if test "$PERL" != "none"; then
7251   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7252 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7253   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7254     { echo "$as_me:$LINENO: result: yes" >&5
7255 echo "${ECHO_T}yes" >&6; }
7256   else
7257     PERL=none
7258     { echo "$as_me:$LINENO: result: not found" >&5
7259 echo "${ECHO_T}not found" >&6; }
7260   fi
7261 fi
7262
7263
7264 if test x"$PERL" = xnone; then
7265    HAVE_PERL=0
7266
7267    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7268 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7269    { (exit 1); exit 1; }; }
7270 else
7271    HAVE_PERL=1
7272
7273 fi
7274
7275 # Find a good install program.  We prefer a C program (faster),
7276 # so one script is as good as another.  But avoid the broken or
7277 # incompatible versions:
7278 # SysV /etc/install, /usr/sbin/install
7279 # SunOS /usr/etc/install
7280 # IRIX /sbin/install
7281 # AIX /bin/install
7282 # AmigaOS /C/install, which installs bootblocks on floppy discs
7283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7286 # OS/2's system install, which has a completely different semantic
7287 # ./install, which can be erroneously created by make from ./install.sh.
7288 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7289 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7290 if test -z "$INSTALL"; then
7291 if test "${ac_cv_path_install+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   # Account for people who put trailing slashes in PATH elements.
7300 case $as_dir/ in
7301   ./ | .// | /cC/* | \
7302   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7303   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7304   /usr/ucb/* ) ;;
7305   *)
7306     # OSF1 and SCO ODT 3.0 have their own names for install.
7307     # Don't use installbsd from OSF since it installs stuff as root
7308     # by default.
7309     for ac_prog in ginstall scoinst install; do
7310       for ac_exec_ext in '' $ac_executable_extensions; do
7311         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7312           if test $ac_prog = install &&
7313             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7314             # AIX install.  It has an incompatible calling convention.
7315             :
7316           elif test $ac_prog = install &&
7317             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7318             # program-specific install script used by HP pwplus--don't use.
7319             :
7320           else
7321             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7322             break 3
7323           fi
7324         fi
7325       done
7326     done
7327     ;;
7328 esac
7329 done
7330 IFS=$as_save_IFS
7331
7332
7333 fi
7334   if test "${ac_cv_path_install+set}" = set; then
7335     INSTALL=$ac_cv_path_install
7336   else
7337     # As a last resort, use the slow shell script.  Don't cache a
7338     # value for INSTALL within a source directory, because that will
7339     # break other packages using the cache if that directory is
7340     # removed, or if the value is a relative name.
7341     INSTALL=$ac_install_sh
7342   fi
7343 fi
7344 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7345 echo "${ECHO_T}$INSTALL" >&6; }
7346
7347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7348 # It thinks the first close brace ends the variable substitution.
7349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7350
7351 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7352
7353 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7354
7355
7356 # Extract the first word of "bzip2", so it can be a program name with args.
7357 set dummy bzip2; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_path_BZIP2+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   case $BZIP2 in
7364   [\\/]* | ?:[\\/]*)
7365   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7366   ;;
7367   *)
7368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373   for ac_exec_ext in '' $ac_executable_extensions; do
7374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380 done
7381 IFS=$as_save_IFS
7382
7383   ;;
7384 esac
7385 fi
7386 BZIP2=$ac_cv_path_BZIP2
7387 if test -n "$BZIP2"; then
7388   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7389 echo "${ECHO_T}$BZIP2" >&6; }
7390 else
7391   { echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6; }
7393 fi
7394
7395
7396 # Extract the first word of "doxygen", so it can be a program name with args.
7397 set dummy doxygen; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   case $DOXYGEN in
7404   [\\/]* | ?:[\\/]*)
7405   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7406   ;;
7407   *)
7408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 for as_dir in $PATH
7410 do
7411   IFS=$as_save_IFS
7412   test -z "$as_dir" && as_dir=.
7413   for ac_exec_ext in '' $ac_executable_extensions; do
7414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7415     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417     break 2
7418   fi
7419 done
7420 done
7421 IFS=$as_save_IFS
7422
7423   ;;
7424 esac
7425 fi
7426 DOXYGEN=$ac_cv_path_DOXYGEN
7427 if test -n "$DOXYGEN"; then
7428   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7429 echo "${ECHO_T}$DOXYGEN" >&6; }
7430 else
7431   { echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6; }
7433 fi
7434
7435
7436 # Extract the first word of "groff", so it can be a program name with args.
7437 set dummy groff; ac_word=$2
7438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440 if test "${ac_cv_path_GROFF+set}" = set; then
7441   echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443   case $GROFF in
7444   [\\/]* | ?:[\\/]*)
7445   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7446   ;;
7447   *)
7448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451   IFS=$as_save_IFS
7452   test -z "$as_dir" && as_dir=.
7453   for ac_exec_ext in '' $ac_executable_extensions; do
7454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7455     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457     break 2
7458   fi
7459 done
7460 done
7461 IFS=$as_save_IFS
7462
7463   ;;
7464 esac
7465 fi
7466 GROFF=$ac_cv_path_GROFF
7467 if test -n "$GROFF"; then
7468   { echo "$as_me:$LINENO: result: $GROFF" >&5
7469 echo "${ECHO_T}$GROFF" >&6; }
7470 else
7471   { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7473 fi
7474
7475
7476 # Extract the first word of "gzip", so it can be a program name with args.
7477 set dummy gzip; ac_word=$2
7478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480 if test "${ac_cv_path_GZIP+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   case $GZIP in
7484   [\\/]* | ?:[\\/]*)
7485   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7486   ;;
7487   *)
7488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491   IFS=$as_save_IFS
7492   test -z "$as_dir" && as_dir=.
7493   for ac_exec_ext in '' $ac_executable_extensions; do
7494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7495     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497     break 2
7498   fi
7499 done
7500 done
7501 IFS=$as_save_IFS
7502
7503   ;;
7504 esac
7505 fi
7506 GZIP=$ac_cv_path_GZIP
7507 if test -n "$GZIP"; then
7508   { echo "$as_me:$LINENO: result: $GZIP" >&5
7509 echo "${ECHO_T}$GZIP" >&6; }
7510 else
7511   { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7513 fi
7514
7515
7516 # Extract the first word of "pod2html", so it can be a program name with args.
7517 set dummy pod2html; ac_word=$2
7518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7520 if test "${ac_cv_path_POD2HTML+set}" = set; then
7521   echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523   case $POD2HTML in
7524   [\\/]* | ?:[\\/]*)
7525   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7526   ;;
7527   *)
7528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533   for ac_exec_ext in '' $ac_executable_extensions; do
7534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7535     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540 done
7541 IFS=$as_save_IFS
7542
7543   ;;
7544 esac
7545 fi
7546 POD2HTML=$ac_cv_path_POD2HTML
7547 if test -n "$POD2HTML"; then
7548   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7549 echo "${ECHO_T}$POD2HTML" >&6; }
7550 else
7551   { echo "$as_me:$LINENO: result: no" >&5
7552 echo "${ECHO_T}no" >&6; }
7553 fi
7554
7555
7556 # Extract the first word of "pod2man", so it can be a program name with args.
7557 set dummy pod2man; ac_word=$2
7558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560 if test "${ac_cv_path_POD2MAN+set}" = set; then
7561   echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563   case $POD2MAN in
7564   [\\/]* | ?:[\\/]*)
7565   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7566   ;;
7567   *)
7568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7570 do
7571   IFS=$as_save_IFS
7572   test -z "$as_dir" && as_dir=.
7573   for ac_exec_ext in '' $ac_executable_extensions; do
7574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7575     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577     break 2
7578   fi
7579 done
7580 done
7581 IFS=$as_save_IFS
7582
7583   ;;
7584 esac
7585 fi
7586 POD2MAN=$ac_cv_path_POD2MAN
7587 if test -n "$POD2MAN"; then
7588   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7589 echo "${ECHO_T}$POD2MAN" >&6; }
7590 else
7591   { echo "$as_me:$LINENO: result: no" >&5
7592 echo "${ECHO_T}no" >&6; }
7593 fi
7594
7595
7596 # Extract the first word of "runtest", so it can be a program name with args.
7597 set dummy runtest; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_path_RUNTEST+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603   case $RUNTEST in
7604   [\\/]* | ?:[\\/]*)
7605   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7606   ;;
7607   *)
7608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613   for ac_exec_ext in '' $ac_executable_extensions; do
7614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620 done
7621 IFS=$as_save_IFS
7622
7623   ;;
7624 esac
7625 fi
7626 RUNTEST=$ac_cv_path_RUNTEST
7627 if test -n "$RUNTEST"; then
7628   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7629 echo "${ECHO_T}$RUNTEST" >&6; }
7630 else
7631   { echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6; }
7633 fi
7634
7635
7636
7637 no_itcl=true
7638 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7639 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7640
7641 # Check whether --with-tclinclude was given.
7642 if test "${with_tclinclude+set}" = set; then
7643   withval=$with_tclinclude; with_tclinclude=${withval}
7644 else
7645   with_tclinclude=''
7646 fi
7647
7648 if test "${ac_cv_path_tclsh+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651
7652 if test x"${with_tclinclude}" != x ; then
7653   if test -f ${with_tclinclude}/tclsh ; then
7654     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7655   elif test -f ${with_tclinclude}/src/tclsh ; then
7656     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7657   else
7658     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7659 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7660    { (exit 1); exit 1; }; }
7661   fi
7662 fi
7663
7664 if test x"${ac_cv_path_tclsh}" = x ; then
7665   { echo "$as_me:$LINENO: result: none" >&5
7666 echo "${ECHO_T}none" >&6; }
7667   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
7668 do
7669   # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_TCLSH+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   case $TCLSH in
7677   [\\/]* | ?:[\\/]*)
7678   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7679   ;;
7680   *)
7681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696   ;;
7697 esac
7698 fi
7699 TCLSH=$ac_cv_path_TCLSH
7700 if test -n "$TCLSH"; then
7701   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7702 echo "${ECHO_T}$TCLSH" >&6; }
7703 else
7704   { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7706 fi
7707
7708
7709   test -n "$TCLSH" && break
7710 done
7711
7712   if test x"${TCLSH}" = x ; then
7713     ac_cv_path_tclsh='';
7714   else
7715     ac_cv_path_tclsh="${TCLSH}";
7716   fi
7717 else
7718   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7719 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7720   TCLSH="${ac_cv_path_tclsh}"
7721
7722 fi
7723
7724 fi
7725
7726 # Extract the first word of "zip", so it can be a program name with args.
7727 set dummy zip; ac_word=$2
7728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7730 if test "${ac_cv_path_ZIP+set}" = set; then
7731   echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733   case $ZIP in
7734   [\\/]* | ?:[\\/]*)
7735   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7736   ;;
7737   *)
7738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741   IFS=$as_save_IFS
7742   test -z "$as_dir" && as_dir=.
7743   for ac_exec_ext in '' $ac_executable_extensions; do
7744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7745     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747     break 2
7748   fi
7749 done
7750 done
7751 IFS=$as_save_IFS
7752
7753   ;;
7754 esac
7755 fi
7756 ZIP=$ac_cv_path_ZIP
7757 if test -n "$ZIP"; then
7758   { echo "$as_me:$LINENO: result: $ZIP" >&5
7759 echo "${ECHO_T}$ZIP" >&6; }
7760 else
7761   { echo "$as_me:$LINENO: result: no" >&5
7762 echo "${ECHO_T}no" >&6; }
7763 fi
7764
7765
7766 for ac_prog in ocamlc
7767 do
7768   # Extract the first word of "$ac_prog", so it can be a program name with args.
7769 set dummy $ac_prog; ac_word=$2
7770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772 if test "${ac_cv_path_OCAMLC+set}" = set; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775   case $OCAMLC in
7776   [\\/]* | ?:[\\/]*)
7777   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7778   ;;
7779   *)
7780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785   for ac_exec_ext in '' $ac_executable_extensions; do
7786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7787     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795   ;;
7796 esac
7797 fi
7798 OCAMLC=$ac_cv_path_OCAMLC
7799 if test -n "$OCAMLC"; then
7800   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7801 echo "${ECHO_T}$OCAMLC" >&6; }
7802 else
7803   { echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6; }
7805 fi
7806
7807
7808   test -n "$OCAMLC" && break
7809 done
7810
7811 for ac_prog in ocamlopt
7812 do
7813   # Extract the first word of "$ac_prog", so it can be a program name with args.
7814 set dummy $ac_prog; ac_word=$2
7815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7817 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7818   echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820   case $OCAMLOPT in
7821   [\\/]* | ?:[\\/]*)
7822   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7823   ;;
7824   *)
7825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7827 do
7828   IFS=$as_save_IFS
7829   test -z "$as_dir" && as_dir=.
7830   for ac_exec_ext in '' $ac_executable_extensions; do
7831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7832     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834     break 2
7835   fi
7836 done
7837 done
7838 IFS=$as_save_IFS
7839
7840   ;;
7841 esac
7842 fi
7843 OCAMLOPT=$ac_cv_path_OCAMLOPT
7844 if test -n "$OCAMLOPT"; then
7845   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7846 echo "${ECHO_T}$OCAMLOPT" >&6; }
7847 else
7848   { echo "$as_me:$LINENO: result: no" >&5
7849 echo "${ECHO_T}no" >&6; }
7850 fi
7851
7852
7853   test -n "$OCAMLOPT" && break
7854 done
7855
7856 for ac_prog in ocamldep
7857 do
7858   # Extract the first word of "$ac_prog", so it can be a program name with args.
7859 set dummy $ac_prog; ac_word=$2
7860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7862 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7863   echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865   case $OCAMLDEP in
7866   [\\/]* | ?:[\\/]*)
7867   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7868   ;;
7869   *)
7870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7872 do
7873   IFS=$as_save_IFS
7874   test -z "$as_dir" && as_dir=.
7875   for ac_exec_ext in '' $ac_executable_extensions; do
7876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7877     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879     break 2
7880   fi
7881 done
7882 done
7883 IFS=$as_save_IFS
7884
7885   ;;
7886 esac
7887 fi
7888 OCAMLDEP=$ac_cv_path_OCAMLDEP
7889 if test -n "$OCAMLDEP"; then
7890   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7891 echo "${ECHO_T}$OCAMLDEP" >&6; }
7892 else
7893   { echo "$as_me:$LINENO: result: no" >&5
7894 echo "${ECHO_T}no" >&6; }
7895 fi
7896
7897
7898   test -n "$OCAMLDEP" && break
7899 done
7900
7901 for ac_prog in ocamldoc
7902 do
7903   # Extract the first word of "$ac_prog", so it can be a program name with args.
7904 set dummy $ac_prog; ac_word=$2
7905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910   case $OCAMLDOC in
7911   [\\/]* | ?:[\\/]*)
7912   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7913   ;;
7914   *)
7915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918   IFS=$as_save_IFS
7919   test -z "$as_dir" && as_dir=.
7920   for ac_exec_ext in '' $ac_executable_extensions; do
7921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7922     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924     break 2
7925   fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930   ;;
7931 esac
7932 fi
7933 OCAMLDOC=$ac_cv_path_OCAMLDOC
7934 if test -n "$OCAMLDOC"; then
7935   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7936 echo "${ECHO_T}$OCAMLDOC" >&6; }
7937 else
7938   { echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6; }
7940 fi
7941
7942
7943   test -n "$OCAMLDOC" && break
7944 done
7945
7946 for ac_prog in gas as
7947 do
7948   # Extract the first word of "$ac_prog", so it can be a program name with args.
7949 set dummy $ac_prog; ac_word=$2
7950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952 if test "${ac_cv_path_GAS+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955   case $GAS in
7956   [\\/]* | ?:[\\/]*)
7957   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7958   ;;
7959   *)
7960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963   IFS=$as_save_IFS
7964   test -z "$as_dir" && as_dir=.
7965   for ac_exec_ext in '' $ac_executable_extensions; do
7966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7967     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969     break 2
7970   fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975   ;;
7976 esac
7977 fi
7978 GAS=$ac_cv_path_GAS
7979 if test -n "$GAS"; then
7980   { echo "$as_me:$LINENO: result: $GAS" >&5
7981 echo "${ECHO_T}$GAS" >&6; }
7982 else
7983   { echo "$as_me:$LINENO: result: no" >&5
7984 echo "${ECHO_T}no" >&6; }
7985 fi
7986
7987
7988   test -n "$GAS" && break
7989 done
7990
7991
7992 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7993 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7994 if test "${llvm_cv_link_use_r+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997    ac_ext=c
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003   oldcflags="$CFLAGS"
8004   CFLAGS="$CFLAGS -Wl,-R."
8005   cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h.  */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h.  */
8011
8012 int
8013 main ()
8014 {
8015 int main() { return 0; }
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8022 case "(($ac_try" in
8023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024   *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027   (eval "$ac_link") 2>conftest.er1
8028   ac_status=$?
8029   grep -v '^ *+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } &&
8034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8035   { (case "(($ac_try" in
8036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037   *) ac_try_echo=$ac_try;;
8038 esac
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040   (eval "$ac_try") 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); }; } &&
8044          { ac_try='test -s conftest$ac_exeext'
8045   { (case "(($ac_try" in
8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047   *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050   (eval "$ac_try") 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; }; then
8054   llvm_cv_link_use_r=yes
8055 else
8056   echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8058
8059         llvm_cv_link_use_r=no
8060 fi
8061
8062 rm -f core conftest.err conftest.$ac_objext \
8063       conftest$ac_exeext conftest.$ac_ext
8064   CFLAGS="$oldcflags"
8065   ac_ext=c
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070
8071
8072 fi
8073 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8074 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8075 if test "$llvm_cv_link_use_r" = yes ; then
8076
8077 cat >>confdefs.h <<\_ACEOF
8078 #define HAVE_LINK_R 1
8079 _ACEOF
8080
8081   fi
8082
8083
8084
8085
8086 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8087 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8088 if test "${ac_cv_c_const+set}" = set; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097
8098 int
8099 main ()
8100 {
8101 /* FIXME: Include the comments suggested by Paul. */
8102 #ifndef __cplusplus
8103   /* Ultrix mips cc rejects this.  */
8104   typedef int charset[2];
8105   const charset x;
8106   /* SunOS 4.1.1 cc rejects this.  */
8107   char const *const *ccp;
8108   char **p;
8109   /* NEC SVR4.0.2 mips cc rejects this.  */
8110   struct point {int x, y;};
8111   static struct point const zero = {0,0};
8112   /* AIX XL C 1.02.0.0 rejects this.
8113      It does not let you subtract one const X* pointer from another in
8114      an arm of an if-expression whose if-part is not a constant
8115      expression */
8116   const char *g = "string";
8117   ccp = &g + (g ? g-g : 0);
8118   /* HPUX 7.0 cc rejects these. */
8119   ++ccp;
8120   p = (char**) ccp;
8121   ccp = (char const *const *) p;
8122   { /* SCO 3.2v4 cc rejects this.  */
8123     char *t;
8124     char const *s = 0 ? (char *) 0 : (char const *) 0;
8125
8126     *t++ = 0;
8127     if (s) return 0;
8128   }
8129   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8130     int x[] = {25, 17};
8131     const int *foo = &x[0];
8132     ++foo;
8133   }
8134   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8135     typedef const int *iptr;
8136     iptr p = 0;
8137     ++p;
8138   }
8139   { /* AIX XL C 1.02.0.0 rejects this saying
8140        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8141     struct s { int j; const int *ap[3]; };
8142     struct s *b; b->j = 5;
8143   }
8144   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8145     const int foo = 10;
8146     if (!foo) return 0;
8147   }
8148   return !x[0] && !zero.x;
8149 #endif
8150
8151   ;
8152   return 0;
8153 }
8154 _ACEOF
8155 rm -f conftest.$ac_objext
8156 if { (ac_try="$ac_compile"
8157 case "(($ac_try" in
8158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159   *) ac_try_echo=$ac_try;;
8160 esac
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162   (eval "$ac_compile") 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8179          { ac_try='test -s conftest.$ac_objext'
8180   { (case "(($ac_try" in
8181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182   *) ac_try_echo=$ac_try;;
8183 esac
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185   (eval "$ac_try") 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; }; then
8189   ac_cv_c_const=yes
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194         ac_cv_c_const=no
8195 fi
8196
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 fi
8199 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8200 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8201 if test $ac_cv_c_const = no; then
8202
8203 cat >>confdefs.h <<\_ACEOF
8204 #define const
8205 _ACEOF
8206
8207 fi
8208
8209
8210
8211
8212
8213
8214 ac_header_dirent=no
8215 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8216   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8217 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8218 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h.  */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h.  */
8228 #include <sys/types.h>
8229 #include <$ac_hdr>
8230
8231 int
8232 main ()
8233 {
8234 if ((DIR *) 0)
8235 return 0;
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247   (eval "$ac_compile") 2>conftest.er1
8248   ac_status=$?
8249   grep -v '^ *+' conftest.er1 >conftest.err
8250   rm -f conftest.er1
8251   cat conftest.err >&5
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } &&
8254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8255   { (case "(($ac_try" in
8256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257   *) ac_try_echo=$ac_try;;
8258 esac
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260   (eval "$ac_try") 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; } &&
8264          { ac_try='test -s conftest.$ac_objext'
8265   { (case "(($ac_try" in
8266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267   *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270   (eval "$ac_try") 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; }; then
8274   eval "$as_ac_Header=yes"
8275 else
8276   echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279         eval "$as_ac_Header=no"
8280 fi
8281
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 fi
8284 ac_res=`eval echo '${'$as_ac_Header'}'`
8285                { echo "$as_me:$LINENO: result: $ac_res" >&5
8286 echo "${ECHO_T}$ac_res" >&6; }
8287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8288   cat >>confdefs.h <<_ACEOF
8289 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8290 _ACEOF
8291
8292 ac_header_dirent=$ac_hdr; break
8293 fi
8294
8295 done
8296 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8297 if test $ac_header_dirent = dirent.h; then
8298   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8299 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8300 if test "${ac_cv_search_opendir+set}" = set; then
8301   echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303   ac_func_search_save_LIBS=$LIBS
8304 cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h.  */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h.  */
8310
8311 /* Override any GCC internal prototype to avoid an error.
8312    Use char because int might match the return type of a GCC
8313    builtin and then its argument prototype would still apply.  */
8314 #ifdef __cplusplus
8315 extern "C"
8316 #endif
8317 char opendir ();
8318 int
8319 main ()
8320 {
8321 return opendir ();
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 for ac_lib in '' dir; do
8327   if test -z "$ac_lib"; then
8328     ac_res="none required"
8329   else
8330     ac_res=-l$ac_lib
8331     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8332   fi
8333   rm -f conftest.$ac_objext conftest$ac_exeext
8334 if { (ac_try="$ac_link"
8335 case "(($ac_try" in
8336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337   *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340   (eval "$ac_link") 2>conftest.er1
8341   ac_status=$?
8342   grep -v '^ *+' conftest.er1 >conftest.err
8343   rm -f conftest.er1
8344   cat conftest.err >&5
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); } &&
8347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8348   { (case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353   (eval "$ac_try") 2>&5
8354   ac_status=$?
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); }; } &&
8357          { ac_try='test -s conftest$ac_exeext'
8358   { (case "(($ac_try" in
8359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360   *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363   (eval "$ac_try") 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; }; then
8367   ac_cv_search_opendir=$ac_res
8368 else
8369   echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8371
8372
8373 fi
8374
8375 rm -f core conftest.err conftest.$ac_objext \
8376       conftest$ac_exeext
8377   if test "${ac_cv_search_opendir+set}" = set; then
8378   break
8379 fi
8380 done
8381 if test "${ac_cv_search_opendir+set}" = set; then
8382   :
8383 else
8384   ac_cv_search_opendir=no
8385 fi
8386 rm conftest.$ac_ext
8387 LIBS=$ac_func_search_save_LIBS
8388 fi
8389 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8390 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8391 ac_res=$ac_cv_search_opendir
8392 if test "$ac_res" != no; then
8393   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8394
8395 fi
8396
8397 else
8398   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8399 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8400 if test "${ac_cv_search_opendir+set}" = set; then
8401   echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403   ac_func_search_save_LIBS=$LIBS
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410
8411 /* Override any GCC internal prototype to avoid an error.
8412    Use char because int might match the return type of a GCC
8413    builtin and then its argument prototype would still apply.  */
8414 #ifdef __cplusplus
8415 extern "C"
8416 #endif
8417 char opendir ();
8418 int
8419 main ()
8420 {
8421 return opendir ();
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 for ac_lib in '' x; do
8427   if test -z "$ac_lib"; then
8428     ac_res="none required"
8429   else
8430     ac_res=-l$ac_lib
8431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8432   fi
8433   rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (ac_try="$ac_link"
8435 case "(($ac_try" in
8436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437   *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440   (eval "$ac_link") 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448   { (case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_try") 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; } &&
8457          { ac_try='test -s conftest$ac_exeext'
8458   { (case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_try") 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   ac_cv_search_opendir=$ac_res
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472
8473 fi
8474
8475 rm -f core conftest.err conftest.$ac_objext \
8476       conftest$ac_exeext
8477   if test "${ac_cv_search_opendir+set}" = set; then
8478   break
8479 fi
8480 done
8481 if test "${ac_cv_search_opendir+set}" = set; then
8482   :
8483 else
8484   ac_cv_search_opendir=no
8485 fi
8486 rm conftest.$ac_ext
8487 LIBS=$ac_func_search_save_LIBS
8488 fi
8489 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8490 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8491 ac_res=$ac_cv_search_opendir
8492 if test "$ac_res" != no; then
8493   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8494
8495 fi
8496
8497 fi
8498
8499
8500 for ac_header in dlfcn.h
8501 do
8502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8504   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 fi
8509 ac_res=`eval echo '${'$as_ac_Header'}'`
8510                { echo "$as_me:$LINENO: result: $ac_res" >&5
8511 echo "${ECHO_T}$ac_res" >&6; }
8512 else
8513   # Is the header compilable?
8514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h.  */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h.  */
8522 $ac_includes_default
8523 #include <$ac_header>
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (ac_try="$ac_compile"
8527 case "(($ac_try" in
8528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529   *) ac_try_echo=$ac_try;;
8530 esac
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532   (eval "$ac_compile") 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } &&
8539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8540   { (case "(($ac_try" in
8541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542   *) ac_try_echo=$ac_try;;
8543 esac
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545   (eval "$ac_try") 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; } &&
8549          { ac_try='test -s conftest.$ac_objext'
8550   { (case "(($ac_try" in
8551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552   *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555   (eval "$ac_try") 2>&5
8556   ac_status=$?
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); }; }; then
8559   ac_header_compiler=yes
8560 else
8561   echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8563
8564         ac_header_compiler=no
8565 fi
8566
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8569 echo "${ECHO_T}$ac_header_compiler" >&6; }
8570
8571 # Is the header present?
8572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h.  */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h.  */
8580 #include <$ac_header>
8581 _ACEOF
8582 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
8589   ac_status=$?
8590   grep -v '^ *+' conftest.er1 >conftest.err
8591   rm -f conftest.er1
8592   cat conftest.err >&5
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); } >/dev/null; then
8595   if test -s conftest.err; then
8596     ac_cpp_err=$ac_c_preproc_warn_flag
8597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8598   else
8599     ac_cpp_err=
8600   fi
8601 else
8602   ac_cpp_err=yes
8603 fi
8604 if test -z "$ac_cpp_err"; then
8605   ac_header_preproc=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610   ac_header_preproc=no
8611 fi
8612
8613 rm -f conftest.err conftest.$ac_ext
8614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8615 echo "${ECHO_T}$ac_header_preproc" >&6; }
8616
8617 # So?  What about this header?
8618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8619   yes:no: )
8620     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8624     ac_header_preproc=yes
8625     ;;
8626   no:yes:* )
8627     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8629     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8630 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8631     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8633     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8634 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8637     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8639     ( cat <<\_ASBOX
8640 ## ----------------------------------- ##
8641 ## Report this to llvmbugs@cs.uiuc.edu ##
8642 ## ----------------------------------- ##
8643 _ASBOX
8644      ) | sed "s/^/$as_me: WARNING:     /" >&2
8645     ;;
8646 esac
8647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8650   echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652   eval "$as_ac_Header=\$ac_header_preproc"
8653 fi
8654 ac_res=`eval echo '${'$as_ac_Header'}'`
8655                { echo "$as_me:$LINENO: result: $ac_res" >&5
8656 echo "${ECHO_T}$ac_res" >&6; }
8657
8658 fi
8659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8660   cat >>confdefs.h <<_ACEOF
8661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8662 _ACEOF
8663
8664 fi
8665
8666 done
8667
8668 # Check whether --enable-ltdl-install was given.
8669 if test "${enable_ltdl_install+set}" = set; then
8670   enableval=$enable_ltdl_install;
8671 fi
8672
8673
8674
8675
8676 if test x"${enable_ltdl_install-no}" != xno; then
8677   INSTALL_LTDL_TRUE=
8678   INSTALL_LTDL_FALSE='#'
8679 else
8680   INSTALL_LTDL_TRUE='#'
8681   INSTALL_LTDL_FALSE=
8682 fi
8683
8684
8685
8686 if test x"${enable_ltdl_convenience-no}" != xno; then
8687   CONVENIENCE_LTDL_TRUE=
8688   CONVENIENCE_LTDL_FALSE='#'
8689 else
8690   CONVENIENCE_LTDL_TRUE='#'
8691   CONVENIENCE_LTDL_FALSE=
8692 fi
8693
8694
8695 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8697 library_names_spec=
8698 libname_spec='lib$name'
8699 soname_spec=
8700 shrext_cmds=".so"
8701 postinstall_cmds=
8702 postuninstall_cmds=
8703 finish_cmds=
8704 finish_eval=
8705 shlibpath_var=
8706 shlibpath_overrides_runpath=unknown
8707 version_type=none
8708 dynamic_linker="$host_os ld.so"
8709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8710 if test "$GCC" = yes; then
8711   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8712   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8713     # if the path contains ";" then we assume it to be the separator
8714     # otherwise default to the standard path separator (i.e. ":") - it is
8715     # assumed that no part of a normal pathname contains ";" but that should
8716     # okay in the real world where ";" in dirpaths is itself problematic.
8717     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8718   else
8719     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8720   fi
8721 else
8722   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8723 fi
8724 need_lib_prefix=unknown
8725 hardcode_into_libs=no
8726
8727 # when you set need_version to no, make sure it does not cause -set_version
8728 # flags to be left without arguments
8729 need_version=unknown
8730
8731 case $host_os in
8732 aix3*)
8733   version_type=linux
8734   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8735   shlibpath_var=LIBPATH
8736
8737   # AIX 3 has no versioning support, so we append a major version to the name.
8738   soname_spec='${libname}${release}${shared_ext}$major'
8739   ;;
8740
8741 aix4* | aix5*)
8742   version_type=linux
8743   need_lib_prefix=no
8744   need_version=no
8745   hardcode_into_libs=yes
8746   if test "$host_cpu" = ia64; then
8747     # AIX 5 supports IA64
8748     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8749     shlibpath_var=LD_LIBRARY_PATH
8750   else
8751     # With GCC up to 2.95.x, collect2 would create an import file
8752     # for dependence libraries.  The import file would start with
8753     # the line `#! .'.  This would cause the generated library to
8754     # depend on `.', always an invalid library.  This was fixed in
8755     # development snapshots of GCC prior to 3.0.
8756     case $host_os in
8757       aix4 | aix4.[01] | aix4.[01].*)
8758       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8759            echo ' yes '
8760            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8761         :
8762       else
8763         can_build_shared=no
8764       fi
8765       ;;
8766     esac
8767     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8768     # soname into executable. Probably we can add versioning support to
8769     # collect2, so additional links can be useful in future.
8770     if test "$aix_use_runtimelinking" = yes; then
8771       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8772       # instead of lib<name>.a to let people know that these are not
8773       # typical AIX shared libraries.
8774       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775     else
8776       # We preserve .a as extension for shared libraries through AIX4.2
8777       # and later when we are not doing run time linking.
8778       library_names_spec='${libname}${release}.a $libname.a'
8779       soname_spec='${libname}${release}${shared_ext}$major'
8780     fi
8781     shlibpath_var=LIBPATH
8782   fi
8783   ;;
8784
8785 amigaos*)
8786   library_names_spec='$libname.ixlibrary $libname.a'
8787   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8788   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'
8789   ;;
8790
8791 beos*)
8792   library_names_spec='${libname}${shared_ext}'
8793   dynamic_linker="$host_os ld.so"
8794   shlibpath_var=LIBRARY_PATH
8795   ;;
8796
8797 bsdi[45]*)
8798   version_type=linux
8799   need_version=no
8800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801   soname_spec='${libname}${release}${shared_ext}$major'
8802   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8803   shlibpath_var=LD_LIBRARY_PATH
8804   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8805   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8806   # the default ld.so.conf also contains /usr/contrib/lib and
8807   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8808   # libtool to hard-code these into programs
8809   ;;
8810
8811 cygwin* | mingw* | pw32*)
8812   version_type=windows
8813   shrext_cmds=".dll"
8814   need_version=no
8815   need_lib_prefix=no
8816
8817   case $GCC,$host_os in
8818   yes,cygwin* | yes,mingw* | yes,pw32*)
8819     library_names_spec='$libname.dll.a'
8820     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8821     postinstall_cmds='base_file=`basename \${file}`~
8822       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8823       dldir=$destdir/`dirname \$dlpath`~
8824       test -d \$dldir || mkdir -p \$dldir~
8825       $install_prog $dir/$dlname \$dldir/$dlname~
8826       chmod a+x \$dldir/$dlname'
8827     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8828       dlpath=$dir/\$dldll~
8829        $rm \$dlpath'
8830     shlibpath_overrides_runpath=yes
8831
8832     case $host_os in
8833     cygwin*)
8834       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8835       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8836       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8837       ;;
8838     mingw*)
8839       # MinGW DLLs use traditional 'lib' prefix
8840       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8841       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8842       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8843         # It is most probably a Windows format PATH printed by
8844         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8845         # path with ; separators, and with drive letters. We can handle the
8846         # drive letters (cygwin fileutils understands them), so leave them,
8847         # especially as we might pass files found there to a mingw objdump,
8848         # which wouldn't understand a cygwinified path. Ahh.
8849         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8850       else
8851         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8852       fi
8853       ;;
8854     pw32*)
8855       # pw32 DLLs use 'pw' prefix rather than 'lib'
8856       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8857       ;;
8858     esac
8859     ;;
8860
8861   *)
8862     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8863     ;;
8864   esac
8865   dynamic_linker='Win32 ld.exe'
8866   # FIXME: first we should search . and the directory the executable is in
8867   shlibpath_var=PATH
8868   ;;
8869
8870 darwin* | rhapsody*)
8871   dynamic_linker="$host_os dyld"
8872   version_type=darwin
8873   need_lib_prefix=no
8874   need_version=no
8875   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8876   soname_spec='${libname}${release}${major}$shared_ext'
8877   shlibpath_overrides_runpath=yes
8878   shlibpath_var=DYLD_LIBRARY_PATH
8879   shrext_cmds='.dylib'
8880   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8881   if test "$GCC" = yes; then
8882     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"`
8883   else
8884     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8885   fi
8886   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8887   ;;
8888
8889 dgux*)
8890   version_type=linux
8891   need_lib_prefix=no
8892   need_version=no
8893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8894   soname_spec='${libname}${release}${shared_ext}$major'
8895   shlibpath_var=LD_LIBRARY_PATH
8896   ;;
8897
8898 freebsd1*)
8899   dynamic_linker=no
8900   ;;
8901
8902 kfreebsd*-gnu)
8903   version_type=linux
8904   need_lib_prefix=no
8905   need_version=no
8906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8907   soname_spec='${libname}${release}${shared_ext}$major'
8908   shlibpath_var=LD_LIBRARY_PATH
8909   shlibpath_overrides_runpath=no
8910   hardcode_into_libs=yes
8911   dynamic_linker='GNU ld.so'
8912   ;;
8913
8914 freebsd* | dragonfly*)
8915   # DragonFly does not have aout.  When/if they implement a new
8916   # versioning mechanism, adjust this.
8917   if test -x /usr/bin/objformat; then
8918     objformat=`/usr/bin/objformat`
8919   else
8920     case $host_os in
8921     freebsd[123]*) objformat=aout ;;
8922     *) objformat=elf ;;
8923     esac
8924   fi
8925   version_type=freebsd-$objformat
8926   case $version_type in
8927     freebsd-elf*)
8928       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8929       need_version=no
8930       need_lib_prefix=no
8931       ;;
8932     freebsd-*)
8933       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8934       need_version=yes
8935       ;;
8936   esac
8937   shlibpath_var=LD_LIBRARY_PATH
8938   case $host_os in
8939   freebsd2*)
8940     shlibpath_overrides_runpath=yes
8941     ;;
8942   freebsd3.[01]* | freebsdelf3.[01]*)
8943     shlibpath_overrides_runpath=yes
8944     hardcode_into_libs=yes
8945     ;;
8946   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8947   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8948     shlibpath_overrides_runpath=no
8949     hardcode_into_libs=yes
8950     ;;
8951   freebsd*) # from 4.6 on
8952     shlibpath_overrides_runpath=yes
8953     hardcode_into_libs=yes
8954     ;;
8955   esac
8956   ;;
8957
8958 gnu*)
8959   version_type=linux
8960   need_lib_prefix=no
8961   need_version=no
8962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8963   soname_spec='${libname}${release}${shared_ext}$major'
8964   shlibpath_var=LD_LIBRARY_PATH
8965   hardcode_into_libs=yes
8966   ;;
8967
8968 hpux9* | hpux10* | hpux11*)
8969   # Give a soname corresponding to the major version so that dld.sl refuses to
8970   # link against other versions.
8971   version_type=sunos
8972   need_lib_prefix=no
8973   need_version=no
8974   case $host_cpu in
8975   ia64*)
8976     shrext_cmds='.so'
8977     hardcode_into_libs=yes
8978     dynamic_linker="$host_os dld.so"
8979     shlibpath_var=LD_LIBRARY_PATH
8980     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982     soname_spec='${libname}${release}${shared_ext}$major'
8983     if test "X$HPUX_IA64_MODE" = X32; then
8984       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8985     else
8986       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8987     fi
8988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8989     ;;
8990    hppa*64*)
8991      shrext_cmds='.sl'
8992      hardcode_into_libs=yes
8993      dynamic_linker="$host_os dld.sl"
8994      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8995      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8996      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997      soname_spec='${libname}${release}${shared_ext}$major'
8998      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8999      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9000      ;;
9001    *)
9002     shrext_cmds='.sl'
9003     dynamic_linker="$host_os dld.sl"
9004     shlibpath_var=SHLIB_PATH
9005     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007     soname_spec='${libname}${release}${shared_ext}$major'
9008     ;;
9009   esac
9010   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9011   postinstall_cmds='chmod 555 $lib'
9012   ;;
9013
9014 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9021   shlibpath_var=LD_LIBRARY_PATH
9022   shlibpath_overrides_runpath=no
9023   hardcode_into_libs=yes
9024   ;;
9025
9026 irix5* | irix6* | nonstopux*)
9027   case $host_os in
9028     nonstopux*) version_type=nonstopux ;;
9029     *)
9030         if test "$lt_cv_prog_gnu_ld" = yes; then
9031                 version_type=linux
9032         else
9033                 version_type=irix
9034         fi ;;
9035   esac
9036   need_lib_prefix=no
9037   need_version=no
9038   soname_spec='${libname}${release}${shared_ext}$major'
9039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9040   case $host_os in
9041   irix5* | nonstopux*)
9042     libsuff= shlibsuff=
9043     ;;
9044   *)
9045     case $LD in # libtool.m4 will add one of these switches to LD
9046     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9047       libsuff= shlibsuff= libmagic=32-bit;;
9048     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9049       libsuff=32 shlibsuff=N32 libmagic=N32;;
9050     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9051       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9052     *) libsuff= shlibsuff= libmagic=never-match;;
9053     esac
9054     ;;
9055   esac
9056   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9057   shlibpath_overrides_runpath=no
9058   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9059   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9060   hardcode_into_libs=yes
9061   ;;
9062
9063 # No shared lib support for Linux oldld, aout, or coff.
9064 linux*oldld* | linux*aout* | linux*coff*)
9065   dynamic_linker=no
9066   ;;
9067
9068 # This must be Linux ELF.
9069 linux*)
9070   version_type=linux
9071   need_lib_prefix=no
9072   need_version=no
9073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074   soname_spec='${libname}${release}${shared_ext}$major'
9075   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9076   shlibpath_var=LD_LIBRARY_PATH
9077   shlibpath_overrides_runpath=no
9078   # This implies no fast_install, which is unacceptable.
9079   # Some rework will be needed to allow for fast_install
9080   # before this can be enabled.
9081   hardcode_into_libs=yes
9082
9083   # Append ld.so.conf contents to the search path
9084   if test -f /etc/ld.so.conf; then
9085     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' ' '`
9086     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9087   fi
9088
9089   # We used to test for /lib/ld.so.1 and disable shared libraries on
9090   # powerpc, because MkLinux only supported shared libraries with the
9091   # GNU dynamic linker.  Since this was broken with cross compilers,
9092   # most powerpc-linux boxes support dynamic linking these days and
9093   # people can always --disable-shared, the test was removed, and we
9094   # assume the GNU/Linux dynamic linker is in use.
9095   dynamic_linker='GNU/Linux ld.so'
9096   ;;
9097
9098 knetbsd*-gnu)
9099   version_type=linux
9100   need_lib_prefix=no
9101   need_version=no
9102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9103   soname_spec='${libname}${release}${shared_ext}$major'
9104   shlibpath_var=LD_LIBRARY_PATH
9105   shlibpath_overrides_runpath=no
9106   hardcode_into_libs=yes
9107   dynamic_linker='GNU ld.so'
9108   ;;
9109
9110 netbsd*)
9111   version_type=sunos
9112   need_lib_prefix=no
9113   need_version=no
9114   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9116     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9117     dynamic_linker='NetBSD (a.out) ld.so'
9118   else
9119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9120     soname_spec='${libname}${release}${shared_ext}$major'
9121     dynamic_linker='NetBSD ld.elf_so'
9122   fi
9123   shlibpath_var=LD_LIBRARY_PATH
9124   shlibpath_overrides_runpath=yes
9125   hardcode_into_libs=yes
9126   ;;
9127
9128 newsos6)
9129   version_type=linux
9130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131   shlibpath_var=LD_LIBRARY_PATH
9132   shlibpath_overrides_runpath=yes
9133   ;;
9134
9135 nto-qnx*)
9136   version_type=linux
9137   need_lib_prefix=no
9138   need_version=no
9139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140   soname_spec='${libname}${release}${shared_ext}$major'
9141   shlibpath_var=LD_LIBRARY_PATH
9142   shlibpath_overrides_runpath=yes
9143   ;;
9144
9145 openbsd*)
9146   version_type=sunos
9147   sys_lib_dlsearch_path_spec="/usr/lib"
9148   need_lib_prefix=no
9149   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9150   case $host_os in
9151     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9152     *)                         need_version=no  ;;
9153   esac
9154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9156   shlibpath_var=LD_LIBRARY_PATH
9157   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9158     case $host_os in
9159       openbsd2.[89] | openbsd2.[89].*)
9160         shlibpath_overrides_runpath=no
9161         ;;
9162       *)
9163         shlibpath_overrides_runpath=yes
9164         ;;
9165       esac
9166   else
9167     shlibpath_overrides_runpath=yes
9168   fi
9169   ;;
9170
9171 os2*)
9172   libname_spec='$name'
9173   shrext_cmds=".dll"
9174   need_lib_prefix=no
9175   library_names_spec='$libname${shared_ext} $libname.a'
9176   dynamic_linker='OS/2 ld.exe'
9177   shlibpath_var=LIBPATH
9178   ;;
9179
9180 osf3* | osf4* | osf5*)
9181   version_type=osf
9182   need_lib_prefix=no
9183   need_version=no
9184   soname_spec='${libname}${release}${shared_ext}$major'
9185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186   shlibpath_var=LD_LIBRARY_PATH
9187   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9188   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9189   ;;
9190
9191 solaris*)
9192   version_type=linux
9193   need_lib_prefix=no
9194   need_version=no
9195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196   soname_spec='${libname}${release}${shared_ext}$major'
9197   shlibpath_var=LD_LIBRARY_PATH
9198   shlibpath_overrides_runpath=yes
9199   hardcode_into_libs=yes
9200   # ldd complains unless libraries are executable
9201   postinstall_cmds='chmod +x $lib'
9202   ;;
9203
9204 sunos4*)
9205   version_type=sunos
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9207   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9208   shlibpath_var=LD_LIBRARY_PATH
9209   shlibpath_overrides_runpath=yes
9210   if test "$with_gnu_ld" = yes; then
9211     need_lib_prefix=no
9212   fi
9213   need_version=yes
9214   ;;
9215
9216 sysv4 | sysv4.3*)
9217   version_type=linux
9218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219   soname_spec='${libname}${release}${shared_ext}$major'
9220   shlibpath_var=LD_LIBRARY_PATH
9221   case $host_vendor in
9222     sni)
9223       shlibpath_overrides_runpath=no
9224       need_lib_prefix=no
9225       export_dynamic_flag_spec='${wl}-Blargedynsym'
9226       runpath_var=LD_RUN_PATH
9227       ;;
9228     siemens)
9229       need_lib_prefix=no
9230       ;;
9231     motorola)
9232       need_lib_prefix=no
9233       need_version=no
9234       shlibpath_overrides_runpath=no
9235       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9236       ;;
9237   esac
9238   ;;
9239
9240 sysv4*MP*)
9241   if test -d /usr/nec ;then
9242     version_type=linux
9243     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9244     soname_spec='$libname${shared_ext}.$major'
9245     shlibpath_var=LD_LIBRARY_PATH
9246   fi
9247   ;;
9248
9249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9250   version_type=freebsd-elf
9251   need_lib_prefix=no
9252   need_version=no
9253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9254   soname_spec='${libname}${release}${shared_ext}$major'
9255   shlibpath_var=LD_LIBRARY_PATH
9256   hardcode_into_libs=yes
9257   if test "$with_gnu_ld" = yes; then
9258     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9259     shlibpath_overrides_runpath=no
9260   else
9261     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9262     shlibpath_overrides_runpath=yes
9263     case $host_os in
9264       sco3.2v5*)
9265         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9266         ;;
9267     esac
9268   fi
9269   sys_lib_dlsearch_path_spec='/usr/lib'
9270   ;;
9271
9272 uts4*)
9273   version_type=linux
9274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275   soname_spec='${libname}${release}${shared_ext}$major'
9276   shlibpath_var=LD_LIBRARY_PATH
9277   ;;
9278
9279 *)
9280   dynamic_linker=no
9281   ;;
9282 esac
9283 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9284 echo "${ECHO_T}$dynamic_linker" >&6; }
9285 test "$dynamic_linker" = no && can_build_shared=no
9286
9287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9288 if test "$GCC" = yes; then
9289   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9290 fi
9291
9292
9293 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9294 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9295 if test "${libltdl_cv_shlibext+set}" = set; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298
9299 module=yes
9300 eval libltdl_cv_shlibext=$shrext_cmds
9301
9302 fi
9303 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9304 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9305 if test -n "$libltdl_cv_shlibext"; then
9306
9307 cat >>confdefs.h <<_ACEOF
9308 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9309 _ACEOF
9310
9311 fi
9312
9313
9314 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9315 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9316 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9317   echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319   libltdl_cv_shlibpath_var="$shlibpath_var"
9320 fi
9321 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9322 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9323 if test -n "$libltdl_cv_shlibpath_var"; then
9324
9325 cat >>confdefs.h <<_ACEOF
9326 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9327 _ACEOF
9328
9329 fi
9330
9331
9332 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9333 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9334 if test "${libltdl_cv_sys_search_path+set}" = set; then
9335   echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9338 fi
9339 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9340 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9341 if test -n "$libltdl_cv_sys_search_path"; then
9342   sys_search_path=
9343   for dir in $libltdl_cv_sys_search_path; do
9344     if test -z "$sys_search_path"; then
9345       sys_search_path="$dir"
9346     else
9347       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9348     fi
9349   done
9350
9351 cat >>confdefs.h <<_ACEOF
9352 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9353 _ACEOF
9354
9355 fi
9356
9357 { echo "$as_me:$LINENO: checking for objdir" >&5
9358 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9359 if test "${libltdl_cv_objdir+set}" = set; then
9360   echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362   libltdl_cv_objdir="$objdir"
9363   if test -n "$objdir"; then
9364     :
9365   else
9366     rm -f .libs 2>/dev/null
9367     mkdir .libs 2>/dev/null
9368     if test -d .libs; then
9369       libltdl_cv_objdir=.libs
9370     else
9371       # MS-DOS does not allow filenames that begin with a dot.
9372       libltdl_cv_objdir=_libs
9373     fi
9374   rmdir .libs 2>/dev/null
9375   fi
9376
9377 fi
9378 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9379 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9380
9381 cat >>confdefs.h <<_ACEOF
9382 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9383 _ACEOF
9384
9385
9386
9387
9388
9389
9390 # Check for command to grab the raw symbol name followed by C symbol from nm.
9391 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9392 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9393 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9394   echo $ECHO_N "(cached) $ECHO_C" >&6
9395 else
9396
9397 # These are sane defaults that work on at least a few old systems.
9398 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9399
9400 # Character class describing NM global symbol codes.
9401 symcode='[BCDEGRST]'
9402
9403 # Regexp to match symbols that can be accessed directly from C.
9404 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9405
9406 # Transform an extracted symbol line into a proper C declaration
9407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9408
9409 # Transform an extracted symbol line into symbol name and symbol address
9410 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'"
9411
9412 # Define system-specific variables.
9413 case $host_os in
9414 aix*)
9415   symcode='[BCDT]'
9416   ;;
9417 cygwin* | mingw* | pw32*)
9418   symcode='[ABCDGISTW]'
9419   ;;
9420 hpux*) # Its linker distinguishes data from code symbols
9421   if test "$host_cpu" = ia64; then
9422     symcode='[ABCDEGRST]'
9423   fi
9424   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9425   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'"
9426   ;;
9427 linux*)
9428   if test "$host_cpu" = ia64; then
9429     symcode='[ABCDGIRSTW]'
9430     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9431     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'"
9432   fi
9433   ;;
9434 irix* | nonstopux*)
9435   symcode='[BCDEGRST]'
9436   ;;
9437 osf*)
9438   symcode='[BCDEGQRST]'
9439   ;;
9440 solaris*)
9441   symcode='[BDRT]'
9442   ;;
9443 sco3.2v5*)
9444   symcode='[DT]'
9445   ;;
9446 sysv4.2uw2*)
9447   symcode='[DT]'
9448   ;;
9449 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9450   symcode='[ABDT]'
9451   ;;
9452 sysv4)
9453   symcode='[DFNSTU]'
9454   ;;
9455 esac
9456
9457 # Handle CRLF in mingw tool chain
9458 opt_cr=
9459 case $build_os in
9460 mingw*)
9461   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9462   ;;
9463 esac
9464
9465 # If we're using GNU nm, then use its standard symbol codes.
9466 case `$NM -V 2>&1` in
9467 *GNU* | *'with BFD'*)
9468   symcode='[ABCDGIRSTW]' ;;
9469 esac
9470
9471 # Try without a prefix undercore, then with it.
9472 for ac_symprfx in "" "_"; do
9473
9474   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9475   symxfrm="\\1 $ac_symprfx\\2 \\2"
9476
9477   # Write the raw and C identifiers.
9478   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9479
9480   # Check to see that the pipe works correctly.
9481   pipe_works=no
9482
9483   rm -f conftest*
9484   cat > conftest.$ac_ext <<EOF
9485 #ifdef __cplusplus
9486 extern "C" {
9487 #endif
9488 char nm_test_var;
9489 void nm_test_func(){}
9490 #ifdef __cplusplus
9491 }
9492 #endif
9493 int main(){nm_test_var='a';nm_test_func();return(0);}
9494 EOF
9495
9496   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497   (eval $ac_compile) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; then
9501     # Now try to grab the symbols.
9502     nlist=conftest.nm
9503     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9504   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } && test -s "$nlist"; then
9508       # Try sorting and uniquifying the output.
9509       if sort "$nlist" | uniq > "$nlist"T; then
9510         mv -f "$nlist"T "$nlist"
9511       else
9512         rm -f "$nlist"T
9513       fi
9514
9515       # Make sure that we snagged all the symbols we need.
9516       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9517         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9518           cat <<EOF > conftest.$ac_ext
9519 #ifdef __cplusplus
9520 extern "C" {
9521 #endif
9522
9523 EOF
9524           # Now generate the symbol file.
9525           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9526
9527           cat <<EOF >> conftest.$ac_ext
9528 #if defined (__STDC__) && __STDC__
9529 # define lt_ptr_t void *
9530 #else
9531 # define lt_ptr_t char *
9532 # define const
9533 #endif
9534
9535 /* The mapping between symbol names and symbols. */
9536 const struct {
9537   const char *name;
9538   lt_ptr_t address;
9539 }
9540 lt_preloaded_symbols[] =
9541 {
9542 EOF
9543           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9544           cat <<\EOF >> conftest.$ac_ext
9545   {0, (lt_ptr_t) 0}
9546 };
9547
9548 #ifdef __cplusplus
9549 }
9550 #endif
9551 EOF
9552           # Now try linking the two files.
9553           mv conftest.$ac_objext conftstm.$ac_objext
9554           lt_save_LIBS="$LIBS"
9555           lt_save_CFLAGS="$CFLAGS"
9556           LIBS="conftstm.$ac_objext"
9557           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9558           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559   (eval $ac_link) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9563             pipe_works=yes
9564           fi
9565           LIBS="$lt_save_LIBS"
9566           CFLAGS="$lt_save_CFLAGS"
9567         else
9568           echo "cannot find nm_test_func in $nlist" >&5
9569         fi
9570       else
9571         echo "cannot find nm_test_var in $nlist" >&5
9572       fi
9573     else
9574       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9575     fi
9576   else
9577     echo "$progname: failed program was:" >&5
9578     cat conftest.$ac_ext >&5
9579   fi
9580   rm -f conftest* conftst*
9581
9582   # Do not use the global_symbol_pipe unless it works.
9583   if test "$pipe_works" = yes; then
9584     break
9585   else
9586     lt_cv_sys_global_symbol_pipe=
9587   fi
9588 done
9589
9590 fi
9591
9592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9593   lt_cv_sys_global_symbol_to_cdecl=
9594 fi
9595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9596   { echo "$as_me:$LINENO: result: failed" >&5
9597 echo "${ECHO_T}failed" >&6; }
9598 else
9599   { echo "$as_me:$LINENO: result: ok" >&5
9600 echo "${ECHO_T}ok" >&6; }
9601 fi
9602
9603
9604 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9605 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9606 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9610     libltdl_cv_preloaded_symbols=yes
9611   else
9612     libltdl_cv_preloaded_symbols=no
9613   fi
9614
9615 fi
9616 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9617 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9618 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9619
9620 cat >>confdefs.h <<\_ACEOF
9621 #define HAVE_PRELOADED_SYMBOLS 1
9622 _ACEOF
9623
9624 fi
9625
9626 LIBADD_DL=
9627
9628 ac_ext=c
9629 ac_cpp='$CPP $CPPFLAGS'
9630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9633
9634
9635 { echo "$as_me:$LINENO: checking for shl_load" >&5
9636 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9637 if test "${ac_cv_func_shl_load+set}" = set; then
9638   echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640   cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h.  */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h.  */
9646 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9648 #define shl_load innocuous_shl_load
9649
9650 /* System header to define __stub macros and hopefully few prototypes,
9651     which can conflict with char shl_load (); below.
9652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9653     <limits.h> exists even on freestanding compilers.  */
9654
9655 #ifdef __STDC__
9656 # include <limits.h>
9657 #else
9658 # include <assert.h>
9659 #endif
9660
9661 #undef shl_load
9662
9663 /* Override any GCC internal prototype to avoid an error.
9664    Use char because int might match the return type of a GCC
9665    builtin and then its argument prototype would still apply.  */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 char shl_load ();
9670 /* The GNU C library defines this for functions which it implements
9671     to always fail with ENOSYS.  Some functions are actually named
9672     something starting with __ and the normal name is an alias.  */
9673 #if defined __stub_shl_load || defined __stub___shl_load
9674 choke me
9675 #endif
9676
9677 int
9678 main ()
9679 {
9680 return shl_load ();
9681   ;
9682   return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9687 case "(($ac_try" in
9688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689   *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692   (eval "$ac_link") 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } &&
9699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9700   { (case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_try") 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; } &&
9709          { ac_try='test -s conftest$ac_exeext'
9710   { (case "(($ac_try" in
9711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712   *) ac_try_echo=$ac_try;;
9713 esac
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715   (eval "$ac_try") 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; }; then
9719   ac_cv_func_shl_load=yes
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724         ac_cv_func_shl_load=no
9725 fi
9726
9727 rm -f core conftest.err conftest.$ac_objext \
9728       conftest$ac_exeext conftest.$ac_ext
9729 fi
9730 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9731 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9732 if test $ac_cv_func_shl_load = yes; then
9733
9734 cat >>confdefs.h <<\_ACEOF
9735 #define HAVE_SHL_LOAD 1
9736 _ACEOF
9737
9738 else
9739   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9740 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9741 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9742   echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744   ac_check_lib_save_LIBS=$LIBS
9745 LIBS="-ldld  $LIBS"
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h.  */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h.  */
9752
9753 /* Override any GCC internal prototype to avoid an error.
9754    Use char because int might match the return type of a GCC
9755    builtin and then its argument prototype would still apply.  */
9756 #ifdef __cplusplus
9757 extern "C"
9758 #endif
9759 char shl_load ();
9760 int
9761 main ()
9762 {
9763 return shl_load ();
9764   ;
9765   return 0;
9766 }
9767 _ACEOF
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (ac_try="$ac_link"
9770 case "(($ac_try" in
9771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772   *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775   (eval "$ac_link") 2>conftest.er1
9776   ac_status=$?
9777   grep -v '^ *+' conftest.er1 >conftest.err
9778   rm -f conftest.er1
9779   cat conftest.err >&5
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } &&
9782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783   { (case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788   (eval "$ac_try") 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; } &&
9792          { ac_try='test -s conftest$ac_exeext'
9793   { (case "(($ac_try" in
9794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795   *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798   (eval "$ac_try") 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; }; then
9802   ac_cv_lib_dld_shl_load=yes
9803 else
9804   echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9806
9807         ac_cv_lib_dld_shl_load=no
9808 fi
9809
9810 rm -f core conftest.err conftest.$ac_objext \
9811       conftest$ac_exeext conftest.$ac_ext
9812 LIBS=$ac_check_lib_save_LIBS
9813 fi
9814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9815 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9816 if test $ac_cv_lib_dld_shl_load = yes; then
9817
9818 cat >>confdefs.h <<\_ACEOF
9819 #define HAVE_SHL_LOAD 1
9820 _ACEOF
9821
9822         LIBADD_DL="$LIBADD_DL -ldld"
9823 else
9824   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9825 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9826 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   ac_check_lib_save_LIBS=$LIBS
9830 LIBS="-ldl  $LIBS"
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837
9838 /* Override any GCC internal prototype to avoid an error.
9839    Use char because int might match the return type of a GCC
9840    builtin and then its argument prototype would still apply.  */
9841 #ifdef __cplusplus
9842 extern "C"
9843 #endif
9844 char dlopen ();
9845 int
9846 main ()
9847 {
9848 return dlopen ();
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9855 case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_link") 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868   { (case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_try") 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); }; } &&
9877          { ac_try='test -s conftest$ac_exeext'
9878   { (case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_try") 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; }; then
9887   ac_cv_lib_dl_dlopen=yes
9888 else
9889   echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892         ac_cv_lib_dl_dlopen=no
9893 fi
9894
9895 rm -f core conftest.err conftest.$ac_objext \
9896       conftest$ac_exeext conftest.$ac_ext
9897 LIBS=$ac_check_lib_save_LIBS
9898 fi
9899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9900 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9901 if test $ac_cv_lib_dl_dlopen = yes; then
9902
9903 cat >>confdefs.h <<\_ACEOF
9904 #define HAVE_LIBDL 1
9905 _ACEOF
9906
9907                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9908 else
9909   cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h.  */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h.  */
9915 #if HAVE_DLFCN_H
9916 #  include <dlfcn.h>
9917 #endif
9918
9919 int
9920 main ()
9921 {
9922 dlopen(0, 0);
9923   ;
9924   return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9929 case "(($ac_try" in
9930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931   *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934   (eval "$ac_link") 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9942   { (case "(($ac_try" in
9943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944   *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947   (eval "$ac_try") 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); }; } &&
9951          { ac_try='test -s conftest$ac_exeext'
9952   { (case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_try") 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; }; then
9961
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_LIBDL 1
9964 _ACEOF
9965  libltdl_cv_func_dlopen="yes"
9966 else
9967   echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9971 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975   ac_check_lib_save_LIBS=$LIBS
9976 LIBS="-lsvld  $LIBS"
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983
9984 /* Override any GCC internal prototype to avoid an error.
9985    Use char because int might match the return type of a GCC
9986    builtin and then its argument prototype would still apply.  */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 char dlopen ();
9991 int
9992 main ()
9993 {
9994 return dlopen ();
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003   *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006   (eval "$ac_link") 2>conftest.er1
10007   ac_status=$?
10008   grep -v '^ *+' conftest.er1 >conftest.err
10009   rm -f conftest.er1
10010   cat conftest.err >&5
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); } &&
10013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014   { (case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_try") 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; } &&
10023          { ac_try='test -s conftest$ac_exeext'
10024   { (case "(($ac_try" in
10025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026   *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029   (eval "$ac_try") 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; }; then
10033   ac_cv_lib_svld_dlopen=yes
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038         ac_cv_lib_svld_dlopen=no
10039 fi
10040
10041 rm -f core conftest.err conftest.$ac_objext \
10042       conftest$ac_exeext conftest.$ac_ext
10043 LIBS=$ac_check_lib_save_LIBS
10044 fi
10045 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10046 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10047 if test $ac_cv_lib_svld_dlopen = yes; then
10048
10049 cat >>confdefs.h <<\_ACEOF
10050 #define HAVE_LIBDL 1
10051 _ACEOF
10052
10053                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10054 else
10055   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10056 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10057 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10058   echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060   ac_check_lib_save_LIBS=$LIBS
10061 LIBS="-ldld  $LIBS"
10062 cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h.  */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h.  */
10068
10069 /* Override any GCC internal prototype to avoid an error.
10070    Use char because int might match the return type of a GCC
10071    builtin and then its argument prototype would still apply.  */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 char dld_link ();
10076 int
10077 main ()
10078 {
10079 return dld_link ();
10080   ;
10081   return 0;
10082 }
10083 _ACEOF
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088   *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091   (eval "$ac_link") 2>conftest.er1
10092   ac_status=$?
10093   grep -v '^ *+' conftest.er1 >conftest.err
10094   rm -f conftest.er1
10095   cat conftest.err >&5
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } &&
10098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099   { (case "(($ac_try" in
10100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101   *) ac_try_echo=$ac_try;;
10102 esac
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104   (eval "$ac_try") 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; } &&
10108          { ac_try='test -s conftest$ac_exeext'
10109   { (case "(($ac_try" in
10110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111   *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114   (eval "$ac_try") 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); }; }; then
10118   ac_cv_lib_dld_dld_link=yes
10119 else
10120   echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123         ac_cv_lib_dld_dld_link=no
10124 fi
10125
10126 rm -f core conftest.err conftest.$ac_objext \
10127       conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10129 fi
10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10131 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10132 if test $ac_cv_lib_dld_dld_link = yes; then
10133
10134 cat >>confdefs.h <<\_ACEOF
10135 #define HAVE_DLD 1
10136 _ACEOF
10137
10138                 LIBADD_DL="$LIBADD_DL -ldld"
10139 else
10140   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10141 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10142 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10143   echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145   cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h.  */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h.  */
10151 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10153 #define _dyld_func_lookup innocuous__dyld_func_lookup
10154
10155 /* System header to define __stub macros and hopefully few prototypes,
10156     which can conflict with char _dyld_func_lookup (); below.
10157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158     <limits.h> exists even on freestanding compilers.  */
10159
10160 #ifdef __STDC__
10161 # include <limits.h>
10162 #else
10163 # include <assert.h>
10164 #endif
10165
10166 #undef _dyld_func_lookup
10167
10168 /* Override any GCC internal prototype to avoid an error.
10169    Use char because int might match the return type of a GCC
10170    builtin and then its argument prototype would still apply.  */
10171 #ifdef __cplusplus
10172 extern "C"
10173 #endif
10174 char _dyld_func_lookup ();
10175 /* The GNU C library defines this for functions which it implements
10176     to always fail with ENOSYS.  Some functions are actually named
10177     something starting with __ and the normal name is an alias.  */
10178 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10179 choke me
10180 #endif
10181
10182 int
10183 main ()
10184 {
10185 return _dyld_func_lookup ();
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194   *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197   (eval "$ac_link") 2>conftest.er1
10198   ac_status=$?
10199   grep -v '^ *+' conftest.er1 >conftest.err
10200   rm -f conftest.er1
10201   cat conftest.err >&5
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } &&
10204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10205   { (case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210   (eval "$ac_try") 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; } &&
10214          { ac_try='test -s conftest$ac_exeext'
10215   { (case "(($ac_try" in
10216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217   *) ac_try_echo=$ac_try;;
10218 esac
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220   (eval "$ac_try") 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; }; then
10224   ac_cv_func__dyld_func_lookup=yes
10225 else
10226   echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229         ac_cv_func__dyld_func_lookup=no
10230 fi
10231
10232 rm -f core conftest.err conftest.$ac_objext \
10233       conftest$ac_exeext conftest.$ac_ext
10234 fi
10235 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10236 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10237 if test $ac_cv_func__dyld_func_lookup = yes; then
10238
10239 cat >>confdefs.h <<\_ACEOF
10240 #define HAVE_DYLD 1
10241 _ACEOF
10242
10243 fi
10244
10245
10246 fi
10247
10248
10249 fi
10250
10251
10252 fi
10253
10254 rm -f core conftest.err conftest.$ac_objext \
10255       conftest$ac_exeext conftest.$ac_ext
10256
10257 fi
10258
10259
10260 fi
10261
10262
10263 fi
10264
10265
10266 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10267 then
10268   lt_save_LIBS="$LIBS"
10269   LIBS="$LIBS $LIBADD_DL"
10270
10271 for ac_func in dlerror
10272 do
10273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10287 #define $ac_func innocuous_$ac_func
10288
10289 /* System header to define __stub macros and hopefully few prototypes,
10290     which can conflict with char $ac_func (); below.
10291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10292     <limits.h> exists even on freestanding compilers.  */
10293
10294 #ifdef __STDC__
10295 # include <limits.h>
10296 #else
10297 # include <assert.h>
10298 #endif
10299
10300 #undef $ac_func
10301
10302 /* Override any GCC internal prototype to avoid an error.
10303    Use char because int might match the return type of a GCC
10304    builtin and then its argument prototype would still apply.  */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char $ac_func ();
10309 /* The GNU C library defines this for functions which it implements
10310     to always fail with ENOSYS.  Some functions are actually named
10311     something starting with __ and the normal name is an alias.  */
10312 #if defined __stub_$ac_func || defined __stub___$ac_func
10313 choke me
10314 #endif
10315
10316 int
10317 main ()
10318 {
10319 return $ac_func ();
10320   ;
10321   return 0;
10322 }
10323 _ACEOF
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (ac_try="$ac_link"
10326 case "(($ac_try" in
10327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328   *) ac_try_echo=$ac_try;;
10329 esac
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331   (eval "$ac_link") 2>conftest.er1
10332   ac_status=$?
10333   grep -v '^ *+' conftest.er1 >conftest.err
10334   rm -f conftest.er1
10335   cat conftest.err >&5
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); } &&
10338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10339   { (case "(($ac_try" in
10340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341   *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344   (eval "$ac_try") 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); }; } &&
10348          { ac_try='test -s conftest$ac_exeext'
10349   { (case "(($ac_try" in
10350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351   *) ac_try_echo=$ac_try;;
10352 esac
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354   (eval "$ac_try") 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   eval "$as_ac_var=yes"
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363         eval "$as_ac_var=no"
10364 fi
10365
10366 rm -f core conftest.err conftest.$ac_objext \
10367       conftest$ac_exeext conftest.$ac_ext
10368 fi
10369 ac_res=`eval echo '${'$as_ac_var'}'`
10370                { echo "$as_me:$LINENO: result: $ac_res" >&5
10371 echo "${ECHO_T}$ac_res" >&6; }
10372 if test `eval echo '${'$as_ac_var'}'` = yes; then
10373   cat >>confdefs.h <<_ACEOF
10374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10375 _ACEOF
10376
10377 fi
10378 done
10379
10380   LIBS="$lt_save_LIBS"
10381 fi
10382 ac_ext=c
10383 ac_cpp='$CPP $CPPFLAGS'
10384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10387
10388
10389
10390 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10391 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10392 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10393   echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395   ac_cv_sys_symbol_underscore=no
10396   cat > conftest.$ac_ext <<EOF
10397 void nm_test_func(){}
10398 int main(){nm_test_func;return 0;}
10399 EOF
10400   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10401   (eval $ac_compile) 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); }; then
10405     # Now try to grab the symbols.
10406     ac_nlist=conftest.nm
10407     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10408   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } && test -s "$ac_nlist"; then
10412       # See whether the symbols have a leading underscore.
10413       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10414         ac_cv_sys_symbol_underscore=yes
10415       else
10416         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10417           :
10418         else
10419           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10420         fi
10421       fi
10422     else
10423       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10424     fi
10425   else
10426     echo "configure: failed program was:" >&5
10427     cat conftest.c >&5
10428   fi
10429   rm -rf conftest*
10430
10431 fi
10432 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10433 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10434
10435
10436 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10437   if test x"$libltdl_cv_func_dlopen" = xyes ||
10438      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10439         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10440 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10441 if test "${libltdl_cv_need_uscore+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   libltdl_cv_need_uscore=unknown
10445           save_LIBS="$LIBS"
10446           LIBS="$LIBS $LIBADD_DL"
10447           if test "$cross_compiling" = yes; then :
10448   libltdl_cv_need_uscore=cross
10449 else
10450   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10451   lt_status=$lt_dlunknown
10452   cat > conftest.$ac_ext <<EOF
10453 #line 10453 "configure"
10454 #include "confdefs.h"
10455
10456 #if HAVE_DLFCN_H
10457 #include <dlfcn.h>
10458 #endif
10459
10460 #include <stdio.h>
10461
10462 #ifdef RTLD_GLOBAL
10463 #  define LT_DLGLOBAL           RTLD_GLOBAL
10464 #else
10465 #  ifdef DL_GLOBAL
10466 #    define LT_DLGLOBAL         DL_GLOBAL
10467 #  else
10468 #    define LT_DLGLOBAL         0
10469 #  endif
10470 #endif
10471
10472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10473    find out it does not work in some platform. */
10474 #ifndef LT_DLLAZY_OR_NOW
10475 #  ifdef RTLD_LAZY
10476 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10477 #  else
10478 #    ifdef DL_LAZY
10479 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10480 #    else
10481 #      ifdef RTLD_NOW
10482 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10483 #      else
10484 #        ifdef DL_NOW
10485 #          define LT_DLLAZY_OR_NOW      DL_NOW
10486 #        else
10487 #          define LT_DLLAZY_OR_NOW      0
10488 #        endif
10489 #      endif
10490 #    endif
10491 #  endif
10492 #endif
10493
10494 #ifdef __cplusplus
10495 extern "C" void exit (int);
10496 #endif
10497
10498 void fnord() { int i=42;}
10499 int main ()
10500 {
10501   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10502   int status = $lt_dlunknown;
10503
10504   if (self)
10505     {
10506       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10507       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10508       /* dlclose (self); */
10509     }
10510   else
10511     puts (dlerror ());
10512
10513     exit (status);
10514 }
10515 EOF
10516   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10517   (eval $ac_link) 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10521     (./conftest; exit; ) >&5 2>/dev/null
10522     lt_status=$?
10523     case x$lt_status in
10524       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10525       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10526       x$lt_dlunknown|x*)  ;;
10527     esac
10528   else :
10529     # compilation failed
10530
10531   fi
10532 fi
10533 rm -fr conftest*
10534
10535           LIBS="$save_LIBS"
10536
10537 fi
10538 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10539 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10540   fi
10541 fi
10542
10543 if test x"$libltdl_cv_need_uscore" = xyes; then
10544
10545 cat >>confdefs.h <<\_ACEOF
10546 #define NEED_USCORE 1
10547 _ACEOF
10548
10549 fi
10550
10551
10552 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10553 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10554 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   # PORTME does your system automatically load deplibs for dlopen?
10558   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10559   # For now, we just catch OSes we know something about -- in the
10560   # future, we'll try test this programmatically.
10561   libltdl_cv_sys_dlopen_deplibs=unknown
10562   case "$host_os" in
10563   aix3*|aix4.1.*|aix4.2.*)
10564     # Unknown whether this is true for these versions of AIX, but
10565     # we want this `case' here to explicitly catch those versions.
10566     libltdl_cv_sys_dlopen_deplibs=unknown
10567     ;;
10568   aix[45]*)
10569     libltdl_cv_sys_dlopen_deplibs=yes
10570     ;;
10571   darwin*)
10572     # Assuming the user has installed a libdl from somewhere, this is true
10573     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10574     libltdl_cv_sys_dlopen_deplibs=yes
10575     ;;
10576   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10577     # GNU and its variants, using gnu ld.so (Glibc)
10578     libltdl_cv_sys_dlopen_deplibs=yes
10579     ;;
10580   hpux10*|hpux11*)
10581     libltdl_cv_sys_dlopen_deplibs=yes
10582     ;;
10583   interix*)
10584     libltdl_cv_sys_dlopen_deplibs=yes
10585     ;;
10586   irix[12345]*|irix6.[01]*)
10587     # Catch all versions of IRIX before 6.2, and indicate that we don't
10588     # know how it worked for any of those versions.
10589     libltdl_cv_sys_dlopen_deplibs=unknown
10590     ;;
10591   irix*)
10592     # The case above catches anything before 6.2, and it's known that
10593     # at 6.2 and later dlopen does load deplibs.
10594     libltdl_cv_sys_dlopen_deplibs=yes
10595     ;;
10596   netbsd*)
10597     libltdl_cv_sys_dlopen_deplibs=yes
10598     ;;
10599   openbsd*)
10600     libltdl_cv_sys_dlopen_deplibs=yes
10601     ;;
10602   osf[1234]*)
10603     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10604     # it did *not* use an RPATH in a shared library to find objects the
10605     # library depends on, so we explictly say `no'.
10606     libltdl_cv_sys_dlopen_deplibs=no
10607     ;;
10608   osf5.0|osf5.0a|osf5.1)
10609     # dlopen *does* load deplibs and with the right loader patch applied
10610     # it even uses RPATH in a shared library to search for shared objects
10611     # that the library depends on, but there's no easy way to know if that
10612     # patch is installed.  Since this is the case, all we can really
10613     # say is unknown -- it depends on the patch being installed.  If
10614     # it is, this changes to `yes'.  Without it, it would be `no'.
10615     libltdl_cv_sys_dlopen_deplibs=unknown
10616     ;;
10617   osf*)
10618     # the two cases above should catch all versions of osf <= 5.1.  Read
10619     # the comments above for what we know about them.
10620     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10621     # is used to find them so we can finally say `yes'.
10622     libltdl_cv_sys_dlopen_deplibs=yes
10623     ;;
10624   solaris*)
10625     libltdl_cv_sys_dlopen_deplibs=yes
10626     ;;
10627   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10628     libltdl_cv_sys_dlopen_deplibs=yes
10629     ;;
10630   esac
10631
10632 fi
10633 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10634 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10635 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10636
10637 cat >>confdefs.h <<\_ACEOF
10638 #define LTDL_DLOPEN_DEPLIBS 1
10639 _ACEOF
10640
10641 fi
10642
10643
10644 for ac_header in argz.h
10645 do
10646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10651   echo $ECHO_N "(cached) $ECHO_C" >&6
10652 fi
10653 ac_res=`eval echo '${'$as_ac_Header'}'`
10654                { echo "$as_me:$LINENO: result: $ac_res" >&5
10655 echo "${ECHO_T}$ac_res" >&6; }
10656 else
10657   # Is the header compilable?
10658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10660 cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h.  */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h.  */
10666 $ac_includes_default
10667 #include <$ac_header>
10668 _ACEOF
10669 rm -f conftest.$ac_objext
10670 if { (ac_try="$ac_compile"
10671 case "(($ac_try" in
10672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673   *) ac_try_echo=$ac_try;;
10674 esac
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676   (eval "$ac_compile") 2>conftest.er1
10677   ac_status=$?
10678   grep -v '^ *+' conftest.er1 >conftest.err
10679   rm -f conftest.er1
10680   cat conftest.err >&5
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); } &&
10683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684   { (case "(($ac_try" in
10685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686   *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689   (eval "$ac_try") 2>&5
10690   ac_status=$?
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); }; } &&
10693          { ac_try='test -s conftest.$ac_objext'
10694   { (case "(($ac_try" in
10695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696   *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699   (eval "$ac_try") 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); }; }; then
10703   ac_header_compiler=yes
10704 else
10705   echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708         ac_header_compiler=no
10709 fi
10710
10711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10713 echo "${ECHO_T}$ac_header_compiler" >&6; }
10714
10715 # Is the header present?
10716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10718 cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h.  */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h.  */
10724 #include <$ac_header>
10725 _ACEOF
10726 if { (ac_try="$ac_cpp conftest.$ac_ext"
10727 case "(($ac_try" in
10728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729   *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10733   ac_status=$?
10734   grep -v '^ *+' conftest.er1 >conftest.err
10735   rm -f conftest.er1
10736   cat conftest.err >&5
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); } >/dev/null; then
10739   if test -s conftest.err; then
10740     ac_cpp_err=$ac_c_preproc_warn_flag
10741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10742   else
10743     ac_cpp_err=
10744   fi
10745 else
10746   ac_cpp_err=yes
10747 fi
10748 if test -z "$ac_cpp_err"; then
10749   ac_header_preproc=yes
10750 else
10751   echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754   ac_header_preproc=no
10755 fi
10756
10757 rm -f conftest.err conftest.$ac_ext
10758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10759 echo "${ECHO_T}$ac_header_preproc" >&6; }
10760
10761 # So?  What about this header?
10762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10763   yes:no: )
10764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10768     ac_header_preproc=yes
10769     ;;
10770   no:yes:* )
10771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10783     ( cat <<\_ASBOX
10784 ## ----------------------------------- ##
10785 ## Report this to llvmbugs@cs.uiuc.edu ##
10786 ## ----------------------------------- ##
10787 _ASBOX
10788      ) | sed "s/^/$as_me: WARNING:     /" >&2
10789     ;;
10790 esac
10791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10794   echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796   eval "$as_ac_Header=\$ac_header_preproc"
10797 fi
10798 ac_res=`eval echo '${'$as_ac_Header'}'`
10799                { echo "$as_me:$LINENO: result: $ac_res" >&5
10800 echo "${ECHO_T}$ac_res" >&6; }
10801
10802 fi
10803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10804   cat >>confdefs.h <<_ACEOF
10805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10806 _ACEOF
10807
10808 fi
10809
10810 done
10811
10812
10813 { echo "$as_me:$LINENO: checking for error_t" >&5
10814 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10815 if test "${ac_cv_type_error_t+set}" = set; then
10816   echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818   cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824 #if HAVE_ARGZ_H
10825 #  include <argz.h>
10826 #endif
10827
10828 typedef error_t ac__type_new_;
10829 int
10830 main ()
10831 {
10832 if ((ac__type_new_ *) 0)
10833   return 0;
10834 if (sizeof (ac__type_new_))
10835   return 0;
10836   ;
10837   return 0;
10838 }
10839 _ACEOF
10840 rm -f conftest.$ac_objext
10841 if { (ac_try="$ac_compile"
10842 case "(($ac_try" in
10843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844   *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847   (eval "$ac_compile") 2>conftest.er1
10848   ac_status=$?
10849   grep -v '^ *+' conftest.er1 >conftest.err
10850   rm -f conftest.er1
10851   cat conftest.err >&5
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); } &&
10854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855   { (case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_try") 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; } &&
10864          { ac_try='test -s conftest.$ac_objext'
10865   { (case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_try") 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; }; then
10874   ac_cv_type_error_t=yes
10875 else
10876   echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879         ac_cv_type_error_t=no
10880 fi
10881
10882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883 fi
10884 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10885 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10886 if test $ac_cv_type_error_t = yes; then
10887
10888 cat >>confdefs.h <<_ACEOF
10889 #define HAVE_ERROR_T 1
10890 _ACEOF
10891
10892
10893 else
10894
10895 cat >>confdefs.h <<\_ACEOF
10896 #define error_t int
10897 _ACEOF
10898
10899 fi
10900
10901
10902
10903
10904
10905
10906
10907 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10908 do
10909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10913   echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915   cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h.  */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h.  */
10921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10923 #define $ac_func innocuous_$ac_func
10924
10925 /* System header to define __stub macros and hopefully few prototypes,
10926     which can conflict with char $ac_func (); below.
10927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10928     <limits.h> exists even on freestanding compilers.  */
10929
10930 #ifdef __STDC__
10931 # include <limits.h>
10932 #else
10933 # include <assert.h>
10934 #endif
10935
10936 #undef $ac_func
10937
10938 /* Override any GCC internal prototype to avoid an error.
10939    Use char because int might match the return type of a GCC
10940    builtin and then its argument prototype would still apply.  */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char $ac_func ();
10945 /* The GNU C library defines this for functions which it implements
10946     to always fail with ENOSYS.  Some functions are actually named
10947     something starting with __ and the normal name is an alias.  */
10948 #if defined __stub_$ac_func || defined __stub___$ac_func
10949 choke me
10950 #endif
10951
10952 int
10953 main ()
10954 {
10955 return $ac_func ();
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (ac_try="$ac_link"
10962 case "(($ac_try" in
10963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964   *) ac_try_echo=$ac_try;;
10965 esac
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967   (eval "$ac_link") 2>conftest.er1
10968   ac_status=$?
10969   grep -v '^ *+' conftest.er1 >conftest.err
10970   rm -f conftest.er1
10971   cat conftest.err >&5
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); } &&
10974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10975   { (case "(($ac_try" in
10976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977   *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980   (eval "$ac_try") 2>&5
10981   ac_status=$?
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); }; } &&
10984          { ac_try='test -s conftest$ac_exeext'
10985   { (case "(($ac_try" in
10986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987   *) ac_try_echo=$ac_try;;
10988 esac
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990   (eval "$ac_try") 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; }; then
10994   eval "$as_ac_var=yes"
10995 else
10996   echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10998
10999         eval "$as_ac_var=no"
11000 fi
11001
11002 rm -f core conftest.err conftest.$ac_objext \
11003       conftest$ac_exeext conftest.$ac_ext
11004 fi
11005 ac_res=`eval echo '${'$as_ac_var'}'`
11006                { echo "$as_me:$LINENO: result: $ac_res" >&5
11007 echo "${ECHO_T}$ac_res" >&6; }
11008 if test `eval echo '${'$as_ac_var'}'` = yes; then
11009   cat >>confdefs.h <<_ACEOF
11010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11011 _ACEOF
11012
11013 fi
11014 done
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11044                   stdio.h unistd.h
11045 do
11046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11048   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051   echo $ECHO_N "(cached) $ECHO_C" >&6
11052 fi
11053 ac_res=`eval echo '${'$as_ac_Header'}'`
11054                { echo "$as_me:$LINENO: result: $ac_res" >&5
11055 echo "${ECHO_T}$ac_res" >&6; }
11056 else
11057   # Is the header compilable?
11058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11060 cat >conftest.$ac_ext <<_ACEOF
11061 /* confdefs.h.  */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h.  */
11066 $ac_includes_default
11067 #include <$ac_header>
11068 _ACEOF
11069 rm -f conftest.$ac_objext
11070 if { (ac_try="$ac_compile"
11071 case "(($ac_try" in
11072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073   *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076   (eval "$ac_compile") 2>conftest.er1
11077   ac_status=$?
11078   grep -v '^ *+' conftest.er1 >conftest.err
11079   rm -f conftest.er1
11080   cat conftest.err >&5
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); } &&
11083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11084   { (case "(($ac_try" in
11085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086   *) ac_try_echo=$ac_try;;
11087 esac
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089   (eval "$ac_try") 2>&5
11090   ac_status=$?
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); }; } &&
11093          { ac_try='test -s conftest.$ac_objext'
11094   { (case "(($ac_try" in
11095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096   *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099   (eval "$ac_try") 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; }; then
11103   ac_header_compiler=yes
11104 else
11105   echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108         ac_header_compiler=no
11109 fi
11110
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11113 echo "${ECHO_T}$ac_header_compiler" >&6; }
11114
11115 # Is the header present?
11116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124 #include <$ac_header>
11125 _ACEOF
11126 if { (ac_try="$ac_cpp conftest.$ac_ext"
11127 case "(($ac_try" in
11128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129   *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11133   ac_status=$?
11134   grep -v '^ *+' conftest.er1 >conftest.err
11135   rm -f conftest.er1
11136   cat conftest.err >&5
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } >/dev/null; then
11139   if test -s conftest.err; then
11140     ac_cpp_err=$ac_c_preproc_warn_flag
11141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11142   else
11143     ac_cpp_err=
11144   fi
11145 else
11146   ac_cpp_err=yes
11147 fi
11148 if test -z "$ac_cpp_err"; then
11149   ac_header_preproc=yes
11150 else
11151   echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154   ac_header_preproc=no
11155 fi
11156
11157 rm -f conftest.err conftest.$ac_ext
11158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11159 echo "${ECHO_T}$ac_header_preproc" >&6; }
11160
11161 # So?  What about this header?
11162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11163   yes:no: )
11164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11168     ac_header_preproc=yes
11169     ;;
11170   no:yes:* )
11171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11183     ( cat <<\_ASBOX
11184 ## ----------------------------------- ##
11185 ## Report this to llvmbugs@cs.uiuc.edu ##
11186 ## ----------------------------------- ##
11187 _ASBOX
11188      ) | sed "s/^/$as_me: WARNING:     /" >&2
11189     ;;
11190 esac
11191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196   eval "$as_ac_Header=\$ac_header_preproc"
11197 fi
11198 ac_res=`eval echo '${'$as_ac_Header'}'`
11199                { echo "$as_me:$LINENO: result: $ac_res" >&5
11200 echo "${ECHO_T}$ac_res" >&6; }
11201
11202 fi
11203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11204   cat >>confdefs.h <<_ACEOF
11205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11206 _ACEOF
11207
11208 fi
11209
11210 done
11211
11212
11213
11214
11215
11216 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11217 do
11218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11220   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11223   echo $ECHO_N "(cached) $ECHO_C" >&6
11224 fi
11225 ac_res=`eval echo '${'$as_ac_Header'}'`
11226                { echo "$as_me:$LINENO: result: $ac_res" >&5
11227 echo "${ECHO_T}$ac_res" >&6; }
11228 else
11229   # Is the header compilable?
11230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h.  */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h.  */
11238 $ac_includes_default
11239 #include <$ac_header>
11240 _ACEOF
11241 rm -f conftest.$ac_objext
11242 if { (ac_try="$ac_compile"
11243 case "(($ac_try" in
11244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245   *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248   (eval "$ac_compile") 2>conftest.er1
11249   ac_status=$?
11250   grep -v '^ *+' conftest.er1 >conftest.err
11251   rm -f conftest.er1
11252   cat conftest.err >&5
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } &&
11255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11256   { (case "(($ac_try" in
11257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258   *) ac_try_echo=$ac_try;;
11259 esac
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261   (eval "$ac_try") 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; } &&
11265          { ac_try='test -s conftest.$ac_objext'
11266   { (case "(($ac_try" in
11267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268   *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271   (eval "$ac_try") 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }; then
11275   ac_header_compiler=yes
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280         ac_header_compiler=no
11281 fi
11282
11283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11285 echo "${ECHO_T}$ac_header_compiler" >&6; }
11286
11287 # Is the header present?
11288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11290 cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h.  */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h.  */
11296 #include <$ac_header>
11297 _ACEOF
11298 if { (ac_try="$ac_cpp conftest.$ac_ext"
11299 case "(($ac_try" in
11300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301   *) ac_try_echo=$ac_try;;
11302 esac
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11305   ac_status=$?
11306   grep -v '^ *+' conftest.er1 >conftest.err
11307   rm -f conftest.er1
11308   cat conftest.err >&5
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } >/dev/null; then
11311   if test -s conftest.err; then
11312     ac_cpp_err=$ac_c_preproc_warn_flag
11313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11314   else
11315     ac_cpp_err=
11316   fi
11317 else
11318   ac_cpp_err=yes
11319 fi
11320 if test -z "$ac_cpp_err"; then
11321   ac_header_preproc=yes
11322 else
11323   echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326   ac_header_preproc=no
11327 fi
11328
11329 rm -f conftest.err conftest.$ac_ext
11330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11331 echo "${ECHO_T}$ac_header_preproc" >&6; }
11332
11333 # So?  What about this header?
11334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11335   yes:no: )
11336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11340     ac_header_preproc=yes
11341     ;;
11342   no:yes:* )
11343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11355     ( cat <<\_ASBOX
11356 ## ----------------------------------- ##
11357 ## Report this to llvmbugs@cs.uiuc.edu ##
11358 ## ----------------------------------- ##
11359 _ASBOX
11360      ) | sed "s/^/$as_me: WARNING:     /" >&2
11361     ;;
11362 esac
11363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11366   echo $ECHO_N "(cached) $ECHO_C" >&6
11367 else
11368   eval "$as_ac_Header=\$ac_header_preproc"
11369 fi
11370 ac_res=`eval echo '${'$as_ac_Header'}'`
11371                { echo "$as_me:$LINENO: result: $ac_res" >&5
11372 echo "${ECHO_T}$ac_res" >&6; }
11373
11374 fi
11375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11376   cat >>confdefs.h <<_ACEOF
11377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11378 _ACEOF
11379
11380 fi
11381
11382 done
11383
11384
11385
11386 for ac_header in string.h strings.h
11387 do
11388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11390   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11393   echo $ECHO_N "(cached) $ECHO_C" >&6
11394 fi
11395 ac_res=`eval echo '${'$as_ac_Header'}'`
11396                { echo "$as_me:$LINENO: result: $ac_res" >&5
11397 echo "${ECHO_T}$ac_res" >&6; }
11398 else
11399   # Is the header compilable?
11400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h.  */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h.  */
11408 $ac_includes_default
11409 #include <$ac_header>
11410 _ACEOF
11411 rm -f conftest.$ac_objext
11412 if { (ac_try="$ac_compile"
11413 case "(($ac_try" in
11414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415   *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418   (eval "$ac_compile") 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } &&
11425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11426   { (case "(($ac_try" in
11427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428   *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431   (eval "$ac_try") 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; } &&
11435          { ac_try='test -s conftest.$ac_objext'
11436   { (case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441   (eval "$ac_try") 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; }; then
11445   ac_header_compiler=yes
11446 else
11447   echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11449
11450         ac_header_compiler=no
11451 fi
11452
11453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11455 echo "${ECHO_T}$ac_header_compiler" >&6; }
11456
11457 # Is the header present?
11458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466 #include <$ac_header>
11467 _ACEOF
11468 if { (ac_try="$ac_cpp conftest.$ac_ext"
11469 case "(($ac_try" in
11470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471   *) ac_try_echo=$ac_try;;
11472 esac
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11475   ac_status=$?
11476   grep -v '^ *+' conftest.er1 >conftest.err
11477   rm -f conftest.er1
11478   cat conftest.err >&5
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); } >/dev/null; then
11481   if test -s conftest.err; then
11482     ac_cpp_err=$ac_c_preproc_warn_flag
11483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11484   else
11485     ac_cpp_err=
11486   fi
11487 else
11488   ac_cpp_err=yes
11489 fi
11490 if test -z "$ac_cpp_err"; then
11491   ac_header_preproc=yes
11492 else
11493   echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11495
11496   ac_header_preproc=no
11497 fi
11498
11499 rm -f conftest.err conftest.$ac_ext
11500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11501 echo "${ECHO_T}$ac_header_preproc" >&6; }
11502
11503 # So?  What about this header?
11504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11505   yes:no: )
11506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11510     ac_header_preproc=yes
11511     ;;
11512   no:yes:* )
11513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11525     ( cat <<\_ASBOX
11526 ## ----------------------------------- ##
11527 ## Report this to llvmbugs@cs.uiuc.edu ##
11528 ## ----------------------------------- ##
11529 _ASBOX
11530      ) | sed "s/^/$as_me: WARNING:     /" >&2
11531     ;;
11532 esac
11533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11536   echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538   eval "$as_ac_Header=\$ac_header_preproc"
11539 fi
11540 ac_res=`eval echo '${'$as_ac_Header'}'`
11541                { echo "$as_me:$LINENO: result: $ac_res" >&5
11542 echo "${ECHO_T}$ac_res" >&6; }
11543
11544 fi
11545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11546   cat >>confdefs.h <<_ACEOF
11547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11548 _ACEOF
11549  break
11550 fi
11551
11552 done
11553
11554
11555
11556
11557 for ac_func in strchr index
11558 do
11559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11563   echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565   cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11573 #define $ac_func innocuous_$ac_func
11574
11575 /* System header to define __stub macros and hopefully few prototypes,
11576     which can conflict with char $ac_func (); below.
11577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11578     <limits.h> exists even on freestanding compilers.  */
11579
11580 #ifdef __STDC__
11581 # include <limits.h>
11582 #else
11583 # include <assert.h>
11584 #endif
11585
11586 #undef $ac_func
11587
11588 /* Override any GCC internal prototype to avoid an error.
11589    Use char because int might match the return type of a GCC
11590    builtin and then its argument prototype would still apply.  */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 char $ac_func ();
11595 /* The GNU C library defines this for functions which it implements
11596     to always fail with ENOSYS.  Some functions are actually named
11597     something starting with __ and the normal name is an alias.  */
11598 #if defined __stub_$ac_func || defined __stub___$ac_func
11599 choke me
11600 #endif
11601
11602 int
11603 main ()
11604 {
11605 return $ac_func ();
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (ac_try="$ac_link"
11612 case "(($ac_try" in
11613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614   *) ac_try_echo=$ac_try;;
11615 esac
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617   (eval "$ac_link") 2>conftest.er1
11618   ac_status=$?
11619   grep -v '^ *+' conftest.er1 >conftest.err
11620   rm -f conftest.er1
11621   cat conftest.err >&5
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); } &&
11624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11625   { (case "(($ac_try" in
11626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627   *) ac_try_echo=$ac_try;;
11628 esac
11629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630   (eval "$ac_try") 2>&5
11631   ac_status=$?
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); }; } &&
11634          { ac_try='test -s conftest$ac_exeext'
11635   { (case "(($ac_try" in
11636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637   *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640   (eval "$ac_try") 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; }; then
11644   eval "$as_ac_var=yes"
11645 else
11646   echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649         eval "$as_ac_var=no"
11650 fi
11651
11652 rm -f core conftest.err conftest.$ac_objext \
11653       conftest$ac_exeext conftest.$ac_ext
11654 fi
11655 ac_res=`eval echo '${'$as_ac_var'}'`
11656                { echo "$as_me:$LINENO: result: $ac_res" >&5
11657 echo "${ECHO_T}$ac_res" >&6; }
11658 if test `eval echo '${'$as_ac_var'}'` = yes; then
11659   cat >>confdefs.h <<_ACEOF
11660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11661 _ACEOF
11662  break
11663 fi
11664 done
11665
11666
11667
11668 for ac_func in strrchr rindex
11669 do
11670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676   cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h.  */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h.  */
11682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11684 #define $ac_func innocuous_$ac_func
11685
11686 /* System header to define __stub macros and hopefully few prototypes,
11687     which can conflict with char $ac_func (); below.
11688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689     <limits.h> exists even on freestanding compilers.  */
11690
11691 #ifdef __STDC__
11692 # include <limits.h>
11693 #else
11694 # include <assert.h>
11695 #endif
11696
11697 #undef $ac_func
11698
11699 /* Override any GCC internal prototype to avoid an error.
11700    Use char because int might match the return type of a GCC
11701    builtin and then its argument prototype would still apply.  */
11702 #ifdef __cplusplus
11703 extern "C"
11704 #endif
11705 char $ac_func ();
11706 /* The GNU C library defines this for functions which it implements
11707     to always fail with ENOSYS.  Some functions are actually named
11708     something starting with __ and the normal name is an alias.  */
11709 #if defined __stub_$ac_func || defined __stub___$ac_func
11710 choke me
11711 #endif
11712
11713 int
11714 main ()
11715 {
11716 return $ac_func ();
11717   ;
11718   return 0;
11719 }
11720 _ACEOF
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (ac_try="$ac_link"
11723 case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728   (eval "$ac_link") 2>conftest.er1
11729   ac_status=$?
11730   grep -v '^ *+' conftest.er1 >conftest.err
11731   rm -f conftest.er1
11732   cat conftest.err >&5
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); } &&
11735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11736   { (case "(($ac_try" in
11737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738   *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741   (eval "$ac_try") 2>&5
11742   ac_status=$?
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); }; } &&
11745          { ac_try='test -s conftest$ac_exeext'
11746   { (case "(($ac_try" in
11747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748   *) ac_try_echo=$ac_try;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751   (eval "$ac_try") 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }; }; then
11755   eval "$as_ac_var=yes"
11756 else
11757   echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11759
11760         eval "$as_ac_var=no"
11761 fi
11762
11763 rm -f core conftest.err conftest.$ac_objext \
11764       conftest$ac_exeext conftest.$ac_ext
11765 fi
11766 ac_res=`eval echo '${'$as_ac_var'}'`
11767                { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11769 if test `eval echo '${'$as_ac_var'}'` = yes; then
11770   cat >>confdefs.h <<_ACEOF
11771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11772 _ACEOF
11773  break
11774 fi
11775 done
11776
11777
11778
11779 for ac_func in memcpy bcopy
11780 do
11781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11785   echo $ECHO_N "(cached) $ECHO_C" >&6
11786 else
11787   cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h.  */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h.  */
11793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11795 #define $ac_func innocuous_$ac_func
11796
11797 /* System header to define __stub macros and hopefully few prototypes,
11798     which can conflict with char $ac_func (); below.
11799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11800     <limits.h> exists even on freestanding compilers.  */
11801
11802 #ifdef __STDC__
11803 # include <limits.h>
11804 #else
11805 # include <assert.h>
11806 #endif
11807
11808 #undef $ac_func
11809
11810 /* Override any GCC internal prototype to avoid an error.
11811    Use char because int might match the return type of a GCC
11812    builtin and then its argument prototype would still apply.  */
11813 #ifdef __cplusplus
11814 extern "C"
11815 #endif
11816 char $ac_func ();
11817 /* The GNU C library defines this for functions which it implements
11818     to always fail with ENOSYS.  Some functions are actually named
11819     something starting with __ and the normal name is an alias.  */
11820 #if defined __stub_$ac_func || defined __stub___$ac_func
11821 choke me
11822 #endif
11823
11824 int
11825 main ()
11826 {
11827 return $ac_func ();
11828   ;
11829   return 0;
11830 }
11831 _ACEOF
11832 rm -f conftest.$ac_objext conftest$ac_exeext
11833 if { (ac_try="$ac_link"
11834 case "(($ac_try" in
11835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836   *) ac_try_echo=$ac_try;;
11837 esac
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839   (eval "$ac_link") 2>conftest.er1
11840   ac_status=$?
11841   grep -v '^ *+' conftest.er1 >conftest.err
11842   rm -f conftest.er1
11843   cat conftest.err >&5
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); } &&
11846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11847   { (case "(($ac_try" in
11848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849   *) ac_try_echo=$ac_try;;
11850 esac
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852   (eval "$ac_try") 2>&5
11853   ac_status=$?
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); }; } &&
11856          { ac_try='test -s conftest$ac_exeext'
11857   { (case "(($ac_try" in
11858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859   *) ac_try_echo=$ac_try;;
11860 esac
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862   (eval "$ac_try") 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); }; }; then
11866   eval "$as_ac_var=yes"
11867 else
11868   echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871         eval "$as_ac_var=no"
11872 fi
11873
11874 rm -f core conftest.err conftest.$ac_objext \
11875       conftest$ac_exeext conftest.$ac_ext
11876 fi
11877 ac_res=`eval echo '${'$as_ac_var'}'`
11878                { echo "$as_me:$LINENO: result: $ac_res" >&5
11879 echo "${ECHO_T}$ac_res" >&6; }
11880 if test `eval echo '${'$as_ac_var'}'` = yes; then
11881   cat >>confdefs.h <<_ACEOF
11882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11883 _ACEOF
11884  break
11885 fi
11886 done
11887
11888
11889
11890 for ac_func in memmove strcmp
11891 do
11892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11896   echo $ECHO_N "(cached) $ECHO_C" >&6
11897 else
11898   cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h.  */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h.  */
11904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11906 #define $ac_func innocuous_$ac_func
11907
11908 /* System header to define __stub macros and hopefully few prototypes,
11909     which can conflict with char $ac_func (); below.
11910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911     <limits.h> exists even on freestanding compilers.  */
11912
11913 #ifdef __STDC__
11914 # include <limits.h>
11915 #else
11916 # include <assert.h>
11917 #endif
11918
11919 #undef $ac_func
11920
11921 /* Override any GCC internal prototype to avoid an error.
11922    Use char because int might match the return type of a GCC
11923    builtin and then its argument prototype would still apply.  */
11924 #ifdef __cplusplus
11925 extern "C"
11926 #endif
11927 char $ac_func ();
11928 /* The GNU C library defines this for functions which it implements
11929     to always fail with ENOSYS.  Some functions are actually named
11930     something starting with __ and the normal name is an alias.  */
11931 #if defined __stub_$ac_func || defined __stub___$ac_func
11932 choke me
11933 #endif
11934
11935 int
11936 main ()
11937 {
11938 return $ac_func ();
11939   ;
11940   return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947   *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950   (eval "$ac_link") 2>conftest.er1
11951   ac_status=$?
11952   grep -v '^ *+' conftest.er1 >conftest.err
11953   rm -f conftest.er1
11954   cat conftest.err >&5
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); } &&
11957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11958   { (case "(($ac_try" in
11959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960   *) ac_try_echo=$ac_try;;
11961 esac
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963   (eval "$ac_try") 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); }; } &&
11967          { ac_try='test -s conftest$ac_exeext'
11968   { (case "(($ac_try" in
11969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970   *) ac_try_echo=$ac_try;;
11971 esac
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973   (eval "$ac_try") 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); }; }; then
11977   eval "$as_ac_var=yes"
11978 else
11979   echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982         eval "$as_ac_var=no"
11983 fi
11984
11985 rm -f core conftest.err conftest.$ac_objext \
11986       conftest$ac_exeext conftest.$ac_ext
11987 fi
11988 ac_res=`eval echo '${'$as_ac_var'}'`
11989                { echo "$as_me:$LINENO: result: $ac_res" >&5
11990 echo "${ECHO_T}$ac_res" >&6; }
11991 if test `eval echo '${'$as_ac_var'}'` = yes; then
11992   cat >>confdefs.h <<_ACEOF
11993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11994 _ACEOF
11995
11996 fi
11997 done
11998
11999
12000
12001
12002 for ac_func in closedir opendir readdir
12003 do
12004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12018 #define $ac_func innocuous_$ac_func
12019
12020 /* System header to define __stub macros and hopefully few prototypes,
12021     which can conflict with char $ac_func (); below.
12022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12023     <limits.h> exists even on freestanding compilers.  */
12024
12025 #ifdef __STDC__
12026 # include <limits.h>
12027 #else
12028 # include <assert.h>
12029 #endif
12030
12031 #undef $ac_func
12032
12033 /* Override any GCC internal prototype to avoid an error.
12034    Use char because int might match the return type of a GCC
12035    builtin and then its argument prototype would still apply.  */
12036 #ifdef __cplusplus
12037 extern "C"
12038 #endif
12039 char $ac_func ();
12040 /* The GNU C library defines this for functions which it implements
12041     to always fail with ENOSYS.  Some functions are actually named
12042     something starting with __ and the normal name is an alias.  */
12043 #if defined __stub_$ac_func || defined __stub___$ac_func
12044 choke me
12045 #endif
12046
12047 int
12048 main ()
12049 {
12050 return $ac_func ();
12051   ;
12052   return 0;
12053 }
12054 _ACEOF
12055 rm -f conftest.$ac_objext conftest$ac_exeext
12056 if { (ac_try="$ac_link"
12057 case "(($ac_try" in
12058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059   *) ac_try_echo=$ac_try;;
12060 esac
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062   (eval "$ac_link") 2>conftest.er1
12063   ac_status=$?
12064   grep -v '^ *+' conftest.er1 >conftest.err
12065   rm -f conftest.er1
12066   cat conftest.err >&5
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } &&
12069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12076   ac_status=$?
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); }; } &&
12079          { ac_try='test -s conftest$ac_exeext'
12080   { (case "(($ac_try" in
12081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082   *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085   (eval "$ac_try") 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; }; then
12089   eval "$as_ac_var=yes"
12090 else
12091   echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094         eval "$as_ac_var=no"
12095 fi
12096
12097 rm -f core conftest.err conftest.$ac_objext \
12098       conftest$ac_exeext conftest.$ac_ext
12099 fi
12100 ac_res=`eval echo '${'$as_ac_var'}'`
12101                { echo "$as_me:$LINENO: result: $ac_res" >&5
12102 echo "${ECHO_T}$ac_res" >&6; }
12103 if test `eval echo '${'$as_ac_var'}'` = yes; then
12104   cat >>confdefs.h <<_ACEOF
12105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12106 _ACEOF
12107
12108 fi
12109 done
12110
12111
12112 # Check whether --enable-shared was given.
12113 if test "${enable_shared+set}" = set; then
12114   enableval=$enable_shared; p=${PACKAGE-default}
12115     case $enableval in
12116     yes) enable_shared=yes ;;
12117     no) enable_shared=no ;;
12118     *)
12119       enable_shared=no
12120       # Look at the argument we got.  We use all the common list separators.
12121       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12122       for pkg in $enableval; do
12123         IFS="$lt_save_ifs"
12124         if test "X$pkg" = "X$p"; then
12125           enable_shared=yes
12126         fi
12127       done
12128       IFS="$lt_save_ifs"
12129       ;;
12130     esac
12131 else
12132   enable_shared=yes
12133 fi
12134
12135
12136 # Check whether --enable-static was given.
12137 if test "${enable_static+set}" = set; then
12138   enableval=$enable_static; p=${PACKAGE-default}
12139     case $enableval in
12140     yes) enable_static=yes ;;
12141     no) enable_static=no ;;
12142     *)
12143      enable_static=no
12144       # Look at the argument we got.  We use all the common list separators.
12145       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12146       for pkg in $enableval; do
12147         IFS="$lt_save_ifs"
12148         if test "X$pkg" = "X$p"; then
12149           enable_static=yes
12150         fi
12151       done
12152       IFS="$lt_save_ifs"
12153       ;;
12154     esac
12155 else
12156   enable_static=yes
12157 fi
12158
12159
12160 # Check whether --enable-fast-install was given.
12161 if test "${enable_fast_install+set}" = set; then
12162   enableval=$enable_fast_install; p=${PACKAGE-default}
12163     case $enableval in
12164     yes) enable_fast_install=yes ;;
12165     no) enable_fast_install=no ;;
12166     *)
12167       enable_fast_install=no
12168       # Look at the argument we got.  We use all the common list separators.
12169       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12170       for pkg in $enableval; do
12171         IFS="$lt_save_ifs"
12172         if test "X$pkg" = "X$p"; then
12173           enable_fast_install=yes
12174         fi
12175       done
12176       IFS="$lt_save_ifs"
12177       ;;
12178     esac
12179 else
12180   enable_fast_install=yes
12181 fi
12182
12183
12184 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12185 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12186 if test "${lt_cv_path_SED+set}" = set; then
12187   echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189   # Loop through the user's path and test for sed and gsed.
12190 # Then use that list of sed's as ones to test for truncation.
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12193 do
12194   IFS=$as_save_IFS
12195   test -z "$as_dir" && as_dir=.
12196   for lt_ac_prog in sed gsed; do
12197     for ac_exec_ext in '' $ac_executable_extensions; do
12198       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12199         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12200       fi
12201     done
12202   done
12203 done
12204 lt_ac_max=0
12205 lt_ac_count=0
12206 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12207 # along with /bin/sed that truncates output.
12208 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12209   test ! -f $lt_ac_sed && continue
12210   cat /dev/null > conftest.in
12211   lt_ac_count=0
12212   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12213   # Check for GNU sed and select it if it is found.
12214   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12215     lt_cv_path_SED=$lt_ac_sed
12216     break
12217   fi
12218   while true; do
12219     cat conftest.in conftest.in >conftest.tmp
12220     mv conftest.tmp conftest.in
12221     cp conftest.in conftest.nl
12222     echo >>conftest.nl
12223     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12224     cmp -s conftest.out conftest.nl || break
12225     # 10000 chars as input seems more than enough
12226     test $lt_ac_count -gt 10 && break
12227     lt_ac_count=`expr $lt_ac_count + 1`
12228     if test $lt_ac_count -gt $lt_ac_max; then
12229       lt_ac_max=$lt_ac_count
12230       lt_cv_path_SED=$lt_ac_sed
12231     fi
12232   done
12233 done
12234
12235 fi
12236
12237 SED=$lt_cv_path_SED
12238 { echo "$as_me:$LINENO: result: $SED" >&5
12239 echo "${ECHO_T}$SED" >&6; }
12240
12241
12242 # Check whether --with-gnu-ld was given.
12243 if test "${with_gnu_ld+set}" = set; then
12244   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12245 else
12246   with_gnu_ld=no
12247 fi
12248
12249 ac_prog=ld
12250 if test "$GCC" = yes; then
12251   # Check if gcc -print-prog-name=ld gives a path.
12252   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12253 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12254   case $host in
12255   *-*-mingw*)
12256     # gcc leaves a trailing carriage return which upsets mingw
12257     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12258   *)
12259     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12260   esac
12261   case $ac_prog in
12262     # Accept absolute paths.
12263     [\\/]* | ?:[\\/]*)
12264       re_direlt='/[^/][^/]*/\.\./'
12265       # Canonicalize the pathname of ld
12266       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12267       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12268         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12269       done
12270       test -z "$LD" && LD="$ac_prog"
12271       ;;
12272   "")
12273     # If it fails, then pretend we aren't using GCC.
12274     ac_prog=ld
12275     ;;
12276   *)
12277     # If it is relative, then search for the first ld in PATH.
12278     with_gnu_ld=unknown
12279     ;;
12280   esac
12281 elif test "$with_gnu_ld" = yes; then
12282   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12283 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12284 else
12285   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12286 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12287 fi
12288 if test "${lt_cv_path_LD+set}" = set; then
12289   echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291   if test -z "$LD"; then
12292   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12293   for ac_dir in $PATH; do
12294     IFS="$lt_save_ifs"
12295     test -z "$ac_dir" && ac_dir=.
12296     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12297       lt_cv_path_LD="$ac_dir/$ac_prog"
12298       # Check to see if the program is GNU ld.  I'd rather use --version,
12299       # but apparently some variants of GNU ld only accept -v.
12300       # Break only if it was the GNU/non-GNU ld that we prefer.
12301       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12302       *GNU* | *'with BFD'*)
12303         test "$with_gnu_ld" != no && break
12304         ;;
12305       *)
12306         test "$with_gnu_ld" != yes && break
12307         ;;
12308       esac
12309     fi
12310   done
12311   IFS="$lt_save_ifs"
12312 else
12313   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12314 fi
12315 fi
12316
12317 LD="$lt_cv_path_LD"
12318 if test -n "$LD"; then
12319   { echo "$as_me:$LINENO: result: $LD" >&5
12320 echo "${ECHO_T}$LD" >&6; }
12321 else
12322   { echo "$as_me:$LINENO: result: no" >&5
12323 echo "${ECHO_T}no" >&6; }
12324 fi
12325 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12326 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12327    { (exit 1); exit 1; }; }
12328 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12329 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12330 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12331   echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12334 case `$LD -v 2>&1 </dev/null` in
12335 *GNU* | *'with BFD'*)
12336   lt_cv_prog_gnu_ld=yes
12337   ;;
12338 *)
12339   lt_cv_prog_gnu_ld=no
12340   ;;
12341 esac
12342 fi
12343 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12344 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12345 with_gnu_ld=$lt_cv_prog_gnu_ld
12346
12347
12348 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12349 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12350 if test "${lt_cv_ld_reload_flag+set}" = set; then
12351   echo $ECHO_N "(cached) $ECHO_C" >&6
12352 else
12353   lt_cv_ld_reload_flag='-r'
12354 fi
12355 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12356 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12357 reload_flag=$lt_cv_ld_reload_flag
12358 case $reload_flag in
12359 "" | " "*) ;;
12360 *) reload_flag=" $reload_flag" ;;
12361 esac
12362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12363 case $host_os in
12364   darwin*)
12365     if test "$GCC" = yes; then
12366       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12367     else
12368       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12369     fi
12370     ;;
12371 esac
12372
12373 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12374 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12375 if test "${lt_cv_deplibs_check_method+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   lt_cv_file_magic_cmd='$MAGIC_CMD'
12379 lt_cv_file_magic_test_file=
12380 lt_cv_deplibs_check_method='unknown'
12381 # Need to set the preceding variable on all platforms that support
12382 # interlibrary dependencies.
12383 # 'none' -- dependencies not supported.
12384 # `unknown' -- same as none, but documents that we really don't know.
12385 # 'pass_all' -- all dependencies passed with no checks.
12386 # 'test_compile' -- check by making test program.
12387 # 'file_magic [[regex]]' -- check by looking for files in library path
12388 # which responds to the $file_magic_cmd with a given extended regex.
12389 # If you have `file' or equivalent on your system and you're not sure
12390 # whether `pass_all' will *always* work, you probably want this one.
12391
12392 case $host_os in
12393 aix4* | aix5*)
12394   lt_cv_deplibs_check_method=pass_all
12395   ;;
12396
12397 beos*)
12398   lt_cv_deplibs_check_method=pass_all
12399   ;;
12400
12401 bsdi[45]*)
12402   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12403   lt_cv_file_magic_cmd='/usr/bin/file -L'
12404   lt_cv_file_magic_test_file=/shlib/libc.so
12405   ;;
12406
12407 cygwin*)
12408   # func_win32_libid is a shell function defined in ltmain.sh
12409   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12410   lt_cv_file_magic_cmd='func_win32_libid'
12411   ;;
12412
12413 mingw* | pw32*)
12414   # Base MSYS/MinGW do not provide the 'file' command needed by
12415   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12416   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12417   lt_cv_file_magic_cmd='$OBJDUMP -f'
12418   ;;
12419
12420 darwin* | rhapsody*)
12421   lt_cv_deplibs_check_method=pass_all
12422   ;;
12423
12424 freebsd* | kfreebsd*-gnu | dragonfly*)
12425   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12426     case $host_cpu in
12427     i*86 )
12428       # Not sure whether the presence of OpenBSD here was a mistake.
12429       # Let's accept both of them until this is cleared up.
12430       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12431       lt_cv_file_magic_cmd=/usr/bin/file
12432       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12433       ;;
12434     esac
12435   else
12436     lt_cv_deplibs_check_method=pass_all
12437   fi
12438   ;;
12439
12440 gnu*)
12441   lt_cv_deplibs_check_method=pass_all
12442   ;;
12443
12444 hpux10.20* | hpux11*)
12445   lt_cv_file_magic_cmd=/usr/bin/file
12446   case $host_cpu in
12447   ia64*)
12448     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12449     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12450     ;;
12451   hppa*64*)
12452     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]'
12453     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12454     ;;
12455   *)
12456     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12457     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12458     ;;
12459   esac
12460   ;;
12461
12462 interix3*)
12463   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12464   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12465   ;;
12466
12467 irix5* | irix6* | nonstopux*)
12468   case $LD in
12469   *-32|*"-32 ") libmagic=32-bit;;
12470   *-n32|*"-n32 ") libmagic=N32;;
12471   *-64|*"-64 ") libmagic=64-bit;;
12472   *) libmagic=never-match;;
12473   esac
12474   lt_cv_deplibs_check_method=pass_all
12475   ;;
12476
12477 # This must be Linux ELF.
12478 linux*)
12479   lt_cv_deplibs_check_method=pass_all
12480   ;;
12481
12482 netbsd*)
12483   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12484     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12485   else
12486     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12487   fi
12488   ;;
12489
12490 newos6*)
12491   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12492   lt_cv_file_magic_cmd=/usr/bin/file
12493   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12494   ;;
12495
12496 nto-qnx*)
12497   lt_cv_deplibs_check_method=unknown
12498   ;;
12499
12500 openbsd*)
12501   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12502     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12503   else
12504     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12505   fi
12506   ;;
12507
12508 osf3* | osf4* | osf5*)
12509   lt_cv_deplibs_check_method=pass_all
12510   ;;
12511
12512 solaris*)
12513   lt_cv_deplibs_check_method=pass_all
12514   ;;
12515
12516 sysv4 | sysv4.3*)
12517   case $host_vendor in
12518   motorola)
12519     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]'
12520     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12521     ;;
12522   ncr)
12523     lt_cv_deplibs_check_method=pass_all
12524     ;;
12525   sequent)
12526     lt_cv_file_magic_cmd='/bin/file'
12527     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12528     ;;
12529   sni)
12530     lt_cv_file_magic_cmd='/bin/file'
12531     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12532     lt_cv_file_magic_test_file=/lib/libc.so
12533     ;;
12534   siemens)
12535     lt_cv_deplibs_check_method=pass_all
12536     ;;
12537   pc)
12538     lt_cv_deplibs_check_method=pass_all
12539     ;;
12540   esac
12541   ;;
12542
12543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12544   lt_cv_deplibs_check_method=pass_all
12545   ;;
12546 esac
12547
12548 fi
12549 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12550 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12551 file_magic_cmd=$lt_cv_file_magic_cmd
12552 deplibs_check_method=$lt_cv_deplibs_check_method
12553 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12554
12555
12556
12557 # If no C compiler was specified, use CC.
12558 LTCC=${LTCC-"$CC"}
12559
12560 # If no C compiler flags were specified, use CFLAGS.
12561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12562
12563 # Allow CC to be a program name with arguments.
12564 compiler=$CC
12565
12566 # Check whether --enable-libtool-lock was given.
12567 if test "${enable_libtool_lock+set}" = set; then
12568   enableval=$enable_libtool_lock;
12569 fi
12570
12571 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12572
12573 # Some flags need to be propagated to the compiler or linker for good
12574 # libtool support.
12575 case $host in
12576 ia64-*-hpux*)
12577   # Find out which ABI we are using.
12578   echo 'int i;' > conftest.$ac_ext
12579   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580   (eval $ac_compile) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; then
12584     case `/usr/bin/file conftest.$ac_objext` in
12585     *ELF-32*)
12586       HPUX_IA64_MODE="32"
12587       ;;
12588     *ELF-64*)
12589       HPUX_IA64_MODE="64"
12590       ;;
12591     esac
12592   fi
12593   rm -rf conftest*
12594   ;;
12595 *-*-irix6*)
12596   # Find out which ABI we are using.
12597   echo '#line 12597 "configure"' > conftest.$ac_ext
12598   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599   (eval $ac_compile) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; then
12603    if test "$lt_cv_prog_gnu_ld" = yes; then
12604     case `/usr/bin/file conftest.$ac_objext` in
12605     *32-bit*)
12606       LD="${LD-ld} -melf32bsmip"
12607       ;;
12608     *N32*)
12609       LD="${LD-ld} -melf32bmipn32"
12610       ;;
12611     *64-bit*)
12612       LD="${LD-ld} -melf64bmip"
12613       ;;
12614     esac
12615    else
12616     case `/usr/bin/file conftest.$ac_objext` in
12617     *32-bit*)
12618       LD="${LD-ld} -32"
12619       ;;
12620     *N32*)
12621       LD="${LD-ld} -n32"
12622       ;;
12623     *64-bit*)
12624       LD="${LD-ld} -64"
12625       ;;
12626     esac
12627    fi
12628   fi
12629   rm -rf conftest*
12630   ;;
12631
12632 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12633   # Find out which ABI we are using.
12634   echo 'int i;' > conftest.$ac_ext
12635   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636   (eval $ac_compile) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; then
12640     case `/usr/bin/file conftest.o` in
12641     *32-bit*)
12642       case $host in
12643         x86_64-*linux*)
12644           LD="${LD-ld} -m elf_i386"
12645           ;;
12646         ppc64-*linux*|powerpc64-*linux*)
12647           LD="${LD-ld} -m elf32ppclinux"
12648           ;;
12649         s390x-*linux*)
12650           LD="${LD-ld} -m elf_s390"
12651           ;;
12652         sparc64-*linux*)
12653           LD="${LD-ld} -m elf32_sparc"
12654           ;;
12655       esac
12656       ;;
12657     *64-bit*)
12658       case $host in
12659         x86_64-*linux*)
12660           LD="${LD-ld} -m elf_x86_64"
12661           ;;
12662         ppc*-*linux*|powerpc*-*linux*)
12663           LD="${LD-ld} -m elf64ppc"
12664           ;;
12665         s390*-*linux*)
12666           LD="${LD-ld} -m elf64_s390"
12667           ;;
12668         sparc*-*linux*)
12669           LD="${LD-ld} -m elf64_sparc"
12670           ;;
12671       esac
12672       ;;
12673     esac
12674   fi
12675   rm -rf conftest*
12676   ;;
12677
12678 *-*-sco3.2v5*)
12679   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12680   SAVE_CFLAGS="$CFLAGS"
12681   CFLAGS="$CFLAGS -belf"
12682   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12683 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12684 if test "${lt_cv_cc_needs_belf+set}" = set; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687   ac_ext=c
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12692
12693      cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699
12700 int
12701 main ()
12702 {
12703
12704   ;
12705   return 0;
12706 }
12707 _ACEOF
12708 rm -f conftest.$ac_objext conftest$ac_exeext
12709 if { (ac_try="$ac_link"
12710 case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_link") 2>conftest.er1
12716   ac_status=$?
12717   grep -v '^ *+' conftest.er1 >conftest.err
12718   rm -f conftest.er1
12719   cat conftest.err >&5
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } &&
12722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12723   { (case "(($ac_try" in
12724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725   *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728   (eval "$ac_try") 2>&5
12729   ac_status=$?
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); }; } &&
12732          { ac_try='test -s conftest$ac_exeext'
12733   { (case "(($ac_try" in
12734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735   *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738   (eval "$ac_try") 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; }; then
12742   lt_cv_cc_needs_belf=yes
12743 else
12744   echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747         lt_cv_cc_needs_belf=no
12748 fi
12749
12750 rm -f core conftest.err conftest.$ac_objext \
12751       conftest$ac_exeext conftest.$ac_ext
12752      ac_ext=c
12753 ac_cpp='$CPP $CPPFLAGS'
12754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12757
12758 fi
12759 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12760 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12761   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12762     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12763     CFLAGS="$SAVE_CFLAGS"
12764   fi
12765   ;;
12766 sparc*-*solaris*)
12767   # Find out which ABI we are using.
12768   echo 'int i;' > conftest.$ac_ext
12769   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770   (eval $ac_compile) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; then
12774     case `/usr/bin/file conftest.o` in
12775     *64-bit*)
12776       case $lt_cv_prog_gnu_ld in
12777       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12778       *)    LD="${LD-ld} -64" ;;
12779       esac
12780       ;;
12781     esac
12782   fi
12783   rm -rf conftest*
12784   ;;
12785
12786
12787 esac
12788
12789 need_locks="$enable_libtool_lock"
12790
12791
12792
12793
12794 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12795     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12796     (test "X$CXX" != "Xg++"))) ; then
12797   ac_ext=cpp
12798 ac_cpp='$CXXCPP $CPPFLAGS'
12799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12802 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12803 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12804 if test -z "$CXXCPP"; then
12805   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12806   echo $ECHO_N "(cached) $ECHO_C" >&6
12807 else
12808       # Double quotes because CXXCPP needs to be expanded
12809     for CXXCPP in "$CXX -E" "/lib/cpp"
12810     do
12811       ac_preproc_ok=false
12812 for ac_cxx_preproc_warn_flag in '' yes
12813 do
12814   # Use a header file that comes with gcc, so configuring glibc
12815   # with a fresh cross-compiler works.
12816   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12817   # <limits.h> exists even on freestanding compilers.
12818   # On the NeXT, cc -E runs the code through the compiler's parser,
12819   # not just through cpp. "Syntax error" is here to catch this case.
12820   cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826 #ifdef __STDC__
12827 # include <limits.h>
12828 #else
12829 # include <assert.h>
12830 #endif
12831                      Syntax error
12832 _ACEOF
12833 if { (ac_try="$ac_cpp conftest.$ac_ext"
12834 case "(($ac_try" in
12835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836   *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12840   ac_status=$?
12841   grep -v '^ *+' conftest.er1 >conftest.err
12842   rm -f conftest.er1
12843   cat conftest.err >&5
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } >/dev/null; then
12846   if test -s conftest.err; then
12847     ac_cpp_err=$ac_cxx_preproc_warn_flag
12848     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12849   else
12850     ac_cpp_err=
12851   fi
12852 else
12853   ac_cpp_err=yes
12854 fi
12855 if test -z "$ac_cpp_err"; then
12856   :
12857 else
12858   echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861   # Broken: fails on valid input.
12862 continue
12863 fi
12864
12865 rm -f conftest.err conftest.$ac_ext
12866
12867   # OK, works on sane cases.  Now check whether nonexistent headers
12868   # can be detected and how.
12869   cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h.  */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h.  */
12875 #include <ac_nonexistent.h>
12876 _ACEOF
12877 if { (ac_try="$ac_cpp conftest.$ac_ext"
12878 case "(($ac_try" in
12879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880   *) ac_try_echo=$ac_try;;
12881 esac
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12884   ac_status=$?
12885   grep -v '^ *+' conftest.er1 >conftest.err
12886   rm -f conftest.er1
12887   cat conftest.err >&5
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); } >/dev/null; then
12890   if test -s conftest.err; then
12891     ac_cpp_err=$ac_cxx_preproc_warn_flag
12892     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12893   else
12894     ac_cpp_err=
12895   fi
12896 else
12897   ac_cpp_err=yes
12898 fi
12899 if test -z "$ac_cpp_err"; then
12900   # Broken: success on invalid input.
12901 continue
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906   # Passes both tests.
12907 ac_preproc_ok=:
12908 break
12909 fi
12910
12911 rm -f conftest.err conftest.$ac_ext
12912
12913 done
12914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12915 rm -f conftest.err conftest.$ac_ext
12916 if $ac_preproc_ok; then
12917   break
12918 fi
12919
12920     done
12921     ac_cv_prog_CXXCPP=$CXXCPP
12922
12923 fi
12924   CXXCPP=$ac_cv_prog_CXXCPP
12925 else
12926   ac_cv_prog_CXXCPP=$CXXCPP
12927 fi
12928 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12929 echo "${ECHO_T}$CXXCPP" >&6; }
12930 ac_preproc_ok=false
12931 for ac_cxx_preproc_warn_flag in '' yes
12932 do
12933   # Use a header file that comes with gcc, so configuring glibc
12934   # with a fresh cross-compiler works.
12935   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12936   # <limits.h> exists even on freestanding compilers.
12937   # On the NeXT, cc -E runs the code through the compiler's parser,
12938   # not just through cpp. "Syntax error" is here to catch this case.
12939   cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h.  */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h.  */
12945 #ifdef __STDC__
12946 # include <limits.h>
12947 #else
12948 # include <assert.h>
12949 #endif
12950                      Syntax error
12951 _ACEOF
12952 if { (ac_try="$ac_cpp conftest.$ac_ext"
12953 case "(($ac_try" in
12954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955   *) ac_try_echo=$ac_try;;
12956 esac
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12959   ac_status=$?
12960   grep -v '^ *+' conftest.er1 >conftest.err
12961   rm -f conftest.er1
12962   cat conftest.err >&5
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } >/dev/null; then
12965   if test -s conftest.err; then
12966     ac_cpp_err=$ac_cxx_preproc_warn_flag
12967     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12968   else
12969     ac_cpp_err=
12970   fi
12971 else
12972   ac_cpp_err=yes
12973 fi
12974 if test -z "$ac_cpp_err"; then
12975   :
12976 else
12977   echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12979
12980   # Broken: fails on valid input.
12981 continue
12982 fi
12983
12984 rm -f conftest.err conftest.$ac_ext
12985
12986   # OK, works on sane cases.  Now check whether nonexistent headers
12987   # can be detected and how.
12988   cat >conftest.$ac_ext <<_ACEOF
12989 /* confdefs.h.  */
12990 _ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h.  */
12994 #include <ac_nonexistent.h>
12995 _ACEOF
12996 if { (ac_try="$ac_cpp conftest.$ac_ext"
12997 case "(($ac_try" in
12998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999   *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13003   ac_status=$?
13004   grep -v '^ *+' conftest.er1 >conftest.err
13005   rm -f conftest.er1
13006   cat conftest.err >&5
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } >/dev/null; then
13009   if test -s conftest.err; then
13010     ac_cpp_err=$ac_cxx_preproc_warn_flag
13011     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13012   else
13013     ac_cpp_err=
13014   fi
13015 else
13016   ac_cpp_err=yes
13017 fi
13018 if test -z "$ac_cpp_err"; then
13019   # Broken: success on invalid input.
13020 continue
13021 else
13022   echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13024
13025   # Passes both tests.
13026 ac_preproc_ok=:
13027 break
13028 fi
13029
13030 rm -f conftest.err conftest.$ac_ext
13031
13032 done
13033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13034 rm -f conftest.err conftest.$ac_ext
13035 if $ac_preproc_ok; then
13036   :
13037 else
13038   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13039 See \`config.log' for more details." >&5
13040 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13041 See \`config.log' for more details." >&2;}
13042    { (exit 1); exit 1; }; }
13043 fi
13044
13045 ac_ext=cpp
13046 ac_cpp='$CXXCPP $CPPFLAGS'
13047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13050
13051 fi
13052
13053
13054 ac_ext=f
13055 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13056 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13057 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13058 if test -n "$ac_tool_prefix"; then
13059   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
13060   do
13061     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13065 if test "${ac_cv_prog_F77+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   if test -n "$F77"; then
13069   ac_cv_prog_F77="$F77" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13073 do
13074   IFS=$as_save_IFS
13075   test -z "$as_dir" && as_dir=.
13076   for ac_exec_ext in '' $ac_executable_extensions; do
13077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13078     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13080     break 2
13081   fi
13082 done
13083 done
13084 IFS=$as_save_IFS
13085
13086 fi
13087 fi
13088 F77=$ac_cv_prog_F77
13089 if test -n "$F77"; then
13090   { echo "$as_me:$LINENO: result: $F77" >&5
13091 echo "${ECHO_T}$F77" >&6; }
13092 else
13093   { echo "$as_me:$LINENO: result: no" >&5
13094 echo "${ECHO_T}no" >&6; }
13095 fi
13096
13097
13098     test -n "$F77" && break
13099   done
13100 fi
13101 if test -z "$F77"; then
13102   ac_ct_F77=$F77
13103   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
13104 do
13105   # Extract the first word of "$ac_prog", so it can be a program name with args.
13106 set dummy $ac_prog; ac_word=$2
13107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13109 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13110   echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112   if test -n "$ac_ct_F77"; then
13113   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13114 else
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13117 do
13118   IFS=$as_save_IFS
13119   test -z "$as_dir" && as_dir=.
13120   for ac_exec_ext in '' $ac_executable_extensions; do
13121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13122     ac_cv_prog_ac_ct_F77="$ac_prog"
13123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13124     break 2
13125   fi
13126 done
13127 done
13128 IFS=$as_save_IFS
13129
13130 fi
13131 fi
13132 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13133 if test -n "$ac_ct_F77"; then
13134   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13135 echo "${ECHO_T}$ac_ct_F77" >&6; }
13136 else
13137   { echo "$as_me:$LINENO: result: no" >&5
13138 echo "${ECHO_T}no" >&6; }
13139 fi
13140
13141
13142   test -n "$ac_ct_F77" && break
13143 done
13144
13145   if test "x$ac_ct_F77" = x; then
13146     F77=""
13147   else
13148     case $cross_compiling:$ac_tool_warned in
13149 yes:)
13150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13151 whose name does not start with the host triplet.  If you think this
13152 configuration is useful to you, please write to autoconf@gnu.org." >&5
13153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13154 whose name does not start with the host triplet.  If you think this
13155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13156 ac_tool_warned=yes ;;
13157 esac
13158     F77=$ac_ct_F77
13159   fi
13160 fi
13161
13162
13163 # Provide some information about the compiler.
13164 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13165 ac_compiler=`set X $ac_compile; echo $2`
13166 { (ac_try="$ac_compiler --version >&5"
13167 case "(($ac_try" in
13168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169   *) ac_try_echo=$ac_try;;
13170 esac
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172   (eval "$ac_compiler --version >&5") 2>&5
13173   ac_status=$?
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); }
13176 { (ac_try="$ac_compiler -v >&5"
13177 case "(($ac_try" in
13178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179   *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182   (eval "$ac_compiler -v >&5") 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }
13186 { (ac_try="$ac_compiler -V >&5"
13187 case "(($ac_try" in
13188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189   *) ac_try_echo=$ac_try;;
13190 esac
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192   (eval "$ac_compiler -V >&5") 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); }
13196 rm -f a.out
13197
13198 # If we don't use `.F' as extension, the preprocessor is not run on the
13199 # input file.  (Note that this only needs to work for GNU compilers.)
13200 ac_save_ext=$ac_ext
13201 ac_ext=F
13202 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13203 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13204 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13205   echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207   cat >conftest.$ac_ext <<_ACEOF
13208       program main
13209 #ifndef __GNUC__
13210        choke me
13211 #endif
13212
13213       end
13214 _ACEOF
13215 rm -f conftest.$ac_objext
13216 if { (ac_try="$ac_compile"
13217 case "(($ac_try" in
13218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219   *) ac_try_echo=$ac_try;;
13220 esac
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222   (eval "$ac_compile") 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13230   { (case "(($ac_try" in
13231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232   *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235   (eval "$ac_try") 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; } &&
13239          { ac_try='test -s conftest.$ac_objext'
13240   { (case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_try") 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; }; then
13249   ac_compiler_gnu=yes
13250 else
13251   echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254         ac_compiler_gnu=no
13255 fi
13256
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13259
13260 fi
13261 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13262 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13263 ac_ext=$ac_save_ext
13264 ac_test_FFLAGS=${FFLAGS+set}
13265 ac_save_FFLAGS=$FFLAGS
13266 FFLAGS=
13267 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13268 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13269 if test "${ac_cv_prog_f77_g+set}" = set; then
13270   echo $ECHO_N "(cached) $ECHO_C" >&6
13271 else
13272   FFLAGS=-g
13273 cat >conftest.$ac_ext <<_ACEOF
13274       program main
13275
13276       end
13277 _ACEOF
13278 rm -f conftest.$ac_objext
13279 if { (ac_try="$ac_compile"
13280 case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_compile") 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } &&
13292          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13293   { (case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298   (eval "$ac_try") 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); }; } &&
13302          { ac_try='test -s conftest.$ac_objext'
13303   { (case "(($ac_try" in
13304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305   *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308   (eval "$ac_try") 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   ac_cv_prog_f77_g=yes
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317         ac_cv_prog_f77_g=no
13318 fi
13319
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321
13322 fi
13323 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13324 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13325 if test "$ac_test_FFLAGS" = set; then
13326   FFLAGS=$ac_save_FFLAGS
13327 elif test $ac_cv_prog_f77_g = yes; then
13328   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13329     FFLAGS="-g -O2"
13330   else
13331     FFLAGS="-g"
13332   fi
13333 else
13334   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13335     FFLAGS="-O2"
13336   else
13337     FFLAGS=
13338   fi
13339 fi
13340
13341 G77=`test $ac_compiler_gnu = yes && echo yes`
13342 ac_ext=c
13343 ac_cpp='$CPP $CPPFLAGS'
13344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13347
13348
13349
13350 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13351
13352 # find the maximum length of command line arguments
13353 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13354 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13355 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13356   echo $ECHO_N "(cached) $ECHO_C" >&6
13357 else
13358     i=0
13359   teststring="ABCD"
13360
13361   case $build_os in
13362   msdosdjgpp*)
13363     # On DJGPP, this test can blow up pretty badly due to problems in libc
13364     # (any single argument exceeding 2000 bytes causes a buffer overrun
13365     # during glob expansion).  Even if it were fixed, the result of this
13366     # check would be larger than it should be.
13367     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13368     ;;
13369
13370   gnu*)
13371     # Under GNU Hurd, this test is not required because there is
13372     # no limit to the length of command line arguments.
13373     # Libtool will interpret -1 as no limit whatsoever
13374     lt_cv_sys_max_cmd_len=-1;
13375     ;;
13376
13377   cygwin* | mingw*)
13378     # On Win9x/ME, this test blows up -- it succeeds, but takes
13379     # about 5 minutes as the teststring grows exponentially.
13380     # Worse, since 9x/ME are not pre-emptively multitasking,
13381     # you end up with a "frozen" computer, even though with patience
13382     # the test eventually succeeds (with a max line length of 256k).
13383     # Instead, let's just punt: use the minimum linelength reported by
13384     # all of the supported platforms: 8192 (on NT/2K/XP).
13385     lt_cv_sys_max_cmd_len=8192;
13386     ;;
13387
13388   amigaos*)
13389     # On AmigaOS with pdksh, this test takes hours, literally.
13390     # So we just punt and use a minimum line length of 8192.
13391     lt_cv_sys_max_cmd_len=8192;
13392     ;;
13393
13394   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13395     # This has been around since 386BSD, at least.  Likely further.
13396     if test -x /sbin/sysctl; then
13397       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13398     elif test -x /usr/sbin/sysctl; then
13399       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13400     else
13401       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13402     fi
13403     # And add a safety zone
13404     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13405     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13406     ;;
13407
13408   interix*)
13409     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13410     lt_cv_sys_max_cmd_len=196608
13411     ;;
13412
13413   osf*)
13414     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13415     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13416     # nice to cause kernel panics so lets avoid the loop below.
13417     # First set a reasonable default.
13418     lt_cv_sys_max_cmd_len=16384
13419     #
13420     if test -x /sbin/sysconfig; then
13421       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13422         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13423       esac
13424     fi
13425     ;;
13426   sco3.2v5*)
13427     lt_cv_sys_max_cmd_len=102400
13428     ;;
13429   sysv5* | sco5v6* | sysv4.2uw2*)
13430     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13431     if test -n "$kargmax"; then
13432       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13433     else
13434       lt_cv_sys_max_cmd_len=32768
13435     fi
13436     ;;
13437   *)
13438     # If test is not a shell built-in, we'll probably end up computing a
13439     # maximum length that is only half of the actual maximum length, but
13440     # we can't tell.
13441     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13442     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13443                = "XX$teststring") >/dev/null 2>&1 &&
13444             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13445             lt_cv_sys_max_cmd_len=$new_result &&
13446             test $i != 17 # 1/2 MB should be enough
13447     do
13448       i=`expr $i + 1`
13449       teststring=$teststring$teststring
13450     done
13451     teststring=
13452     # Add a significant safety factor because C++ compilers can tack on massive
13453     # amounts of additional arguments before passing them to the linker.
13454     # It appears as though 1/2 is a usable value.
13455     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13456     ;;
13457   esac
13458
13459 fi
13460
13461 if test -n $lt_cv_sys_max_cmd_len ; then
13462   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13463 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13464 else
13465   { echo "$as_me:$LINENO: result: none" >&5
13466 echo "${ECHO_T}none" >&6; }
13467 fi
13468
13469
13470
13471
13472 # Check for command to grab the raw symbol name followed by C symbol from nm.
13473 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13474 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13475 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13476   echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478
13479 # These are sane defaults that work on at least a few old systems.
13480 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13481
13482 # Character class describing NM global symbol codes.
13483 symcode='[BCDEGRST]'
13484
13485 # Regexp to match symbols that can be accessed directly from C.
13486 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13487
13488 # Transform an extracted symbol line into a proper C declaration
13489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13490
13491 # Transform an extracted symbol line into symbol name and symbol address
13492 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'"
13493
13494 # Define system-specific variables.
13495 case $host_os in
13496 aix*)
13497   symcode='[BCDT]'
13498   ;;
13499 cygwin* | mingw* | pw32*)
13500   symcode='[ABCDGISTW]'
13501   ;;
13502 hpux*) # Its linker distinguishes data from code symbols
13503   if test "$host_cpu" = ia64; then
13504     symcode='[ABCDEGRST]'
13505   fi
13506   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13507   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'"
13508   ;;
13509 linux*)
13510   if test "$host_cpu" = ia64; then
13511     symcode='[ABCDGIRSTW]'
13512     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13513     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'"
13514   fi
13515   ;;
13516 irix* | nonstopux*)
13517   symcode='[BCDEGRST]'
13518   ;;
13519 osf*)
13520   symcode='[BCDEGQRST]'
13521   ;;
13522 solaris*)
13523   symcode='[BDRT]'
13524   ;;
13525 sco3.2v5*)
13526   symcode='[DT]'
13527   ;;
13528 sysv4.2uw2*)
13529   symcode='[DT]'
13530   ;;
13531 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13532   symcode='[ABDT]'
13533   ;;
13534 sysv4)
13535   symcode='[DFNSTU]'
13536   ;;
13537 esac
13538
13539 # Handle CRLF in mingw tool chain
13540 opt_cr=
13541 case $build_os in
13542 mingw*)
13543   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13544   ;;
13545 esac
13546
13547 # If we're using GNU nm, then use its standard symbol codes.
13548 case `$NM -V 2>&1` in
13549 *GNU* | *'with BFD'*)
13550   symcode='[ABCDGIRSTW]' ;;
13551 esac
13552
13553 # Try without a prefix undercore, then with it.
13554 for ac_symprfx in "" "_"; do
13555
13556   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13557   symxfrm="\\1 $ac_symprfx\\2 \\2"
13558
13559   # Write the raw and C identifiers.
13560   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13561
13562   # Check to see that the pipe works correctly.
13563   pipe_works=no
13564
13565   rm -f conftest*
13566   cat > conftest.$ac_ext <<EOF
13567 #ifdef __cplusplus
13568 extern "C" {
13569 #endif
13570 char nm_test_var;
13571 void nm_test_func(){}
13572 #ifdef __cplusplus
13573 }
13574 #endif
13575 int main(){nm_test_var='a';nm_test_func();return(0);}
13576 EOF
13577
13578   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579   (eval $ac_compile) 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; then
13583     # Now try to grab the symbols.
13584     nlist=conftest.nm
13585     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13586   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } && test -s "$nlist"; then
13590       # Try sorting and uniquifying the output.
13591       if sort "$nlist" | uniq > "$nlist"T; then
13592         mv -f "$nlist"T "$nlist"
13593       else
13594         rm -f "$nlist"T
13595       fi
13596
13597       # Make sure that we snagged all the symbols we need.
13598       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13599         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13600           cat <<EOF > conftest.$ac_ext
13601 #ifdef __cplusplus
13602 extern "C" {
13603 #endif
13604
13605 EOF
13606           # Now generate the symbol file.
13607           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13608
13609           cat <<EOF >> conftest.$ac_ext
13610 #if defined (__STDC__) && __STDC__
13611 # define lt_ptr_t void *
13612 #else
13613 # define lt_ptr_t char *
13614 # define const
13615 #endif
13616
13617 /* The mapping between symbol names and symbols. */
13618 const struct {
13619   const char *name;
13620   lt_ptr_t address;
13621 }
13622 lt_preloaded_symbols[] =
13623 {
13624 EOF
13625           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13626           cat <<\EOF >> conftest.$ac_ext
13627   {0, (lt_ptr_t) 0}
13628 };
13629
13630 #ifdef __cplusplus
13631 }
13632 #endif
13633 EOF
13634           # Now try linking the two files.
13635           mv conftest.$ac_objext conftstm.$ac_objext
13636           lt_save_LIBS="$LIBS"
13637           lt_save_CFLAGS="$CFLAGS"
13638           LIBS="conftstm.$ac_objext"
13639           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13640           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13641   (eval $ac_link) 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13645             pipe_works=yes
13646           fi
13647           LIBS="$lt_save_LIBS"
13648           CFLAGS="$lt_save_CFLAGS"
13649         else
13650           echo "cannot find nm_test_func in $nlist" >&5
13651         fi
13652       else
13653         echo "cannot find nm_test_var in $nlist" >&5
13654       fi
13655     else
13656       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13657     fi
13658   else
13659     echo "$progname: failed program was:" >&5
13660     cat conftest.$ac_ext >&5
13661   fi
13662   rm -f conftest* conftst*
13663
13664   # Do not use the global_symbol_pipe unless it works.
13665   if test "$pipe_works" = yes; then
13666     break
13667   else
13668     lt_cv_sys_global_symbol_pipe=
13669   fi
13670 done
13671
13672 fi
13673
13674 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13675   lt_cv_sys_global_symbol_to_cdecl=
13676 fi
13677 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13678   { echo "$as_me:$LINENO: result: failed" >&5
13679 echo "${ECHO_T}failed" >&6; }
13680 else
13681   { echo "$as_me:$LINENO: result: ok" >&5
13682 echo "${ECHO_T}ok" >&6; }
13683 fi
13684
13685 { echo "$as_me:$LINENO: checking for objdir" >&5
13686 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13687 if test "${lt_cv_objdir+set}" = set; then
13688   echo $ECHO_N "(cached) $ECHO_C" >&6
13689 else
13690   rm -f .libs 2>/dev/null
13691 mkdir .libs 2>/dev/null
13692 if test -d .libs; then
13693   lt_cv_objdir=.libs
13694 else
13695   # MS-DOS does not allow filenames that begin with a dot.
13696   lt_cv_objdir=_libs
13697 fi
13698 rmdir .libs 2>/dev/null
13699 fi
13700 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13701 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13702 objdir=$lt_cv_objdir
13703
13704
13705
13706
13707
13708 case $host_os in
13709 aix3*)
13710   # AIX sometimes has problems with the GCC collect2 program.  For some
13711   # reason, if we set the COLLECT_NAMES environment variable, the problems
13712   # vanish in a puff of smoke.
13713   if test "X${COLLECT_NAMES+set}" != Xset; then
13714     COLLECT_NAMES=
13715     export COLLECT_NAMES
13716   fi
13717   ;;
13718 esac
13719
13720 # Sed substitution that helps us do robust quoting.  It backslashifies
13721 # metacharacters that are still active within double-quoted strings.
13722 Xsed='sed -e 1s/^X//'
13723 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13724
13725 # Same as above, but do not quote variable references.
13726 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13727
13728 # Sed substitution to delay expansion of an escaped shell variable in a
13729 # double_quote_subst'ed string.
13730 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13731
13732 # Sed substitution to avoid accidental globbing in evaled expressions
13733 no_glob_subst='s/\*/\\\*/g'
13734
13735 # Constants:
13736 rm="rm -f"
13737
13738 # Global variables:
13739 default_ofile=mklib
13740 can_build_shared=yes
13741
13742 # All known linkers require a `.a' archive for static linking (except MSVC,
13743 # which needs '.lib').
13744 libext=a
13745 ltmain="$ac_aux_dir/ltmain.sh"
13746 ofile="$default_ofile"
13747 with_gnu_ld="$lt_cv_prog_gnu_ld"
13748
13749 if test -n "$ac_tool_prefix"; then
13750   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13751 set dummy ${ac_tool_prefix}ar; ac_word=$2
13752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13754 if test "${ac_cv_prog_AR+set}" = set; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757   if test -n "$AR"; then
13758   ac_cv_prog_AR="$AR" # Let the user override the test.
13759 else
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13762 do
13763   IFS=$as_save_IFS
13764   test -z "$as_dir" && as_dir=.
13765   for ac_exec_ext in '' $ac_executable_extensions; do
13766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13767     ac_cv_prog_AR="${ac_tool_prefix}ar"
13768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13769     break 2
13770   fi
13771 done
13772 done
13773 IFS=$as_save_IFS
13774
13775 fi
13776 fi
13777 AR=$ac_cv_prog_AR
13778 if test -n "$AR"; then
13779   { echo "$as_me:$LINENO: result: $AR" >&5
13780 echo "${ECHO_T}$AR" >&6; }
13781 else
13782   { echo "$as_me:$LINENO: result: no" >&5
13783 echo "${ECHO_T}no" >&6; }
13784 fi
13785
13786
13787 fi
13788 if test -z "$ac_cv_prog_AR"; then
13789   ac_ct_AR=$AR
13790   # Extract the first word of "ar", so it can be a program name with args.
13791 set dummy ar; ac_word=$2
13792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13794 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13795   echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797   if test -n "$ac_ct_AR"; then
13798   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13799 else
13800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13802 do
13803   IFS=$as_save_IFS
13804   test -z "$as_dir" && as_dir=.
13805   for ac_exec_ext in '' $ac_executable_extensions; do
13806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13807     ac_cv_prog_ac_ct_AR="ar"
13808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13809     break 2
13810   fi
13811 done
13812 done
13813 IFS=$as_save_IFS
13814
13815 fi
13816 fi
13817 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13818 if test -n "$ac_ct_AR"; then
13819   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13820 echo "${ECHO_T}$ac_ct_AR" >&6; }
13821 else
13822   { echo "$as_me:$LINENO: result: no" >&5
13823 echo "${ECHO_T}no" >&6; }
13824 fi
13825
13826   if test "x$ac_ct_AR" = x; then
13827     AR="false"
13828   else
13829     case $cross_compiling:$ac_tool_warned in
13830 yes:)
13831 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13832 whose name does not start with the host triplet.  If you think this
13833 configuration is useful to you, please write to autoconf@gnu.org." >&5
13834 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13835 whose name does not start with the host triplet.  If you think this
13836 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13837 ac_tool_warned=yes ;;
13838 esac
13839     AR=$ac_ct_AR
13840   fi
13841 else
13842   AR="$ac_cv_prog_AR"
13843 fi
13844
13845 if test -n "$ac_tool_prefix"; then
13846   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13850 if test "${ac_cv_prog_RANLIB+set}" = set; then
13851   echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853   if test -n "$RANLIB"; then
13854   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13855 else
13856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857 for as_dir in $PATH
13858 do
13859   IFS=$as_save_IFS
13860   test -z "$as_dir" && as_dir=.
13861   for ac_exec_ext in '' $ac_executable_extensions; do
13862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13863     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13865     break 2
13866   fi
13867 done
13868 done
13869 IFS=$as_save_IFS
13870
13871 fi
13872 fi
13873 RANLIB=$ac_cv_prog_RANLIB
13874 if test -n "$RANLIB"; then
13875   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13876 echo "${ECHO_T}$RANLIB" >&6; }
13877 else
13878   { echo "$as_me:$LINENO: result: no" >&5
13879 echo "${ECHO_T}no" >&6; }
13880 fi
13881
13882
13883 fi
13884 if test -z "$ac_cv_prog_RANLIB"; then
13885   ac_ct_RANLIB=$RANLIB
13886   # Extract the first word of "ranlib", so it can be a program name with args.
13887 set dummy ranlib; ac_word=$2
13888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13891   echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893   if test -n "$ac_ct_RANLIB"; then
13894   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13895 else
13896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13897 for as_dir in $PATH
13898 do
13899   IFS=$as_save_IFS
13900   test -z "$as_dir" && as_dir=.
13901   for ac_exec_ext in '' $ac_executable_extensions; do
13902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13903     ac_cv_prog_ac_ct_RANLIB="ranlib"
13904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13905     break 2
13906   fi
13907 done
13908 done
13909 IFS=$as_save_IFS
13910
13911 fi
13912 fi
13913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13914 if test -n "$ac_ct_RANLIB"; then
13915   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13916 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13917 else
13918   { echo "$as_me:$LINENO: result: no" >&5
13919 echo "${ECHO_T}no" >&6; }
13920 fi
13921
13922   if test "x$ac_ct_RANLIB" = x; then
13923     RANLIB=":"
13924   else
13925     case $cross_compiling:$ac_tool_warned in
13926 yes:)
13927 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13928 whose name does not start with the host triplet.  If you think this
13929 configuration is useful to you, please write to autoconf@gnu.org." >&5
13930 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13931 whose name does not start with the host triplet.  If you think this
13932 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13933 ac_tool_warned=yes ;;
13934 esac
13935     RANLIB=$ac_ct_RANLIB
13936   fi
13937 else
13938   RANLIB="$ac_cv_prog_RANLIB"
13939 fi
13940
13941 if test -n "$ac_tool_prefix"; then
13942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13943 set dummy ${ac_tool_prefix}strip; ac_word=$2
13944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13946 if test "${ac_cv_prog_STRIP+set}" = set; then
13947   echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949   if test -n "$STRIP"; then
13950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13951 else
13952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13953 for as_dir in $PATH
13954 do
13955   IFS=$as_save_IFS
13956   test -z "$as_dir" && as_dir=.
13957   for ac_exec_ext in '' $ac_executable_extensions; do
13958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13961     break 2
13962   fi
13963 done
13964 done
13965 IFS=$as_save_IFS
13966
13967 fi
13968 fi
13969 STRIP=$ac_cv_prog_STRIP
13970 if test -n "$STRIP"; then
13971   { echo "$as_me:$LINENO: result: $STRIP" >&5
13972 echo "${ECHO_T}$STRIP" >&6; }
13973 else
13974   { echo "$as_me:$LINENO: result: no" >&5
13975 echo "${ECHO_T}no" >&6; }
13976 fi
13977
13978
13979 fi
13980 if test -z "$ac_cv_prog_STRIP"; then
13981   ac_ct_STRIP=$STRIP
13982   # Extract the first word of "strip", so it can be a program name with args.
13983 set dummy strip; ac_word=$2
13984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13986 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989   if test -n "$ac_ct_STRIP"; then
13990   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13991 else
13992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13993 for as_dir in $PATH
13994 do
13995   IFS=$as_save_IFS
13996   test -z "$as_dir" && as_dir=.
13997   for ac_exec_ext in '' $ac_executable_extensions; do
13998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13999     ac_cv_prog_ac_ct_STRIP="strip"
14000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14001     break 2
14002   fi
14003 done
14004 done
14005 IFS=$as_save_IFS
14006
14007 fi
14008 fi
14009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14010 if test -n "$ac_ct_STRIP"; then
14011   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14012 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14013 else
14014   { echo "$as_me:$LINENO: result: no" >&5
14015 echo "${ECHO_T}no" >&6; }
14016 fi
14017
14018   if test "x$ac_ct_STRIP" = x; then
14019     STRIP=":"
14020   else
14021     case $cross_compiling:$ac_tool_warned in
14022 yes:)
14023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14024 whose name does not start with the host triplet.  If you think this
14025 configuration is useful to you, please write to autoconf@gnu.org." >&5
14026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14027 whose name does not start with the host triplet.  If you think this
14028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14029 ac_tool_warned=yes ;;
14030 esac
14031     STRIP=$ac_ct_STRIP
14032   fi
14033 else
14034   STRIP="$ac_cv_prog_STRIP"
14035 fi
14036
14037
14038 old_CC="$CC"
14039 old_CFLAGS="$CFLAGS"
14040
14041 # Set sane defaults for various variables
14042 test -z "$AR" && AR=ar
14043 test -z "$AR_FLAGS" && AR_FLAGS=cru
14044 test -z "$AS" && AS=as
14045 test -z "$CC" && CC=cc
14046 test -z "$LTCC" && LTCC=$CC
14047 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14048 test -z "$DLLTOOL" && DLLTOOL=dlltool
14049 test -z "$LD" && LD=ld
14050 test -z "$LN_S" && LN_S="ln -s"
14051 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14052 test -z "$NM" && NM=nm
14053 test -z "$SED" && SED=sed
14054 test -z "$OBJDUMP" && OBJDUMP=objdump
14055 test -z "$RANLIB" && RANLIB=:
14056 test -z "$STRIP" && STRIP=:
14057 test -z "$ac_objext" && ac_objext=o
14058
14059 # Determine commands to create old-style static archives.
14060 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14061 old_postinstall_cmds='chmod 644 $oldlib'
14062 old_postuninstall_cmds=
14063
14064 if test -n "$RANLIB"; then
14065   case $host_os in
14066   openbsd*)
14067     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14068     ;;
14069   *)
14070     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14071     ;;
14072   esac
14073   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14074 fi
14075
14076 for cc_temp in $compiler""; do
14077   case $cc_temp in
14078     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14079     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14080     \-*) ;;
14081     *) break;;
14082   esac
14083 done
14084 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14085
14086
14087 # Only perform the check for file, if the check method requires it
14088 case $deplibs_check_method in
14089 file_magic*)
14090   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14091     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14092 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14093 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14094   echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096   case $MAGIC_CMD in
14097 [\\/*] |  ?:[\\/]*)
14098   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14099   ;;
14100 *)
14101   lt_save_MAGIC_CMD="$MAGIC_CMD"
14102   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14103   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14104   for ac_dir in $ac_dummy; do
14105     IFS="$lt_save_ifs"
14106     test -z "$ac_dir" && ac_dir=.
14107     if test -f $ac_dir/${ac_tool_prefix}file; then
14108       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14109       if test -n "$file_magic_test_file"; then
14110         case $deplibs_check_method in
14111         "file_magic "*)
14112           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14113           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14114           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14115             $EGREP "$file_magic_regex" > /dev/null; then
14116             :
14117           else
14118             cat <<EOF 1>&2
14119
14120 *** Warning: the command libtool uses to detect shared libraries,
14121 *** $file_magic_cmd, produces output that libtool cannot recognize.
14122 *** The result is that libtool may fail to recognize shared libraries
14123 *** as such.  This will affect the creation of libtool libraries that
14124 *** depend on shared libraries, but programs linked with such libtool
14125 *** libraries will work regardless of this problem.  Nevertheless, you
14126 *** may want to report the problem to your system manager and/or to
14127 *** bug-libtool@gnu.org
14128
14129 EOF
14130           fi ;;
14131         esac
14132       fi
14133       break
14134     fi
14135   done
14136   IFS="$lt_save_ifs"
14137   MAGIC_CMD="$lt_save_MAGIC_CMD"
14138   ;;
14139 esac
14140 fi
14141
14142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14143 if test -n "$MAGIC_CMD"; then
14144   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14145 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14146 else
14147   { echo "$as_me:$LINENO: result: no" >&5
14148 echo "${ECHO_T}no" >&6; }
14149 fi
14150
14151 if test -z "$lt_cv_path_MAGIC_CMD"; then
14152   if test -n "$ac_tool_prefix"; then
14153     { echo "$as_me:$LINENO: checking for file" >&5
14154 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14155 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14156   echo $ECHO_N "(cached) $ECHO_C" >&6
14157 else
14158   case $MAGIC_CMD in
14159 [\\/*] |  ?:[\\/]*)
14160   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14161   ;;
14162 *)
14163   lt_save_MAGIC_CMD="$MAGIC_CMD"
14164   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14165   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14166   for ac_dir in $ac_dummy; do
14167     IFS="$lt_save_ifs"
14168     test -z "$ac_dir" && ac_dir=.
14169     if test -f $ac_dir/file; then
14170       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14171       if test -n "$file_magic_test_file"; then
14172         case $deplibs_check_method in
14173         "file_magic "*)
14174           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14175           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14176           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14177             $EGREP "$file_magic_regex" > /dev/null; then
14178             :
14179           else
14180             cat <<EOF 1>&2
14181
14182 *** Warning: the command libtool uses to detect shared libraries,
14183 *** $file_magic_cmd, produces output that libtool cannot recognize.
14184 *** The result is that libtool may fail to recognize shared libraries
14185 *** as such.  This will affect the creation of libtool libraries that
14186 *** depend on shared libraries, but programs linked with such libtool
14187 *** libraries will work regardless of this problem.  Nevertheless, you
14188 *** may want to report the problem to your system manager and/or to
14189 *** bug-libtool@gnu.org
14190
14191 EOF
14192           fi ;;
14193         esac
14194       fi
14195       break
14196     fi
14197   done
14198   IFS="$lt_save_ifs"
14199   MAGIC_CMD="$lt_save_MAGIC_CMD"
14200   ;;
14201 esac
14202 fi
14203
14204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14205 if test -n "$MAGIC_CMD"; then
14206   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14207 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14208 else
14209   { echo "$as_me:$LINENO: result: no" >&5
14210 echo "${ECHO_T}no" >&6; }
14211 fi
14212
14213   else
14214     MAGIC_CMD=:
14215   fi
14216 fi
14217
14218   fi
14219   ;;
14220 esac
14221
14222 enable_dlopen=yes
14223 enable_win32_dll=no
14224
14225 # Check whether --enable-libtool-lock was given.
14226 if test "${enable_libtool_lock+set}" = set; then
14227   enableval=$enable_libtool_lock;
14228 fi
14229
14230 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14231
14232
14233 # Check whether --with-pic was given.
14234 if test "${with_pic+set}" = set; then
14235   withval=$with_pic; pic_mode="$withval"
14236 else
14237   pic_mode=default
14238 fi
14239
14240 test -z "$pic_mode" && pic_mode=default
14241
14242 # Use C for the default configuration in the libtool script
14243 tagname=
14244 lt_save_CC="$CC"
14245 ac_ext=c
14246 ac_cpp='$CPP $CPPFLAGS'
14247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14250
14251
14252 # Source file extension for C test sources.
14253 ac_ext=c
14254
14255 # Object file extension for compiled C test sources.
14256 objext=o
14257 objext=$objext
14258
14259 # Code to be used in simple compile tests
14260 lt_simple_compile_test_code="int some_variable = 0;\n"
14261
14262 # Code to be used in simple link tests
14263 lt_simple_link_test_code='int main(){return(0);}\n'
14264
14265
14266 # If no C compiler was specified, use CC.
14267 LTCC=${LTCC-"$CC"}
14268
14269 # If no C compiler flags were specified, use CFLAGS.
14270 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14271
14272 # Allow CC to be a program name with arguments.
14273 compiler=$CC
14274
14275
14276 # save warnings/boilerplate of simple test code
14277 ac_outfile=conftest.$ac_objext
14278 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14279 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14280 _lt_compiler_boilerplate=`cat conftest.err`
14281 $rm conftest*
14282
14283 ac_outfile=conftest.$ac_objext
14284 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14285 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14286 _lt_linker_boilerplate=`cat conftest.err`
14287 $rm conftest*
14288
14289
14290
14291 lt_prog_compiler_no_builtin_flag=
14292
14293 if test "$GCC" = yes; then
14294   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14295
14296
14297 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14298 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14299 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   lt_cv_prog_compiler_rtti_exceptions=no
14303   ac_outfile=conftest.$ac_objext
14304    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14305    lt_compiler_flag="-fno-rtti -fno-exceptions"
14306    # Insert the option either (1) after the last *FLAGS variable, or
14307    # (2) before a word containing "conftest.", or (3) at the end.
14308    # Note that $ac_compile itself does not contain backslashes and begins
14309    # with a dollar sign (not a hyphen), so the echo should work correctly.
14310    # The option is referenced via a variable to avoid confusing sed.
14311    lt_compile=`echo "$ac_compile" | $SED \
14312    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14314    -e 's:$: $lt_compiler_flag:'`
14315    (eval echo "\"\$as_me:14315: $lt_compile\"" >&5)
14316    (eval "$lt_compile" 2>conftest.err)
14317    ac_status=$?
14318    cat conftest.err >&5
14319    echo "$as_me:14319: \$? = $ac_status" >&5
14320    if (exit $ac_status) && test -s "$ac_outfile"; then
14321      # The compiler can only warn and ignore the option if not recognized
14322      # So say no if there are warnings other than the usual output.
14323      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14324      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14325      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14326        lt_cv_prog_compiler_rtti_exceptions=yes
14327      fi
14328    fi
14329    $rm conftest*
14330
14331 fi
14332 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14333 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14334
14335 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14336     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14337 else
14338     :
14339 fi
14340
14341 fi
14342
14343 lt_prog_compiler_wl=
14344 lt_prog_compiler_pic=
14345 lt_prog_compiler_static=
14346
14347 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14348 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14349
14350   if test "$GCC" = yes; then
14351     lt_prog_compiler_wl='-Wl,'
14352     lt_prog_compiler_static='-static'
14353
14354     case $host_os in
14355       aix*)
14356       # All AIX code is PIC.
14357       if test "$host_cpu" = ia64; then
14358         # AIX 5 now supports IA64 processor
14359         lt_prog_compiler_static='-Bstatic'
14360       fi
14361       ;;
14362
14363     amigaos*)
14364       # FIXME: we need at least 68020 code to build shared libraries, but
14365       # adding the `-m68020' flag to GCC prevents building anything better,
14366       # like `-m68040'.
14367       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14368       ;;
14369
14370     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14371       # PIC is the default for these OSes.
14372       ;;
14373
14374     mingw* | pw32* | os2*)
14375       # This hack is so that the source file can tell whether it is being
14376       # built for inclusion in a dll (and should export symbols for example).
14377       lt_prog_compiler_pic='-DDLL_EXPORT'
14378       ;;
14379
14380     darwin* | rhapsody*)
14381       # PIC is the default on this platform
14382       # Common symbols not allowed in MH_DYLIB files
14383       lt_prog_compiler_pic='-fno-common'
14384       ;;
14385
14386     interix3*)
14387       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14388       # Instead, we relocate shared libraries at runtime.
14389       ;;
14390
14391     msdosdjgpp*)
14392       # Just because we use GCC doesn't mean we suddenly get shared libraries
14393       # on systems that don't support them.
14394       lt_prog_compiler_can_build_shared=no
14395       enable_shared=no
14396       ;;
14397
14398     sysv4*MP*)
14399       if test -d /usr/nec; then
14400         lt_prog_compiler_pic=-Kconform_pic
14401       fi
14402       ;;
14403
14404     hpux*)
14405       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14406       # not for PA HP-UX.
14407       case $host_cpu in
14408       hppa*64*|ia64*)
14409         # +Z the default
14410         ;;
14411       *)
14412         lt_prog_compiler_pic='-fPIC'
14413         ;;
14414       esac
14415       ;;
14416
14417     *)
14418       lt_prog_compiler_pic='-fPIC'
14419       ;;
14420     esac
14421   else
14422     # PORTME Check for flag to pass linker flags through the system compiler.
14423     case $host_os in
14424     aix*)
14425       lt_prog_compiler_wl='-Wl,'
14426       if test "$host_cpu" = ia64; then
14427         # AIX 5 now supports IA64 processor
14428         lt_prog_compiler_static='-Bstatic'
14429       else
14430         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14431       fi
14432       ;;
14433       darwin*)
14434         # PIC is the default on this platform
14435         # Common symbols not allowed in MH_DYLIB files
14436        case $cc_basename in
14437          xlc*)
14438          lt_prog_compiler_pic='-qnocommon'
14439          lt_prog_compiler_wl='-Wl,'
14440          ;;
14441        esac
14442        ;;
14443
14444     mingw* | pw32* | os2*)
14445       # This hack is so that the source file can tell whether it is being
14446       # built for inclusion in a dll (and should export symbols for example).
14447       lt_prog_compiler_pic='-DDLL_EXPORT'
14448       ;;
14449
14450     hpux9* | hpux10* | hpux11*)
14451       lt_prog_compiler_wl='-Wl,'
14452       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14453       # not for PA HP-UX.
14454       case $host_cpu in
14455       hppa*64*|ia64*)
14456         # +Z the default
14457         ;;
14458       *)
14459         lt_prog_compiler_pic='+Z'
14460         ;;
14461       esac
14462       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14463       lt_prog_compiler_static='${wl}-a ${wl}archive'
14464       ;;
14465
14466     irix5* | irix6* | nonstopux*)
14467       lt_prog_compiler_wl='-Wl,'
14468       # PIC (with -KPIC) is the default.
14469       lt_prog_compiler_static='-non_shared'
14470       ;;
14471
14472     newsos6)
14473       lt_prog_compiler_pic='-KPIC'
14474       lt_prog_compiler_static='-Bstatic'
14475       ;;
14476
14477     linux*)
14478       case $cc_basename in
14479       icc* | ecc*)
14480         lt_prog_compiler_wl='-Wl,'
14481         lt_prog_compiler_pic='-KPIC'
14482         lt_prog_compiler_static='-static'
14483         ;;
14484       pgcc* | pgf77* | pgf90* | pgf95*)
14485         # Portland Group compilers (*not* the Pentium gcc compiler,
14486         # which looks to be a dead project)
14487         lt_prog_compiler_wl='-Wl,'
14488         lt_prog_compiler_pic='-fpic'
14489         lt_prog_compiler_static='-Bstatic'
14490         ;;
14491       ccc*)
14492         lt_prog_compiler_wl='-Wl,'
14493         # All Alpha code is PIC.
14494         lt_prog_compiler_static='-non_shared'
14495         ;;
14496       esac
14497       ;;
14498
14499     osf3* | osf4* | osf5*)
14500       lt_prog_compiler_wl='-Wl,'
14501       # All OSF/1 code is PIC.
14502       lt_prog_compiler_static='-non_shared'
14503       ;;
14504
14505     solaris*)
14506       lt_prog_compiler_pic='-KPIC'
14507       lt_prog_compiler_static='-Bstatic'
14508       case $cc_basename in
14509       f77* | f90* | f95*)
14510         lt_prog_compiler_wl='-Qoption ld ';;
14511       *)
14512         lt_prog_compiler_wl='-Wl,';;
14513       esac
14514       ;;
14515
14516     sunos4*)
14517       lt_prog_compiler_wl='-Qoption ld '
14518       lt_prog_compiler_pic='-PIC'
14519       lt_prog_compiler_static='-Bstatic'
14520       ;;
14521
14522     sysv4 | sysv4.2uw2* | sysv4.3*)
14523       lt_prog_compiler_wl='-Wl,'
14524       lt_prog_compiler_pic='-KPIC'
14525       lt_prog_compiler_static='-Bstatic'
14526       ;;
14527
14528     sysv4*MP*)
14529       if test -d /usr/nec ;then
14530         lt_prog_compiler_pic='-Kconform_pic'
14531         lt_prog_compiler_static='-Bstatic'
14532       fi
14533       ;;
14534
14535     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14536       lt_prog_compiler_wl='-Wl,'
14537       lt_prog_compiler_pic='-KPIC'
14538       lt_prog_compiler_static='-Bstatic'
14539       ;;
14540
14541     unicos*)
14542       lt_prog_compiler_wl='-Wl,'
14543       lt_prog_compiler_can_build_shared=no
14544       ;;
14545
14546     uts4*)
14547       lt_prog_compiler_pic='-pic'
14548       lt_prog_compiler_static='-Bstatic'
14549       ;;
14550
14551     *)
14552       lt_prog_compiler_can_build_shared=no
14553       ;;
14554     esac
14555   fi
14556
14557 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14558 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14559
14560 #
14561 # Check to make sure the PIC flag actually works.
14562 #
14563 if test -n "$lt_prog_compiler_pic"; then
14564
14565 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14566 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14567 if test "${lt_prog_compiler_pic_works+set}" = set; then
14568   echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570   lt_prog_compiler_pic_works=no
14571   ac_outfile=conftest.$ac_objext
14572    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14573    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14574    # Insert the option either (1) after the last *FLAGS variable, or
14575    # (2) before a word containing "conftest.", or (3) at the end.
14576    # Note that $ac_compile itself does not contain backslashes and begins
14577    # with a dollar sign (not a hyphen), so the echo should work correctly.
14578    # The option is referenced via a variable to avoid confusing sed.
14579    lt_compile=`echo "$ac_compile" | $SED \
14580    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14581    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14582    -e 's:$: $lt_compiler_flag:'`
14583    (eval echo "\"\$as_me:14583: $lt_compile\"" >&5)
14584    (eval "$lt_compile" 2>conftest.err)
14585    ac_status=$?
14586    cat conftest.err >&5
14587    echo "$as_me:14587: \$? = $ac_status" >&5
14588    if (exit $ac_status) && test -s "$ac_outfile"; then
14589      # The compiler can only warn and ignore the option if not recognized
14590      # So say no if there are warnings other than the usual output.
14591      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14592      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14593      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14594        lt_prog_compiler_pic_works=yes
14595      fi
14596    fi
14597    $rm conftest*
14598
14599 fi
14600 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14601 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14602
14603 if test x"$lt_prog_compiler_pic_works" = xyes; then
14604     case $lt_prog_compiler_pic in
14605      "" | " "*) ;;
14606      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14607      esac
14608 else
14609     lt_prog_compiler_pic=
14610      lt_prog_compiler_can_build_shared=no
14611 fi
14612
14613 fi
14614 case $host_os in
14615   # For platforms which do not support PIC, -DPIC is meaningless:
14616   *djgpp*)
14617     lt_prog_compiler_pic=
14618     ;;
14619   *)
14620     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14621     ;;
14622 esac
14623
14624 #
14625 # Check to make sure the static flag actually works.
14626 #
14627 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14628 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14629 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14630 if test "${lt_prog_compiler_static_works+set}" = set; then
14631   echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633   lt_prog_compiler_static_works=no
14634    save_LDFLAGS="$LDFLAGS"
14635    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14636    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14637    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14638      # The linker can only warn and ignore the option if not recognized
14639      # So say no if there are warnings
14640      if test -s conftest.err; then
14641        # Append any errors to the config.log.
14642        cat conftest.err 1>&5
14643        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14644        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14645        if diff conftest.exp conftest.er2 >/dev/null; then
14646          lt_prog_compiler_static_works=yes
14647        fi
14648      else
14649        lt_prog_compiler_static_works=yes
14650      fi
14651    fi
14652    $rm conftest*
14653    LDFLAGS="$save_LDFLAGS"
14654
14655 fi
14656 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14657 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14658
14659 if test x"$lt_prog_compiler_static_works" = xyes; then
14660     :
14661 else
14662     lt_prog_compiler_static=
14663 fi
14664
14665
14666 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14667 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14668 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671   lt_cv_prog_compiler_c_o=no
14672    $rm -r conftest 2>/dev/null
14673    mkdir conftest
14674    cd conftest
14675    mkdir out
14676    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14677
14678    lt_compiler_flag="-o out/conftest2.$ac_objext"
14679    # Insert the option either (1) after the last *FLAGS variable, or
14680    # (2) before a word containing "conftest.", or (3) at the end.
14681    # Note that $ac_compile itself does not contain backslashes and begins
14682    # with a dollar sign (not a hyphen), so the echo should work correctly.
14683    lt_compile=`echo "$ac_compile" | $SED \
14684    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14685    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14686    -e 's:$: $lt_compiler_flag:'`
14687    (eval echo "\"\$as_me:14687: $lt_compile\"" >&5)
14688    (eval "$lt_compile" 2>out/conftest.err)
14689    ac_status=$?
14690    cat out/conftest.err >&5
14691    echo "$as_me:14691: \$? = $ac_status" >&5
14692    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14693    then
14694      # The compiler can only warn and ignore the option if not recognized
14695      # So say no if there are warnings
14696      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14697      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14698      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14699        lt_cv_prog_compiler_c_o=yes
14700      fi
14701    fi
14702    chmod u+w . 2>&5
14703    $rm conftest*
14704    # SGI C++ compiler will create directory out/ii_files/ for
14705    # template instantiation
14706    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14707    $rm out/* && rmdir out
14708    cd ..
14709    rmdir conftest
14710    $rm conftest*
14711
14712 fi
14713 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14714 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14715
14716
14717 hard_links="nottested"
14718 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14719   # do not overwrite the value of need_locks provided by the user
14720   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14721 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14722   hard_links=yes
14723   $rm conftest*
14724   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14725   touch conftest.a
14726   ln conftest.a conftest.b 2>&5 || hard_links=no
14727   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14728   { echo "$as_me:$LINENO: result: $hard_links" >&5
14729 echo "${ECHO_T}$hard_links" >&6; }
14730   if test "$hard_links" = no; then
14731     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14732 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14733     need_locks=warn
14734   fi
14735 else
14736   need_locks=no
14737 fi
14738
14739 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14740 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14741
14742   runpath_var=
14743   allow_undefined_flag=
14744   enable_shared_with_static_runtimes=no
14745   archive_cmds=
14746   archive_expsym_cmds=
14747   old_archive_From_new_cmds=
14748   old_archive_from_expsyms_cmds=
14749   export_dynamic_flag_spec=
14750   whole_archive_flag_spec=
14751   thread_safe_flag_spec=
14752   hardcode_libdir_flag_spec=
14753   hardcode_libdir_flag_spec_ld=
14754   hardcode_libdir_separator=
14755   hardcode_direct=no
14756   hardcode_minus_L=no
14757   hardcode_shlibpath_var=unsupported
14758   link_all_deplibs=unknown
14759   hardcode_automatic=no
14760   module_cmds=
14761   module_expsym_cmds=
14762   always_export_symbols=no
14763   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14764   # include_expsyms should be a list of space-separated symbols to be *always*
14765   # included in the symbol list
14766   include_expsyms=
14767   # exclude_expsyms can be an extended regexp of symbols to exclude
14768   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14769   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14770   # as well as any symbol that contains `d'.
14771   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14772   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14773   # platforms (ab)use it in PIC code, but their linkers get confused if
14774   # the symbol is explicitly referenced.  Since portable code cannot
14775   # rely on this symbol name, it's probably fine to never include it in
14776   # preloaded symbol tables.
14777   extract_expsyms_cmds=
14778   # Just being paranoid about ensuring that cc_basename is set.
14779   for cc_temp in $compiler""; do
14780   case $cc_temp in
14781     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14782     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14783     \-*) ;;
14784     *) break;;
14785   esac
14786 done
14787 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14788
14789   case $host_os in
14790   cygwin* | mingw* | pw32*)
14791     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14792     # When not using gcc, we currently assume that we are using
14793     # Microsoft Visual C++.
14794     if test "$GCC" != yes; then
14795       with_gnu_ld=no
14796     fi
14797     ;;
14798   interix*)
14799     # we just hope/assume this is gcc and not c89 (= MSVC++)
14800     with_gnu_ld=yes
14801     ;;
14802   openbsd*)
14803     with_gnu_ld=no
14804     ;;
14805   esac
14806
14807   ld_shlibs=yes
14808   if test "$with_gnu_ld" = yes; then
14809     # If archive_cmds runs LD, not CC, wlarc should be empty
14810     wlarc='${wl}'
14811
14812     # Set some defaults for GNU ld with shared library support. These
14813     # are reset later if shared libraries are not supported. Putting them
14814     # here allows them to be overridden if necessary.
14815     runpath_var=LD_RUN_PATH
14816     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14817     export_dynamic_flag_spec='${wl}--export-dynamic'
14818     # ancient GNU ld didn't support --whole-archive et. al.
14819     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14820         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14821       else
14822         whole_archive_flag_spec=
14823     fi
14824     supports_anon_versioning=no
14825     case `$LD -v 2>/dev/null` in
14826       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14827       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14828       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14829       *\ 2.11.*) ;; # other 2.11 versions
14830       *) supports_anon_versioning=yes ;;
14831     esac
14832
14833     # See if GNU ld supports shared libraries.
14834     case $host_os in
14835     aix3* | aix4* | aix5*)
14836       # On AIX/PPC, the GNU linker is very broken
14837       if test "$host_cpu" != ia64; then
14838         ld_shlibs=no
14839         cat <<EOF 1>&2
14840
14841 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14842 *** to be unable to reliably create shared libraries on AIX.
14843 *** Therefore, libtool is disabling shared libraries support.  If you
14844 *** really care for shared libraries, you may want to modify your PATH
14845 *** so that a non-GNU linker is found, and then restart.
14846
14847 EOF
14848       fi
14849       ;;
14850
14851     amigaos*)
14852       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)'
14853       hardcode_libdir_flag_spec='-L$libdir'
14854       hardcode_minus_L=yes
14855
14856       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14857       # that the semantics of dynamic libraries on AmigaOS, at least up
14858       # to version 4, is to share data among multiple programs linked
14859       # with the same dynamic library.  Since this doesn't match the
14860       # behavior of shared libraries on other platforms, we can't use
14861       # them.
14862       ld_shlibs=no
14863       ;;
14864
14865     beos*)
14866       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14867         allow_undefined_flag=unsupported
14868         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14869         # support --undefined.  This deserves some investigation.  FIXME
14870         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14871       else
14872         ld_shlibs=no
14873       fi
14874       ;;
14875
14876     cygwin* | mingw* | pw32*)
14877       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14878       # as there is no search path for DLLs.
14879       hardcode_libdir_flag_spec='-L$libdir'
14880       allow_undefined_flag=unsupported
14881       always_export_symbols=no
14882       enable_shared_with_static_runtimes=yes
14883       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14884
14885       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14886         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14887         # If the export-symbols file already is a .def file (1st line
14888         # is EXPORTS), use it as is; otherwise, prepend...
14889         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14890           cp $export_symbols $output_objdir/$soname.def;
14891         else
14892           echo EXPORTS > $output_objdir/$soname.def;
14893           cat $export_symbols >> $output_objdir/$soname.def;
14894         fi~
14895         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14896       else
14897         ld_shlibs=no
14898       fi
14899       ;;
14900
14901     interix3*)
14902       hardcode_direct=no
14903       hardcode_shlibpath_var=no
14904       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14905       export_dynamic_flag_spec='${wl}-E'
14906       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14907       # Instead, shared libraries are loaded at an image base (0x10000000 by
14908       # default) and relocated if they conflict, which is a slow very memory
14909       # consuming and fragmenting process.  To avoid this, we pick a random,
14910       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14911       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14912       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14913       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'
14914       ;;
14915
14916     linux*)
14917       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14918         tmp_addflag=
14919         case $cc_basename,$host_cpu in
14920         pgcc*)                          # Portland Group C compiler
14921           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'
14922           tmp_addflag=' $pic_flag'
14923           ;;
14924         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14925           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'
14926           tmp_addflag=' $pic_flag -Mnomain' ;;
14927         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14928           tmp_addflag=' -i_dynamic' ;;
14929         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14930           tmp_addflag=' -i_dynamic -nofor_main' ;;
14931         ifc* | ifort*)                  # Intel Fortran compiler
14932           tmp_addflag=' -nofor_main' ;;
14933         esac
14934         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14935
14936         if test $supports_anon_versioning = yes; then
14937           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14938   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14939   $echo "local: *; };" >> $output_objdir/$libname.ver~
14940           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14941         fi
14942       else
14943         ld_shlibs=no
14944       fi
14945       ;;
14946
14947     netbsd*)
14948       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14949         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14950         wlarc=
14951       else
14952         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14953         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14954       fi
14955       ;;
14956
14957     solaris*)
14958       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14959         ld_shlibs=no
14960         cat <<EOF 1>&2
14961
14962 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14963 *** create shared libraries on Solaris systems.  Therefore, libtool
14964 *** is disabling shared libraries support.  We urge you to upgrade GNU
14965 *** binutils to release 2.9.1 or newer.  Another option is to modify
14966 *** your PATH or compiler configuration so that the native linker is
14967 *** used, and then restart.
14968
14969 EOF
14970       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14971         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14972         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14973       else
14974         ld_shlibs=no
14975       fi
14976       ;;
14977
14978     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14979       case `$LD -v 2>&1` in
14980         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14981         ld_shlibs=no
14982         cat <<_LT_EOF 1>&2
14983
14984 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14985 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14986 *** is disabling shared libraries support.  We urge you to upgrade GNU
14987 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14988 *** your PATH or compiler configuration so that the native linker is
14989 *** used, and then restart.
14990
14991 _LT_EOF
14992         ;;
14993         *)
14994           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14995             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14996             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14997             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14998           else
14999             ld_shlibs=no
15000           fi
15001         ;;
15002       esac
15003       ;;
15004
15005     sunos4*)
15006       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15007       wlarc=
15008       hardcode_direct=yes
15009       hardcode_shlibpath_var=no
15010       ;;
15011
15012     *)
15013       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15014         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15015         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15016       else
15017         ld_shlibs=no
15018       fi
15019       ;;
15020     esac
15021
15022     if test "$ld_shlibs" = no; then
15023       runpath_var=
15024       hardcode_libdir_flag_spec=
15025       export_dynamic_flag_spec=
15026       whole_archive_flag_spec=
15027     fi
15028   else
15029     # PORTME fill in a description of your system's linker (not GNU ld)
15030     case $host_os in
15031     aix3*)
15032       allow_undefined_flag=unsupported
15033       always_export_symbols=yes
15034       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'
15035       # Note: this linker hardcodes the directories in LIBPATH if there
15036       # are no directories specified by -L.
15037       hardcode_minus_L=yes
15038       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15039         # Neither direct hardcoding nor static linking is supported with a
15040         # broken collect2.
15041         hardcode_direct=unsupported
15042       fi
15043       ;;
15044
15045     aix4* | aix5*)
15046       if test "$host_cpu" = ia64; then
15047         # On IA64, the linker does run time linking by default, so we don't
15048         # have to do anything special.
15049         aix_use_runtimelinking=no
15050         exp_sym_flag='-Bexport'
15051         no_entry_flag=""
15052       else
15053         # If we're using GNU nm, then we don't want the "-C" option.
15054         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15055         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15056           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'
15057         else
15058           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'
15059         fi
15060         aix_use_runtimelinking=no
15061
15062         # Test if we are trying to use run time linking or normal
15063         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15064         # need to do runtime linking.
15065         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15066           for ld_flag in $LDFLAGS; do
15067           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15068             aix_use_runtimelinking=yes
15069             break
15070           fi
15071           done
15072           ;;
15073         esac
15074
15075         exp_sym_flag='-bexport'
15076         no_entry_flag='-bnoentry'
15077       fi
15078
15079       # When large executables or shared objects are built, AIX ld can
15080       # have problems creating the table of contents.  If linking a library
15081       # or program results in "error TOC overflow" add -mminimal-toc to
15082       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15083       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15084
15085       archive_cmds=''
15086       hardcode_direct=yes
15087       hardcode_libdir_separator=':'
15088       link_all_deplibs=yes
15089
15090       if test "$GCC" = yes; then
15091         case $host_os in aix4.[012]|aix4.[012].*)
15092         # We only want to do this on AIX 4.2 and lower, the check
15093         # below for broken collect2 doesn't work under 4.3+
15094           collect2name=`${CC} -print-prog-name=collect2`
15095           if test -f "$collect2name" && \
15096            strings "$collect2name" | grep resolve_lib_name >/dev/null
15097           then
15098           # We have reworked collect2
15099           hardcode_direct=yes
15100           else
15101           # We have old collect2
15102           hardcode_direct=unsupported
15103           # It fails to find uninstalled libraries when the uninstalled
15104           # path is not listed in the libpath.  Setting hardcode_minus_L
15105           # to unsupported forces relinking
15106           hardcode_minus_L=yes
15107           hardcode_libdir_flag_spec='-L$libdir'
15108           hardcode_libdir_separator=
15109           fi
15110           ;;
15111         esac
15112         shared_flag='-shared'
15113         if test "$aix_use_runtimelinking" = yes; then
15114           shared_flag="$shared_flag "'${wl}-G'
15115         fi
15116       else
15117         # not using gcc
15118         if test "$host_cpu" = ia64; then
15119         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15120         # chokes on -Wl,-G. The following line is correct:
15121           shared_flag='-G'
15122         else
15123           if test "$aix_use_runtimelinking" = yes; then
15124             shared_flag='${wl}-G'
15125           else
15126             shared_flag='${wl}-bM:SRE'
15127           fi
15128         fi
15129       fi
15130
15131       # It seems that -bexpall does not export symbols beginning with
15132       # underscore (_), so it is better to generate a list of symbols to export.
15133       always_export_symbols=yes
15134       if test "$aix_use_runtimelinking" = yes; then
15135         # Warning - without using the other runtime loading flags (-brtl),
15136         # -berok will link without error, but may produce a broken library.
15137         allow_undefined_flag='-berok'
15138        # Determine the default libpath from the value encoded in an empty executable.
15139        cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h.  */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h.  */
15145
15146 int
15147 main ()
15148 {
15149
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_link") 2>conftest.er1
15162   ac_status=$?
15163   grep -v '^ *+' conftest.er1 >conftest.err
15164   rm -f conftest.er1
15165   cat conftest.err >&5
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } &&
15168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169   { (case "(($ac_try" in
15170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171   *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174   (eval "$ac_try") 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; } &&
15178          { ac_try='test -s conftest$ac_exeext'
15179   { (case "(($ac_try" in
15180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181   *) ac_try_echo=$ac_try;;
15182 esac
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184   (eval "$ac_try") 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; }; then
15188
15189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15190 }'`
15191 # Check for a 64-bit object if we didn't find anything.
15192 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; }
15193 }'`; fi
15194 else
15195   echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198
15199 fi
15200
15201 rm -f core conftest.err conftest.$ac_objext \
15202       conftest$ac_exeext conftest.$ac_ext
15203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15204
15205        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15206         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"
15207        else
15208         if test "$host_cpu" = ia64; then
15209           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15210           allow_undefined_flag="-z nodefs"
15211           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"
15212         else
15213          # Determine the default libpath from the value encoded in an empty executable.
15214          cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h.  */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h.  */
15220
15221 int
15222 main ()
15223 {
15224
15225   ;
15226   return 0;
15227 }
15228 _ACEOF
15229 rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (ac_try="$ac_link"
15231 case "(($ac_try" in
15232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233   *) ac_try_echo=$ac_try;;
15234 esac
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236   (eval "$ac_link") 2>conftest.er1
15237   ac_status=$?
15238   grep -v '^ *+' conftest.er1 >conftest.err
15239   rm -f conftest.er1
15240   cat conftest.err >&5
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); } &&
15243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244   { (case "(($ac_try" in
15245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246   *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249   (eval "$ac_try") 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; } &&
15253          { ac_try='test -s conftest$ac_exeext'
15254   { (case "(($ac_try" in
15255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256   *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259   (eval "$ac_try") 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263
15264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15265 }'`
15266 # Check for a 64-bit object if we didn't find anything.
15267 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; }
15268 }'`; fi
15269 else
15270   echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15272
15273
15274 fi
15275
15276 rm -f core conftest.err conftest.$ac_objext \
15277       conftest$ac_exeext conftest.$ac_ext
15278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15279
15280          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15281           # Warning - without using the other run time loading flags,
15282           # -berok will link without error, but may produce a broken library.
15283           no_undefined_flag=' ${wl}-bernotok'
15284           allow_undefined_flag=' ${wl}-berok'
15285           # Exported symbols can be pulled into shared objects from archives
15286           whole_archive_flag_spec='$convenience'
15287           archive_cmds_need_lc=yes
15288           # This is similar to how AIX traditionally builds its shared libraries.
15289           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'
15290         fi
15291       fi
15292       ;;
15293
15294     amigaos*)
15295       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)'
15296       hardcode_libdir_flag_spec='-L$libdir'
15297       hardcode_minus_L=yes
15298       # see comment about different semantics on the GNU ld section
15299       ld_shlibs=no
15300       ;;
15301
15302     bsdi[45]*)
15303       export_dynamic_flag_spec=-rdynamic
15304       ;;
15305
15306     cygwin* | mingw* | pw32*)
15307       # When not using gcc, we currently assume that we are using
15308       # Microsoft Visual C++.
15309       # hardcode_libdir_flag_spec is actually meaningless, as there is
15310       # no search path for DLLs.
15311       hardcode_libdir_flag_spec=' '
15312       allow_undefined_flag=unsupported
15313       # Tell ltmain to make .lib files, not .a files.
15314       libext=lib
15315       # Tell ltmain to make .dll files, not .so files.
15316       shrext_cmds=".dll"
15317       # FIXME: Setting linknames here is a bad hack.
15318       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15319       # The linker will automatically build a .lib file if we build a DLL.
15320       old_archive_From_new_cmds='true'
15321       # FIXME: Should let the user specify the lib program.
15322       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15323       fix_srcfile_path='`cygpath -w "$srcfile"`'
15324       enable_shared_with_static_runtimes=yes
15325       ;;
15326
15327     darwin* | rhapsody*)
15328       case $host_os in
15329         rhapsody* | darwin1.[012])
15330          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15331          ;;
15332        *) # Darwin 1.3 on
15333          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15334            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15335          else
15336            case ${MACOSX_DEPLOYMENT_TARGET} in
15337              10.[012])
15338                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15339                ;;
15340              10.*)
15341                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15342                ;;
15343            esac
15344          fi
15345          ;;
15346       esac
15347       archive_cmds_need_lc=no
15348       hardcode_direct=no
15349       hardcode_automatic=yes
15350       hardcode_shlibpath_var=unsupported
15351       whole_archive_flag_spec=''
15352       link_all_deplibs=yes
15353     if test "$GCC" = yes ; then
15354         output_verbose_link_cmd='echo'
15355         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15356       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15357       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15358       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}'
15359       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}'
15360     else
15361       case $cc_basename in
15362         xlc*)
15363          output_verbose_link_cmd='echo'
15364          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15365          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15366           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15367          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}'
15368           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}'
15369           ;;
15370        *)
15371          ld_shlibs=no
15372           ;;
15373       esac
15374     fi
15375       ;;
15376
15377     dgux*)
15378       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15379       hardcode_libdir_flag_spec='-L$libdir'
15380       hardcode_shlibpath_var=no
15381       ;;
15382
15383     freebsd1*)
15384       ld_shlibs=no
15385       ;;
15386
15387     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15388     # support.  Future versions do this automatically, but an explicit c++rt0.o
15389     # does not break anything, and helps significantly (at the cost of a little
15390     # extra space).
15391     freebsd2.2*)
15392       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15393       hardcode_libdir_flag_spec='-R$libdir'
15394       hardcode_direct=yes
15395       hardcode_shlibpath_var=no
15396       ;;
15397
15398     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15399     freebsd2*)
15400       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15401       hardcode_direct=yes
15402       hardcode_minus_L=yes
15403       hardcode_shlibpath_var=no
15404       ;;
15405
15406     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15407     freebsd* | kfreebsd*-gnu | dragonfly*)
15408       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15409       hardcode_libdir_flag_spec='-R$libdir'
15410       hardcode_direct=yes
15411       hardcode_shlibpath_var=no
15412       ;;
15413
15414     hpux9*)
15415       if test "$GCC" = yes; then
15416         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'
15417       else
15418         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'
15419       fi
15420       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15421       hardcode_libdir_separator=:
15422       hardcode_direct=yes
15423
15424       # hardcode_minus_L: Not really in the search PATH,
15425       # but as the default location of the library.
15426       hardcode_minus_L=yes
15427       export_dynamic_flag_spec='${wl}-E'
15428       ;;
15429
15430     hpux10*)
15431       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15432         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15433       else
15434         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15435       fi
15436       if test "$with_gnu_ld" = no; then
15437         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15438         hardcode_libdir_separator=:
15439
15440         hardcode_direct=yes
15441         export_dynamic_flag_spec='${wl}-E'
15442
15443         # hardcode_minus_L: Not really in the search PATH,
15444         # but as the default location of the library.
15445         hardcode_minus_L=yes
15446       fi
15447       ;;
15448
15449     hpux11*)
15450       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15451         case $host_cpu in
15452         hppa*64*)
15453           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15454           ;;
15455         ia64*)
15456           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15457           ;;
15458         *)
15459           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15460           ;;
15461         esac
15462       else
15463         case $host_cpu in
15464         hppa*64*)
15465           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15466           ;;
15467         ia64*)
15468           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15469           ;;
15470         *)
15471           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15472           ;;
15473         esac
15474       fi
15475       if test "$with_gnu_ld" = no; then
15476         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15477         hardcode_libdir_separator=:
15478
15479         case $host_cpu in
15480         hppa*64*|ia64*)
15481           hardcode_libdir_flag_spec_ld='+b $libdir'
15482           hardcode_direct=no
15483           hardcode_shlibpath_var=no
15484           ;;
15485         *)
15486           hardcode_direct=yes
15487           export_dynamic_flag_spec='${wl}-E'
15488
15489           # hardcode_minus_L: Not really in the search PATH,
15490           # but as the default location of the library.
15491           hardcode_minus_L=yes
15492           ;;
15493         esac
15494       fi
15495       ;;
15496
15497     irix5* | irix6* | nonstopux*)
15498       if test "$GCC" = yes; then
15499         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'
15500       else
15501         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'
15502         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15503       fi
15504       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15505       hardcode_libdir_separator=:
15506       link_all_deplibs=yes
15507       ;;
15508
15509     netbsd*)
15510       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15511         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15512       else
15513         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15514       fi
15515       hardcode_libdir_flag_spec='-R$libdir'
15516       hardcode_direct=yes
15517       hardcode_shlibpath_var=no
15518       ;;
15519
15520     newsos6)
15521       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522       hardcode_direct=yes
15523       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15524       hardcode_libdir_separator=:
15525       hardcode_shlibpath_var=no
15526       ;;
15527
15528     openbsd*)
15529       hardcode_direct=yes
15530       hardcode_shlibpath_var=no
15531       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15532         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15533         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15534         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15535         export_dynamic_flag_spec='${wl}-E'
15536       else
15537        case $host_os in
15538          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15539            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15540            hardcode_libdir_flag_spec='-R$libdir'
15541            ;;
15542          *)
15543            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15544            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15545            ;;
15546        esac
15547       fi
15548       ;;
15549
15550     os2*)
15551       hardcode_libdir_flag_spec='-L$libdir'
15552       hardcode_minus_L=yes
15553       allow_undefined_flag=unsupported
15554       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'
15555       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15556       ;;
15557
15558     osf3*)
15559       if test "$GCC" = yes; then
15560         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15561         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'
15562       else
15563         allow_undefined_flag=' -expect_unresolved \*'
15564         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'
15565       fi
15566       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15567       hardcode_libdir_separator=:
15568       ;;
15569
15570     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15571       if test "$GCC" = yes; then
15572         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15573         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'
15574         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575       else
15576         allow_undefined_flag=' -expect_unresolved \*'
15577         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'
15578         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15579         $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'
15580
15581         # Both c and cxx compiler support -rpath directly
15582         hardcode_libdir_flag_spec='-rpath $libdir'
15583       fi
15584       hardcode_libdir_separator=:
15585       ;;
15586
15587     solaris*)
15588       no_undefined_flag=' -z text'
15589       if test "$GCC" = yes; then
15590         wlarc='${wl}'
15591         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15592         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15593           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15594       else
15595         wlarc=''
15596         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15597         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15598         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15599       fi
15600       hardcode_libdir_flag_spec='-R$libdir'
15601       hardcode_shlibpath_var=no
15602       case $host_os in
15603       solaris2.[0-5] | solaris2.[0-5].*) ;;
15604       *)
15605         # The compiler driver will combine linker options so we
15606         # cannot just pass the convience library names through
15607         # without $wl, iff we do not link with $LD.
15608         # Luckily, gcc supports the same syntax we need for Sun Studio.
15609         # Supported since Solaris 2.6 (maybe 2.5.1?)
15610         case $wlarc in
15611         '')
15612           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15613         *)
15614           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' ;;
15615         esac ;;
15616       esac
15617       link_all_deplibs=yes
15618       ;;
15619
15620     sunos4*)
15621       if test "x$host_vendor" = xsequent; then
15622         # Use $CC to link under sequent, because it throws in some extra .o
15623         # files that make .init and .fini sections work.
15624         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15625       else
15626         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15627       fi
15628       hardcode_libdir_flag_spec='-L$libdir'
15629       hardcode_direct=yes
15630       hardcode_minus_L=yes
15631       hardcode_shlibpath_var=no
15632       ;;
15633
15634     sysv4)
15635       case $host_vendor in
15636         sni)
15637           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15638           hardcode_direct=yes # is this really true???
15639         ;;
15640         siemens)
15641           ## LD is ld it makes a PLAMLIB
15642           ## CC just makes a GrossModule.
15643           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15644           reload_cmds='$CC -r -o $output$reload_objs'
15645           hardcode_direct=no
15646         ;;
15647         motorola)
15648           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15650         ;;
15651       esac
15652       runpath_var='LD_RUN_PATH'
15653       hardcode_shlibpath_var=no
15654       ;;
15655
15656     sysv4.3*)
15657       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15658       hardcode_shlibpath_var=no
15659       export_dynamic_flag_spec='-Bexport'
15660       ;;
15661
15662     sysv4*MP*)
15663       if test -d /usr/nec; then
15664         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665         hardcode_shlibpath_var=no
15666         runpath_var=LD_RUN_PATH
15667         hardcode_runpath_var=yes
15668         ld_shlibs=yes
15669       fi
15670       ;;
15671
15672     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15673       no_undefined_flag='${wl}-z,text'
15674       archive_cmds_need_lc=no
15675       hardcode_shlibpath_var=no
15676       runpath_var='LD_RUN_PATH'
15677
15678       if test "$GCC" = yes; then
15679         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15680         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15681       else
15682         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15683         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15684       fi
15685       ;;
15686
15687     sysv5* | sco3.2v5* | sco5v6*)
15688       # Note: We can NOT use -z defs as we might desire, because we do not
15689       # link with -lc, and that would cause any symbols used from libc to
15690       # always be unresolved, which means just about no library would
15691       # ever link correctly.  If we're not using GNU ld we use -z text
15692       # though, which does catch some bad symbols but isn't as heavy-handed
15693       # as -z defs.
15694       no_undefined_flag='${wl}-z,text'
15695       allow_undefined_flag='${wl}-z,nodefs'
15696       archive_cmds_need_lc=no
15697       hardcode_shlibpath_var=no
15698       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15699       hardcode_libdir_separator=':'
15700       link_all_deplibs=yes
15701       export_dynamic_flag_spec='${wl}-Bexport'
15702       runpath_var='LD_RUN_PATH'
15703
15704       if test "$GCC" = yes; then
15705         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15706         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15707       else
15708         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15709         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15710       fi
15711       ;;
15712
15713     uts4*)
15714       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715       hardcode_libdir_flag_spec='-L$libdir'
15716       hardcode_shlibpath_var=no
15717       ;;
15718
15719     *)
15720       ld_shlibs=no
15721       ;;
15722     esac
15723   fi
15724
15725 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15726 echo "${ECHO_T}$ld_shlibs" >&6; }
15727 test "$ld_shlibs" = no && can_build_shared=no
15728
15729 #
15730 # Do we need to explicitly link libc?
15731 #
15732 case "x$archive_cmds_need_lc" in
15733 x|xyes)
15734   # Assume -lc should be added
15735   archive_cmds_need_lc=yes
15736
15737   if test "$enable_shared" = yes && test "$GCC" = yes; then
15738     case $archive_cmds in
15739     *'~'*)
15740       # FIXME: we may have to deal with multi-command sequences.
15741       ;;
15742     '$CC '*)
15743       # Test whether the compiler implicitly links with -lc since on some
15744       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15745       # to ld, don't add -lc before -lgcc.
15746       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15747 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15748       $rm conftest*
15749       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15750
15751       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752   (eval $ac_compile) 2>&5
15753   ac_status=$?
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } 2>conftest.err; then
15756         soname=conftest
15757         lib=conftest
15758         libobjs=conftest.$ac_objext
15759         deplibs=
15760         wl=$lt_prog_compiler_wl
15761         pic_flag=$lt_prog_compiler_pic
15762         compiler_flags=-v
15763         linker_flags=-v
15764         verstring=
15765         output_objdir=.
15766         libname=conftest
15767         lt_save_allow_undefined_flag=$allow_undefined_flag
15768         allow_undefined_flag=
15769         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15770   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15771   ac_status=$?
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); }
15774         then
15775           archive_cmds_need_lc=no
15776         else
15777           archive_cmds_need_lc=yes
15778         fi
15779         allow_undefined_flag=$lt_save_allow_undefined_flag
15780       else
15781         cat conftest.err 1>&5
15782       fi
15783       $rm conftest*
15784       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15785 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15786       ;;
15787     esac
15788   fi
15789   ;;
15790 esac
15791
15792 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15793 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15794 library_names_spec=
15795 libname_spec='lib$name'
15796 soname_spec=
15797 shrext_cmds=".so"
15798 postinstall_cmds=
15799 postuninstall_cmds=
15800 finish_cmds=
15801 finish_eval=
15802 shlibpath_var=
15803 shlibpath_overrides_runpath=unknown
15804 version_type=none
15805 dynamic_linker="$host_os ld.so"
15806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15807 if test "$GCC" = yes; then
15808   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15809   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15810     # if the path contains ";" then we assume it to be the separator
15811     # otherwise default to the standard path separator (i.e. ":") - it is
15812     # assumed that no part of a normal pathname contains ";" but that should
15813     # okay in the real world where ";" in dirpaths is itself problematic.
15814     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15815   else
15816     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15817   fi
15818 else
15819   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15820 fi
15821 need_lib_prefix=unknown
15822 hardcode_into_libs=no
15823
15824 # when you set need_version to no, make sure it does not cause -set_version
15825 # flags to be left without arguments
15826 need_version=unknown
15827
15828 case $host_os in
15829 aix3*)
15830   version_type=linux
15831   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15832   shlibpath_var=LIBPATH
15833
15834   # AIX 3 has no versioning support, so we append a major version to the name.
15835   soname_spec='${libname}${release}${shared_ext}$major'
15836   ;;
15837
15838 aix4* | aix5*)
15839   version_type=linux
15840   need_lib_prefix=no
15841   need_version=no
15842   hardcode_into_libs=yes
15843   if test "$host_cpu" = ia64; then
15844     # AIX 5 supports IA64
15845     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15846     shlibpath_var=LD_LIBRARY_PATH
15847   else
15848     # With GCC up to 2.95.x, collect2 would create an import file
15849     # for dependence libraries.  The import file would start with
15850     # the line `#! .'.  This would cause the generated library to
15851     # depend on `.', always an invalid library.  This was fixed in
15852     # development snapshots of GCC prior to 3.0.
15853     case $host_os in
15854       aix4 | aix4.[01] | aix4.[01].*)
15855       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15856            echo ' yes '
15857            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15858         :
15859       else
15860         can_build_shared=no
15861       fi
15862       ;;
15863     esac
15864     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15865     # soname into executable. Probably we can add versioning support to
15866     # collect2, so additional links can be useful in future.
15867     if test "$aix_use_runtimelinking" = yes; then
15868       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15869       # instead of lib<name>.a to let people know that these are not
15870       # typical AIX shared libraries.
15871       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872     else
15873       # We preserve .a as extension for shared libraries through AIX4.2
15874       # and later when we are not doing run time linking.
15875       library_names_spec='${libname}${release}.a $libname.a'
15876       soname_spec='${libname}${release}${shared_ext}$major'
15877     fi
15878     shlibpath_var=LIBPATH
15879   fi
15880   ;;
15881
15882 amigaos*)
15883   library_names_spec='$libname.ixlibrary $libname.a'
15884   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15885   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'
15886   ;;
15887
15888 beos*)
15889   library_names_spec='${libname}${shared_ext}'
15890   dynamic_linker="$host_os ld.so"
15891   shlibpath_var=LIBRARY_PATH
15892   ;;
15893
15894 bsdi[45]*)
15895   version_type=linux
15896   need_version=no
15897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898   soname_spec='${libname}${release}${shared_ext}$major'
15899   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15900   shlibpath_var=LD_LIBRARY_PATH
15901   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15902   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15903   # the default ld.so.conf also contains /usr/contrib/lib and
15904   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15905   # libtool to hard-code these into programs
15906   ;;
15907
15908 cygwin* | mingw* | pw32*)
15909   version_type=windows
15910   shrext_cmds=".dll"
15911   need_version=no
15912   need_lib_prefix=no
15913
15914   case $GCC,$host_os in
15915   yes,cygwin* | yes,mingw* | yes,pw32*)
15916     library_names_spec='$libname.dll.a'
15917     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15918     postinstall_cmds='base_file=`basename \${file}`~
15919       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15920       dldir=$destdir/`dirname \$dlpath`~
15921       test -d \$dldir || mkdir -p \$dldir~
15922       $install_prog $dir/$dlname \$dldir/$dlname~
15923       chmod a+x \$dldir/$dlname'
15924     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15925       dlpath=$dir/\$dldll~
15926        $rm \$dlpath'
15927     shlibpath_overrides_runpath=yes
15928
15929     case $host_os in
15930     cygwin*)
15931       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15932       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15933       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15934       ;;
15935     mingw*)
15936       # MinGW DLLs use traditional 'lib' prefix
15937       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15938       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15939       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15940         # It is most probably a Windows format PATH printed by
15941         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15942         # path with ; separators, and with drive letters. We can handle the
15943         # drive letters (cygwin fileutils understands them), so leave them,
15944         # especially as we might pass files found there to a mingw objdump,
15945         # which wouldn't understand a cygwinified path. Ahh.
15946         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15947       else
15948         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15949       fi
15950       ;;
15951     pw32*)
15952       # pw32 DLLs use 'pw' prefix rather than 'lib'
15953       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15954       ;;
15955     esac
15956     ;;
15957
15958   *)
15959     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15960     ;;
15961   esac
15962   dynamic_linker='Win32 ld.exe'
15963   # FIXME: first we should search . and the directory the executable is in
15964   shlibpath_var=PATH
15965   ;;
15966
15967 darwin* | rhapsody*)
15968   dynamic_linker="$host_os dyld"
15969   version_type=darwin
15970   need_lib_prefix=no
15971   need_version=no
15972   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15973   soname_spec='${libname}${release}${major}$shared_ext'
15974   shlibpath_overrides_runpath=yes
15975   shlibpath_var=DYLD_LIBRARY_PATH
15976   shrext_cmds='.dylib'
15977   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15978   if test "$GCC" = yes; then
15979     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"`
15980   else
15981     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15982   fi
15983   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15984   ;;
15985
15986 dgux*)
15987   version_type=linux
15988   need_lib_prefix=no
15989   need_version=no
15990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15991   soname_spec='${libname}${release}${shared_ext}$major'
15992   shlibpath_var=LD_LIBRARY_PATH
15993   ;;
15994
15995 freebsd1*)
15996   dynamic_linker=no
15997   ;;
15998
15999 kfreebsd*-gnu)
16000   version_type=linux
16001   need_lib_prefix=no
16002   need_version=no
16003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16004   soname_spec='${libname}${release}${shared_ext}$major'
16005   shlibpath_var=LD_LIBRARY_PATH
16006   shlibpath_overrides_runpath=no
16007   hardcode_into_libs=yes
16008   dynamic_linker='GNU ld.so'
16009   ;;
16010
16011 freebsd* | dragonfly*)
16012   # DragonFly does not have aout.  When/if they implement a new
16013   # versioning mechanism, adjust this.
16014   if test -x /usr/bin/objformat; then
16015     objformat=`/usr/bin/objformat`
16016   else
16017     case $host_os in
16018     freebsd[123]*) objformat=aout ;;
16019     *) objformat=elf ;;
16020     esac
16021   fi
16022   version_type=freebsd-$objformat
16023   case $version_type in
16024     freebsd-elf*)
16025       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16026       need_version=no
16027       need_lib_prefix=no
16028       ;;
16029     freebsd-*)
16030       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16031       need_version=yes
16032       ;;
16033   esac
16034   shlibpath_var=LD_LIBRARY_PATH
16035   case $host_os in
16036   freebsd2*)
16037     shlibpath_overrides_runpath=yes
16038     ;;
16039   freebsd3.[01]* | freebsdelf3.[01]*)
16040     shlibpath_overrides_runpath=yes
16041     hardcode_into_libs=yes
16042     ;;
16043   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16044   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16045     shlibpath_overrides_runpath=no
16046     hardcode_into_libs=yes
16047     ;;
16048   freebsd*) # from 4.6 on
16049     shlibpath_overrides_runpath=yes
16050     hardcode_into_libs=yes
16051     ;;
16052   esac
16053   ;;
16054
16055 gnu*)
16056   version_type=linux
16057   need_lib_prefix=no
16058   need_version=no
16059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16060   soname_spec='${libname}${release}${shared_ext}$major'
16061   shlibpath_var=LD_LIBRARY_PATH
16062   hardcode_into_libs=yes
16063   ;;
16064
16065 hpux9* | hpux10* | hpux11*)
16066   # Give a soname corresponding to the major version so that dld.sl refuses to
16067   # link against other versions.
16068   version_type=sunos
16069   need_lib_prefix=no
16070   need_version=no
16071   case $host_cpu in
16072   ia64*)
16073     shrext_cmds='.so'
16074     hardcode_into_libs=yes
16075     dynamic_linker="$host_os dld.so"
16076     shlibpath_var=LD_LIBRARY_PATH
16077     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079     soname_spec='${libname}${release}${shared_ext}$major'
16080     if test "X$HPUX_IA64_MODE" = X32; then
16081       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16082     else
16083       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16084     fi
16085     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16086     ;;
16087    hppa*64*)
16088      shrext_cmds='.sl'
16089      hardcode_into_libs=yes
16090      dynamic_linker="$host_os dld.sl"
16091      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16092      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16093      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094      soname_spec='${libname}${release}${shared_ext}$major'
16095      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16096      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16097      ;;
16098    *)
16099     shrext_cmds='.sl'
16100     dynamic_linker="$host_os dld.sl"
16101     shlibpath_var=SHLIB_PATH
16102     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104     soname_spec='${libname}${release}${shared_ext}$major'
16105     ;;
16106   esac
16107   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16108   postinstall_cmds='chmod 555 $lib'
16109   ;;
16110
16111 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16118   shlibpath_var=LD_LIBRARY_PATH
16119   shlibpath_overrides_runpath=no
16120   hardcode_into_libs=yes
16121   ;;
16122
16123 irix5* | irix6* | nonstopux*)
16124   case $host_os in
16125     nonstopux*) version_type=nonstopux ;;
16126     *)
16127         if test "$lt_cv_prog_gnu_ld" = yes; then
16128                 version_type=linux
16129         else
16130                 version_type=irix
16131         fi ;;
16132   esac
16133   need_lib_prefix=no
16134   need_version=no
16135   soname_spec='${libname}${release}${shared_ext}$major'
16136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16137   case $host_os in
16138   irix5* | nonstopux*)
16139     libsuff= shlibsuff=
16140     ;;
16141   *)
16142     case $LD in # libtool.m4 will add one of these switches to LD
16143     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16144       libsuff= shlibsuff= libmagic=32-bit;;
16145     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16146       libsuff=32 shlibsuff=N32 libmagic=N32;;
16147     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16148       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16149     *) libsuff= shlibsuff= libmagic=never-match;;
16150     esac
16151     ;;
16152   esac
16153   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16154   shlibpath_overrides_runpath=no
16155   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16156   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16157   hardcode_into_libs=yes
16158   ;;
16159
16160 # No shared lib support for Linux oldld, aout, or coff.
16161 linux*oldld* | linux*aout* | linux*coff*)
16162   dynamic_linker=no
16163   ;;
16164
16165 # This must be Linux ELF.
16166 linux*)
16167   version_type=linux
16168   need_lib_prefix=no
16169   need_version=no
16170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171   soname_spec='${libname}${release}${shared_ext}$major'
16172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16173   shlibpath_var=LD_LIBRARY_PATH
16174   shlibpath_overrides_runpath=no
16175   # This implies no fast_install, which is unacceptable.
16176   # Some rework will be needed to allow for fast_install
16177   # before this can be enabled.
16178   hardcode_into_libs=yes
16179
16180   # Append ld.so.conf contents to the search path
16181   if test -f /etc/ld.so.conf; then
16182     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' ' '`
16183     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16184   fi
16185
16186   # We used to test for /lib/ld.so.1 and disable shared libraries on
16187   # powerpc, because MkLinux only supported shared libraries with the
16188   # GNU dynamic linker.  Since this was broken with cross compilers,
16189   # most powerpc-linux boxes support dynamic linking these days and
16190   # people can always --disable-shared, the test was removed, and we
16191   # assume the GNU/Linux dynamic linker is in use.
16192   dynamic_linker='GNU/Linux ld.so'
16193   ;;
16194
16195 knetbsd*-gnu)
16196   version_type=linux
16197   need_lib_prefix=no
16198   need_version=no
16199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16200   soname_spec='${libname}${release}${shared_ext}$major'
16201   shlibpath_var=LD_LIBRARY_PATH
16202   shlibpath_overrides_runpath=no
16203   hardcode_into_libs=yes
16204   dynamic_linker='GNU ld.so'
16205   ;;
16206
16207 netbsd*)
16208   version_type=sunos
16209   need_lib_prefix=no
16210   need_version=no
16211   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16213     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16214     dynamic_linker='NetBSD (a.out) ld.so'
16215   else
16216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16217     soname_spec='${libname}${release}${shared_ext}$major'
16218     dynamic_linker='NetBSD ld.elf_so'
16219   fi
16220   shlibpath_var=LD_LIBRARY_PATH
16221   shlibpath_overrides_runpath=yes
16222   hardcode_into_libs=yes
16223   ;;
16224
16225 newsos6)
16226   version_type=linux
16227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228   shlibpath_var=LD_LIBRARY_PATH
16229   shlibpath_overrides_runpath=yes
16230   ;;
16231
16232 nto-qnx*)
16233   version_type=linux
16234   need_lib_prefix=no
16235   need_version=no
16236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237   soname_spec='${libname}${release}${shared_ext}$major'
16238   shlibpath_var=LD_LIBRARY_PATH
16239   shlibpath_overrides_runpath=yes
16240   ;;
16241
16242 openbsd*)
16243   version_type=sunos
16244   sys_lib_dlsearch_path_spec="/usr/lib"
16245   need_lib_prefix=no
16246   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16247   case $host_os in
16248     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16249     *)                         need_version=no  ;;
16250   esac
16251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16252   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16253   shlibpath_var=LD_LIBRARY_PATH
16254   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16255     case $host_os in
16256       openbsd2.[89] | openbsd2.[89].*)
16257         shlibpath_overrides_runpath=no
16258         ;;
16259       *)
16260         shlibpath_overrides_runpath=yes
16261         ;;
16262       esac
16263   else
16264     shlibpath_overrides_runpath=yes
16265   fi
16266   ;;
16267
16268 os2*)
16269   libname_spec='$name'
16270   shrext_cmds=".dll"
16271   need_lib_prefix=no
16272   library_names_spec='$libname${shared_ext} $libname.a'
16273   dynamic_linker='OS/2 ld.exe'
16274   shlibpath_var=LIBPATH
16275   ;;
16276
16277 osf3* | osf4* | osf5*)
16278   version_type=osf
16279   need_lib_prefix=no
16280   need_version=no
16281   soname_spec='${libname}${release}${shared_ext}$major'
16282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283   shlibpath_var=LD_LIBRARY_PATH
16284   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16285   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16286   ;;
16287
16288 solaris*)
16289   version_type=linux
16290   need_lib_prefix=no
16291   need_version=no
16292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293   soname_spec='${libname}${release}${shared_ext}$major'
16294   shlibpath_var=LD_LIBRARY_PATH
16295   shlibpath_overrides_runpath=yes
16296   hardcode_into_libs=yes
16297   # ldd complains unless libraries are executable
16298   postinstall_cmds='chmod +x $lib'
16299   ;;
16300
16301 sunos4*)
16302   version_type=sunos
16303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16304   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16305   shlibpath_var=LD_LIBRARY_PATH
16306   shlibpath_overrides_runpath=yes
16307   if test "$with_gnu_ld" = yes; then
16308     need_lib_prefix=no
16309   fi
16310   need_version=yes
16311   ;;
16312
16313 sysv4 | sysv4.3*)
16314   version_type=linux
16315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316   soname_spec='${libname}${release}${shared_ext}$major'
16317   shlibpath_var=LD_LIBRARY_PATH
16318   case $host_vendor in
16319     sni)
16320       shlibpath_overrides_runpath=no
16321       need_lib_prefix=no
16322       export_dynamic_flag_spec='${wl}-Blargedynsym'
16323       runpath_var=LD_RUN_PATH
16324       ;;
16325     siemens)
16326       need_lib_prefix=no
16327       ;;
16328     motorola)
16329       need_lib_prefix=no
16330       need_version=no
16331       shlibpath_overrides_runpath=no
16332       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16333       ;;
16334   esac
16335   ;;
16336
16337 sysv4*MP*)
16338   if test -d /usr/nec ;then
16339     version_type=linux
16340     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16341     soname_spec='$libname${shared_ext}.$major'
16342     shlibpath_var=LD_LIBRARY_PATH
16343   fi
16344   ;;
16345
16346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16347   version_type=freebsd-elf
16348   need_lib_prefix=no
16349   need_version=no
16350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16351   soname_spec='${libname}${release}${shared_ext}$major'
16352   shlibpath_var=LD_LIBRARY_PATH
16353   hardcode_into_libs=yes
16354   if test "$with_gnu_ld" = yes; then
16355     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16356     shlibpath_overrides_runpath=no
16357   else
16358     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16359     shlibpath_overrides_runpath=yes
16360     case $host_os in
16361       sco3.2v5*)
16362         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16363         ;;
16364     esac
16365   fi
16366   sys_lib_dlsearch_path_spec='/usr/lib'
16367   ;;
16368
16369 uts4*)
16370   version_type=linux
16371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372   soname_spec='${libname}${release}${shared_ext}$major'
16373   shlibpath_var=LD_LIBRARY_PATH
16374   ;;
16375
16376 *)
16377   dynamic_linker=no
16378   ;;
16379 esac
16380 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16381 echo "${ECHO_T}$dynamic_linker" >&6; }
16382 test "$dynamic_linker" = no && can_build_shared=no
16383
16384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16385 if test "$GCC" = yes; then
16386   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16387 fi
16388
16389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16391 hardcode_action=
16392 if test -n "$hardcode_libdir_flag_spec" || \
16393    test -n "$runpath_var" || \
16394    test "X$hardcode_automatic" = "Xyes" ; then
16395
16396   # We can hardcode non-existant directories.
16397   if test "$hardcode_direct" != no &&
16398      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16399      # have to relink, otherwise we might link with an installed library
16400      # when we should be linking with a yet-to-be-installed one
16401      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16402      test "$hardcode_minus_L" != no; then
16403     # Linking always hardcodes the temporary library directory.
16404     hardcode_action=relink
16405   else
16406     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16407     hardcode_action=immediate
16408   fi
16409 else
16410   # We cannot hardcode anything, or else we can only hardcode existing
16411   # directories.
16412   hardcode_action=unsupported
16413 fi
16414 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16415 echo "${ECHO_T}$hardcode_action" >&6; }
16416
16417 if test "$hardcode_action" = relink; then
16418   # Fast installation is not supported
16419   enable_fast_install=no
16420 elif test "$shlibpath_overrides_runpath" = yes ||
16421      test "$enable_shared" = no; then
16422   # Fast installation is not necessary
16423   enable_fast_install=needless
16424 fi
16425
16426 striplib=
16427 old_striplib=
16428 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16429 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16430 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16431   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16432   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16433   { echo "$as_me:$LINENO: result: yes" >&5
16434 echo "${ECHO_T}yes" >&6; }
16435 else
16436 # FIXME - insert some real tests, host_os isn't really good enough
16437   case $host_os in
16438    darwin*)
16439        if test -n "$STRIP" ; then
16440          striplib="$STRIP -x"
16441          { echo "$as_me:$LINENO: result: yes" >&5
16442 echo "${ECHO_T}yes" >&6; }
16443        else
16444   { echo "$as_me:$LINENO: result: no" >&5
16445 echo "${ECHO_T}no" >&6; }
16446 fi
16447        ;;
16448    *)
16449   { echo "$as_me:$LINENO: result: no" >&5
16450 echo "${ECHO_T}no" >&6; }
16451     ;;
16452   esac
16453 fi
16454
16455 if test "x$enable_dlopen" != xyes; then
16456   enable_dlopen=unknown
16457   enable_dlopen_self=unknown
16458   enable_dlopen_self_static=unknown
16459 else
16460   lt_cv_dlopen=no
16461   lt_cv_dlopen_libs=
16462
16463   case $host_os in
16464   beos*)
16465     lt_cv_dlopen="load_add_on"
16466     lt_cv_dlopen_libs=
16467     lt_cv_dlopen_self=yes
16468     ;;
16469
16470   mingw* | pw32*)
16471     lt_cv_dlopen="LoadLibrary"
16472     lt_cv_dlopen_libs=
16473    ;;
16474
16475   cygwin*)
16476     lt_cv_dlopen="dlopen"
16477     lt_cv_dlopen_libs=
16478    ;;
16479
16480   darwin*)
16481   # if libdl is installed we need to link against it
16482     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16485   echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487   ac_check_lib_save_LIBS=$LIBS
16488 LIBS="-ldl  $LIBS"
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495
16496 /* Override any GCC internal prototype to avoid an error.
16497    Use char because int might match the return type of a GCC
16498    builtin and then its argument prototype would still apply.  */
16499 #ifdef __cplusplus
16500 extern "C"
16501 #endif
16502 char dlopen ();
16503 int
16504 main ()
16505 {
16506 return dlopen ();
16507   ;
16508   return 0;
16509 }
16510 _ACEOF
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_link") 2>conftest.er1
16519   ac_status=$?
16520   grep -v '^ *+' conftest.er1 >conftest.err
16521   rm -f conftest.er1
16522   cat conftest.err >&5
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); } &&
16525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526   { (case "(($ac_try" in
16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528   *) ac_try_echo=$ac_try;;
16529 esac
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531   (eval "$ac_try") 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); }; } &&
16535          { ac_try='test -s conftest$ac_exeext'
16536   { (case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541   (eval "$ac_try") 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; }; then
16545   ac_cv_lib_dl_dlopen=yes
16546 else
16547   echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16549
16550         ac_cv_lib_dl_dlopen=no
16551 fi
16552
16553 rm -f core conftest.err conftest.$ac_objext \
16554       conftest$ac_exeext conftest.$ac_ext
16555 LIBS=$ac_check_lib_save_LIBS
16556 fi
16557 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16558 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16559 if test $ac_cv_lib_dl_dlopen = yes; then
16560   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16561 else
16562
16563     lt_cv_dlopen="dyld"
16564     lt_cv_dlopen_libs=
16565     lt_cv_dlopen_self=yes
16566
16567 fi
16568
16569    ;;
16570
16571   *)
16572     { echo "$as_me:$LINENO: checking for shl_load" >&5
16573 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16574 if test "${ac_cv_func_shl_load+set}" = set; then
16575   echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577   cat >conftest.$ac_ext <<_ACEOF
16578 /* confdefs.h.  */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h.  */
16583 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16585 #define shl_load innocuous_shl_load
16586
16587 /* System header to define __stub macros and hopefully few prototypes,
16588     which can conflict with char shl_load (); below.
16589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16590     <limits.h> exists even on freestanding compilers.  */
16591
16592 #ifdef __STDC__
16593 # include <limits.h>
16594 #else
16595 # include <assert.h>
16596 #endif
16597
16598 #undef shl_load
16599
16600 /* Override any GCC internal prototype to avoid an error.
16601    Use char because int might match the return type of a GCC
16602    builtin and then its argument prototype would still apply.  */
16603 #ifdef __cplusplus
16604 extern "C"
16605 #endif
16606 char shl_load ();
16607 /* The GNU C library defines this for functions which it implements
16608     to always fail with ENOSYS.  Some functions are actually named
16609     something starting with __ and the normal name is an alias.  */
16610 #if defined __stub_shl_load || defined __stub___shl_load
16611 choke me
16612 #endif
16613
16614 int
16615 main ()
16616 {
16617 return shl_load ();
16618   ;
16619   return 0;
16620 }
16621 _ACEOF
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (ac_try="$ac_link"
16624 case "(($ac_try" in
16625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626   *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629   (eval "$ac_link") 2>conftest.er1
16630   ac_status=$?
16631   grep -v '^ *+' conftest.er1 >conftest.err
16632   rm -f conftest.er1
16633   cat conftest.err >&5
16634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635   (exit $ac_status); } &&
16636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16637   { (case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642   (eval "$ac_try") 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); }; } &&
16646          { ac_try='test -s conftest$ac_exeext'
16647   { (case "(($ac_try" in
16648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649   *) ac_try_echo=$ac_try;;
16650 esac
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652   (eval "$ac_try") 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; }; then
16656   ac_cv_func_shl_load=yes
16657 else
16658   echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661         ac_cv_func_shl_load=no
16662 fi
16663
16664 rm -f core conftest.err conftest.$ac_objext \
16665       conftest$ac_exeext conftest.$ac_ext
16666 fi
16667 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16668 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16669 if test $ac_cv_func_shl_load = yes; then
16670   lt_cv_dlopen="shl_load"
16671 else
16672   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16673 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16674 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   ac_check_lib_save_LIBS=$LIBS
16678 LIBS="-ldld  $LIBS"
16679 cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h.  */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h.  */
16685
16686 /* Override any GCC internal prototype to avoid an error.
16687    Use char because int might match the return type of a GCC
16688    builtin and then its argument prototype would still apply.  */
16689 #ifdef __cplusplus
16690 extern "C"
16691 #endif
16692 char shl_load ();
16693 int
16694 main ()
16695 {
16696 return shl_load ();
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (ac_try="$ac_link"
16703 case "(($ac_try" in
16704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705   *) ac_try_echo=$ac_try;;
16706 esac
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708   (eval "$ac_link") 2>conftest.er1
16709   ac_status=$?
16710   grep -v '^ *+' conftest.er1 >conftest.err
16711   rm -f conftest.er1
16712   cat conftest.err >&5
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); } &&
16715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716   { (case "(($ac_try" in
16717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718   *) ac_try_echo=$ac_try;;
16719 esac
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721   (eval "$ac_try") 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; } &&
16725          { ac_try='test -s conftest$ac_exeext'
16726   { (case "(($ac_try" in
16727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728   *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731   (eval "$ac_try") 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; }; then
16735   ac_cv_lib_dld_shl_load=yes
16736 else
16737   echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740         ac_cv_lib_dld_shl_load=no
16741 fi
16742
16743 rm -f core conftest.err conftest.$ac_objext \
16744       conftest$ac_exeext conftest.$ac_ext
16745 LIBS=$ac_check_lib_save_LIBS
16746 fi
16747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16748 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16749 if test $ac_cv_lib_dld_shl_load = yes; then
16750   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16751 else
16752   { echo "$as_me:$LINENO: checking for dlopen" >&5
16753 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16754 if test "${ac_cv_func_dlopen+set}" = set; then
16755   echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757   cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h.  */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h.  */
16763 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16765 #define dlopen innocuous_dlopen
16766
16767 /* System header to define __stub macros and hopefully few prototypes,
16768     which can conflict with char dlopen (); below.
16769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770     <limits.h> exists even on freestanding compilers.  */
16771
16772 #ifdef __STDC__
16773 # include <limits.h>
16774 #else
16775 # include <assert.h>
16776 #endif
16777
16778 #undef dlopen
16779
16780 /* Override any GCC internal prototype to avoid an error.
16781    Use char because int might match the return type of a GCC
16782    builtin and then its argument prototype would still apply.  */
16783 #ifdef __cplusplus
16784 extern "C"
16785 #endif
16786 char dlopen ();
16787 /* The GNU C library defines this for functions which it implements
16788     to always fail with ENOSYS.  Some functions are actually named
16789     something starting with __ and the normal name is an alias.  */
16790 #if defined __stub_dlopen || defined __stub___dlopen
16791 choke me
16792 #endif
16793
16794 int
16795 main ()
16796 {
16797 return dlopen ();
16798   ;
16799   return 0;
16800 }
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (ac_try="$ac_link"
16804 case "(($ac_try" in
16805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806   *) ac_try_echo=$ac_try;;
16807 esac
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809   (eval "$ac_link") 2>conftest.er1
16810   ac_status=$?
16811   grep -v '^ *+' conftest.er1 >conftest.err
16812   rm -f conftest.er1
16813   cat conftest.err >&5
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); } &&
16816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16817   { (case "(($ac_try" in
16818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819   *) ac_try_echo=$ac_try;;
16820 esac
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822   (eval "$ac_try") 2>&5
16823   ac_status=$?
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); }; } &&
16826          { ac_try='test -s conftest$ac_exeext'
16827   { (case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832   (eval "$ac_try") 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); }; }; then
16836   ac_cv_func_dlopen=yes
16837 else
16838   echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16840
16841         ac_cv_func_dlopen=no
16842 fi
16843
16844 rm -f core conftest.err conftest.$ac_objext \
16845       conftest$ac_exeext conftest.$ac_ext
16846 fi
16847 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16848 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16849 if test $ac_cv_func_dlopen = yes; then
16850   lt_cv_dlopen="dlopen"
16851 else
16852   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16853 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16854 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16855   echo $ECHO_N "(cached) $ECHO_C" >&6
16856 else
16857   ac_check_lib_save_LIBS=$LIBS
16858 LIBS="-ldl  $LIBS"
16859 cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865
16866 /* Override any GCC internal prototype to avoid an error.
16867    Use char because int might match the return type of a GCC
16868    builtin and then its argument prototype would still apply.  */
16869 #ifdef __cplusplus
16870 extern "C"
16871 #endif
16872 char dlopen ();
16873 int
16874 main ()
16875 {
16876 return dlopen ();
16877   ;
16878   return 0;
16879 }
16880 _ACEOF
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (ac_try="$ac_link"
16883 case "(($ac_try" in
16884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885   *) ac_try_echo=$ac_try;;
16886 esac
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888   (eval "$ac_link") 2>conftest.er1
16889   ac_status=$?
16890   grep -v '^ *+' conftest.er1 >conftest.err
16891   rm -f conftest.er1
16892   cat conftest.err >&5
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); } &&
16895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16896   { (case "(($ac_try" in
16897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898   *) ac_try_echo=$ac_try;;
16899 esac
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901   (eval "$ac_try") 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); }; } &&
16905          { ac_try='test -s conftest$ac_exeext'
16906   { (case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_try") 2>&5
16912   ac_status=$?
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); }; }; then
16915   ac_cv_lib_dl_dlopen=yes
16916 else
16917   echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920         ac_cv_lib_dl_dlopen=no
16921 fi
16922
16923 rm -f core conftest.err conftest.$ac_objext \
16924       conftest$ac_exeext conftest.$ac_ext
16925 LIBS=$ac_check_lib_save_LIBS
16926 fi
16927 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16928 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16929 if test $ac_cv_lib_dl_dlopen = yes; then
16930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16931 else
16932   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16933 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16934 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16935   echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937   ac_check_lib_save_LIBS=$LIBS
16938 LIBS="-lsvld  $LIBS"
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945
16946 /* Override any GCC internal prototype to avoid an error.
16947    Use char because int might match the return type of a GCC
16948    builtin and then its argument prototype would still apply.  */
16949 #ifdef __cplusplus
16950 extern "C"
16951 #endif
16952 char dlopen ();
16953 int
16954 main ()
16955 {
16956 return dlopen ();
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (ac_try="$ac_link"
16963 case "(($ac_try" in
16964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965   *) ac_try_echo=$ac_try;;
16966 esac
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968   (eval "$ac_link") 2>conftest.er1
16969   ac_status=$?
16970   grep -v '^ *+' conftest.er1 >conftest.err
16971   rm -f conftest.er1
16972   cat conftest.err >&5
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); } &&
16975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976   { (case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_try") 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; } &&
16985          { ac_try='test -s conftest$ac_exeext'
16986   { (case "(($ac_try" in
16987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988   *) ac_try_echo=$ac_try;;
16989 esac
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991   (eval "$ac_try") 2>&5
16992   ac_status=$?
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); }; }; then
16995   ac_cv_lib_svld_dlopen=yes
16996 else
16997   echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000         ac_cv_lib_svld_dlopen=no
17001 fi
17002
17003 rm -f core conftest.err conftest.$ac_objext \
17004       conftest$ac_exeext conftest.$ac_ext
17005 LIBS=$ac_check_lib_save_LIBS
17006 fi
17007 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17008 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17009 if test $ac_cv_lib_svld_dlopen = yes; then
17010   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17011 else
17012   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17013 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17014 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17015   echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017   ac_check_lib_save_LIBS=$LIBS
17018 LIBS="-ldld  $LIBS"
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025
17026 /* Override any GCC internal prototype to avoid an error.
17027    Use char because int might match the return type of a GCC
17028    builtin and then its argument prototype would still apply.  */
17029 #ifdef __cplusplus
17030 extern "C"
17031 #endif
17032 char dld_link ();
17033 int
17034 main ()
17035 {
17036 return dld_link ();
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (ac_try="$ac_link"
17043 case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_link") 2>conftest.er1
17049   ac_status=$?
17050   grep -v '^ *+' conftest.er1 >conftest.err
17051   rm -f conftest.er1
17052   cat conftest.err >&5
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); } &&
17055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056   { (case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_try") 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; } &&
17065          { ac_try='test -s conftest$ac_exeext'
17066   { (case "(($ac_try" in
17067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068   *) ac_try_echo=$ac_try;;
17069 esac
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071   (eval "$ac_try") 2>&5
17072   ac_status=$?
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); }; }; then
17075   ac_cv_lib_dld_dld_link=yes
17076 else
17077   echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17079
17080         ac_cv_lib_dld_dld_link=no
17081 fi
17082
17083 rm -f core conftest.err conftest.$ac_objext \
17084       conftest$ac_exeext conftest.$ac_ext
17085 LIBS=$ac_check_lib_save_LIBS
17086 fi
17087 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17089 if test $ac_cv_lib_dld_dld_link = yes; then
17090   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17091 fi
17092
17093
17094 fi
17095
17096
17097 fi
17098
17099
17100 fi
17101
17102
17103 fi
17104
17105
17106 fi
17107
17108     ;;
17109   esac
17110
17111   if test "x$lt_cv_dlopen" != xno; then
17112     enable_dlopen=yes
17113   else
17114     enable_dlopen=no
17115   fi
17116
17117   case $lt_cv_dlopen in
17118   dlopen)
17119     save_CPPFLAGS="$CPPFLAGS"
17120     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17121
17122     save_LDFLAGS="$LDFLAGS"
17123     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17124
17125     save_LIBS="$LIBS"
17126     LIBS="$lt_cv_dlopen_libs $LIBS"
17127
17128     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17130 if test "${lt_cv_dlopen_self+set}" = set; then
17131   echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133           if test "$cross_compiling" = yes; then :
17134   lt_cv_dlopen_self=cross
17135 else
17136   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17137   lt_status=$lt_dlunknown
17138   cat > conftest.$ac_ext <<EOF
17139 #line 17139 "configure"
17140 #include "confdefs.h"
17141
17142 #if HAVE_DLFCN_H
17143 #include <dlfcn.h>
17144 #endif
17145
17146 #include <stdio.h>
17147
17148 #ifdef RTLD_GLOBAL
17149 #  define LT_DLGLOBAL           RTLD_GLOBAL
17150 #else
17151 #  ifdef DL_GLOBAL
17152 #    define LT_DLGLOBAL         DL_GLOBAL
17153 #  else
17154 #    define LT_DLGLOBAL         0
17155 #  endif
17156 #endif
17157
17158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17159    find out it does not work in some platform. */
17160 #ifndef LT_DLLAZY_OR_NOW
17161 #  ifdef RTLD_LAZY
17162 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17163 #  else
17164 #    ifdef DL_LAZY
17165 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17166 #    else
17167 #      ifdef RTLD_NOW
17168 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17169 #      else
17170 #        ifdef DL_NOW
17171 #          define LT_DLLAZY_OR_NOW      DL_NOW
17172 #        else
17173 #          define LT_DLLAZY_OR_NOW      0
17174 #        endif
17175 #      endif
17176 #    endif
17177 #  endif
17178 #endif
17179
17180 #ifdef __cplusplus
17181 extern "C" void exit (int);
17182 #endif
17183
17184 void fnord() { int i=42;}
17185 int main ()
17186 {
17187   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17188   int status = $lt_dlunknown;
17189
17190   if (self)
17191     {
17192       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17193       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17194       /* dlclose (self); */
17195     }
17196   else
17197     puts (dlerror ());
17198
17199     exit (status);
17200 }
17201 EOF
17202   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203   (eval $ac_link) 2>&5
17204   ac_status=$?
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17207     (./conftest; exit; ) >&5 2>/dev/null
17208     lt_status=$?
17209     case x$lt_status in
17210       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17211       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17212       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17213     esac
17214   else :
17215     # compilation failed
17216     lt_cv_dlopen_self=no
17217   fi
17218 fi
17219 rm -fr conftest*
17220
17221
17222 fi
17223 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17224 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17225
17226     if test "x$lt_cv_dlopen_self" = xyes; then
17227       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17228       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17229 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17230 if test "${lt_cv_dlopen_self_static+set}" = set; then
17231   echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233           if test "$cross_compiling" = yes; then :
17234   lt_cv_dlopen_self_static=cross
17235 else
17236   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17237   lt_status=$lt_dlunknown
17238   cat > conftest.$ac_ext <<EOF
17239 #line 17239 "configure"
17240 #include "confdefs.h"
17241
17242 #if HAVE_DLFCN_H
17243 #include <dlfcn.h>
17244 #endif
17245
17246 #include <stdio.h>
17247
17248 #ifdef RTLD_GLOBAL
17249 #  define LT_DLGLOBAL           RTLD_GLOBAL
17250 #else
17251 #  ifdef DL_GLOBAL
17252 #    define LT_DLGLOBAL         DL_GLOBAL
17253 #  else
17254 #    define LT_DLGLOBAL         0
17255 #  endif
17256 #endif
17257
17258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17259    find out it does not work in some platform. */
17260 #ifndef LT_DLLAZY_OR_NOW
17261 #  ifdef RTLD_LAZY
17262 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17263 #  else
17264 #    ifdef DL_LAZY
17265 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17266 #    else
17267 #      ifdef RTLD_NOW
17268 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17269 #      else
17270 #        ifdef DL_NOW
17271 #          define LT_DLLAZY_OR_NOW      DL_NOW
17272 #        else
17273 #          define LT_DLLAZY_OR_NOW      0
17274 #        endif
17275 #      endif
17276 #    endif
17277 #  endif
17278 #endif
17279
17280 #ifdef __cplusplus
17281 extern "C" void exit (int);
17282 #endif
17283
17284 void fnord() { int i=42;}
17285 int main ()
17286 {
17287   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17288   int status = $lt_dlunknown;
17289
17290   if (self)
17291     {
17292       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17293       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17294       /* dlclose (self); */
17295     }
17296   else
17297     puts (dlerror ());
17298
17299     exit (status);
17300 }
17301 EOF
17302   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17303   (eval $ac_link) 2>&5
17304   ac_status=$?
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17307     (./conftest; exit; ) >&5 2>/dev/null
17308     lt_status=$?
17309     case x$lt_status in
17310       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17311       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17312       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17313     esac
17314   else :
17315     # compilation failed
17316     lt_cv_dlopen_self_static=no
17317   fi
17318 fi
17319 rm -fr conftest*
17320
17321
17322 fi
17323 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17324 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17325     fi
17326
17327     CPPFLAGS="$save_CPPFLAGS"
17328     LDFLAGS="$save_LDFLAGS"
17329     LIBS="$save_LIBS"
17330     ;;
17331   esac
17332
17333   case $lt_cv_dlopen_self in
17334   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17335   *) enable_dlopen_self=unknown ;;
17336   esac
17337
17338   case $lt_cv_dlopen_self_static in
17339   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17340   *) enable_dlopen_self_static=unknown ;;
17341   esac
17342 fi
17343
17344
17345 # Report which library types will actually be built
17346 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17347 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17348 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17349 echo "${ECHO_T}$can_build_shared" >&6; }
17350
17351 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17352 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17353 test "$can_build_shared" = "no" && enable_shared=no
17354
17355 # On AIX, shared libraries and static libraries use the same namespace, and
17356 # are all built from PIC.
17357 case $host_os in
17358 aix3*)
17359   test "$enable_shared" = yes && enable_static=no
17360   if test -n "$RANLIB"; then
17361     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17362     postinstall_cmds='$RANLIB $lib'
17363   fi
17364   ;;
17365
17366 aix4* | aix5*)
17367   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17368     test "$enable_shared" = yes && enable_static=no
17369   fi
17370     ;;
17371 esac
17372 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17373 echo "${ECHO_T}$enable_shared" >&6; }
17374
17375 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17376 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17377 # Make sure either enable_shared or enable_static is yes.
17378 test "$enable_shared" = yes || enable_static=yes
17379 { echo "$as_me:$LINENO: result: $enable_static" >&5
17380 echo "${ECHO_T}$enable_static" >&6; }
17381
17382 # The else clause should only fire when bootstrapping the
17383 # libtool distribution, otherwise you forgot to ship ltmain.sh
17384 # with your package, and you will get complaints that there are
17385 # no rules to generate ltmain.sh.
17386 if test -f "$ltmain"; then
17387   # See if we are running on zsh, and set the options which allow our commands through
17388   # without removal of \ escapes.
17389   if test -n "${ZSH_VERSION+set}" ; then
17390     setopt NO_GLOB_SUBST
17391   fi
17392   # Now quote all the things that may contain metacharacters while being
17393   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17394   # variables and quote the copies for generation of the libtool script.
17395   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17396     SED SHELL STRIP \
17397     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17398     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17399     deplibs_check_method reload_flag reload_cmds need_locks \
17400     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17401     lt_cv_sys_global_symbol_to_c_name_address \
17402     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17403     old_postinstall_cmds old_postuninstall_cmds \
17404     compiler \
17405     CC \
17406     LD \
17407     lt_prog_compiler_wl \
17408     lt_prog_compiler_pic \
17409     lt_prog_compiler_static \
17410     lt_prog_compiler_no_builtin_flag \
17411     export_dynamic_flag_spec \
17412     thread_safe_flag_spec \
17413     whole_archive_flag_spec \
17414     enable_shared_with_static_runtimes \
17415     old_archive_cmds \
17416     old_archive_from_new_cmds \
17417     predep_objects \
17418     postdep_objects \
17419     predeps \
17420     postdeps \
17421     compiler_lib_search_path \
17422     archive_cmds \
17423     archive_expsym_cmds \
17424     postinstall_cmds \
17425     postuninstall_cmds \
17426     old_archive_from_expsyms_cmds \
17427     allow_undefined_flag \
17428     no_undefined_flag \
17429     export_symbols_cmds \
17430     hardcode_libdir_flag_spec \
17431     hardcode_libdir_flag_spec_ld \
17432     hardcode_libdir_separator \
17433     hardcode_automatic \
17434     module_cmds \
17435     module_expsym_cmds \
17436     lt_cv_prog_compiler_c_o \
17437     exclude_expsyms \
17438     include_expsyms; do
17439
17440     case $var in
17441     old_archive_cmds | \
17442     old_archive_from_new_cmds | \
17443     archive_cmds | \
17444     archive_expsym_cmds | \
17445     module_cmds | \
17446     module_expsym_cmds | \
17447     old_archive_from_expsyms_cmds | \
17448     export_symbols_cmds | \
17449     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17450     postinstall_cmds | postuninstall_cmds | \
17451     old_postinstall_cmds | old_postuninstall_cmds | \
17452     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17453       # Double-quote double-evaled strings.
17454       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17455       ;;
17456     *)
17457       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17458       ;;
17459     esac
17460   done
17461
17462   case $lt_echo in
17463   *'\$0 --fallback-echo"')
17464     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17465     ;;
17466   esac
17467
17468 cfgfile="${ofile}T"
17469   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17470   $rm -f "$cfgfile"
17471   { echo "$as_me:$LINENO: creating $ofile" >&5
17472 echo "$as_me: creating $ofile" >&6;}
17473
17474   cat <<__EOF__ >> "$cfgfile"
17475 #! $SHELL
17476
17477 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17478 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17480 #
17481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17482 # Free Software Foundation, Inc.
17483 #
17484 # This file is part of GNU Libtool:
17485 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17486 #
17487 # This program is free software; you can redistribute it and/or modify
17488 # it under the terms of the GNU General Public License as published by
17489 # the Free Software Foundation; either version 2 of the License, or
17490 # (at your option) any later version.
17491 #
17492 # This program is distributed in the hope that it will be useful, but
17493 # WITHOUT ANY WARRANTY; without even the implied warranty of
17494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17495 # General Public License for more details.
17496 #
17497 # You should have received a copy of the GNU General Public License
17498 # along with this program; if not, write to the Free Software
17499 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17500 #
17501 # As a special exception to the GNU General Public License, if you
17502 # distribute this file as part of a program that contains a
17503 # configuration script generated by Autoconf, you may include it under
17504 # the same distribution terms that you use for the rest of that program.
17505
17506 # A sed program that does not truncate output.
17507 SED=$lt_SED
17508
17509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17510 Xsed="$SED -e 1s/^X//"
17511
17512 # The HP-UX ksh and POSIX shell print the target directory to stdout
17513 # if CDPATH is set.
17514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17515
17516 # The names of the tagged configurations supported by this script.
17517 available_tags=
17518
17519 # ### BEGIN LIBTOOL CONFIG
17520
17521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17522
17523 # Shell to use when invoking shell scripts.
17524 SHELL=$lt_SHELL
17525
17526 # Whether or not to build shared libraries.
17527 build_libtool_libs=$enable_shared
17528
17529 # Whether or not to build static libraries.
17530 build_old_libs=$enable_static
17531
17532 # Whether or not to add -lc for building shared libraries.
17533 build_libtool_need_lc=$archive_cmds_need_lc
17534
17535 # Whether or not to disallow shared libs when runtime libs are static
17536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17537
17538 # Whether or not to optimize for fast installation.
17539 fast_install=$enable_fast_install
17540
17541 # The host system.
17542 host_alias=$host_alias
17543 host=$host
17544 host_os=$host_os
17545
17546 # The build system.
17547 build_alias=$build_alias
17548 build=$build
17549 build_os=$build_os
17550
17551 # An echo program that does not interpret backslashes.
17552 echo=$lt_echo
17553
17554 # The archiver.
17555 AR=$lt_AR
17556 AR_FLAGS=$lt_AR_FLAGS
17557
17558 # A C compiler.
17559 LTCC=$lt_LTCC
17560
17561 # LTCC compiler flags.
17562 LTCFLAGS=$lt_LTCFLAGS
17563
17564 # A language-specific compiler.
17565 CC=$lt_compiler
17566
17567 # Is the compiler the GNU C compiler?
17568 with_gcc=$GCC
17569
17570 # An ERE matcher.
17571 EGREP=$lt_EGREP
17572
17573 # The linker used to build libraries.
17574 LD=$lt_LD
17575
17576 # Whether we need hard or soft links.
17577 LN_S=$lt_LN_S
17578
17579 # A BSD-compatible nm program.
17580 NM=$lt_NM
17581
17582 # A symbol stripping program
17583 STRIP=$lt_STRIP
17584
17585 # Used to examine libraries when file_magic_cmd begins "file"
17586 MAGIC_CMD=$MAGIC_CMD
17587
17588 # Used on cygwin: DLL creation program.
17589 DLLTOOL="$DLLTOOL"
17590
17591 # Used on cygwin: object dumper.
17592 OBJDUMP="$OBJDUMP"
17593
17594 # Used on cygwin: assembler.
17595 AS="$AS"
17596
17597 # The name of the directory that contains temporary libtool files.
17598 objdir=$objdir
17599
17600 # How to create reloadable object files.
17601 reload_flag=$lt_reload_flag
17602 reload_cmds=$lt_reload_cmds
17603
17604 # How to pass a linker flag through the compiler.
17605 wl=$lt_lt_prog_compiler_wl
17606
17607 # Object file suffix (normally "o").
17608 objext="$ac_objext"
17609
17610 # Old archive suffix (normally "a").
17611 libext="$libext"
17612
17613 # Shared library suffix (normally ".so").
17614 shrext_cmds='$shrext_cmds'
17615
17616 # Executable file suffix (normally "").
17617 exeext="$exeext"
17618
17619 # Additional compiler flags for building library objects.
17620 pic_flag=$lt_lt_prog_compiler_pic
17621 pic_mode=$pic_mode
17622
17623 # What is the maximum length of a command?
17624 max_cmd_len=$lt_cv_sys_max_cmd_len
17625
17626 # Does compiler simultaneously support -c and -o options?
17627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17628
17629 # Must we lock files when doing compilation?
17630 need_locks=$lt_need_locks
17631
17632 # Do we need the lib prefix for modules?
17633 need_lib_prefix=$need_lib_prefix
17634
17635 # Do we need a version for libraries?
17636 need_version=$need_version
17637
17638 # Whether dlopen is supported.
17639 dlopen_support=$enable_dlopen
17640
17641 # Whether dlopen of programs is supported.
17642 dlopen_self=$enable_dlopen_self
17643
17644 # Whether dlopen of statically linked programs is supported.
17645 dlopen_self_static=$enable_dlopen_self_static
17646
17647 # Compiler flag to prevent dynamic linking.
17648 link_static_flag=$lt_lt_prog_compiler_static
17649
17650 # Compiler flag to turn off builtin functions.
17651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17652
17653 # Compiler flag to allow reflexive dlopens.
17654 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17655
17656 # Compiler flag to generate shared objects directly from archives.
17657 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17658
17659 # Compiler flag to generate thread-safe objects.
17660 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17661
17662 # Library versioning type.
17663 version_type=$version_type
17664
17665 # Format of library name prefix.
17666 libname_spec=$lt_libname_spec
17667
17668 # List of archive names.  First name is the real one, the rest are links.
17669 # The last name is the one that the linker finds with -lNAME.
17670 library_names_spec=$lt_library_names_spec
17671
17672 # The coded name of the library, if different from the real name.
17673 soname_spec=$lt_soname_spec
17674
17675 # Commands used to build and install an old-style archive.
17676 RANLIB=$lt_RANLIB
17677 old_archive_cmds=$lt_old_archive_cmds
17678 old_postinstall_cmds=$lt_old_postinstall_cmds
17679 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17680
17681 # Create an old-style archive from a shared archive.
17682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17683
17684 # Create a temporary old-style archive to link instead of a shared archive.
17685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17686
17687 # Commands used to build and install a shared archive.
17688 archive_cmds=$lt_archive_cmds
17689 archive_expsym_cmds=$lt_archive_expsym_cmds
17690 postinstall_cmds=$lt_postinstall_cmds
17691 postuninstall_cmds=$lt_postuninstall_cmds
17692
17693 # Commands used to build a loadable module (assumed same as above if empty)
17694 module_cmds=$lt_module_cmds
17695 module_expsym_cmds=$lt_module_expsym_cmds
17696
17697 # Commands to strip libraries.
17698 old_striplib=$lt_old_striplib
17699 striplib=$lt_striplib
17700
17701 # Dependencies to place before the objects being linked to create a
17702 # shared library.
17703 predep_objects=$lt_predep_objects
17704
17705 # Dependencies to place after the objects being linked to create a
17706 # shared library.
17707 postdep_objects=$lt_postdep_objects
17708
17709 # Dependencies to place before the objects being linked to create a
17710 # shared library.
17711 predeps=$lt_predeps
17712
17713 # Dependencies to place after the objects being linked to create a
17714 # shared library.
17715 postdeps=$lt_postdeps
17716
17717 # The library search path used internally by the compiler when linking
17718 # a shared library.
17719 compiler_lib_search_path=$lt_compiler_lib_search_path
17720
17721 # Method to check whether dependent libraries are shared objects.
17722 deplibs_check_method=$lt_deplibs_check_method
17723
17724 # Command to use when deplibs_check_method == file_magic.
17725 file_magic_cmd=$lt_file_magic_cmd
17726
17727 # Flag that allows shared libraries with undefined symbols to be built.
17728 allow_undefined_flag=$lt_allow_undefined_flag
17729
17730 # Flag that forces no undefined symbols.
17731 no_undefined_flag=$lt_no_undefined_flag
17732
17733 # Commands used to finish a libtool library installation in a directory.
17734 finish_cmds=$lt_finish_cmds
17735
17736 # Same as above, but a single script fragment to be evaled but not shown.
17737 finish_eval=$lt_finish_eval
17738
17739 # Take the output of nm and produce a listing of raw symbols and C names.
17740 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17741
17742 # Transform the output of nm in a proper C declaration
17743 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17744
17745 # Transform the output of nm in a C name address pair
17746 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17747
17748 # This is the shared library runtime path variable.
17749 runpath_var=$runpath_var
17750
17751 # This is the shared library path variable.
17752 shlibpath_var=$shlibpath_var
17753
17754 # Is shlibpath searched before the hard-coded library search path?
17755 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17756
17757 # How to hardcode a shared library path into an executable.
17758 hardcode_action=$hardcode_action
17759
17760 # Whether we should hardcode library paths into libraries.
17761 hardcode_into_libs=$hardcode_into_libs
17762
17763 # Flag to hardcode \$libdir into a binary during linking.
17764 # This must work even if \$libdir does not exist.
17765 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17766
17767 # If ld is used when linking, flag to hardcode \$libdir into
17768 # a binary during linking. This must work even if \$libdir does
17769 # not exist.
17770 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17771
17772 # Whether we need a single -rpath flag with a separated argument.
17773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17774
17775 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17776 # resulting binary.
17777 hardcode_direct=$hardcode_direct
17778
17779 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17780 # resulting binary.
17781 hardcode_minus_L=$hardcode_minus_L
17782
17783 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17784 # the resulting binary.
17785 hardcode_shlibpath_var=$hardcode_shlibpath_var
17786
17787 # Set to yes if building a shared library automatically hardcodes DIR into the library
17788 # and all subsequent libraries and executables linked against it.
17789 hardcode_automatic=$hardcode_automatic
17790
17791 # Variables whose values should be saved in libtool wrapper scripts and
17792 # restored at relink time.
17793 variables_saved_for_relink="$variables_saved_for_relink"
17794
17795 # Whether libtool must link a program against all its dependency libraries.
17796 link_all_deplibs=$link_all_deplibs
17797
17798 # Compile-time system search path for libraries
17799 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17800
17801 # Run-time system search path for libraries
17802 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17803
17804 # Fix the shell variable \$srcfile for the compiler.
17805 fix_srcfile_path="$fix_srcfile_path"
17806
17807 # Set to yes if exported symbols are required.
17808 always_export_symbols=$always_export_symbols
17809
17810 # The commands to list exported symbols.
17811 export_symbols_cmds=$lt_export_symbols_cmds
17812
17813 # The commands to extract the exported symbol list from a shared archive.
17814 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17815
17816 # Symbols that should not be listed in the preloaded symbols.
17817 exclude_expsyms=$lt_exclude_expsyms
17818
17819 # Symbols that must always be exported.
17820 include_expsyms=$lt_include_expsyms
17821
17822 # ### END LIBTOOL CONFIG
17823
17824 __EOF__
17825
17826
17827   case $host_os in
17828   aix3*)
17829     cat <<\EOF >> "$cfgfile"
17830
17831 # AIX sometimes has problems with the GCC collect2 program.  For some
17832 # reason, if we set the COLLECT_NAMES environment variable, the problems
17833 # vanish in a puff of smoke.
17834 if test "X${COLLECT_NAMES+set}" != Xset; then
17835   COLLECT_NAMES=
17836   export COLLECT_NAMES
17837 fi
17838 EOF
17839     ;;
17840   esac
17841
17842   # We use sed instead of cat because bash on DJGPP gets confused if
17843   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17844   # text mode, it properly converts lines to CR/LF.  This bash problem
17845   # is reportedly fixed, but why not run on old versions too?
17846   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17847
17848   mv -f "$cfgfile" "$ofile" || \
17849     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17850   chmod +x "$ofile"
17851
17852 else
17853   # If there is no Makefile yet, we rely on a make rule to execute
17854   # `config.status --recheck' to rerun these tests and create the
17855   # libtool script then.
17856   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17857   if test -f "$ltmain_in"; then
17858     test -f Makefile && make "$ltmain"
17859   fi
17860 fi
17861
17862
17863 ac_ext=c
17864 ac_cpp='$CPP $CPPFLAGS'
17865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17868
17869 CC="$lt_save_CC"
17870
17871
17872 # Check whether --with-tags was given.
17873 if test "${with_tags+set}" = set; then
17874   withval=$with_tags; tagnames="$withval"
17875 fi
17876
17877
17878 if test -f "$ltmain" && test -n "$tagnames"; then
17879   if test ! -f "${ofile}"; then
17880     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17881 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17882   fi
17883
17884   if test -z "$LTCC"; then
17885     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17886     if test -z "$LTCC"; then
17887       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17888 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17889     else
17890       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17891 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17892     fi
17893   fi
17894   if test -z "$LTCFLAGS"; then
17895     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17896   fi
17897
17898   # Extract list of available tagged configurations in $ofile.
17899   # Note that this assumes the entire list is on one line.
17900   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17901
17902   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17903   for tagname in $tagnames; do
17904     IFS="$lt_save_ifs"
17905     # Check whether tagname contains only valid characters
17906     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17907     "") ;;
17908     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17909 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17910    { (exit 1); exit 1; }; }
17911         ;;
17912     esac
17913
17914     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17915     then
17916       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17917 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17918    { (exit 1); exit 1; }; }
17919     fi
17920
17921     # Update the list of available tags.
17922     if test -n "$tagname"; then
17923       echo appending configuration tag \"$tagname\" to $ofile
17924
17925       case $tagname in
17926       CXX)
17927         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17928             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17929             (test "X$CXX" != "Xg++"))) ; then
17930           ac_ext=cpp
17931 ac_cpp='$CXXCPP $CPPFLAGS'
17932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17935
17936
17937
17938
17939 archive_cmds_need_lc_CXX=no
17940 allow_undefined_flag_CXX=
17941 always_export_symbols_CXX=no
17942 archive_expsym_cmds_CXX=
17943 export_dynamic_flag_spec_CXX=
17944 hardcode_direct_CXX=no
17945 hardcode_libdir_flag_spec_CXX=
17946 hardcode_libdir_flag_spec_ld_CXX=
17947 hardcode_libdir_separator_CXX=
17948 hardcode_minus_L_CXX=no
17949 hardcode_shlibpath_var_CXX=unsupported
17950 hardcode_automatic_CXX=no
17951 module_cmds_CXX=
17952 module_expsym_cmds_CXX=
17953 link_all_deplibs_CXX=unknown
17954 old_archive_cmds_CXX=$old_archive_cmds
17955 no_undefined_flag_CXX=
17956 whole_archive_flag_spec_CXX=
17957 enable_shared_with_static_runtimes_CXX=no
17958
17959 # Dependencies to place before and after the object being linked:
17960 predep_objects_CXX=
17961 postdep_objects_CXX=
17962 predeps_CXX=
17963 postdeps_CXX=
17964 compiler_lib_search_path_CXX=
17965
17966 # Source file extension for C++ test sources.
17967 ac_ext=cpp
17968
17969 # Object file extension for compiled C++ test sources.
17970 objext=o
17971 objext_CXX=$objext
17972
17973 # Code to be used in simple compile tests
17974 lt_simple_compile_test_code="int some_variable = 0;\n"
17975
17976 # Code to be used in simple link tests
17977 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17978
17979 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17980
17981 # If no C compiler was specified, use CC.
17982 LTCC=${LTCC-"$CC"}
17983
17984 # If no C compiler flags were specified, use CFLAGS.
17985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17986
17987 # Allow CC to be a program name with arguments.
17988 compiler=$CC
17989
17990
17991 # save warnings/boilerplate of simple test code
17992 ac_outfile=conftest.$ac_objext
17993 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17994 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17995 _lt_compiler_boilerplate=`cat conftest.err`
17996 $rm conftest*
17997
17998 ac_outfile=conftest.$ac_objext
17999 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18000 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18001 _lt_linker_boilerplate=`cat conftest.err`
18002 $rm conftest*
18003
18004
18005 # Allow CC to be a program name with arguments.
18006 lt_save_CC=$CC
18007 lt_save_LD=$LD
18008 lt_save_GCC=$GCC
18009 GCC=$GXX
18010 lt_save_with_gnu_ld=$with_gnu_ld
18011 lt_save_path_LD=$lt_cv_path_LD
18012 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18013   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18014 else
18015   $as_unset lt_cv_prog_gnu_ld
18016 fi
18017 if test -n "${lt_cv_path_LDCXX+set}"; then
18018   lt_cv_path_LD=$lt_cv_path_LDCXX
18019 else
18020   $as_unset lt_cv_path_LD
18021 fi
18022 test -z "${LDCXX+set}" || LD=$LDCXX
18023 CC=${CXX-"c++"}
18024 compiler=$CC
18025 compiler_CXX=$CC
18026 for cc_temp in $compiler""; do
18027   case $cc_temp in
18028     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18029     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18030     \-*) ;;
18031     *) break;;
18032   esac
18033 done
18034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18035
18036
18037 # We don't want -fno-exception wen compiling C++ code, so set the
18038 # no_builtin_flag separately
18039 if test "$GXX" = yes; then
18040   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18041 else
18042   lt_prog_compiler_no_builtin_flag_CXX=
18043 fi
18044
18045 if test "$GXX" = yes; then
18046   # Set up default GNU C++ configuration
18047
18048
18049 # Check whether --with-gnu-ld was given.
18050 if test "${with_gnu_ld+set}" = set; then
18051   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18052 else
18053   with_gnu_ld=no
18054 fi
18055
18056 ac_prog=ld
18057 if test "$GCC" = yes; then
18058   # Check if gcc -print-prog-name=ld gives a path.
18059   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18060 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18061   case $host in
18062   *-*-mingw*)
18063     # gcc leaves a trailing carriage return which upsets mingw
18064     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18065   *)
18066     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18067   esac
18068   case $ac_prog in
18069     # Accept absolute paths.
18070     [\\/]* | ?:[\\/]*)
18071       re_direlt='/[^/][^/]*/\.\./'
18072       # Canonicalize the pathname of ld
18073       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18074       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18075         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18076       done
18077       test -z "$LD" && LD="$ac_prog"
18078       ;;
18079   "")
18080     # If it fails, then pretend we aren't using GCC.
18081     ac_prog=ld
18082     ;;
18083   *)
18084     # If it is relative, then search for the first ld in PATH.
18085     with_gnu_ld=unknown
18086     ;;
18087   esac
18088 elif test "$with_gnu_ld" = yes; then
18089   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18090 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18091 else
18092   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18093 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18094 fi
18095 if test "${lt_cv_path_LD+set}" = set; then
18096   echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098   if test -z "$LD"; then
18099   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18100   for ac_dir in $PATH; do
18101     IFS="$lt_save_ifs"
18102     test -z "$ac_dir" && ac_dir=.
18103     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18104       lt_cv_path_LD="$ac_dir/$ac_prog"
18105       # Check to see if the program is GNU ld.  I'd rather use --version,
18106       # but apparently some variants of GNU ld only accept -v.
18107       # Break only if it was the GNU/non-GNU ld that we prefer.
18108       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18109       *GNU* | *'with BFD'*)
18110         test "$with_gnu_ld" != no && break
18111         ;;
18112       *)
18113         test "$with_gnu_ld" != yes && break
18114         ;;
18115       esac
18116     fi
18117   done
18118   IFS="$lt_save_ifs"
18119 else
18120   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18121 fi
18122 fi
18123
18124 LD="$lt_cv_path_LD"
18125 if test -n "$LD"; then
18126   { echo "$as_me:$LINENO: result: $LD" >&5
18127 echo "${ECHO_T}$LD" >&6; }
18128 else
18129   { echo "$as_me:$LINENO: result: no" >&5
18130 echo "${ECHO_T}no" >&6; }
18131 fi
18132 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18133 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18134    { (exit 1); exit 1; }; }
18135 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18136 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18137 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18141 case `$LD -v 2>&1 </dev/null` in
18142 *GNU* | *'with BFD'*)
18143   lt_cv_prog_gnu_ld=yes
18144   ;;
18145 *)
18146   lt_cv_prog_gnu_ld=no
18147   ;;
18148 esac
18149 fi
18150 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18151 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18152 with_gnu_ld=$lt_cv_prog_gnu_ld
18153
18154
18155
18156   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18157   # archiving commands below assume that GNU ld is being used.
18158   if test "$with_gnu_ld" = yes; then
18159     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18160     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'
18161
18162     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18163     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18164
18165     # If archive_cmds runs LD, not CC, wlarc should be empty
18166     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18167     #     investigate it a little bit more. (MM)
18168     wlarc='${wl}'
18169
18170     # ancient GNU ld didn't support --whole-archive et. al.
18171     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18172         grep 'no-whole-archive' > /dev/null; then
18173       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18174     else
18175       whole_archive_flag_spec_CXX=
18176     fi
18177   else
18178     with_gnu_ld=no
18179     wlarc=
18180
18181     # A generic and very simple default shared library creation
18182     # command for GNU C++ for the case where it uses the native
18183     # linker, instead of GNU ld.  If possible, this setting should
18184     # overridden to take advantage of the native linker features on
18185     # the platform it is being used on.
18186     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18187   fi
18188
18189   # Commands to make compiler produce verbose output that lists
18190   # what "hidden" libraries, object files and flags are used when
18191   # linking a shared library.
18192   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18193
18194 else
18195   GXX=no
18196   with_gnu_ld=no
18197   wlarc=
18198 fi
18199
18200 # PORTME: fill in a description of your system's C++ link characteristics
18201 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18202 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18203 ld_shlibs_CXX=yes
18204 case $host_os in
18205   aix3*)
18206     # FIXME: insert proper C++ library support
18207     ld_shlibs_CXX=no
18208     ;;
18209   aix4* | aix5*)
18210     if test "$host_cpu" = ia64; then
18211       # On IA64, the linker does run time linking by default, so we don't
18212       # have to do anything special.
18213       aix_use_runtimelinking=no
18214       exp_sym_flag='-Bexport'
18215       no_entry_flag=""
18216     else
18217       aix_use_runtimelinking=no
18218
18219       # Test if we are trying to use run time linking or normal
18220       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18221       # need to do runtime linking.
18222       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18223         for ld_flag in $LDFLAGS; do
18224           case $ld_flag in
18225           *-brtl*)
18226             aix_use_runtimelinking=yes
18227             break
18228             ;;
18229           esac
18230         done
18231         ;;
18232       esac
18233
18234       exp_sym_flag='-bexport'
18235       no_entry_flag='-bnoentry'
18236     fi
18237
18238     # When large executables or shared objects are built, AIX ld can
18239     # have problems creating the table of contents.  If linking a library
18240     # or program results in "error TOC overflow" add -mminimal-toc to
18241     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18242     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18243
18244     archive_cmds_CXX=''
18245     hardcode_direct_CXX=yes
18246     hardcode_libdir_separator_CXX=':'
18247     link_all_deplibs_CXX=yes
18248
18249     if test "$GXX" = yes; then
18250       case $host_os in aix4.[012]|aix4.[012].*)
18251       # We only want to do this on AIX 4.2 and lower, the check
18252       # below for broken collect2 doesn't work under 4.3+
18253         collect2name=`${CC} -print-prog-name=collect2`
18254         if test -f "$collect2name" && \
18255            strings "$collect2name" | grep resolve_lib_name >/dev/null
18256         then
18257           # We have reworked collect2
18258           hardcode_direct_CXX=yes
18259         else
18260           # We have old collect2
18261           hardcode_direct_CXX=unsupported
18262           # It fails to find uninstalled libraries when the uninstalled
18263           # path is not listed in the libpath.  Setting hardcode_minus_L
18264           # to unsupported forces relinking
18265           hardcode_minus_L_CXX=yes
18266           hardcode_libdir_flag_spec_CXX='-L$libdir'
18267           hardcode_libdir_separator_CXX=
18268         fi
18269         ;;
18270       esac
18271       shared_flag='-shared'
18272       if test "$aix_use_runtimelinking" = yes; then
18273         shared_flag="$shared_flag "'${wl}-G'
18274       fi
18275     else
18276       # not using gcc
18277       if test "$host_cpu" = ia64; then
18278         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18279         # chokes on -Wl,-G. The following line is correct:
18280         shared_flag='-G'
18281       else
18282         if test "$aix_use_runtimelinking" = yes; then
18283           shared_flag='${wl}-G'
18284         else
18285           shared_flag='${wl}-bM:SRE'
18286         fi
18287       fi
18288     fi
18289
18290     # It seems that -bexpall does not export symbols beginning with
18291     # underscore (_), so it is better to generate a list of symbols to export.
18292     always_export_symbols_CXX=yes
18293     if test "$aix_use_runtimelinking" = yes; then
18294       # Warning - without using the other runtime loading flags (-brtl),
18295       # -berok will link without error, but may produce a broken library.
18296       allow_undefined_flag_CXX='-berok'
18297       # Determine the default libpath from the value encoded in an empty executable.
18298       cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h.  */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h.  */
18304
18305 int
18306 main ()
18307 {
18308
18309   ;
18310   return 0;
18311 }
18312 _ACEOF
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317   *) ac_try_echo=$ac_try;;
18318 esac
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320   (eval "$ac_link") 2>conftest.er1
18321   ac_status=$?
18322   grep -v '^ *+' conftest.er1 >conftest.err
18323   rm -f conftest.er1
18324   cat conftest.err >&5
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); } &&
18327          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18328   { (case "(($ac_try" in
18329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330   *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333   (eval "$ac_try") 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); }; } &&
18337          { ac_try='test -s conftest$ac_exeext'
18338   { (case "(($ac_try" in
18339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340   *) ac_try_echo=$ac_try;;
18341 esac
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343   (eval "$ac_try") 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; }; then
18347
18348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18349 }'`
18350 # Check for a 64-bit object if we didn't find anything.
18351 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; }
18352 }'`; fi
18353 else
18354   echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357
18358 fi
18359
18360 rm -f core conftest.err conftest.$ac_objext \
18361       conftest$ac_exeext conftest.$ac_ext
18362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18363
18364       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18365
18366       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"
18367      else
18368       if test "$host_cpu" = ia64; then
18369         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18370         allow_undefined_flag_CXX="-z nodefs"
18371         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"
18372       else
18373         # Determine the default libpath from the value encoded in an empty executable.
18374         cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h.  */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h.  */
18380
18381 int
18382 main ()
18383 {
18384
18385   ;
18386   return 0;
18387 }
18388 _ACEOF
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (ac_try="$ac_link"
18391 case "(($ac_try" in
18392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393   *) ac_try_echo=$ac_try;;
18394 esac
18395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396   (eval "$ac_link") 2>conftest.er1
18397   ac_status=$?
18398   grep -v '^ *+' conftest.er1 >conftest.err
18399   rm -f conftest.er1
18400   cat conftest.err >&5
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); } &&
18403          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18404   { (case "(($ac_try" in
18405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406   *) ac_try_echo=$ac_try;;
18407 esac
18408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409   (eval "$ac_try") 2>&5
18410   ac_status=$?
18411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412   (exit $ac_status); }; } &&
18413          { ac_try='test -s conftest$ac_exeext'
18414   { (case "(($ac_try" in
18415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416   *) ac_try_echo=$ac_try;;
18417 esac
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419   (eval "$ac_try") 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); }; }; then
18423
18424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18425 }'`
18426 # Check for a 64-bit object if we didn't find anything.
18427 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; }
18428 }'`; fi
18429 else
18430   echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18432
18433
18434 fi
18435
18436 rm -f core conftest.err conftest.$ac_objext \
18437       conftest$ac_exeext conftest.$ac_ext
18438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18439
18440         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18441         # Warning - without using the other run time loading flags,
18442         # -berok will link without error, but may produce a broken library.
18443         no_undefined_flag_CXX=' ${wl}-bernotok'
18444         allow_undefined_flag_CXX=' ${wl}-berok'
18445         # Exported symbols can be pulled into shared objects from archives
18446         whole_archive_flag_spec_CXX='$convenience'
18447         archive_cmds_need_lc_CXX=yes
18448         # This is similar to how AIX traditionally builds its shared libraries.
18449         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'
18450       fi
18451     fi
18452     ;;
18453
18454   beos*)
18455     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18456       allow_undefined_flag_CXX=unsupported
18457       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18458       # support --undefined.  This deserves some investigation.  FIXME
18459       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18460     else
18461       ld_shlibs_CXX=no
18462     fi
18463     ;;
18464
18465   chorus*)
18466     case $cc_basename in
18467       *)
18468         # FIXME: insert proper C++ library support
18469         ld_shlibs_CXX=no
18470         ;;
18471     esac
18472     ;;
18473
18474   cygwin* | mingw* | pw32*)
18475     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18476     # as there is no search path for DLLs.
18477     hardcode_libdir_flag_spec_CXX='-L$libdir'
18478     allow_undefined_flag_CXX=unsupported
18479     always_export_symbols_CXX=no
18480     enable_shared_with_static_runtimes_CXX=yes
18481
18482     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18483       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'
18484       # If the export-symbols file already is a .def file (1st line
18485       # is EXPORTS), use it as is; otherwise, prepend...
18486       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18487         cp $export_symbols $output_objdir/$soname.def;
18488       else
18489         echo EXPORTS > $output_objdir/$soname.def;
18490         cat $export_symbols >> $output_objdir/$soname.def;
18491       fi~
18492       $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'
18493     else
18494       ld_shlibs_CXX=no
18495     fi
18496   ;;
18497       darwin* | rhapsody*)
18498         case $host_os in
18499         rhapsody* | darwin1.[012])
18500          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18501          ;;
18502        *) # Darwin 1.3 on
18503          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18504            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18505          else
18506            case ${MACOSX_DEPLOYMENT_TARGET} in
18507              10.[012])
18508                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18509                ;;
18510              10.*)
18511                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18512                ;;
18513            esac
18514          fi
18515          ;;
18516         esac
18517       archive_cmds_need_lc_CXX=no
18518       hardcode_direct_CXX=no
18519       hardcode_automatic_CXX=yes
18520       hardcode_shlibpath_var_CXX=unsupported
18521       whole_archive_flag_spec_CXX=''
18522       link_all_deplibs_CXX=yes
18523
18524     if test "$GXX" = yes ; then
18525       lt_int_apple_cc_single_mod=no
18526       output_verbose_link_cmd='echo'
18527       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18528        lt_int_apple_cc_single_mod=yes
18529       fi
18530       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18531        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18532       else
18533           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'
18534         fi
18535         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18536         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18537           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18538             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}'
18539           else
18540             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}'
18541           fi
18542             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}'
18543       else
18544       case $cc_basename in
18545         xlc*)
18546          output_verbose_link_cmd='echo'
18547           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'
18548           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18549           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18550           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}'
18551           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}'
18552           ;;
18553        *)
18554          ld_shlibs_CXX=no
18555           ;;
18556       esac
18557       fi
18558         ;;
18559
18560   dgux*)
18561     case $cc_basename in
18562       ec++*)
18563         # FIXME: insert proper C++ library support
18564         ld_shlibs_CXX=no
18565         ;;
18566       ghcx*)
18567         # Green Hills C++ Compiler
18568         # FIXME: insert proper C++ library support
18569         ld_shlibs_CXX=no
18570         ;;
18571       *)
18572         # FIXME: insert proper C++ library support
18573         ld_shlibs_CXX=no
18574         ;;
18575     esac
18576     ;;
18577   freebsd[12]*)
18578     # C++ shared libraries reported to be fairly broken before switch to ELF
18579     ld_shlibs_CXX=no
18580     ;;
18581   freebsd-elf*)
18582     archive_cmds_need_lc_CXX=no
18583     ;;
18584   freebsd* | kfreebsd*-gnu | dragonfly*)
18585     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18586     # conventions
18587     ld_shlibs_CXX=yes
18588     ;;
18589   gnu*)
18590     ;;
18591   hpux9*)
18592     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18593     hardcode_libdir_separator_CXX=:
18594     export_dynamic_flag_spec_CXX='${wl}-E'
18595     hardcode_direct_CXX=yes
18596     hardcode_minus_L_CXX=yes # Not in the search PATH,
18597                                 # but as the default
18598                                 # location of the library.
18599
18600     case $cc_basename in
18601     CC*)
18602       # FIXME: insert proper C++ library support
18603       ld_shlibs_CXX=no
18604       ;;
18605     aCC*)
18606       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'
18607       # Commands to make compiler produce verbose output that lists
18608       # what "hidden" libraries, object files and flags are used when
18609       # linking a shared library.
18610       #
18611       # There doesn't appear to be a way to prevent this compiler from
18612       # explicitly linking system object files so we need to strip them
18613       # from the output so that they don't get included in the library
18614       # dependencies.
18615       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'
18616       ;;
18617     *)
18618       if test "$GXX" = yes; then
18619         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'
18620       else
18621         # FIXME: insert proper C++ library support
18622         ld_shlibs_CXX=no
18623       fi
18624       ;;
18625     esac
18626     ;;
18627   hpux10*|hpux11*)
18628     if test $with_gnu_ld = no; then
18629       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18630       hardcode_libdir_separator_CXX=:
18631
18632       case $host_cpu in
18633       hppa*64*|ia64*)
18634         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18635         ;;
18636       *)
18637         export_dynamic_flag_spec_CXX='${wl}-E'
18638         ;;
18639       esac
18640     fi
18641     case $host_cpu in
18642     hppa*64*|ia64*)
18643       hardcode_direct_CXX=no
18644       hardcode_shlibpath_var_CXX=no
18645       ;;
18646     *)
18647       hardcode_direct_CXX=yes
18648       hardcode_minus_L_CXX=yes # Not in the search PATH,
18649                                               # but as the default
18650                                               # location of the library.
18651       ;;
18652     esac
18653
18654     case $cc_basename in
18655       CC*)
18656         # FIXME: insert proper C++ library support
18657         ld_shlibs_CXX=no
18658         ;;
18659       aCC*)
18660         case $host_cpu in
18661         hppa*64*)
18662           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18663           ;;
18664         ia64*)
18665           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18666           ;;
18667         *)
18668           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18669           ;;
18670         esac
18671         # Commands to make compiler produce verbose output that lists
18672         # what "hidden" libraries, object files and flags are used when
18673         # linking a shared library.
18674         #
18675         # There doesn't appear to be a way to prevent this compiler from
18676         # explicitly linking system object files so we need to strip them
18677         # from the output so that they don't get included in the library
18678         # dependencies.
18679         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'
18680         ;;
18681       *)
18682         if test "$GXX" = yes; then
18683           if test $with_gnu_ld = no; then
18684             case $host_cpu in
18685             hppa*64*)
18686               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18687               ;;
18688             ia64*)
18689               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18690               ;;
18691             *)
18692               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'
18693               ;;
18694             esac
18695           fi
18696         else
18697           # FIXME: insert proper C++ library support
18698           ld_shlibs_CXX=no
18699         fi
18700         ;;
18701     esac
18702     ;;
18703   interix3*)
18704     hardcode_direct_CXX=no
18705     hardcode_shlibpath_var_CXX=no
18706     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18707     export_dynamic_flag_spec_CXX='${wl}-E'
18708     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18709     # Instead, shared libraries are loaded at an image base (0x10000000 by
18710     # default) and relocated if they conflict, which is a slow very memory
18711     # consuming and fragmenting process.  To avoid this, we pick a random,
18712     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18713     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18714     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'
18715     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'
18716     ;;
18717   irix5* | irix6*)
18718     case $cc_basename in
18719       CC*)
18720         # SGI C++
18721         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'
18722
18723         # Archives containing C++ object files must be created using
18724         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18725         # necessary to make sure instantiated templates are included
18726         # in the archive.
18727         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18728         ;;
18729       *)
18730         if test "$GXX" = yes; then
18731           if test "$with_gnu_ld" = no; then
18732             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'
18733           else
18734             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'
18735           fi
18736         fi
18737         link_all_deplibs_CXX=yes
18738         ;;
18739     esac
18740     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18741     hardcode_libdir_separator_CXX=:
18742     ;;
18743   linux*)
18744     case $cc_basename in
18745       KCC*)
18746         # Kuck and Associates, Inc. (KAI) C++ Compiler
18747
18748         # KCC will only create a shared library if the output file
18749         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18750         # to its proper name (with version) after linking.
18751         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'
18752         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'
18753         # Commands to make compiler produce verbose output that lists
18754         # what "hidden" libraries, object files and flags are used when
18755         # linking a shared library.
18756         #
18757         # There doesn't appear to be a way to prevent this compiler from
18758         # explicitly linking system object files so we need to strip them
18759         # from the output so that they don't get included in the library
18760         # dependencies.
18761         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'
18762
18763         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18764         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18765
18766         # Archives containing C++ object files must be created using
18767         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18768         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18769         ;;
18770       icpc*)
18771         # Intel C++
18772         with_gnu_ld=yes
18773         # version 8.0 and above of icpc choke on multiply defined symbols
18774         # if we add $predep_objects and $postdep_objects, however 7.1 and
18775         # earlier do not add the objects themselves.
18776         case `$CC -V 2>&1` in
18777         *"Version 7."*)
18778           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18779           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'
18780           ;;
18781         *)  # Version 8.0 or newer
18782           tmp_idyn=
18783           case $host_cpu in
18784             ia64*) tmp_idyn=' -i_dynamic';;
18785           esac
18786           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787           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'
18788           ;;
18789         esac
18790         archive_cmds_need_lc_CXX=no
18791         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18792         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18793         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18794         ;;
18795       pgCC*)
18796         # Portland Group C++ compiler
18797         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18798         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'
18799
18800         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18801         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18802         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'
18803         ;;
18804       cxx*)
18805         # Compaq C++
18806         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18807         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'
18808
18809         runpath_var=LD_RUN_PATH
18810         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18811         hardcode_libdir_separator_CXX=:
18812
18813         # Commands to make compiler produce verbose output that lists
18814         # what "hidden" libraries, object files and flags are used when
18815         # linking a shared library.
18816         #
18817         # There doesn't appear to be a way to prevent this compiler from
18818         # explicitly linking system object files so we need to strip them
18819         # from the output so that they don't get included in the library
18820         # dependencies.
18821         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'
18822         ;;
18823     esac
18824     ;;
18825   lynxos*)
18826     # FIXME: insert proper C++ library support
18827     ld_shlibs_CXX=no
18828     ;;
18829   m88k*)
18830     # FIXME: insert proper C++ library support
18831     ld_shlibs_CXX=no
18832     ;;
18833   mvs*)
18834     case $cc_basename in
18835       cxx*)
18836         # FIXME: insert proper C++ library support
18837         ld_shlibs_CXX=no
18838         ;;
18839       *)
18840         # FIXME: insert proper C++ library support
18841         ld_shlibs_CXX=no
18842         ;;
18843     esac
18844     ;;
18845   netbsd*)
18846     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18847       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18848       wlarc=
18849       hardcode_libdir_flag_spec_CXX='-R$libdir'
18850       hardcode_direct_CXX=yes
18851       hardcode_shlibpath_var_CXX=no
18852     fi
18853     # Workaround some broken pre-1.5 toolchains
18854     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18855     ;;
18856   openbsd2*)
18857     # C++ shared libraries are fairly broken
18858     ld_shlibs_CXX=no
18859     ;;
18860   openbsd*)
18861     hardcode_direct_CXX=yes
18862     hardcode_shlibpath_var_CXX=no
18863     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18864     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18865     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18866       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18867       export_dynamic_flag_spec_CXX='${wl}-E'
18868       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18869     fi
18870     output_verbose_link_cmd='echo'
18871     ;;
18872   osf3*)
18873     case $cc_basename in
18874       KCC*)
18875         # Kuck and Associates, Inc. (KAI) C++ Compiler
18876
18877         # KCC will only create a shared library if the output file
18878         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18879         # to its proper name (with version) after linking.
18880         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'
18881
18882         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18883         hardcode_libdir_separator_CXX=:
18884
18885         # Archives containing C++ object files must be created using
18886         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18887         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18888
18889         ;;
18890       RCC*)
18891         # Rational C++ 2.4.1
18892         # FIXME: insert proper C++ library support
18893         ld_shlibs_CXX=no
18894         ;;
18895       cxx*)
18896         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18897         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'
18898
18899         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18900         hardcode_libdir_separator_CXX=:
18901
18902         # Commands to make compiler produce verbose output that lists
18903         # what "hidden" libraries, object files and flags are used when
18904         # linking a shared library.
18905         #
18906         # There doesn't appear to be a way to prevent this compiler from
18907         # explicitly linking system object files so we need to strip them
18908         # from the output so that they don't get included in the library
18909         # dependencies.
18910         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'
18911         ;;
18912       *)
18913         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18914           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18915           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'
18916
18917           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18918           hardcode_libdir_separator_CXX=:
18919
18920           # Commands to make compiler produce verbose output that lists
18921           # what "hidden" libraries, object files and flags are used when
18922           # linking a shared library.
18923           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18924
18925         else
18926           # FIXME: insert proper C++ library support
18927           ld_shlibs_CXX=no
18928         fi
18929         ;;
18930     esac
18931     ;;
18932   osf4* | osf5*)
18933     case $cc_basename in
18934       KCC*)
18935         # Kuck and Associates, Inc. (KAI) C++ Compiler
18936
18937         # KCC will only create a shared library if the output file
18938         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18939         # to its proper name (with version) after linking.
18940         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'
18941
18942         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18943         hardcode_libdir_separator_CXX=:
18944
18945         # Archives containing C++ object files must be created using
18946         # the KAI C++ compiler.
18947         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18948         ;;
18949       RCC*)
18950         # Rational C++ 2.4.1
18951         # FIXME: insert proper C++ library support
18952         ld_shlibs_CXX=no
18953         ;;
18954       cxx*)
18955         allow_undefined_flag_CXX=' -expect_unresolved \*'
18956         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'
18957         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18958           echo "-hidden">> $lib.exp~
18959           $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~
18960           $rm $lib.exp'
18961
18962         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18963         hardcode_libdir_separator_CXX=:
18964
18965         # Commands to make compiler produce verbose output that lists
18966         # what "hidden" libraries, object files and flags are used when
18967         # linking a shared library.
18968         #
18969         # There doesn't appear to be a way to prevent this compiler from
18970         # explicitly linking system object files so we need to strip them
18971         # from the output so that they don't get included in the library
18972         # dependencies.
18973         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'
18974         ;;
18975       *)
18976         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18977           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18978          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'
18979
18980           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18981           hardcode_libdir_separator_CXX=:
18982
18983           # Commands to make compiler produce verbose output that lists
18984           # what "hidden" libraries, object files and flags are used when
18985           # linking a shared library.
18986           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18987
18988         else
18989           # FIXME: insert proper C++ library support
18990           ld_shlibs_CXX=no
18991         fi
18992         ;;
18993     esac
18994     ;;
18995   psos*)
18996     # FIXME: insert proper C++ library support
18997     ld_shlibs_CXX=no
18998     ;;
18999   sunos4*)
19000     case $cc_basename in
19001       CC*)
19002         # Sun C++ 4.x
19003         # FIXME: insert proper C++ library support
19004         ld_shlibs_CXX=no
19005         ;;
19006       lcc*)
19007         # Lucid
19008         # FIXME: insert proper C++ library support
19009         ld_shlibs_CXX=no
19010         ;;
19011       *)
19012         # FIXME: insert proper C++ library support
19013         ld_shlibs_CXX=no
19014         ;;
19015     esac
19016     ;;
19017   solaris*)
19018     case $cc_basename in
19019       CC*)
19020         # Sun C++ 4.2, 5.x and Centerline C++
19021         archive_cmds_need_lc_CXX=yes
19022         no_undefined_flag_CXX=' -zdefs'
19023         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19024         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19025         $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'
19026
19027         hardcode_libdir_flag_spec_CXX='-R$libdir'
19028         hardcode_shlibpath_var_CXX=no
19029         case $host_os in
19030           solaris2.[0-5] | solaris2.[0-5].*) ;;
19031           *)
19032             # The C++ compiler is used as linker so we must use $wl
19033             # flag to pass the commands to the underlying system
19034             # linker. We must also pass each convience library through
19035             # to the system linker between allextract/defaultextract.
19036             # The C++ compiler will combine linker options so we
19037             # cannot just pass the convience library names through
19038             # without $wl.
19039             # Supported since Solaris 2.6 (maybe 2.5.1?)
19040             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'
19041             ;;
19042         esac
19043         link_all_deplibs_CXX=yes
19044
19045         output_verbose_link_cmd='echo'
19046
19047         # Archives containing C++ object files must be created using
19048         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19049         # necessary to make sure instantiated templates are included
19050         # in the archive.
19051         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19052         ;;
19053       gcx*)
19054         # Green Hills C++ Compiler
19055         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19056
19057         # The C++ compiler must be used to create the archive.
19058         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19059         ;;
19060       *)
19061         # GNU C++ compiler with Solaris linker
19062         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19063           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19064           if $CC --version | grep -v '^2\.7' > /dev/null; then
19065             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19066             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19067                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19068
19069             # Commands to make compiler produce verbose output that lists
19070             # what "hidden" libraries, object files and flags are used when
19071             # linking a shared library.
19072             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19073           else
19074             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19075             # platform.
19076             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19077             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19078                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19079
19080             # Commands to make compiler produce verbose output that lists
19081             # what "hidden" libraries, object files and flags are used when
19082             # linking a shared library.
19083             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19084           fi
19085
19086           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19087         fi
19088         ;;
19089     esac
19090     ;;
19091   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19092     no_undefined_flag_CXX='${wl}-z,text'
19093     archive_cmds_need_lc_CXX=no
19094     hardcode_shlibpath_var_CXX=no
19095     runpath_var='LD_RUN_PATH'
19096
19097     case $cc_basename in
19098       CC*)
19099         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19100         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19101         ;;
19102       *)
19103         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19104         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19105         ;;
19106     esac
19107     ;;
19108   sysv5* | sco3.2v5* | sco5v6*)
19109     # Note: We can NOT use -z defs as we might desire, because we do not
19110     # link with -lc, and that would cause any symbols used from libc to
19111     # always be unresolved, which means just about no library would
19112     # ever link correctly.  If we're not using GNU ld we use -z text
19113     # though, which does catch some bad symbols but isn't as heavy-handed
19114     # as -z defs.
19115     # For security reasons, it is highly recommended that you always
19116     # use absolute paths for naming shared libraries, and exclude the
19117     # DT_RUNPATH tag from executables and libraries.  But doing so
19118     # requires that you compile everything twice, which is a pain.
19119     # So that behaviour is only enabled if SCOABSPATH is set to a
19120     # non-empty value in the environment.  Most likely only useful for
19121     # creating official distributions of packages.
19122     # This is a hack until libtool officially supports absolute path
19123     # names for shared libraries.
19124     no_undefined_flag_CXX='${wl}-z,text'
19125     allow_undefined_flag_CXX='${wl}-z,nodefs'
19126     archive_cmds_need_lc_CXX=no
19127     hardcode_shlibpath_var_CXX=no
19128     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19129     hardcode_libdir_separator_CXX=':'
19130     link_all_deplibs_CXX=yes
19131     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19132     runpath_var='LD_RUN_PATH'
19133
19134     case $cc_basename in
19135       CC*)
19136         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19137         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19138         ;;
19139       *)
19140         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19141         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19142         ;;
19143     esac
19144     ;;
19145   tandem*)
19146     case $cc_basename in
19147       NCC*)
19148         # NonStop-UX NCC 3.20
19149         # FIXME: insert proper C++ library support
19150         ld_shlibs_CXX=no
19151         ;;
19152       *)
19153         # FIXME: insert proper C++ library support
19154         ld_shlibs_CXX=no
19155         ;;
19156     esac
19157     ;;
19158   vxworks*)
19159     # FIXME: insert proper C++ library support
19160     ld_shlibs_CXX=no
19161     ;;
19162   *)
19163     # FIXME: insert proper C++ library support
19164     ld_shlibs_CXX=no
19165     ;;
19166 esac
19167 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19168 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19169 test "$ld_shlibs_CXX" = no && can_build_shared=no
19170
19171 GCC_CXX="$GXX"
19172 LD_CXX="$LD"
19173
19174
19175 cat > conftest.$ac_ext <<EOF
19176 class Foo
19177 {
19178 public:
19179   Foo (void) { a = 0; }
19180 private:
19181   int a;
19182 };
19183 EOF
19184
19185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19186   (eval $ac_compile) 2>&5
19187   ac_status=$?
19188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); }; then
19190   # Parse the compiler output and extract the necessary
19191   # objects, libraries and library flags.
19192
19193   # Sentinel used to keep track of whether or not we are before
19194   # the conftest object file.
19195   pre_test_object_deps_done=no
19196
19197   # The `*' in the case matches for architectures that use `case' in
19198   # $output_verbose_cmd can trigger glob expansion during the loop
19199   # eval without this substitution.
19200   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19201
19202   for p in `eval $output_verbose_link_cmd`; do
19203     case $p in
19204
19205     -L* | -R* | -l*)
19206        # Some compilers place space between "-{L,R}" and the path.
19207        # Remove the space.
19208        if test $p = "-L" \
19209           || test $p = "-R"; then
19210          prev=$p
19211          continue
19212        else
19213          prev=
19214        fi
19215
19216        if test "$pre_test_object_deps_done" = no; then
19217          case $p in
19218          -L* | -R*)
19219            # Internal compiler library paths should come after those
19220            # provided the user.  The postdeps already come after the
19221            # user supplied libs so there is no need to process them.
19222            if test -z "$compiler_lib_search_path_CXX"; then
19223              compiler_lib_search_path_CXX="${prev}${p}"
19224            else
19225              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19226            fi
19227            ;;
19228          # The "-l" case would never come before the object being
19229          # linked, so don't bother handling this case.
19230          esac
19231        else
19232          if test -z "$postdeps_CXX"; then
19233            postdeps_CXX="${prev}${p}"
19234          else
19235            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19236          fi
19237        fi
19238        ;;
19239
19240     *.$objext)
19241        # This assumes that the test object file only shows up
19242        # once in the compiler output.
19243        if test "$p" = "conftest.$objext"; then
19244          pre_test_object_deps_done=yes
19245          continue
19246        fi
19247
19248        if test "$pre_test_object_deps_done" = no; then
19249          if test -z "$predep_objects_CXX"; then
19250            predep_objects_CXX="$p"
19251          else
19252            predep_objects_CXX="$predep_objects_CXX $p"
19253          fi
19254        else
19255          if test -z "$postdep_objects_CXX"; then
19256            postdep_objects_CXX="$p"
19257          else
19258            postdep_objects_CXX="$postdep_objects_CXX $p"
19259          fi
19260        fi
19261        ;;
19262
19263     *) ;; # Ignore the rest.
19264
19265     esac
19266   done
19267
19268   # Clean up.
19269   rm -f a.out a.exe
19270 else
19271   echo "libtool.m4: error: problem compiling CXX test program"
19272 fi
19273
19274 $rm -f confest.$objext
19275
19276 # PORTME: override above test on systems where it is broken
19277 case $host_os in
19278 interix3*)
19279   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19280   # hack all around it, let's just trust "g++" to DTRT.
19281   predep_objects_CXX=
19282   postdep_objects_CXX=
19283   postdeps_CXX=
19284   ;;
19285
19286 solaris*)
19287   case $cc_basename in
19288   CC*)
19289     # Adding this requires a known-good setup of shared libraries for
19290     # Sun compiler versions before 5.6, else PIC objects from an old
19291     # archive will be linked into the output, leading to subtle bugs.
19292     postdeps_CXX='-lCstd -lCrun'
19293     ;;
19294   esac
19295   ;;
19296 esac
19297
19298
19299 case " $postdeps_CXX " in
19300 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19301 esac
19302
19303 lt_prog_compiler_wl_CXX=
19304 lt_prog_compiler_pic_CXX=
19305 lt_prog_compiler_static_CXX=
19306
19307 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19308 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19309
19310   # C++ specific cases for pic, static, wl, etc.
19311   if test "$GXX" = yes; then
19312     lt_prog_compiler_wl_CXX='-Wl,'
19313     lt_prog_compiler_static_CXX='-static'
19314
19315     case $host_os in
19316     aix*)
19317       # All AIX code is PIC.
19318       if test "$host_cpu" = ia64; then
19319         # AIX 5 now supports IA64 processor
19320         lt_prog_compiler_static_CXX='-Bstatic'
19321       fi
19322       ;;
19323     amigaos*)
19324       # FIXME: we need at least 68020 code to build shared libraries, but
19325       # adding the `-m68020' flag to GCC prevents building anything better,
19326       # like `-m68040'.
19327       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19328       ;;
19329     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19330       # PIC is the default for these OSes.
19331       ;;
19332     mingw* | os2* | pw32*)
19333       # This hack is so that the source file can tell whether it is being
19334       # built for inclusion in a dll (and should export symbols for example).
19335       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19336       ;;
19337     darwin* | rhapsody*)
19338       # PIC is the default on this platform
19339       # Common symbols not allowed in MH_DYLIB files
19340       lt_prog_compiler_pic_CXX='-fno-common'
19341       ;;
19342     *djgpp*)
19343       # DJGPP does not support shared libraries at all
19344       lt_prog_compiler_pic_CXX=
19345       ;;
19346     interix3*)
19347       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19348       # Instead, we relocate shared libraries at runtime.
19349       ;;
19350     sysv4*MP*)
19351       if test -d /usr/nec; then
19352         lt_prog_compiler_pic_CXX=-Kconform_pic
19353       fi
19354       ;;
19355     hpux*)
19356       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19357       # not for PA HP-UX.
19358       case $host_cpu in
19359       hppa*64*|ia64*)
19360         ;;
19361       *)
19362         lt_prog_compiler_pic_CXX='-fPIC'
19363         ;;
19364       esac
19365       ;;
19366     *)
19367       lt_prog_compiler_pic_CXX='-fPIC'
19368       ;;
19369     esac
19370   else
19371     case $host_os in
19372       aix4* | aix5*)
19373         # All AIX code is PIC.
19374         if test "$host_cpu" = ia64; then
19375           # AIX 5 now supports IA64 processor
19376           lt_prog_compiler_static_CXX='-Bstatic'
19377         else
19378           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19379         fi
19380         ;;
19381       chorus*)
19382         case $cc_basename in
19383         cxch68*)
19384           # Green Hills C++ Compiler
19385           # _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"
19386           ;;
19387         esac
19388         ;;
19389        darwin*)
19390          # PIC is the default on this platform
19391          # Common symbols not allowed in MH_DYLIB files
19392          case $cc_basename in
19393            xlc*)
19394            lt_prog_compiler_pic_CXX='-qnocommon'
19395            lt_prog_compiler_wl_CXX='-Wl,'
19396            ;;
19397          esac
19398        ;;
19399       dgux*)
19400         case $cc_basename in
19401           ec++*)
19402             lt_prog_compiler_pic_CXX='-KPIC'
19403             ;;
19404           ghcx*)
19405             # Green Hills C++ Compiler
19406             lt_prog_compiler_pic_CXX='-pic'
19407             ;;
19408           *)
19409             ;;
19410         esac
19411         ;;
19412       freebsd* | kfreebsd*-gnu | dragonfly*)
19413         # FreeBSD uses GNU C++
19414         ;;
19415       hpux9* | hpux10* | hpux11*)
19416         case $cc_basename in
19417           CC*)
19418             lt_prog_compiler_wl_CXX='-Wl,'
19419             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19420             if test "$host_cpu" != ia64; then
19421               lt_prog_compiler_pic_CXX='+Z'
19422             fi
19423             ;;
19424           aCC*)
19425             lt_prog_compiler_wl_CXX='-Wl,'
19426             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19427             case $host_cpu in
19428             hppa*64*|ia64*)
19429               # +Z the default
19430               ;;
19431             *)
19432               lt_prog_compiler_pic_CXX='+Z'
19433               ;;
19434             esac
19435             ;;
19436           *)
19437             ;;
19438         esac
19439         ;;
19440       interix*)
19441         # This is c89, which is MS Visual C++ (no shared libs)
19442         # Anyone wants to do a port?
19443         ;;
19444       irix5* | irix6* | nonstopux*)
19445         case $cc_basename in
19446           CC*)
19447             lt_prog_compiler_wl_CXX='-Wl,'
19448             lt_prog_compiler_static_CXX='-non_shared'
19449             # CC pic flag -KPIC is the default.
19450             ;;
19451           *)
19452             ;;
19453         esac
19454         ;;
19455       linux*)
19456         case $cc_basename in
19457           KCC*)
19458             # KAI C++ Compiler
19459             lt_prog_compiler_wl_CXX='--backend -Wl,'
19460             lt_prog_compiler_pic_CXX='-fPIC'
19461             ;;
19462           icpc* | ecpc*)
19463             # Intel C++
19464             lt_prog_compiler_wl_CXX='-Wl,'
19465             lt_prog_compiler_pic_CXX='-KPIC'
19466             lt_prog_compiler_static_CXX='-static'
19467             ;;
19468           pgCC*)
19469             # Portland Group C++ compiler.
19470             lt_prog_compiler_wl_CXX='-Wl,'
19471             lt_prog_compiler_pic_CXX='-fpic'
19472             lt_prog_compiler_static_CXX='-Bstatic'
19473             ;;
19474           cxx*)
19475             # Compaq C++
19476             # Make sure the PIC flag is empty.  It appears that all Alpha
19477             # Linux and Compaq Tru64 Unix objects are PIC.
19478             lt_prog_compiler_pic_CXX=
19479             lt_prog_compiler_static_CXX='-non_shared'
19480             ;;
19481           *)
19482             ;;
19483         esac
19484         ;;
19485       lynxos*)
19486         ;;
19487       m88k*)
19488         ;;
19489       mvs*)
19490         case $cc_basename in
19491           cxx*)
19492             lt_prog_compiler_pic_CXX='-W c,exportall'
19493             ;;
19494           *)
19495             ;;
19496         esac
19497         ;;
19498       netbsd*)
19499         ;;
19500       osf3* | osf4* | osf5*)
19501         case $cc_basename in
19502           KCC*)
19503             lt_prog_compiler_wl_CXX='--backend -Wl,'
19504             ;;
19505           RCC*)
19506             # Rational C++ 2.4.1
19507             lt_prog_compiler_pic_CXX='-pic'
19508             ;;
19509           cxx*)
19510             # Digital/Compaq C++
19511             lt_prog_compiler_wl_CXX='-Wl,'
19512             # Make sure the PIC flag is empty.  It appears that all Alpha
19513             # Linux and Compaq Tru64 Unix objects are PIC.
19514             lt_prog_compiler_pic_CXX=
19515             lt_prog_compiler_static_CXX='-non_shared'
19516             ;;
19517           *)
19518             ;;
19519         esac
19520         ;;
19521       psos*)
19522         ;;
19523       solaris*)
19524         case $cc_basename in
19525           CC*)
19526             # Sun C++ 4.2, 5.x and Centerline C++
19527             lt_prog_compiler_pic_CXX='-KPIC'
19528             lt_prog_compiler_static_CXX='-Bstatic'
19529             lt_prog_compiler_wl_CXX='-Qoption ld '
19530             ;;
19531           gcx*)
19532             # Green Hills C++ Compiler
19533             lt_prog_compiler_pic_CXX='-PIC'
19534             ;;
19535           *)
19536             ;;
19537         esac
19538         ;;
19539       sunos4*)
19540         case $cc_basename in
19541           CC*)
19542             # Sun C++ 4.x
19543             lt_prog_compiler_pic_CXX='-pic'
19544             lt_prog_compiler_static_CXX='-Bstatic'
19545             ;;
19546           lcc*)
19547             # Lucid
19548             lt_prog_compiler_pic_CXX='-pic'
19549             ;;
19550           *)
19551             ;;
19552         esac
19553         ;;
19554       tandem*)
19555         case $cc_basename in
19556           NCC*)
19557             # NonStop-UX NCC 3.20
19558             lt_prog_compiler_pic_CXX='-KPIC'
19559             ;;
19560           *)
19561             ;;
19562         esac
19563         ;;
19564       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19565         case $cc_basename in
19566           CC*)
19567             lt_prog_compiler_wl_CXX='-Wl,'
19568             lt_prog_compiler_pic_CXX='-KPIC'
19569             lt_prog_compiler_static_CXX='-Bstatic'
19570             ;;
19571         esac
19572         ;;
19573       vxworks*)
19574         ;;
19575       *)
19576         lt_prog_compiler_can_build_shared_CXX=no
19577         ;;
19578     esac
19579   fi
19580
19581 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19582 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19583
19584 #
19585 # Check to make sure the PIC flag actually works.
19586 #
19587 if test -n "$lt_prog_compiler_pic_CXX"; then
19588
19589 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19590 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19591 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   lt_prog_compiler_pic_works_CXX=no
19595   ac_outfile=conftest.$ac_objext
19596    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19597    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19598    # Insert the option either (1) after the last *FLAGS variable, or
19599    # (2) before a word containing "conftest.", or (3) at the end.
19600    # Note that $ac_compile itself does not contain backslashes and begins
19601    # with a dollar sign (not a hyphen), so the echo should work correctly.
19602    # The option is referenced via a variable to avoid confusing sed.
19603    lt_compile=`echo "$ac_compile" | $SED \
19604    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19605    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19606    -e 's:$: $lt_compiler_flag:'`
19607    (eval echo "\"\$as_me:19607: $lt_compile\"" >&5)
19608    (eval "$lt_compile" 2>conftest.err)
19609    ac_status=$?
19610    cat conftest.err >&5
19611    echo "$as_me:19611: \$? = $ac_status" >&5
19612    if (exit $ac_status) && test -s "$ac_outfile"; then
19613      # The compiler can only warn and ignore the option if not recognized
19614      # So say no if there are warnings other than the usual output.
19615      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19616      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19617      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19618        lt_prog_compiler_pic_works_CXX=yes
19619      fi
19620    fi
19621    $rm conftest*
19622
19623 fi
19624 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19625 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19626
19627 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19628     case $lt_prog_compiler_pic_CXX in
19629      "" | " "*) ;;
19630      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19631      esac
19632 else
19633     lt_prog_compiler_pic_CXX=
19634      lt_prog_compiler_can_build_shared_CXX=no
19635 fi
19636
19637 fi
19638 case $host_os in
19639   # For platforms which do not support PIC, -DPIC is meaningless:
19640   *djgpp*)
19641     lt_prog_compiler_pic_CXX=
19642     ;;
19643   *)
19644     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19645     ;;
19646 esac
19647
19648 #
19649 # Check to make sure the static flag actually works.
19650 #
19651 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19652 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19653 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19654 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19655   echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657   lt_prog_compiler_static_works_CXX=no
19658    save_LDFLAGS="$LDFLAGS"
19659    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19660    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19661    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19662      # The linker can only warn and ignore the option if not recognized
19663      # So say no if there are warnings
19664      if test -s conftest.err; then
19665        # Append any errors to the config.log.
19666        cat conftest.err 1>&5
19667        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19668        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19669        if diff conftest.exp conftest.er2 >/dev/null; then
19670          lt_prog_compiler_static_works_CXX=yes
19671        fi
19672      else
19673        lt_prog_compiler_static_works_CXX=yes
19674      fi
19675    fi
19676    $rm conftest*
19677    LDFLAGS="$save_LDFLAGS"
19678
19679 fi
19680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19681 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19682
19683 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19684     :
19685 else
19686     lt_prog_compiler_static_CXX=
19687 fi
19688
19689
19690 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19691 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19692 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19693   echo $ECHO_N "(cached) $ECHO_C" >&6
19694 else
19695   lt_cv_prog_compiler_c_o_CXX=no
19696    $rm -r conftest 2>/dev/null
19697    mkdir conftest
19698    cd conftest
19699    mkdir out
19700    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19701
19702    lt_compiler_flag="-o out/conftest2.$ac_objext"
19703    # Insert the option either (1) after the last *FLAGS variable, or
19704    # (2) before a word containing "conftest.", or (3) at the end.
19705    # Note that $ac_compile itself does not contain backslashes and begins
19706    # with a dollar sign (not a hyphen), so the echo should work correctly.
19707    lt_compile=`echo "$ac_compile" | $SED \
19708    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19710    -e 's:$: $lt_compiler_flag:'`
19711    (eval echo "\"\$as_me:19711: $lt_compile\"" >&5)
19712    (eval "$lt_compile" 2>out/conftest.err)
19713    ac_status=$?
19714    cat out/conftest.err >&5
19715    echo "$as_me:19715: \$? = $ac_status" >&5
19716    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19717    then
19718      # The compiler can only warn and ignore the option if not recognized
19719      # So say no if there are warnings
19720      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19721      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19722      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19723        lt_cv_prog_compiler_c_o_CXX=yes
19724      fi
19725    fi
19726    chmod u+w . 2>&5
19727    $rm conftest*
19728    # SGI C++ compiler will create directory out/ii_files/ for
19729    # template instantiation
19730    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19731    $rm out/* && rmdir out
19732    cd ..
19733    rmdir conftest
19734    $rm conftest*
19735
19736 fi
19737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19739
19740
19741 hard_links="nottested"
19742 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19743   # do not overwrite the value of need_locks provided by the user
19744   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19746   hard_links=yes
19747   $rm conftest*
19748   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19749   touch conftest.a
19750   ln conftest.a conftest.b 2>&5 || hard_links=no
19751   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19752   { echo "$as_me:$LINENO: result: $hard_links" >&5
19753 echo "${ECHO_T}$hard_links" >&6; }
19754   if test "$hard_links" = no; then
19755     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19757     need_locks=warn
19758   fi
19759 else
19760   need_locks=no
19761 fi
19762
19763 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19765
19766   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19767   case $host_os in
19768   aix4* | aix5*)
19769     # If we're using GNU nm, then we don't want the "-C" option.
19770     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19771     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19772       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'
19773     else
19774       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'
19775     fi
19776     ;;
19777   pw32*)
19778     export_symbols_cmds_CXX="$ltdll_cmds"
19779   ;;
19780   cygwin* | mingw*)
19781     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'
19782   ;;
19783   *)
19784     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19785   ;;
19786   esac
19787
19788 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19789 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19790 test "$ld_shlibs_CXX" = no && can_build_shared=no
19791
19792 #
19793 # Do we need to explicitly link libc?
19794 #
19795 case "x$archive_cmds_need_lc_CXX" in
19796 x|xyes)
19797   # Assume -lc should be added
19798   archive_cmds_need_lc_CXX=yes
19799
19800   if test "$enable_shared" = yes && test "$GCC" = yes; then
19801     case $archive_cmds_CXX in
19802     *'~'*)
19803       # FIXME: we may have to deal with multi-command sequences.
19804       ;;
19805     '$CC '*)
19806       # Test whether the compiler implicitly links with -lc since on some
19807       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19808       # to ld, don't add -lc before -lgcc.
19809       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19810 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19811       $rm conftest*
19812       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19813
19814       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19815   (eval $ac_compile) 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); } 2>conftest.err; then
19819         soname=conftest
19820         lib=conftest
19821         libobjs=conftest.$ac_objext
19822         deplibs=
19823         wl=$lt_prog_compiler_wl_CXX
19824         pic_flag=$lt_prog_compiler_pic_CXX
19825         compiler_flags=-v
19826         linker_flags=-v
19827         verstring=
19828         output_objdir=.
19829         libname=conftest
19830         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19831         allow_undefined_flag_CXX=
19832         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19833   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19834   ac_status=$?
19835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836   (exit $ac_status); }
19837         then
19838           archive_cmds_need_lc_CXX=no
19839         else
19840           archive_cmds_need_lc_CXX=yes
19841         fi
19842         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19843       else
19844         cat conftest.err 1>&5
19845       fi
19846       $rm conftest*
19847       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19848 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19849       ;;
19850     esac
19851   fi
19852   ;;
19853 esac
19854
19855 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19856 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19857 library_names_spec=
19858 libname_spec='lib$name'
19859 soname_spec=
19860 shrext_cmds=".so"
19861 postinstall_cmds=
19862 postuninstall_cmds=
19863 finish_cmds=
19864 finish_eval=
19865 shlibpath_var=
19866 shlibpath_overrides_runpath=unknown
19867 version_type=none
19868 dynamic_linker="$host_os ld.so"
19869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19870 if test "$GCC" = yes; then
19871   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19872   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19873     # if the path contains ";" then we assume it to be the separator
19874     # otherwise default to the standard path separator (i.e. ":") - it is
19875     # assumed that no part of a normal pathname contains ";" but that should
19876     # okay in the real world where ";" in dirpaths is itself problematic.
19877     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19878   else
19879     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19880   fi
19881 else
19882   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19883 fi
19884 need_lib_prefix=unknown
19885 hardcode_into_libs=no
19886
19887 # when you set need_version to no, make sure it does not cause -set_version
19888 # flags to be left without arguments
19889 need_version=unknown
19890
19891 case $host_os in
19892 aix3*)
19893   version_type=linux
19894   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19895   shlibpath_var=LIBPATH
19896
19897   # AIX 3 has no versioning support, so we append a major version to the name.
19898   soname_spec='${libname}${release}${shared_ext}$major'
19899   ;;
19900
19901 aix4* | aix5*)
19902   version_type=linux
19903   need_lib_prefix=no
19904   need_version=no
19905   hardcode_into_libs=yes
19906   if test "$host_cpu" = ia64; then
19907     # AIX 5 supports IA64
19908     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19909     shlibpath_var=LD_LIBRARY_PATH
19910   else
19911     # With GCC up to 2.95.x, collect2 would create an import file
19912     # for dependence libraries.  The import file would start with
19913     # the line `#! .'.  This would cause the generated library to
19914     # depend on `.', always an invalid library.  This was fixed in
19915     # development snapshots of GCC prior to 3.0.
19916     case $host_os in
19917       aix4 | aix4.[01] | aix4.[01].*)
19918       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19919            echo ' yes '
19920            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19921         :
19922       else
19923         can_build_shared=no
19924       fi
19925       ;;
19926     esac
19927     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19928     # soname into executable. Probably we can add versioning support to
19929     # collect2, so additional links can be useful in future.
19930     if test "$aix_use_runtimelinking" = yes; then
19931       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19932       # instead of lib<name>.a to let people know that these are not
19933       # typical AIX shared libraries.
19934       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19935     else
19936       # We preserve .a as extension for shared libraries through AIX4.2
19937       # and later when we are not doing run time linking.
19938       library_names_spec='${libname}${release}.a $libname.a'
19939       soname_spec='${libname}${release}${shared_ext}$major'
19940     fi
19941     shlibpath_var=LIBPATH
19942   fi
19943   ;;
19944
19945 amigaos*)
19946   library_names_spec='$libname.ixlibrary $libname.a'
19947   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19948   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'
19949   ;;
19950
19951 beos*)
19952   library_names_spec='${libname}${shared_ext}'
19953   dynamic_linker="$host_os ld.so"
19954   shlibpath_var=LIBRARY_PATH
19955   ;;
19956
19957 bsdi[45]*)
19958   version_type=linux
19959   need_version=no
19960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19961   soname_spec='${libname}${release}${shared_ext}$major'
19962   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19963   shlibpath_var=LD_LIBRARY_PATH
19964   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19965   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19966   # the default ld.so.conf also contains /usr/contrib/lib and
19967   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19968   # libtool to hard-code these into programs
19969   ;;
19970
19971 cygwin* | mingw* | pw32*)
19972   version_type=windows
19973   shrext_cmds=".dll"
19974   need_version=no
19975   need_lib_prefix=no
19976
19977   case $GCC,$host_os in
19978   yes,cygwin* | yes,mingw* | yes,pw32*)
19979     library_names_spec='$libname.dll.a'
19980     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19981     postinstall_cmds='base_file=`basename \${file}`~
19982       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19983       dldir=$destdir/`dirname \$dlpath`~
19984       test -d \$dldir || mkdir -p \$dldir~
19985       $install_prog $dir/$dlname \$dldir/$dlname~
19986       chmod a+x \$dldir/$dlname'
19987     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19988       dlpath=$dir/\$dldll~
19989        $rm \$dlpath'
19990     shlibpath_overrides_runpath=yes
19991
19992     case $host_os in
19993     cygwin*)
19994       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19995       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19996       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19997       ;;
19998     mingw*)
19999       # MinGW DLLs use traditional 'lib' prefix
20000       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20001       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20002       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20003         # It is most probably a Windows format PATH printed by
20004         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20005         # path with ; separators, and with drive letters. We can handle the
20006         # drive letters (cygwin fileutils understands them), so leave them,
20007         # especially as we might pass files found there to a mingw objdump,
20008         # which wouldn't understand a cygwinified path. Ahh.
20009         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20010       else
20011         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20012       fi
20013       ;;
20014     pw32*)
20015       # pw32 DLLs use 'pw' prefix rather than 'lib'
20016       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20017       ;;
20018     esac
20019     ;;
20020
20021   *)
20022     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20023     ;;
20024   esac
20025   dynamic_linker='Win32 ld.exe'
20026   # FIXME: first we should search . and the directory the executable is in
20027   shlibpath_var=PATH
20028   ;;
20029
20030 darwin* | rhapsody*)
20031   dynamic_linker="$host_os dyld"
20032   version_type=darwin
20033   need_lib_prefix=no
20034   need_version=no
20035   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20036   soname_spec='${libname}${release}${major}$shared_ext'
20037   shlibpath_overrides_runpath=yes
20038   shlibpath_var=DYLD_LIBRARY_PATH
20039   shrext_cmds='.dylib'
20040   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20041   if test "$GCC" = yes; then
20042     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"`
20043   else
20044     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20045   fi
20046   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20047   ;;
20048
20049 dgux*)
20050   version_type=linux
20051   need_lib_prefix=no
20052   need_version=no
20053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20054   soname_spec='${libname}${release}${shared_ext}$major'
20055   shlibpath_var=LD_LIBRARY_PATH
20056   ;;
20057
20058 freebsd1*)
20059   dynamic_linker=no
20060   ;;
20061
20062 kfreebsd*-gnu)
20063   version_type=linux
20064   need_lib_prefix=no
20065   need_version=no
20066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20067   soname_spec='${libname}${release}${shared_ext}$major'
20068   shlibpath_var=LD_LIBRARY_PATH
20069   shlibpath_overrides_runpath=no
20070   hardcode_into_libs=yes
20071   dynamic_linker='GNU ld.so'
20072   ;;
20073
20074 freebsd* | dragonfly*)
20075   # DragonFly does not have aout.  When/if they implement a new
20076   # versioning mechanism, adjust this.
20077   if test -x /usr/bin/objformat; then
20078     objformat=`/usr/bin/objformat`
20079   else
20080     case $host_os in
20081     freebsd[123]*) objformat=aout ;;
20082     *) objformat=elf ;;
20083     esac
20084   fi
20085   version_type=freebsd-$objformat
20086   case $version_type in
20087     freebsd-elf*)
20088       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20089       need_version=no
20090       need_lib_prefix=no
20091       ;;
20092     freebsd-*)
20093       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20094       need_version=yes
20095       ;;
20096   esac
20097   shlibpath_var=LD_LIBRARY_PATH
20098   case $host_os in
20099   freebsd2*)
20100     shlibpath_overrides_runpath=yes
20101     ;;
20102   freebsd3.[01]* | freebsdelf3.[01]*)
20103     shlibpath_overrides_runpath=yes
20104     hardcode_into_libs=yes
20105     ;;
20106   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20107   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20108     shlibpath_overrides_runpath=no
20109     hardcode_into_libs=yes
20110     ;;
20111   freebsd*) # from 4.6 on
20112     shlibpath_overrides_runpath=yes
20113     hardcode_into_libs=yes
20114     ;;
20115   esac
20116   ;;
20117
20118 gnu*)
20119   version_type=linux
20120   need_lib_prefix=no
20121   need_version=no
20122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20123   soname_spec='${libname}${release}${shared_ext}$major'
20124   shlibpath_var=LD_LIBRARY_PATH
20125   hardcode_into_libs=yes
20126   ;;
20127
20128 hpux9* | hpux10* | hpux11*)
20129   # Give a soname corresponding to the major version so that dld.sl refuses to
20130   # link against other versions.
20131   version_type=sunos
20132   need_lib_prefix=no
20133   need_version=no
20134   case $host_cpu in
20135   ia64*)
20136     shrext_cmds='.so'
20137     hardcode_into_libs=yes
20138     dynamic_linker="$host_os dld.so"
20139     shlibpath_var=LD_LIBRARY_PATH
20140     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142     soname_spec='${libname}${release}${shared_ext}$major'
20143     if test "X$HPUX_IA64_MODE" = X32; then
20144       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20145     else
20146       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20147     fi
20148     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20149     ;;
20150    hppa*64*)
20151      shrext_cmds='.sl'
20152      hardcode_into_libs=yes
20153      dynamic_linker="$host_os dld.sl"
20154      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20155      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20156      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157      soname_spec='${libname}${release}${shared_ext}$major'
20158      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20159      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20160      ;;
20161    *)
20162     shrext_cmds='.sl'
20163     dynamic_linker="$host_os dld.sl"
20164     shlibpath_var=SHLIB_PATH
20165     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167     soname_spec='${libname}${release}${shared_ext}$major'
20168     ;;
20169   esac
20170   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20171   postinstall_cmds='chmod 555 $lib'
20172   ;;
20173
20174 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20181   shlibpath_var=LD_LIBRARY_PATH
20182   shlibpath_overrides_runpath=no
20183   hardcode_into_libs=yes
20184   ;;
20185
20186 irix5* | irix6* | nonstopux*)
20187   case $host_os in
20188     nonstopux*) version_type=nonstopux ;;
20189     *)
20190         if test "$lt_cv_prog_gnu_ld" = yes; then
20191                 version_type=linux
20192         else
20193                 version_type=irix
20194         fi ;;
20195   esac
20196   need_lib_prefix=no
20197   need_version=no
20198   soname_spec='${libname}${release}${shared_ext}$major'
20199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20200   case $host_os in
20201   irix5* | nonstopux*)
20202     libsuff= shlibsuff=
20203     ;;
20204   *)
20205     case $LD in # libtool.m4 will add one of these switches to LD
20206     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20207       libsuff= shlibsuff= libmagic=32-bit;;
20208     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20209       libsuff=32 shlibsuff=N32 libmagic=N32;;
20210     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20211       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20212     *) libsuff= shlibsuff= libmagic=never-match;;
20213     esac
20214     ;;
20215   esac
20216   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20217   shlibpath_overrides_runpath=no
20218   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20219   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20220   hardcode_into_libs=yes
20221   ;;
20222
20223 # No shared lib support for Linux oldld, aout, or coff.
20224 linux*oldld* | linux*aout* | linux*coff*)
20225   dynamic_linker=no
20226   ;;
20227
20228 # This must be Linux ELF.
20229 linux*)
20230   version_type=linux
20231   need_lib_prefix=no
20232   need_version=no
20233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234   soname_spec='${libname}${release}${shared_ext}$major'
20235   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20236   shlibpath_var=LD_LIBRARY_PATH
20237   shlibpath_overrides_runpath=no
20238   # This implies no fast_install, which is unacceptable.
20239   # Some rework will be needed to allow for fast_install
20240   # before this can be enabled.
20241   hardcode_into_libs=yes
20242
20243   # Append ld.so.conf contents to the search path
20244   if test -f /etc/ld.so.conf; then
20245     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' ' '`
20246     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20247   fi
20248
20249   # We used to test for /lib/ld.so.1 and disable shared libraries on
20250   # powerpc, because MkLinux only supported shared libraries with the
20251   # GNU dynamic linker.  Since this was broken with cross compilers,
20252   # most powerpc-linux boxes support dynamic linking these days and
20253   # people can always --disable-shared, the test was removed, and we
20254   # assume the GNU/Linux dynamic linker is in use.
20255   dynamic_linker='GNU/Linux ld.so'
20256   ;;
20257
20258 knetbsd*-gnu)
20259   version_type=linux
20260   need_lib_prefix=no
20261   need_version=no
20262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20263   soname_spec='${libname}${release}${shared_ext}$major'
20264   shlibpath_var=LD_LIBRARY_PATH
20265   shlibpath_overrides_runpath=no
20266   hardcode_into_libs=yes
20267   dynamic_linker='GNU ld.so'
20268   ;;
20269
20270 netbsd*)
20271   version_type=sunos
20272   need_lib_prefix=no
20273   need_version=no
20274   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20276     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20277     dynamic_linker='NetBSD (a.out) ld.so'
20278   else
20279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20280     soname_spec='${libname}${release}${shared_ext}$major'
20281     dynamic_linker='NetBSD ld.elf_so'
20282   fi
20283   shlibpath_var=LD_LIBRARY_PATH
20284   shlibpath_overrides_runpath=yes
20285   hardcode_into_libs=yes
20286   ;;
20287
20288 newsos6)
20289   version_type=linux
20290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20291   shlibpath_var=LD_LIBRARY_PATH
20292   shlibpath_overrides_runpath=yes
20293   ;;
20294
20295 nto-qnx*)
20296   version_type=linux
20297   need_lib_prefix=no
20298   need_version=no
20299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20300   soname_spec='${libname}${release}${shared_ext}$major'
20301   shlibpath_var=LD_LIBRARY_PATH
20302   shlibpath_overrides_runpath=yes
20303   ;;
20304
20305 openbsd*)
20306   version_type=sunos
20307   sys_lib_dlsearch_path_spec="/usr/lib"
20308   need_lib_prefix=no
20309   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20310   case $host_os in
20311     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20312     *)                         need_version=no  ;;
20313   esac
20314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20315   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20316   shlibpath_var=LD_LIBRARY_PATH
20317   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20318     case $host_os in
20319       openbsd2.[89] | openbsd2.[89].*)
20320         shlibpath_overrides_runpath=no
20321         ;;
20322       *)
20323         shlibpath_overrides_runpath=yes
20324         ;;
20325       esac
20326   else
20327     shlibpath_overrides_runpath=yes
20328   fi
20329   ;;
20330
20331 os2*)
20332   libname_spec='$name'
20333   shrext_cmds=".dll"
20334   need_lib_prefix=no
20335   library_names_spec='$libname${shared_ext} $libname.a'
20336   dynamic_linker='OS/2 ld.exe'
20337   shlibpath_var=LIBPATH
20338   ;;
20339
20340 osf3* | osf4* | osf5*)
20341   version_type=osf
20342   need_lib_prefix=no
20343   need_version=no
20344   soname_spec='${libname}${release}${shared_ext}$major'
20345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346   shlibpath_var=LD_LIBRARY_PATH
20347   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20348   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20349   ;;
20350
20351 solaris*)
20352   version_type=linux
20353   need_lib_prefix=no
20354   need_version=no
20355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356   soname_spec='${libname}${release}${shared_ext}$major'
20357   shlibpath_var=LD_LIBRARY_PATH
20358   shlibpath_overrides_runpath=yes
20359   hardcode_into_libs=yes
20360   # ldd complains unless libraries are executable
20361   postinstall_cmds='chmod +x $lib'
20362   ;;
20363
20364 sunos4*)
20365   version_type=sunos
20366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20367   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20368   shlibpath_var=LD_LIBRARY_PATH
20369   shlibpath_overrides_runpath=yes
20370   if test "$with_gnu_ld" = yes; then
20371     need_lib_prefix=no
20372   fi
20373   need_version=yes
20374   ;;
20375
20376 sysv4 | sysv4.3*)
20377   version_type=linux
20378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20379   soname_spec='${libname}${release}${shared_ext}$major'
20380   shlibpath_var=LD_LIBRARY_PATH
20381   case $host_vendor in
20382     sni)
20383       shlibpath_overrides_runpath=no
20384       need_lib_prefix=no
20385       export_dynamic_flag_spec='${wl}-Blargedynsym'
20386       runpath_var=LD_RUN_PATH
20387       ;;
20388     siemens)
20389       need_lib_prefix=no
20390       ;;
20391     motorola)
20392       need_lib_prefix=no
20393       need_version=no
20394       shlibpath_overrides_runpath=no
20395       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20396       ;;
20397   esac
20398   ;;
20399
20400 sysv4*MP*)
20401   if test -d /usr/nec ;then
20402     version_type=linux
20403     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20404     soname_spec='$libname${shared_ext}.$major'
20405     shlibpath_var=LD_LIBRARY_PATH
20406   fi
20407   ;;
20408
20409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20410   version_type=freebsd-elf
20411   need_lib_prefix=no
20412   need_version=no
20413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20414   soname_spec='${libname}${release}${shared_ext}$major'
20415   shlibpath_var=LD_LIBRARY_PATH
20416   hardcode_into_libs=yes
20417   if test "$with_gnu_ld" = yes; then
20418     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20419     shlibpath_overrides_runpath=no
20420   else
20421     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20422     shlibpath_overrides_runpath=yes
20423     case $host_os in
20424       sco3.2v5*)
20425         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20426         ;;
20427     esac
20428   fi
20429   sys_lib_dlsearch_path_spec='/usr/lib'
20430   ;;
20431
20432 uts4*)
20433   version_type=linux
20434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20435   soname_spec='${libname}${release}${shared_ext}$major'
20436   shlibpath_var=LD_LIBRARY_PATH
20437   ;;
20438
20439 *)
20440   dynamic_linker=no
20441   ;;
20442 esac
20443 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20444 echo "${ECHO_T}$dynamic_linker" >&6; }
20445 test "$dynamic_linker" = no && can_build_shared=no
20446
20447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20448 if test "$GCC" = yes; then
20449   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20450 fi
20451
20452 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20453 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20454 hardcode_action_CXX=
20455 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20456    test -n "$runpath_var_CXX" || \
20457    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20458
20459   # We can hardcode non-existant directories.
20460   if test "$hardcode_direct_CXX" != no &&
20461      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20462      # have to relink, otherwise we might link with an installed library
20463      # when we should be linking with a yet-to-be-installed one
20464      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20465      test "$hardcode_minus_L_CXX" != no; then
20466     # Linking always hardcodes the temporary library directory.
20467     hardcode_action_CXX=relink
20468   else
20469     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20470     hardcode_action_CXX=immediate
20471   fi
20472 else
20473   # We cannot hardcode anything, or else we can only hardcode existing
20474   # directories.
20475   hardcode_action_CXX=unsupported
20476 fi
20477 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20478 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20479
20480 if test "$hardcode_action_CXX" = relink; then
20481   # Fast installation is not supported
20482   enable_fast_install=no
20483 elif test "$shlibpath_overrides_runpath" = yes ||
20484      test "$enable_shared" = no; then
20485   # Fast installation is not necessary
20486   enable_fast_install=needless
20487 fi
20488
20489
20490 # The else clause should only fire when bootstrapping the
20491 # libtool distribution, otherwise you forgot to ship ltmain.sh
20492 # with your package, and you will get complaints that there are
20493 # no rules to generate ltmain.sh.
20494 if test -f "$ltmain"; then
20495   # See if we are running on zsh, and set the options which allow our commands through
20496   # without removal of \ escapes.
20497   if test -n "${ZSH_VERSION+set}" ; then
20498     setopt NO_GLOB_SUBST
20499   fi
20500   # Now quote all the things that may contain metacharacters while being
20501   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20502   # variables and quote the copies for generation of the libtool script.
20503   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20504     SED SHELL STRIP \
20505     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20506     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20507     deplibs_check_method reload_flag reload_cmds need_locks \
20508     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20509     lt_cv_sys_global_symbol_to_c_name_address \
20510     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20511     old_postinstall_cmds old_postuninstall_cmds \
20512     compiler_CXX \
20513     CC_CXX \
20514     LD_CXX \
20515     lt_prog_compiler_wl_CXX \
20516     lt_prog_compiler_pic_CXX \
20517     lt_prog_compiler_static_CXX \
20518     lt_prog_compiler_no_builtin_flag_CXX \
20519     export_dynamic_flag_spec_CXX \
20520     thread_safe_flag_spec_CXX \
20521     whole_archive_flag_spec_CXX \
20522     enable_shared_with_static_runtimes_CXX \
20523     old_archive_cmds_CXX \
20524     old_archive_from_new_cmds_CXX \
20525     predep_objects_CXX \
20526     postdep_objects_CXX \
20527     predeps_CXX \
20528     postdeps_CXX \
20529     compiler_lib_search_path_CXX \
20530     archive_cmds_CXX \
20531     archive_expsym_cmds_CXX \
20532     postinstall_cmds_CXX \
20533     postuninstall_cmds_CXX \
20534     old_archive_from_expsyms_cmds_CXX \
20535     allow_undefined_flag_CXX \
20536     no_undefined_flag_CXX \
20537     export_symbols_cmds_CXX \
20538     hardcode_libdir_flag_spec_CXX \
20539     hardcode_libdir_flag_spec_ld_CXX \
20540     hardcode_libdir_separator_CXX \
20541     hardcode_automatic_CXX \
20542     module_cmds_CXX \
20543     module_expsym_cmds_CXX \
20544     lt_cv_prog_compiler_c_o_CXX \
20545     exclude_expsyms_CXX \
20546     include_expsyms_CXX; do
20547
20548     case $var in
20549     old_archive_cmds_CXX | \
20550     old_archive_from_new_cmds_CXX | \
20551     archive_cmds_CXX | \
20552     archive_expsym_cmds_CXX | \
20553     module_cmds_CXX | \
20554     module_expsym_cmds_CXX | \
20555     old_archive_from_expsyms_cmds_CXX | \
20556     export_symbols_cmds_CXX | \
20557     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20558     postinstall_cmds | postuninstall_cmds | \
20559     old_postinstall_cmds | old_postuninstall_cmds | \
20560     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20561       # Double-quote double-evaled strings.
20562       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20563       ;;
20564     *)
20565       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20566       ;;
20567     esac
20568   done
20569
20570   case $lt_echo in
20571   *'\$0 --fallback-echo"')
20572     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20573     ;;
20574   esac
20575
20576 cfgfile="$ofile"
20577
20578   cat <<__EOF__ >> "$cfgfile"
20579 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20580
20581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20582
20583 # Shell to use when invoking shell scripts.
20584 SHELL=$lt_SHELL
20585
20586 # Whether or not to build shared libraries.
20587 build_libtool_libs=$enable_shared
20588
20589 # Whether or not to build static libraries.
20590 build_old_libs=$enable_static
20591
20592 # Whether or not to add -lc for building shared libraries.
20593 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20594
20595 # Whether or not to disallow shared libs when runtime libs are static
20596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20597
20598 # Whether or not to optimize for fast installation.
20599 fast_install=$enable_fast_install
20600
20601 # The host system.
20602 host_alias=$host_alias
20603 host=$host
20604 host_os=$host_os
20605
20606 # The build system.
20607 build_alias=$build_alias
20608 build=$build
20609 build_os=$build_os
20610
20611 # An echo program that does not interpret backslashes.
20612 echo=$lt_echo
20613
20614 # The archiver.
20615 AR=$lt_AR
20616 AR_FLAGS=$lt_AR_FLAGS
20617
20618 # A C compiler.
20619 LTCC=$lt_LTCC
20620
20621 # LTCC compiler flags.
20622 LTCFLAGS=$lt_LTCFLAGS
20623
20624 # A language-specific compiler.
20625 CC=$lt_compiler_CXX
20626
20627 # Is the compiler the GNU C compiler?
20628 with_gcc=$GCC_CXX
20629
20630 # An ERE matcher.
20631 EGREP=$lt_EGREP
20632
20633 # The linker used to build libraries.
20634 LD=$lt_LD_CXX
20635
20636 # Whether we need hard or soft links.
20637 LN_S=$lt_LN_S
20638
20639 # A BSD-compatible nm program.
20640 NM=$lt_NM
20641
20642 # A symbol stripping program
20643 STRIP=$lt_STRIP
20644
20645 # Used to examine libraries when file_magic_cmd begins "file"
20646 MAGIC_CMD=$MAGIC_CMD
20647
20648 # Used on cygwin: DLL creation program.
20649 DLLTOOL="$DLLTOOL"
20650
20651 # Used on cygwin: object dumper.
20652 OBJDUMP="$OBJDUMP"
20653
20654 # Used on cygwin: assembler.
20655 AS="$AS"
20656
20657 # The name of the directory that contains temporary libtool files.
20658 objdir=$objdir
20659
20660 # How to create reloadable object files.
20661 reload_flag=$lt_reload_flag
20662 reload_cmds=$lt_reload_cmds
20663
20664 # How to pass a linker flag through the compiler.
20665 wl=$lt_lt_prog_compiler_wl_CXX
20666
20667 # Object file suffix (normally "o").
20668 objext="$ac_objext"
20669
20670 # Old archive suffix (normally "a").
20671 libext="$libext"
20672
20673 # Shared library suffix (normally ".so").
20674 shrext_cmds='$shrext_cmds'
20675
20676 # Executable file suffix (normally "").
20677 exeext="$exeext"
20678
20679 # Additional compiler flags for building library objects.
20680 pic_flag=$lt_lt_prog_compiler_pic_CXX
20681 pic_mode=$pic_mode
20682
20683 # What is the maximum length of a command?
20684 max_cmd_len=$lt_cv_sys_max_cmd_len
20685
20686 # Does compiler simultaneously support -c and -o options?
20687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20688
20689 # Must we lock files when doing compilation?
20690 need_locks=$lt_need_locks
20691
20692 # Do we need the lib prefix for modules?
20693 need_lib_prefix=$need_lib_prefix
20694
20695 # Do we need a version for libraries?
20696 need_version=$need_version
20697
20698 # Whether dlopen is supported.
20699 dlopen_support=$enable_dlopen
20700
20701 # Whether dlopen of programs is supported.
20702 dlopen_self=$enable_dlopen_self
20703
20704 # Whether dlopen of statically linked programs is supported.
20705 dlopen_self_static=$enable_dlopen_self_static
20706
20707 # Compiler flag to prevent dynamic linking.
20708 link_static_flag=$lt_lt_prog_compiler_static_CXX
20709
20710 # Compiler flag to turn off builtin functions.
20711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20712
20713 # Compiler flag to allow reflexive dlopens.
20714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20715
20716 # Compiler flag to generate shared objects directly from archives.
20717 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20718
20719 # Compiler flag to generate thread-safe objects.
20720 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20721
20722 # Library versioning type.
20723 version_type=$version_type
20724
20725 # Format of library name prefix.
20726 libname_spec=$lt_libname_spec
20727
20728 # List of archive names.  First name is the real one, the rest are links.
20729 # The last name is the one that the linker finds with -lNAME.
20730 library_names_spec=$lt_library_names_spec
20731
20732 # The coded name of the library, if different from the real name.
20733 soname_spec=$lt_soname_spec
20734
20735 # Commands used to build and install an old-style archive.
20736 RANLIB=$lt_RANLIB
20737 old_archive_cmds=$lt_old_archive_cmds_CXX
20738 old_postinstall_cmds=$lt_old_postinstall_cmds
20739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20740
20741 # Create an old-style archive from a shared archive.
20742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20743
20744 # Create a temporary old-style archive to link instead of a shared archive.
20745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20746
20747 # Commands used to build and install a shared archive.
20748 archive_cmds=$lt_archive_cmds_CXX
20749 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20750 postinstall_cmds=$lt_postinstall_cmds
20751 postuninstall_cmds=$lt_postuninstall_cmds
20752
20753 # Commands used to build a loadable module (assumed same as above if empty)
20754 module_cmds=$lt_module_cmds_CXX
20755 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20756
20757 # Commands to strip libraries.
20758 old_striplib=$lt_old_striplib
20759 striplib=$lt_striplib
20760
20761 # Dependencies to place before the objects being linked to create a
20762 # shared library.
20763 predep_objects=$lt_predep_objects_CXX
20764
20765 # Dependencies to place after the objects being linked to create a
20766 # shared library.
20767 postdep_objects=$lt_postdep_objects_CXX
20768
20769 # Dependencies to place before the objects being linked to create a
20770 # shared library.
20771 predeps=$lt_predeps_CXX
20772
20773 # Dependencies to place after the objects being linked to create a
20774 # shared library.
20775 postdeps=$lt_postdeps_CXX
20776
20777 # The library search path used internally by the compiler when linking
20778 # a shared library.
20779 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20780
20781 # Method to check whether dependent libraries are shared objects.
20782 deplibs_check_method=$lt_deplibs_check_method
20783
20784 # Command to use when deplibs_check_method == file_magic.
20785 file_magic_cmd=$lt_file_magic_cmd
20786
20787 # Flag that allows shared libraries with undefined symbols to be built.
20788 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20789
20790 # Flag that forces no undefined symbols.
20791 no_undefined_flag=$lt_no_undefined_flag_CXX
20792
20793 # Commands used to finish a libtool library installation in a directory.
20794 finish_cmds=$lt_finish_cmds
20795
20796 # Same as above, but a single script fragment to be evaled but not shown.
20797 finish_eval=$lt_finish_eval
20798
20799 # Take the output of nm and produce a listing of raw symbols and C names.
20800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20801
20802 # Transform the output of nm in a proper C declaration
20803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20804
20805 # Transform the output of nm in a C name address pair
20806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20807
20808 # This is the shared library runtime path variable.
20809 runpath_var=$runpath_var
20810
20811 # This is the shared library path variable.
20812 shlibpath_var=$shlibpath_var
20813
20814 # Is shlibpath searched before the hard-coded library search path?
20815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20816
20817 # How to hardcode a shared library path into an executable.
20818 hardcode_action=$hardcode_action_CXX
20819
20820 # Whether we should hardcode library paths into libraries.
20821 hardcode_into_libs=$hardcode_into_libs
20822
20823 # Flag to hardcode \$libdir into a binary during linking.
20824 # This must work even if \$libdir does not exist.
20825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20826
20827 # If ld is used when linking, flag to hardcode \$libdir into
20828 # a binary during linking. This must work even if \$libdir does
20829 # not exist.
20830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20831
20832 # Whether we need a single -rpath flag with a separated argument.
20833 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20834
20835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20836 # resulting binary.
20837 hardcode_direct=$hardcode_direct_CXX
20838
20839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20840 # resulting binary.
20841 hardcode_minus_L=$hardcode_minus_L_CXX
20842
20843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20844 # the resulting binary.
20845 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20846
20847 # Set to yes if building a shared library automatically hardcodes DIR into the library
20848 # and all subsequent libraries and executables linked against it.
20849 hardcode_automatic=$hardcode_automatic_CXX
20850
20851 # Variables whose values should be saved in libtool wrapper scripts and
20852 # restored at relink time.
20853 variables_saved_for_relink="$variables_saved_for_relink"
20854
20855 # Whether libtool must link a program against all its dependency libraries.
20856 link_all_deplibs=$link_all_deplibs_CXX
20857
20858 # Compile-time system search path for libraries
20859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20860
20861 # Run-time system search path for libraries
20862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20863
20864 # Fix the shell variable \$srcfile for the compiler.
20865 fix_srcfile_path="$fix_srcfile_path_CXX"
20866
20867 # Set to yes if exported symbols are required.
20868 always_export_symbols=$always_export_symbols_CXX
20869
20870 # The commands to list exported symbols.
20871 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20872
20873 # The commands to extract the exported symbol list from a shared archive.
20874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20875
20876 # Symbols that should not be listed in the preloaded symbols.
20877 exclude_expsyms=$lt_exclude_expsyms_CXX
20878
20879 # Symbols that must always be exported.
20880 include_expsyms=$lt_include_expsyms_CXX
20881
20882 # ### END LIBTOOL TAG CONFIG: $tagname
20883
20884 __EOF__
20885
20886
20887 else
20888   # If there is no Makefile yet, we rely on a make rule to execute
20889   # `config.status --recheck' to rerun these tests and create the
20890   # libtool script then.
20891   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20892   if test -f "$ltmain_in"; then
20893     test -f Makefile && make "$ltmain"
20894   fi
20895 fi
20896
20897
20898 ac_ext=c
20899 ac_cpp='$CPP $CPPFLAGS'
20900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20903
20904 CC=$lt_save_CC
20905 LDCXX=$LD
20906 LD=$lt_save_LD
20907 GCC=$lt_save_GCC
20908 with_gnu_ldcxx=$with_gnu_ld
20909 with_gnu_ld=$lt_save_with_gnu_ld
20910 lt_cv_path_LDCXX=$lt_cv_path_LD
20911 lt_cv_path_LD=$lt_save_path_LD
20912 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20913 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20914
20915         else
20916           tagname=""
20917         fi
20918         ;;
20919
20920       F77)
20921         if test -n "$F77" && test "X$F77" != "Xno"; then
20922
20923 ac_ext=f
20924 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20925 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20927
20928
20929 archive_cmds_need_lc_F77=no
20930 allow_undefined_flag_F77=
20931 always_export_symbols_F77=no
20932 archive_expsym_cmds_F77=
20933 export_dynamic_flag_spec_F77=
20934 hardcode_direct_F77=no
20935 hardcode_libdir_flag_spec_F77=
20936 hardcode_libdir_flag_spec_ld_F77=
20937 hardcode_libdir_separator_F77=
20938 hardcode_minus_L_F77=no
20939 hardcode_automatic_F77=no
20940 module_cmds_F77=
20941 module_expsym_cmds_F77=
20942 link_all_deplibs_F77=unknown
20943 old_archive_cmds_F77=$old_archive_cmds
20944 no_undefined_flag_F77=
20945 whole_archive_flag_spec_F77=
20946 enable_shared_with_static_runtimes_F77=no
20947
20948 # Source file extension for f77 test sources.
20949 ac_ext=f
20950
20951 # Object file extension for compiled f77 test sources.
20952 objext=o
20953 objext_F77=$objext
20954
20955 # Code to be used in simple compile tests
20956 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20957
20958 # Code to be used in simple link tests
20959 lt_simple_link_test_code="      program t\n      end\n"
20960
20961 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20962
20963 # If no C compiler was specified, use CC.
20964 LTCC=${LTCC-"$CC"}
20965
20966 # If no C compiler flags were specified, use CFLAGS.
20967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20968
20969 # Allow CC to be a program name with arguments.
20970 compiler=$CC
20971
20972
20973 # save warnings/boilerplate of simple test code
20974 ac_outfile=conftest.$ac_objext
20975 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20977 _lt_compiler_boilerplate=`cat conftest.err`
20978 $rm conftest*
20979
20980 ac_outfile=conftest.$ac_objext
20981 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20983 _lt_linker_boilerplate=`cat conftest.err`
20984 $rm conftest*
20985
20986
20987 # Allow CC to be a program name with arguments.
20988 lt_save_CC="$CC"
20989 CC=${F77-"f77"}
20990 compiler=$CC
20991 compiler_F77=$CC
20992 for cc_temp in $compiler""; do
20993   case $cc_temp in
20994     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20995     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20996     \-*) ;;
20997     *) break;;
20998   esac
20999 done
21000 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21001
21002
21003 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21004 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21005 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21006 echo "${ECHO_T}$can_build_shared" >&6; }
21007
21008 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21009 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21010 test "$can_build_shared" = "no" && enable_shared=no
21011
21012 # On AIX, shared libraries and static libraries use the same namespace, and
21013 # are all built from PIC.
21014 case $host_os in
21015 aix3*)
21016   test "$enable_shared" = yes && enable_static=no
21017   if test -n "$RANLIB"; then
21018     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21019     postinstall_cmds='$RANLIB $lib'
21020   fi
21021   ;;
21022 aix4* | aix5*)
21023   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21024     test "$enable_shared" = yes && enable_static=no
21025   fi
21026   ;;
21027 esac
21028 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21029 echo "${ECHO_T}$enable_shared" >&6; }
21030
21031 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21032 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21033 # Make sure either enable_shared or enable_static is yes.
21034 test "$enable_shared" = yes || enable_static=yes
21035 { echo "$as_me:$LINENO: result: $enable_static" >&5
21036 echo "${ECHO_T}$enable_static" >&6; }
21037
21038 GCC_F77="$G77"
21039 LD_F77="$LD"
21040
21041 lt_prog_compiler_wl_F77=
21042 lt_prog_compiler_pic_F77=
21043 lt_prog_compiler_static_F77=
21044
21045 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21046 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21047
21048   if test "$GCC" = yes; then
21049     lt_prog_compiler_wl_F77='-Wl,'
21050     lt_prog_compiler_static_F77='-static'
21051
21052     case $host_os in
21053       aix*)
21054       # All AIX code is PIC.
21055       if test "$host_cpu" = ia64; then
21056         # AIX 5 now supports IA64 processor
21057         lt_prog_compiler_static_F77='-Bstatic'
21058       fi
21059       ;;
21060
21061     amigaos*)
21062       # FIXME: we need at least 68020 code to build shared libraries, but
21063       # adding the `-m68020' flag to GCC prevents building anything better,
21064       # like `-m68040'.
21065       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21066       ;;
21067
21068     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21069       # PIC is the default for these OSes.
21070       ;;
21071
21072     mingw* | pw32* | os2*)
21073       # This hack is so that the source file can tell whether it is being
21074       # built for inclusion in a dll (and should export symbols for example).
21075       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21076       ;;
21077
21078     darwin* | rhapsody*)
21079       # PIC is the default on this platform
21080       # Common symbols not allowed in MH_DYLIB files
21081       lt_prog_compiler_pic_F77='-fno-common'
21082       ;;
21083
21084     interix3*)
21085       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21086       # Instead, we relocate shared libraries at runtime.
21087       ;;
21088
21089     msdosdjgpp*)
21090       # Just because we use GCC doesn't mean we suddenly get shared libraries
21091       # on systems that don't support them.
21092       lt_prog_compiler_can_build_shared_F77=no
21093       enable_shared=no
21094       ;;
21095
21096     sysv4*MP*)
21097       if test -d /usr/nec; then
21098         lt_prog_compiler_pic_F77=-Kconform_pic
21099       fi
21100       ;;
21101
21102     hpux*)
21103       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21104       # not for PA HP-UX.
21105       case $host_cpu in
21106       hppa*64*|ia64*)
21107         # +Z the default
21108         ;;
21109       *)
21110         lt_prog_compiler_pic_F77='-fPIC'
21111         ;;
21112       esac
21113       ;;
21114
21115     *)
21116       lt_prog_compiler_pic_F77='-fPIC'
21117       ;;
21118     esac
21119   else
21120     # PORTME Check for flag to pass linker flags through the system compiler.
21121     case $host_os in
21122     aix*)
21123       lt_prog_compiler_wl_F77='-Wl,'
21124       if test "$host_cpu" = ia64; then
21125         # AIX 5 now supports IA64 processor
21126         lt_prog_compiler_static_F77='-Bstatic'
21127       else
21128         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21129       fi
21130       ;;
21131       darwin*)
21132         # PIC is the default on this platform
21133         # Common symbols not allowed in MH_DYLIB files
21134        case $cc_basename in
21135          xlc*)
21136          lt_prog_compiler_pic_F77='-qnocommon'
21137          lt_prog_compiler_wl_F77='-Wl,'
21138          ;;
21139        esac
21140        ;;
21141
21142     mingw* | pw32* | os2*)
21143       # This hack is so that the source file can tell whether it is being
21144       # built for inclusion in a dll (and should export symbols for example).
21145       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21146       ;;
21147
21148     hpux9* | hpux10* | hpux11*)
21149       lt_prog_compiler_wl_F77='-Wl,'
21150       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21151       # not for PA HP-UX.
21152       case $host_cpu in
21153       hppa*64*|ia64*)
21154         # +Z the default
21155         ;;
21156       *)
21157         lt_prog_compiler_pic_F77='+Z'
21158         ;;
21159       esac
21160       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21161       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21162       ;;
21163
21164     irix5* | irix6* | nonstopux*)
21165       lt_prog_compiler_wl_F77='-Wl,'
21166       # PIC (with -KPIC) is the default.
21167       lt_prog_compiler_static_F77='-non_shared'
21168       ;;
21169
21170     newsos6)
21171       lt_prog_compiler_pic_F77='-KPIC'
21172       lt_prog_compiler_static_F77='-Bstatic'
21173       ;;
21174
21175     linux*)
21176       case $cc_basename in
21177       icc* | ecc*)
21178         lt_prog_compiler_wl_F77='-Wl,'
21179         lt_prog_compiler_pic_F77='-KPIC'
21180         lt_prog_compiler_static_F77='-static'
21181         ;;
21182       pgcc* | pgf77* | pgf90* | pgf95*)
21183         # Portland Group compilers (*not* the Pentium gcc compiler,
21184         # which looks to be a dead project)
21185         lt_prog_compiler_wl_F77='-Wl,'
21186         lt_prog_compiler_pic_F77='-fpic'
21187         lt_prog_compiler_static_F77='-Bstatic'
21188         ;;
21189       ccc*)
21190         lt_prog_compiler_wl_F77='-Wl,'
21191         # All Alpha code is PIC.
21192         lt_prog_compiler_static_F77='-non_shared'
21193         ;;
21194       esac
21195       ;;
21196
21197     osf3* | osf4* | osf5*)
21198       lt_prog_compiler_wl_F77='-Wl,'
21199       # All OSF/1 code is PIC.
21200       lt_prog_compiler_static_F77='-non_shared'
21201       ;;
21202
21203     solaris*)
21204       lt_prog_compiler_pic_F77='-KPIC'
21205       lt_prog_compiler_static_F77='-Bstatic'
21206       case $cc_basename in
21207       f77* | f90* | f95*)
21208         lt_prog_compiler_wl_F77='-Qoption ld ';;
21209       *)
21210         lt_prog_compiler_wl_F77='-Wl,';;
21211       esac
21212       ;;
21213
21214     sunos4*)
21215       lt_prog_compiler_wl_F77='-Qoption ld '
21216       lt_prog_compiler_pic_F77='-PIC'
21217       lt_prog_compiler_static_F77='-Bstatic'
21218       ;;
21219
21220     sysv4 | sysv4.2uw2* | sysv4.3*)
21221       lt_prog_compiler_wl_F77='-Wl,'
21222       lt_prog_compiler_pic_F77='-KPIC'
21223       lt_prog_compiler_static_F77='-Bstatic'
21224       ;;
21225
21226     sysv4*MP*)
21227       if test -d /usr/nec ;then
21228         lt_prog_compiler_pic_F77='-Kconform_pic'
21229         lt_prog_compiler_static_F77='-Bstatic'
21230       fi
21231       ;;
21232
21233     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21234       lt_prog_compiler_wl_F77='-Wl,'
21235       lt_prog_compiler_pic_F77='-KPIC'
21236       lt_prog_compiler_static_F77='-Bstatic'
21237       ;;
21238
21239     unicos*)
21240       lt_prog_compiler_wl_F77='-Wl,'
21241       lt_prog_compiler_can_build_shared_F77=no
21242       ;;
21243
21244     uts4*)
21245       lt_prog_compiler_pic_F77='-pic'
21246       lt_prog_compiler_static_F77='-Bstatic'
21247       ;;
21248
21249     *)
21250       lt_prog_compiler_can_build_shared_F77=no
21251       ;;
21252     esac
21253   fi
21254
21255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21256 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21257
21258 #
21259 # Check to make sure the PIC flag actually works.
21260 #
21261 if test -n "$lt_prog_compiler_pic_F77"; then
21262
21263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21265 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21266   echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268   lt_prog_compiler_pic_works_F77=no
21269   ac_outfile=conftest.$ac_objext
21270    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21271    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21272    # Insert the option either (1) after the last *FLAGS variable, or
21273    # (2) before a word containing "conftest.", or (3) at the end.
21274    # Note that $ac_compile itself does not contain backslashes and begins
21275    # with a dollar sign (not a hyphen), so the echo should work correctly.
21276    # The option is referenced via a variable to avoid confusing sed.
21277    lt_compile=`echo "$ac_compile" | $SED \
21278    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21279    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21280    -e 's:$: $lt_compiler_flag:'`
21281    (eval echo "\"\$as_me:21281: $lt_compile\"" >&5)
21282    (eval "$lt_compile" 2>conftest.err)
21283    ac_status=$?
21284    cat conftest.err >&5
21285    echo "$as_me:21285: \$? = $ac_status" >&5
21286    if (exit $ac_status) && test -s "$ac_outfile"; then
21287      # The compiler can only warn and ignore the option if not recognized
21288      # So say no if there are warnings other than the usual output.
21289      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21290      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21291      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21292        lt_prog_compiler_pic_works_F77=yes
21293      fi
21294    fi
21295    $rm conftest*
21296
21297 fi
21298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21299 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21300
21301 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21302     case $lt_prog_compiler_pic_F77 in
21303      "" | " "*) ;;
21304      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21305      esac
21306 else
21307     lt_prog_compiler_pic_F77=
21308      lt_prog_compiler_can_build_shared_F77=no
21309 fi
21310
21311 fi
21312 case $host_os in
21313   # For platforms which do not support PIC, -DPIC is meaningless:
21314   *djgpp*)
21315     lt_prog_compiler_pic_F77=
21316     ;;
21317   *)
21318     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21319     ;;
21320 esac
21321
21322 #
21323 # Check to make sure the static flag actually works.
21324 #
21325 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21326 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21328 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21329   echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21331   lt_prog_compiler_static_works_F77=no
21332    save_LDFLAGS="$LDFLAGS"
21333    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21334    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21335    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21336      # The linker can only warn and ignore the option if not recognized
21337      # So say no if there are warnings
21338      if test -s conftest.err; then
21339        # Append any errors to the config.log.
21340        cat conftest.err 1>&5
21341        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21342        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21343        if diff conftest.exp conftest.er2 >/dev/null; then
21344          lt_prog_compiler_static_works_F77=yes
21345        fi
21346      else
21347        lt_prog_compiler_static_works_F77=yes
21348      fi
21349    fi
21350    $rm conftest*
21351    LDFLAGS="$save_LDFLAGS"
21352
21353 fi
21354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21355 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21356
21357 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21358     :
21359 else
21360     lt_prog_compiler_static_F77=
21361 fi
21362
21363
21364 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21366 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21367   echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369   lt_cv_prog_compiler_c_o_F77=no
21370    $rm -r conftest 2>/dev/null
21371    mkdir conftest
21372    cd conftest
21373    mkdir out
21374    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21375
21376    lt_compiler_flag="-o out/conftest2.$ac_objext"
21377    # Insert the option either (1) after the last *FLAGS variable, or
21378    # (2) before a word containing "conftest.", or (3) at the end.
21379    # Note that $ac_compile itself does not contain backslashes and begins
21380    # with a dollar sign (not a hyphen), so the echo should work correctly.
21381    lt_compile=`echo "$ac_compile" | $SED \
21382    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21384    -e 's:$: $lt_compiler_flag:'`
21385    (eval echo "\"\$as_me:21385: $lt_compile\"" >&5)
21386    (eval "$lt_compile" 2>out/conftest.err)
21387    ac_status=$?
21388    cat out/conftest.err >&5
21389    echo "$as_me:21389: \$? = $ac_status" >&5
21390    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21391    then
21392      # The compiler can only warn and ignore the option if not recognized
21393      # So say no if there are warnings
21394      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21395      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21396      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21397        lt_cv_prog_compiler_c_o_F77=yes
21398      fi
21399    fi
21400    chmod u+w . 2>&5
21401    $rm conftest*
21402    # SGI C++ compiler will create directory out/ii_files/ for
21403    # template instantiation
21404    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21405    $rm out/* && rmdir out
21406    cd ..
21407    rmdir conftest
21408    $rm conftest*
21409
21410 fi
21411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21413
21414
21415 hard_links="nottested"
21416 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21417   # do not overwrite the value of need_locks provided by the user
21418   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21420   hard_links=yes
21421   $rm conftest*
21422   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21423   touch conftest.a
21424   ln conftest.a conftest.b 2>&5 || hard_links=no
21425   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21426   { echo "$as_me:$LINENO: result: $hard_links" >&5
21427 echo "${ECHO_T}$hard_links" >&6; }
21428   if test "$hard_links" = no; then
21429     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21431     need_locks=warn
21432   fi
21433 else
21434   need_locks=no
21435 fi
21436
21437 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21439
21440   runpath_var=
21441   allow_undefined_flag_F77=
21442   enable_shared_with_static_runtimes_F77=no
21443   archive_cmds_F77=
21444   archive_expsym_cmds_F77=
21445   old_archive_From_new_cmds_F77=
21446   old_archive_from_expsyms_cmds_F77=
21447   export_dynamic_flag_spec_F77=
21448   whole_archive_flag_spec_F77=
21449   thread_safe_flag_spec_F77=
21450   hardcode_libdir_flag_spec_F77=
21451   hardcode_libdir_flag_spec_ld_F77=
21452   hardcode_libdir_separator_F77=
21453   hardcode_direct_F77=no
21454   hardcode_minus_L_F77=no
21455   hardcode_shlibpath_var_F77=unsupported
21456   link_all_deplibs_F77=unknown
21457   hardcode_automatic_F77=no
21458   module_cmds_F77=
21459   module_expsym_cmds_F77=
21460   always_export_symbols_F77=no
21461   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21462   # include_expsyms should be a list of space-separated symbols to be *always*
21463   # included in the symbol list
21464   include_expsyms_F77=
21465   # exclude_expsyms can be an extended regexp of symbols to exclude
21466   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21467   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21468   # as well as any symbol that contains `d'.
21469   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21470   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21471   # platforms (ab)use it in PIC code, but their linkers get confused if
21472   # the symbol is explicitly referenced.  Since portable code cannot
21473   # rely on this symbol name, it's probably fine to never include it in
21474   # preloaded symbol tables.
21475   extract_expsyms_cmds=
21476   # Just being paranoid about ensuring that cc_basename is set.
21477   for cc_temp in $compiler""; do
21478   case $cc_temp in
21479     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21480     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21481     \-*) ;;
21482     *) break;;
21483   esac
21484 done
21485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21486
21487   case $host_os in
21488   cygwin* | mingw* | pw32*)
21489     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21490     # When not using gcc, we currently assume that we are using
21491     # Microsoft Visual C++.
21492     if test "$GCC" != yes; then
21493       with_gnu_ld=no
21494     fi
21495     ;;
21496   interix*)
21497     # we just hope/assume this is gcc and not c89 (= MSVC++)
21498     with_gnu_ld=yes
21499     ;;
21500   openbsd*)
21501     with_gnu_ld=no
21502     ;;
21503   esac
21504
21505   ld_shlibs_F77=yes
21506   if test "$with_gnu_ld" = yes; then
21507     # If archive_cmds runs LD, not CC, wlarc should be empty
21508     wlarc='${wl}'
21509
21510     # Set some defaults for GNU ld with shared library support. These
21511     # are reset later if shared libraries are not supported. Putting them
21512     # here allows them to be overridden if necessary.
21513     runpath_var=LD_RUN_PATH
21514     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21515     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21516     # ancient GNU ld didn't support --whole-archive et. al.
21517     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21518         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21519       else
21520         whole_archive_flag_spec_F77=
21521     fi
21522     supports_anon_versioning=no
21523     case `$LD -v 2>/dev/null` in
21524       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21525       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21526       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21527       *\ 2.11.*) ;; # other 2.11 versions
21528       *) supports_anon_versioning=yes ;;
21529     esac
21530
21531     # See if GNU ld supports shared libraries.
21532     case $host_os in
21533     aix3* | aix4* | aix5*)
21534       # On AIX/PPC, the GNU linker is very broken
21535       if test "$host_cpu" != ia64; then
21536         ld_shlibs_F77=no
21537         cat <<EOF 1>&2
21538
21539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21540 *** to be unable to reliably create shared libraries on AIX.
21541 *** Therefore, libtool is disabling shared libraries support.  If you
21542 *** really care for shared libraries, you may want to modify your PATH
21543 *** so that a non-GNU linker is found, and then restart.
21544
21545 EOF
21546       fi
21547       ;;
21548
21549     amigaos*)
21550       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)'
21551       hardcode_libdir_flag_spec_F77='-L$libdir'
21552       hardcode_minus_L_F77=yes
21553
21554       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21555       # that the semantics of dynamic libraries on AmigaOS, at least up
21556       # to version 4, is to share data among multiple programs linked
21557       # with the same dynamic library.  Since this doesn't match the
21558       # behavior of shared libraries on other platforms, we can't use
21559       # them.
21560       ld_shlibs_F77=no
21561       ;;
21562
21563     beos*)
21564       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21565         allow_undefined_flag_F77=unsupported
21566         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21567         # support --undefined.  This deserves some investigation.  FIXME
21568         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21569       else
21570         ld_shlibs_F77=no
21571       fi
21572       ;;
21573
21574     cygwin* | mingw* | pw32*)
21575       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21576       # as there is no search path for DLLs.
21577       hardcode_libdir_flag_spec_F77='-L$libdir'
21578       allow_undefined_flag_F77=unsupported
21579       always_export_symbols_F77=no
21580       enable_shared_with_static_runtimes_F77=yes
21581       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21582
21583       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21584         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21585         # If the export-symbols file already is a .def file (1st line
21586         # is EXPORTS), use it as is; otherwise, prepend...
21587         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21588           cp $export_symbols $output_objdir/$soname.def;
21589         else
21590           echo EXPORTS > $output_objdir/$soname.def;
21591           cat $export_symbols >> $output_objdir/$soname.def;
21592         fi~
21593         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21594       else
21595         ld_shlibs_F77=no
21596       fi
21597       ;;
21598
21599     interix3*)
21600       hardcode_direct_F77=no
21601       hardcode_shlibpath_var_F77=no
21602       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21603       export_dynamic_flag_spec_F77='${wl}-E'
21604       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21605       # Instead, shared libraries are loaded at an image base (0x10000000 by
21606       # default) and relocated if they conflict, which is a slow very memory
21607       # consuming and fragmenting process.  To avoid this, we pick a random,
21608       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21609       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21610       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'
21611       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'
21612       ;;
21613
21614     linux*)
21615       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21616         tmp_addflag=
21617         case $cc_basename,$host_cpu in
21618         pgcc*)                          # Portland Group C compiler
21619           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'
21620           tmp_addflag=' $pic_flag'
21621           ;;
21622         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21623           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'
21624           tmp_addflag=' $pic_flag -Mnomain' ;;
21625         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21626           tmp_addflag=' -i_dynamic' ;;
21627         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21628           tmp_addflag=' -i_dynamic -nofor_main' ;;
21629         ifc* | ifort*)                  # Intel Fortran compiler
21630           tmp_addflag=' -nofor_main' ;;
21631         esac
21632         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21633
21634         if test $supports_anon_versioning = yes; then
21635           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21636   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21637   $echo "local: *; };" >> $output_objdir/$libname.ver~
21638           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21639         fi
21640       else
21641         ld_shlibs_F77=no
21642       fi
21643       ;;
21644
21645     netbsd*)
21646       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21647         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21648         wlarc=
21649       else
21650         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21651         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21652       fi
21653       ;;
21654
21655     solaris*)
21656       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21657         ld_shlibs_F77=no
21658         cat <<EOF 1>&2
21659
21660 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21661 *** create shared libraries on Solaris systems.  Therefore, libtool
21662 *** is disabling shared libraries support.  We urge you to upgrade GNU
21663 *** binutils to release 2.9.1 or newer.  Another option is to modify
21664 *** your PATH or compiler configuration so that the native linker is
21665 *** used, and then restart.
21666
21667 EOF
21668       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21669         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21670         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21671       else
21672         ld_shlibs_F77=no
21673       fi
21674       ;;
21675
21676     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21677       case `$LD -v 2>&1` in
21678         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21679         ld_shlibs_F77=no
21680         cat <<_LT_EOF 1>&2
21681
21682 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21683 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21684 *** is disabling shared libraries support.  We urge you to upgrade GNU
21685 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21686 *** your PATH or compiler configuration so that the native linker is
21687 *** used, and then restart.
21688
21689 _LT_EOF
21690         ;;
21691         *)
21692           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21693             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21694             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21695             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21696           else
21697             ld_shlibs_F77=no
21698           fi
21699         ;;
21700       esac
21701       ;;
21702
21703     sunos4*)
21704       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21705       wlarc=
21706       hardcode_direct_F77=yes
21707       hardcode_shlibpath_var_F77=no
21708       ;;
21709
21710     *)
21711       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21712         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21713         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21714       else
21715         ld_shlibs_F77=no
21716       fi
21717       ;;
21718     esac
21719
21720     if test "$ld_shlibs_F77" = no; then
21721       runpath_var=
21722       hardcode_libdir_flag_spec_F77=
21723       export_dynamic_flag_spec_F77=
21724       whole_archive_flag_spec_F77=
21725     fi
21726   else
21727     # PORTME fill in a description of your system's linker (not GNU ld)
21728     case $host_os in
21729     aix3*)
21730       allow_undefined_flag_F77=unsupported
21731       always_export_symbols_F77=yes
21732       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'
21733       # Note: this linker hardcodes the directories in LIBPATH if there
21734       # are no directories specified by -L.
21735       hardcode_minus_L_F77=yes
21736       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21737         # Neither direct hardcoding nor static linking is supported with a
21738         # broken collect2.
21739         hardcode_direct_F77=unsupported
21740       fi
21741       ;;
21742
21743     aix4* | aix5*)
21744       if test "$host_cpu" = ia64; then
21745         # On IA64, the linker does run time linking by default, so we don't
21746         # have to do anything special.
21747         aix_use_runtimelinking=no
21748         exp_sym_flag='-Bexport'
21749         no_entry_flag=""
21750       else
21751         # If we're using GNU nm, then we don't want the "-C" option.
21752         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21753         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21754           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'
21755         else
21756           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'
21757         fi
21758         aix_use_runtimelinking=no
21759
21760         # Test if we are trying to use run time linking or normal
21761         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21762         # need to do runtime linking.
21763         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21764           for ld_flag in $LDFLAGS; do
21765           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21766             aix_use_runtimelinking=yes
21767             break
21768           fi
21769           done
21770           ;;
21771         esac
21772
21773         exp_sym_flag='-bexport'
21774         no_entry_flag='-bnoentry'
21775       fi
21776
21777       # When large executables or shared objects are built, AIX ld can
21778       # have problems creating the table of contents.  If linking a library
21779       # or program results in "error TOC overflow" add -mminimal-toc to
21780       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21781       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21782
21783       archive_cmds_F77=''
21784       hardcode_direct_F77=yes
21785       hardcode_libdir_separator_F77=':'
21786       link_all_deplibs_F77=yes
21787
21788       if test "$GCC" = yes; then
21789         case $host_os in aix4.[012]|aix4.[012].*)
21790         # We only want to do this on AIX 4.2 and lower, the check
21791         # below for broken collect2 doesn't work under 4.3+
21792           collect2name=`${CC} -print-prog-name=collect2`
21793           if test -f "$collect2name" && \
21794            strings "$collect2name" | grep resolve_lib_name >/dev/null
21795           then
21796           # We have reworked collect2
21797           hardcode_direct_F77=yes
21798           else
21799           # We have old collect2
21800           hardcode_direct_F77=unsupported
21801           # It fails to find uninstalled libraries when the uninstalled
21802           # path is not listed in the libpath.  Setting hardcode_minus_L
21803           # to unsupported forces relinking
21804           hardcode_minus_L_F77=yes
21805           hardcode_libdir_flag_spec_F77='-L$libdir'
21806           hardcode_libdir_separator_F77=
21807           fi
21808           ;;
21809         esac
21810         shared_flag='-shared'
21811         if test "$aix_use_runtimelinking" = yes; then
21812           shared_flag="$shared_flag "'${wl}-G'
21813         fi
21814       else
21815         # not using gcc
21816         if test "$host_cpu" = ia64; then
21817         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21818         # chokes on -Wl,-G. The following line is correct:
21819           shared_flag='-G'
21820         else
21821           if test "$aix_use_runtimelinking" = yes; then
21822             shared_flag='${wl}-G'
21823           else
21824             shared_flag='${wl}-bM:SRE'
21825           fi
21826         fi
21827       fi
21828
21829       # It seems that -bexpall does not export symbols beginning with
21830       # underscore (_), so it is better to generate a list of symbols to export.
21831       always_export_symbols_F77=yes
21832       if test "$aix_use_runtimelinking" = yes; then
21833         # Warning - without using the other runtime loading flags (-brtl),
21834         # -berok will link without error, but may produce a broken library.
21835         allow_undefined_flag_F77='-berok'
21836        # Determine the default libpath from the value encoded in an empty executable.
21837        cat >conftest.$ac_ext <<_ACEOF
21838       program main
21839
21840       end
21841 _ACEOF
21842 rm -f conftest.$ac_objext conftest$ac_exeext
21843 if { (ac_try="$ac_link"
21844 case "(($ac_try" in
21845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846   *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849   (eval "$ac_link") 2>conftest.er1
21850   ac_status=$?
21851   grep -v '^ *+' conftest.er1 >conftest.err
21852   rm -f conftest.er1
21853   cat conftest.err >&5
21854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855   (exit $ac_status); } &&
21856          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21857   { (case "(($ac_try" in
21858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859   *) ac_try_echo=$ac_try;;
21860 esac
21861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862   (eval "$ac_try") 2>&5
21863   ac_status=$?
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); }; } &&
21866          { ac_try='test -s conftest$ac_exeext'
21867   { (case "(($ac_try" in
21868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869   *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872   (eval "$ac_try") 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); }; }; then
21876
21877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21878 }'`
21879 # Check for a 64-bit object if we didn't find anything.
21880 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; }
21881 }'`; fi
21882 else
21883   echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886
21887 fi
21888
21889 rm -f core conftest.err conftest.$ac_objext \
21890       conftest$ac_exeext conftest.$ac_ext
21891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21892
21893        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21894         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"
21895        else
21896         if test "$host_cpu" = ia64; then
21897           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21898           allow_undefined_flag_F77="-z nodefs"
21899           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"
21900         else
21901          # Determine the default libpath from the value encoded in an empty executable.
21902          cat >conftest.$ac_ext <<_ACEOF
21903       program main
21904
21905       end
21906 _ACEOF
21907 rm -f conftest.$ac_objext conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914   (eval "$ac_link") 2>conftest.er1
21915   ac_status=$?
21916   grep -v '^ *+' conftest.er1 >conftest.err
21917   rm -f conftest.er1
21918   cat conftest.err >&5
21919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); } &&
21921          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21922   { (case "(($ac_try" in
21923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924   *) ac_try_echo=$ac_try;;
21925 esac
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927   (eval "$ac_try") 2>&5
21928   ac_status=$?
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); }; } &&
21931          { ac_try='test -s conftest$ac_exeext'
21932   { (case "(($ac_try" in
21933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934   *) ac_try_echo=$ac_try;;
21935 esac
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937   (eval "$ac_try") 2>&5
21938   ac_status=$?
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); }; }; then
21941
21942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21943 }'`
21944 # Check for a 64-bit object if we didn't find anything.
21945 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; }
21946 }'`; fi
21947 else
21948   echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21950
21951
21952 fi
21953
21954 rm -f core conftest.err conftest.$ac_objext \
21955       conftest$ac_exeext conftest.$ac_ext
21956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21957
21958          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21959           # Warning - without using the other run time loading flags,
21960           # -berok will link without error, but may produce a broken library.
21961           no_undefined_flag_F77=' ${wl}-bernotok'
21962           allow_undefined_flag_F77=' ${wl}-berok'
21963           # Exported symbols can be pulled into shared objects from archives
21964           whole_archive_flag_spec_F77='$convenience'
21965           archive_cmds_need_lc_F77=yes
21966           # This is similar to how AIX traditionally builds its shared libraries.
21967           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'
21968         fi
21969       fi
21970       ;;
21971
21972     amigaos*)
21973       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)'
21974       hardcode_libdir_flag_spec_F77='-L$libdir'
21975       hardcode_minus_L_F77=yes
21976       # see comment about different semantics on the GNU ld section
21977       ld_shlibs_F77=no
21978       ;;
21979
21980     bsdi[45]*)
21981       export_dynamic_flag_spec_F77=-rdynamic
21982       ;;
21983
21984     cygwin* | mingw* | pw32*)
21985       # When not using gcc, we currently assume that we are using
21986       # Microsoft Visual C++.
21987       # hardcode_libdir_flag_spec is actually meaningless, as there is
21988       # no search path for DLLs.
21989       hardcode_libdir_flag_spec_F77=' '
21990       allow_undefined_flag_F77=unsupported
21991       # Tell ltmain to make .lib files, not .a files.
21992       libext=lib
21993       # Tell ltmain to make .dll files, not .so files.
21994       shrext_cmds=".dll"
21995       # FIXME: Setting linknames here is a bad hack.
21996       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21997       # The linker will automatically build a .lib file if we build a DLL.
21998       old_archive_From_new_cmds_F77='true'
21999       # FIXME: Should let the user specify the lib program.
22000       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22001       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22002       enable_shared_with_static_runtimes_F77=yes
22003       ;;
22004
22005     darwin* | rhapsody*)
22006       case $host_os in
22007         rhapsody* | darwin1.[012])
22008          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22009          ;;
22010        *) # Darwin 1.3 on
22011          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22012            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22013          else
22014            case ${MACOSX_DEPLOYMENT_TARGET} in
22015              10.[012])
22016                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22017                ;;
22018              10.*)
22019                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22020                ;;
22021            esac
22022          fi
22023          ;;
22024       esac
22025       archive_cmds_need_lc_F77=no
22026       hardcode_direct_F77=no
22027       hardcode_automatic_F77=yes
22028       hardcode_shlibpath_var_F77=unsupported
22029       whole_archive_flag_spec_F77=''
22030       link_all_deplibs_F77=yes
22031     if test "$GCC" = yes ; then
22032         output_verbose_link_cmd='echo'
22033         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22034       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22035       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22036       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}'
22037       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}'
22038     else
22039       case $cc_basename in
22040         xlc*)
22041          output_verbose_link_cmd='echo'
22042          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22043          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22044           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22045          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}'
22046           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}'
22047           ;;
22048        *)
22049          ld_shlibs_F77=no
22050           ;;
22051       esac
22052     fi
22053       ;;
22054
22055     dgux*)
22056       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22057       hardcode_libdir_flag_spec_F77='-L$libdir'
22058       hardcode_shlibpath_var_F77=no
22059       ;;
22060
22061     freebsd1*)
22062       ld_shlibs_F77=no
22063       ;;
22064
22065     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22066     # support.  Future versions do this automatically, but an explicit c++rt0.o
22067     # does not break anything, and helps significantly (at the cost of a little
22068     # extra space).
22069     freebsd2.2*)
22070       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22071       hardcode_libdir_flag_spec_F77='-R$libdir'
22072       hardcode_direct_F77=yes
22073       hardcode_shlibpath_var_F77=no
22074       ;;
22075
22076     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22077     freebsd2*)
22078       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22079       hardcode_direct_F77=yes
22080       hardcode_minus_L_F77=yes
22081       hardcode_shlibpath_var_F77=no
22082       ;;
22083
22084     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22085     freebsd* | kfreebsd*-gnu | dragonfly*)
22086       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22087       hardcode_libdir_flag_spec_F77='-R$libdir'
22088       hardcode_direct_F77=yes
22089       hardcode_shlibpath_var_F77=no
22090       ;;
22091
22092     hpux9*)
22093       if test "$GCC" = yes; then
22094         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'
22095       else
22096         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'
22097       fi
22098       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22099       hardcode_libdir_separator_F77=:
22100       hardcode_direct_F77=yes
22101
22102       # hardcode_minus_L: Not really in the search PATH,
22103       # but as the default location of the library.
22104       hardcode_minus_L_F77=yes
22105       export_dynamic_flag_spec_F77='${wl}-E'
22106       ;;
22107
22108     hpux10*)
22109       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22110         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22111       else
22112         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22113       fi
22114       if test "$with_gnu_ld" = no; then
22115         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22116         hardcode_libdir_separator_F77=:
22117
22118         hardcode_direct_F77=yes
22119         export_dynamic_flag_spec_F77='${wl}-E'
22120
22121         # hardcode_minus_L: Not really in the search PATH,
22122         # but as the default location of the library.
22123         hardcode_minus_L_F77=yes
22124       fi
22125       ;;
22126
22127     hpux11*)
22128       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22129         case $host_cpu in
22130         hppa*64*)
22131           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22132           ;;
22133         ia64*)
22134           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22135           ;;
22136         *)
22137           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22138           ;;
22139         esac
22140       else
22141         case $host_cpu in
22142         hppa*64*)
22143           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22144           ;;
22145         ia64*)
22146           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22147           ;;
22148         *)
22149           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22150           ;;
22151         esac
22152       fi
22153       if test "$with_gnu_ld" = no; then
22154         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22155         hardcode_libdir_separator_F77=:
22156
22157         case $host_cpu in
22158         hppa*64*|ia64*)
22159           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22160           hardcode_direct_F77=no
22161           hardcode_shlibpath_var_F77=no
22162           ;;
22163         *)
22164           hardcode_direct_F77=yes
22165           export_dynamic_flag_spec_F77='${wl}-E'
22166
22167           # hardcode_minus_L: Not really in the search PATH,
22168           # but as the default location of the library.
22169           hardcode_minus_L_F77=yes
22170           ;;
22171         esac
22172       fi
22173       ;;
22174
22175     irix5* | irix6* | nonstopux*)
22176       if test "$GCC" = yes; then
22177         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'
22178       else
22179         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'
22180         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22181       fi
22182       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22183       hardcode_libdir_separator_F77=:
22184       link_all_deplibs_F77=yes
22185       ;;
22186
22187     netbsd*)
22188       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22189         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22190       else
22191         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22192       fi
22193       hardcode_libdir_flag_spec_F77='-R$libdir'
22194       hardcode_direct_F77=yes
22195       hardcode_shlibpath_var_F77=no
22196       ;;
22197
22198     newsos6)
22199       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22200       hardcode_direct_F77=yes
22201       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22202       hardcode_libdir_separator_F77=:
22203       hardcode_shlibpath_var_F77=no
22204       ;;
22205
22206     openbsd*)
22207       hardcode_direct_F77=yes
22208       hardcode_shlibpath_var_F77=no
22209       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22210         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22211         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22212         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22213         export_dynamic_flag_spec_F77='${wl}-E'
22214       else
22215        case $host_os in
22216          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22217            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22218            hardcode_libdir_flag_spec_F77='-R$libdir'
22219            ;;
22220          *)
22221            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22222            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22223            ;;
22224        esac
22225       fi
22226       ;;
22227
22228     os2*)
22229       hardcode_libdir_flag_spec_F77='-L$libdir'
22230       hardcode_minus_L_F77=yes
22231       allow_undefined_flag_F77=unsupported
22232       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'
22233       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22234       ;;
22235
22236     osf3*)
22237       if test "$GCC" = yes; then
22238         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22239         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'
22240       else
22241         allow_undefined_flag_F77=' -expect_unresolved \*'
22242         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'
22243       fi
22244       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22245       hardcode_libdir_separator_F77=:
22246       ;;
22247
22248     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22249       if test "$GCC" = yes; then
22250         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22251         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'
22252         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22253       else
22254         allow_undefined_flag_F77=' -expect_unresolved \*'
22255         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'
22256         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~
22257         $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'
22258
22259         # Both c and cxx compiler support -rpath directly
22260         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22261       fi
22262       hardcode_libdir_separator_F77=:
22263       ;;
22264
22265     solaris*)
22266       no_undefined_flag_F77=' -z text'
22267       if test "$GCC" = yes; then
22268         wlarc='${wl}'
22269         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22270         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22271           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22272       else
22273         wlarc=''
22274         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22275         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22276         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22277       fi
22278       hardcode_libdir_flag_spec_F77='-R$libdir'
22279       hardcode_shlibpath_var_F77=no
22280       case $host_os in
22281       solaris2.[0-5] | solaris2.[0-5].*) ;;
22282       *)
22283         # The compiler driver will combine linker options so we
22284         # cannot just pass the convience library names through
22285         # without $wl, iff we do not link with $LD.
22286         # Luckily, gcc supports the same syntax we need for Sun Studio.
22287         # Supported since Solaris 2.6 (maybe 2.5.1?)
22288         case $wlarc in
22289         '')
22290           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22291         *)
22292           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' ;;
22293         esac ;;
22294       esac
22295       link_all_deplibs_F77=yes
22296       ;;
22297
22298     sunos4*)
22299       if test "x$host_vendor" = xsequent; then
22300         # Use $CC to link under sequent, because it throws in some extra .o
22301         # files that make .init and .fini sections work.
22302         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22303       else
22304         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22305       fi
22306       hardcode_libdir_flag_spec_F77='-L$libdir'
22307       hardcode_direct_F77=yes
22308       hardcode_minus_L_F77=yes
22309       hardcode_shlibpath_var_F77=no
22310       ;;
22311
22312     sysv4)
22313       case $host_vendor in
22314         sni)
22315           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22316           hardcode_direct_F77=yes # is this really true???
22317         ;;
22318         siemens)
22319           ## LD is ld it makes a PLAMLIB
22320           ## CC just makes a GrossModule.
22321           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22322           reload_cmds_F77='$CC -r -o $output$reload_objs'
22323           hardcode_direct_F77=no
22324         ;;
22325         motorola)
22326           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22327           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22328         ;;
22329       esac
22330       runpath_var='LD_RUN_PATH'
22331       hardcode_shlibpath_var_F77=no
22332       ;;
22333
22334     sysv4.3*)
22335       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22336       hardcode_shlibpath_var_F77=no
22337       export_dynamic_flag_spec_F77='-Bexport'
22338       ;;
22339
22340     sysv4*MP*)
22341       if test -d /usr/nec; then
22342         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22343         hardcode_shlibpath_var_F77=no
22344         runpath_var=LD_RUN_PATH
22345         hardcode_runpath_var=yes
22346         ld_shlibs_F77=yes
22347       fi
22348       ;;
22349
22350     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22351       no_undefined_flag_F77='${wl}-z,text'
22352       archive_cmds_need_lc_F77=no
22353       hardcode_shlibpath_var_F77=no
22354       runpath_var='LD_RUN_PATH'
22355
22356       if test "$GCC" = yes; then
22357         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22358         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22359       else
22360         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22361         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22362       fi
22363       ;;
22364
22365     sysv5* | sco3.2v5* | sco5v6*)
22366       # Note: We can NOT use -z defs as we might desire, because we do not
22367       # link with -lc, and that would cause any symbols used from libc to
22368       # always be unresolved, which means just about no library would
22369       # ever link correctly.  If we're not using GNU ld we use -z text
22370       # though, which does catch some bad symbols but isn't as heavy-handed
22371       # as -z defs.
22372       no_undefined_flag_F77='${wl}-z,text'
22373       allow_undefined_flag_F77='${wl}-z,nodefs'
22374       archive_cmds_need_lc_F77=no
22375       hardcode_shlibpath_var_F77=no
22376       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22377       hardcode_libdir_separator_F77=':'
22378       link_all_deplibs_F77=yes
22379       export_dynamic_flag_spec_F77='${wl}-Bexport'
22380       runpath_var='LD_RUN_PATH'
22381
22382       if test "$GCC" = yes; then
22383         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22384         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22385       else
22386         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22387         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22388       fi
22389       ;;
22390
22391     uts4*)
22392       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22393       hardcode_libdir_flag_spec_F77='-L$libdir'
22394       hardcode_shlibpath_var_F77=no
22395       ;;
22396
22397     *)
22398       ld_shlibs_F77=no
22399       ;;
22400     esac
22401   fi
22402
22403 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22404 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22405 test "$ld_shlibs_F77" = no && can_build_shared=no
22406
22407 #
22408 # Do we need to explicitly link libc?
22409 #
22410 case "x$archive_cmds_need_lc_F77" in
22411 x|xyes)
22412   # Assume -lc should be added
22413   archive_cmds_need_lc_F77=yes
22414
22415   if test "$enable_shared" = yes && test "$GCC" = yes; then
22416     case $archive_cmds_F77 in
22417     *'~'*)
22418       # FIXME: we may have to deal with multi-command sequences.
22419       ;;
22420     '$CC '*)
22421       # Test whether the compiler implicitly links with -lc since on some
22422       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22423       # to ld, don't add -lc before -lgcc.
22424       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22425 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22426       $rm conftest*
22427       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22428
22429       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22430   (eval $ac_compile) 2>&5
22431   ac_status=$?
22432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433   (exit $ac_status); } 2>conftest.err; then
22434         soname=conftest
22435         lib=conftest
22436         libobjs=conftest.$ac_objext
22437         deplibs=
22438         wl=$lt_prog_compiler_wl_F77
22439         pic_flag=$lt_prog_compiler_pic_F77
22440         compiler_flags=-v
22441         linker_flags=-v
22442         verstring=
22443         output_objdir=.
22444         libname=conftest
22445         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22446         allow_undefined_flag_F77=
22447         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22448   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22449   ac_status=$?
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); }
22452         then
22453           archive_cmds_need_lc_F77=no
22454         else
22455           archive_cmds_need_lc_F77=yes
22456         fi
22457         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22458       else
22459         cat conftest.err 1>&5
22460       fi
22461       $rm conftest*
22462       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22463 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22464       ;;
22465     esac
22466   fi
22467   ;;
22468 esac
22469
22470 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22471 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22472 library_names_spec=
22473 libname_spec='lib$name'
22474 soname_spec=
22475 shrext_cmds=".so"
22476 postinstall_cmds=
22477 postuninstall_cmds=
22478 finish_cmds=
22479 finish_eval=
22480 shlibpath_var=
22481 shlibpath_overrides_runpath=unknown
22482 version_type=none
22483 dynamic_linker="$host_os ld.so"
22484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22485 if test "$GCC" = yes; then
22486   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22487   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22488     # if the path contains ";" then we assume it to be the separator
22489     # otherwise default to the standard path separator (i.e. ":") - it is
22490     # assumed that no part of a normal pathname contains ";" but that should
22491     # okay in the real world where ";" in dirpaths is itself problematic.
22492     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22493   else
22494     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22495   fi
22496 else
22497   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22498 fi
22499 need_lib_prefix=unknown
22500 hardcode_into_libs=no
22501
22502 # when you set need_version to no, make sure it does not cause -set_version
22503 # flags to be left without arguments
22504 need_version=unknown
22505
22506 case $host_os in
22507 aix3*)
22508   version_type=linux
22509   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22510   shlibpath_var=LIBPATH
22511
22512   # AIX 3 has no versioning support, so we append a major version to the name.
22513   soname_spec='${libname}${release}${shared_ext}$major'
22514   ;;
22515
22516 aix4* | aix5*)
22517   version_type=linux
22518   need_lib_prefix=no
22519   need_version=no
22520   hardcode_into_libs=yes
22521   if test "$host_cpu" = ia64; then
22522     # AIX 5 supports IA64
22523     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22524     shlibpath_var=LD_LIBRARY_PATH
22525   else
22526     # With GCC up to 2.95.x, collect2 would create an import file
22527     # for dependence libraries.  The import file would start with
22528     # the line `#! .'.  This would cause the generated library to
22529     # depend on `.', always an invalid library.  This was fixed in
22530     # development snapshots of GCC prior to 3.0.
22531     case $host_os in
22532       aix4 | aix4.[01] | aix4.[01].*)
22533       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22534            echo ' yes '
22535            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22536         :
22537       else
22538         can_build_shared=no
22539       fi
22540       ;;
22541     esac
22542     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22543     # soname into executable. Probably we can add versioning support to
22544     # collect2, so additional links can be useful in future.
22545     if test "$aix_use_runtimelinking" = yes; then
22546       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22547       # instead of lib<name>.a to let people know that these are not
22548       # typical AIX shared libraries.
22549       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22550     else
22551       # We preserve .a as extension for shared libraries through AIX4.2
22552       # and later when we are not doing run time linking.
22553       library_names_spec='${libname}${release}.a $libname.a'
22554       soname_spec='${libname}${release}${shared_ext}$major'
22555     fi
22556     shlibpath_var=LIBPATH
22557   fi
22558   ;;
22559
22560 amigaos*)
22561   library_names_spec='$libname.ixlibrary $libname.a'
22562   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22563   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'
22564   ;;
22565
22566 beos*)
22567   library_names_spec='${libname}${shared_ext}'
22568   dynamic_linker="$host_os ld.so"
22569   shlibpath_var=LIBRARY_PATH
22570   ;;
22571
22572 bsdi[45]*)
22573   version_type=linux
22574   need_version=no
22575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22576   soname_spec='${libname}${release}${shared_ext}$major'
22577   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22578   shlibpath_var=LD_LIBRARY_PATH
22579   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22580   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22581   # the default ld.so.conf also contains /usr/contrib/lib and
22582   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22583   # libtool to hard-code these into programs
22584   ;;
22585
22586 cygwin* | mingw* | pw32*)
22587   version_type=windows
22588   shrext_cmds=".dll"
22589   need_version=no
22590   need_lib_prefix=no
22591
22592   case $GCC,$host_os in
22593   yes,cygwin* | yes,mingw* | yes,pw32*)
22594     library_names_spec='$libname.dll.a'
22595     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22596     postinstall_cmds='base_file=`basename \${file}`~
22597       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22598       dldir=$destdir/`dirname \$dlpath`~
22599       test -d \$dldir || mkdir -p \$dldir~
22600       $install_prog $dir/$dlname \$dldir/$dlname~
22601       chmod a+x \$dldir/$dlname'
22602     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22603       dlpath=$dir/\$dldll~
22604        $rm \$dlpath'
22605     shlibpath_overrides_runpath=yes
22606
22607     case $host_os in
22608     cygwin*)
22609       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22610       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22611       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22612       ;;
22613     mingw*)
22614       # MinGW DLLs use traditional 'lib' prefix
22615       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22616       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22617       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22618         # It is most probably a Windows format PATH printed by
22619         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22620         # path with ; separators, and with drive letters. We can handle the
22621         # drive letters (cygwin fileutils understands them), so leave them,
22622         # especially as we might pass files found there to a mingw objdump,
22623         # which wouldn't understand a cygwinified path. Ahh.
22624         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22625       else
22626         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22627       fi
22628       ;;
22629     pw32*)
22630       # pw32 DLLs use 'pw' prefix rather than 'lib'
22631       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22632       ;;
22633     esac
22634     ;;
22635
22636   *)
22637     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22638     ;;
22639   esac
22640   dynamic_linker='Win32 ld.exe'
22641   # FIXME: first we should search . and the directory the executable is in
22642   shlibpath_var=PATH
22643   ;;
22644
22645 darwin* | rhapsody*)
22646   dynamic_linker="$host_os dyld"
22647   version_type=darwin
22648   need_lib_prefix=no
22649   need_version=no
22650   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22651   soname_spec='${libname}${release}${major}$shared_ext'
22652   shlibpath_overrides_runpath=yes
22653   shlibpath_var=DYLD_LIBRARY_PATH
22654   shrext_cmds='.dylib'
22655   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22656   if test "$GCC" = yes; then
22657     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"`
22658   else
22659     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22660   fi
22661   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22662   ;;
22663
22664 dgux*)
22665   version_type=linux
22666   need_lib_prefix=no
22667   need_version=no
22668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22669   soname_spec='${libname}${release}${shared_ext}$major'
22670   shlibpath_var=LD_LIBRARY_PATH
22671   ;;
22672
22673 freebsd1*)
22674   dynamic_linker=no
22675   ;;
22676
22677 kfreebsd*-gnu)
22678   version_type=linux
22679   need_lib_prefix=no
22680   need_version=no
22681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22682   soname_spec='${libname}${release}${shared_ext}$major'
22683   shlibpath_var=LD_LIBRARY_PATH
22684   shlibpath_overrides_runpath=no
22685   hardcode_into_libs=yes
22686   dynamic_linker='GNU ld.so'
22687   ;;
22688
22689 freebsd* | dragonfly*)
22690   # DragonFly does not have aout.  When/if they implement a new
22691   # versioning mechanism, adjust this.
22692   if test -x /usr/bin/objformat; then
22693     objformat=`/usr/bin/objformat`
22694   else
22695     case $host_os in
22696     freebsd[123]*) objformat=aout ;;
22697     *) objformat=elf ;;
22698     esac
22699   fi
22700   version_type=freebsd-$objformat
22701   case $version_type in
22702     freebsd-elf*)
22703       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22704       need_version=no
22705       need_lib_prefix=no
22706       ;;
22707     freebsd-*)
22708       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22709       need_version=yes
22710       ;;
22711   esac
22712   shlibpath_var=LD_LIBRARY_PATH
22713   case $host_os in
22714   freebsd2*)
22715     shlibpath_overrides_runpath=yes
22716     ;;
22717   freebsd3.[01]* | freebsdelf3.[01]*)
22718     shlibpath_overrides_runpath=yes
22719     hardcode_into_libs=yes
22720     ;;
22721   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22722   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22723     shlibpath_overrides_runpath=no
22724     hardcode_into_libs=yes
22725     ;;
22726   freebsd*) # from 4.6 on
22727     shlibpath_overrides_runpath=yes
22728     hardcode_into_libs=yes
22729     ;;
22730   esac
22731   ;;
22732
22733 gnu*)
22734   version_type=linux
22735   need_lib_prefix=no
22736   need_version=no
22737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22738   soname_spec='${libname}${release}${shared_ext}$major'
22739   shlibpath_var=LD_LIBRARY_PATH
22740   hardcode_into_libs=yes
22741   ;;
22742
22743 hpux9* | hpux10* | hpux11*)
22744   # Give a soname corresponding to the major version so that dld.sl refuses to
22745   # link against other versions.
22746   version_type=sunos
22747   need_lib_prefix=no
22748   need_version=no
22749   case $host_cpu in
22750   ia64*)
22751     shrext_cmds='.so'
22752     hardcode_into_libs=yes
22753     dynamic_linker="$host_os dld.so"
22754     shlibpath_var=LD_LIBRARY_PATH
22755     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22757     soname_spec='${libname}${release}${shared_ext}$major'
22758     if test "X$HPUX_IA64_MODE" = X32; then
22759       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22760     else
22761       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22762     fi
22763     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22764     ;;
22765    hppa*64*)
22766      shrext_cmds='.sl'
22767      hardcode_into_libs=yes
22768      dynamic_linker="$host_os dld.sl"
22769      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22770      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22771      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772      soname_spec='${libname}${release}${shared_ext}$major'
22773      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22774      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22775      ;;
22776    *)
22777     shrext_cmds='.sl'
22778     dynamic_linker="$host_os dld.sl"
22779     shlibpath_var=SHLIB_PATH
22780     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22782     soname_spec='${libname}${release}${shared_ext}$major'
22783     ;;
22784   esac
22785   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22786   postinstall_cmds='chmod 555 $lib'
22787   ;;
22788
22789 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22796   shlibpath_var=LD_LIBRARY_PATH
22797   shlibpath_overrides_runpath=no
22798   hardcode_into_libs=yes
22799   ;;
22800
22801 irix5* | irix6* | nonstopux*)
22802   case $host_os in
22803     nonstopux*) version_type=nonstopux ;;
22804     *)
22805         if test "$lt_cv_prog_gnu_ld" = yes; then
22806                 version_type=linux
22807         else
22808                 version_type=irix
22809         fi ;;
22810   esac
22811   need_lib_prefix=no
22812   need_version=no
22813   soname_spec='${libname}${release}${shared_ext}$major'
22814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22815   case $host_os in
22816   irix5* | nonstopux*)
22817     libsuff= shlibsuff=
22818     ;;
22819   *)
22820     case $LD in # libtool.m4 will add one of these switches to LD
22821     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22822       libsuff= shlibsuff= libmagic=32-bit;;
22823     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22824       libsuff=32 shlibsuff=N32 libmagic=N32;;
22825     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22826       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22827     *) libsuff= shlibsuff= libmagic=never-match;;
22828     esac
22829     ;;
22830   esac
22831   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22832   shlibpath_overrides_runpath=no
22833   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22834   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22835   hardcode_into_libs=yes
22836   ;;
22837
22838 # No shared lib support for Linux oldld, aout, or coff.
22839 linux*oldld* | linux*aout* | linux*coff*)
22840   dynamic_linker=no
22841   ;;
22842
22843 # This must be Linux ELF.
22844 linux*)
22845   version_type=linux
22846   need_lib_prefix=no
22847   need_version=no
22848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22849   soname_spec='${libname}${release}${shared_ext}$major'
22850   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22851   shlibpath_var=LD_LIBRARY_PATH
22852   shlibpath_overrides_runpath=no
22853   # This implies no fast_install, which is unacceptable.
22854   # Some rework will be needed to allow for fast_install
22855   # before this can be enabled.
22856   hardcode_into_libs=yes
22857
22858   # Append ld.so.conf contents to the search path
22859   if test -f /etc/ld.so.conf; then
22860     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' ' '`
22861     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22862   fi
22863
22864   # We used to test for /lib/ld.so.1 and disable shared libraries on
22865   # powerpc, because MkLinux only supported shared libraries with the
22866   # GNU dynamic linker.  Since this was broken with cross compilers,
22867   # most powerpc-linux boxes support dynamic linking these days and
22868   # people can always --disable-shared, the test was removed, and we
22869   # assume the GNU/Linux dynamic linker is in use.
22870   dynamic_linker='GNU/Linux ld.so'
22871   ;;
22872
22873 knetbsd*-gnu)
22874   version_type=linux
22875   need_lib_prefix=no
22876   need_version=no
22877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22878   soname_spec='${libname}${release}${shared_ext}$major'
22879   shlibpath_var=LD_LIBRARY_PATH
22880   shlibpath_overrides_runpath=no
22881   hardcode_into_libs=yes
22882   dynamic_linker='GNU ld.so'
22883   ;;
22884
22885 netbsd*)
22886   version_type=sunos
22887   need_lib_prefix=no
22888   need_version=no
22889   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22891     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22892     dynamic_linker='NetBSD (a.out) ld.so'
22893   else
22894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22895     soname_spec='${libname}${release}${shared_ext}$major'
22896     dynamic_linker='NetBSD ld.elf_so'
22897   fi
22898   shlibpath_var=LD_LIBRARY_PATH
22899   shlibpath_overrides_runpath=yes
22900   hardcode_into_libs=yes
22901   ;;
22902
22903 newsos6)
22904   version_type=linux
22905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22906   shlibpath_var=LD_LIBRARY_PATH
22907   shlibpath_overrides_runpath=yes
22908   ;;
22909
22910 nto-qnx*)
22911   version_type=linux
22912   need_lib_prefix=no
22913   need_version=no
22914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22915   soname_spec='${libname}${release}${shared_ext}$major'
22916   shlibpath_var=LD_LIBRARY_PATH
22917   shlibpath_overrides_runpath=yes
22918   ;;
22919
22920 openbsd*)
22921   version_type=sunos
22922   sys_lib_dlsearch_path_spec="/usr/lib"
22923   need_lib_prefix=no
22924   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22925   case $host_os in
22926     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22927     *)                         need_version=no  ;;
22928   esac
22929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22931   shlibpath_var=LD_LIBRARY_PATH
22932   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22933     case $host_os in
22934       openbsd2.[89] | openbsd2.[89].*)
22935         shlibpath_overrides_runpath=no
22936         ;;
22937       *)
22938         shlibpath_overrides_runpath=yes
22939         ;;
22940       esac
22941   else
22942     shlibpath_overrides_runpath=yes
22943   fi
22944   ;;
22945
22946 os2*)
22947   libname_spec='$name'
22948   shrext_cmds=".dll"
22949   need_lib_prefix=no
22950   library_names_spec='$libname${shared_ext} $libname.a'
22951   dynamic_linker='OS/2 ld.exe'
22952   shlibpath_var=LIBPATH
22953   ;;
22954
22955 osf3* | osf4* | osf5*)
22956   version_type=osf
22957   need_lib_prefix=no
22958   need_version=no
22959   soname_spec='${libname}${release}${shared_ext}$major'
22960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961   shlibpath_var=LD_LIBRARY_PATH
22962   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22963   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22964   ;;
22965
22966 solaris*)
22967   version_type=linux
22968   need_lib_prefix=no
22969   need_version=no
22970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22971   soname_spec='${libname}${release}${shared_ext}$major'
22972   shlibpath_var=LD_LIBRARY_PATH
22973   shlibpath_overrides_runpath=yes
22974   hardcode_into_libs=yes
22975   # ldd complains unless libraries are executable
22976   postinstall_cmds='chmod +x $lib'
22977   ;;
22978
22979 sunos4*)
22980   version_type=sunos
22981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22982   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22983   shlibpath_var=LD_LIBRARY_PATH
22984   shlibpath_overrides_runpath=yes
22985   if test "$with_gnu_ld" = yes; then
22986     need_lib_prefix=no
22987   fi
22988   need_version=yes
22989   ;;
22990
22991 sysv4 | sysv4.3*)
22992   version_type=linux
22993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22994   soname_spec='${libname}${release}${shared_ext}$major'
22995   shlibpath_var=LD_LIBRARY_PATH
22996   case $host_vendor in
22997     sni)
22998       shlibpath_overrides_runpath=no
22999       need_lib_prefix=no
23000       export_dynamic_flag_spec='${wl}-Blargedynsym'
23001       runpath_var=LD_RUN_PATH
23002       ;;
23003     siemens)
23004       need_lib_prefix=no
23005       ;;
23006     motorola)
23007       need_lib_prefix=no
23008       need_version=no
23009       shlibpath_overrides_runpath=no
23010       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23011       ;;
23012   esac
23013   ;;
23014
23015 sysv4*MP*)
23016   if test -d /usr/nec ;then
23017     version_type=linux
23018     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23019     soname_spec='$libname${shared_ext}.$major'
23020     shlibpath_var=LD_LIBRARY_PATH
23021   fi
23022   ;;
23023
23024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23025   version_type=freebsd-elf
23026   need_lib_prefix=no
23027   need_version=no
23028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23029   soname_spec='${libname}${release}${shared_ext}$major'
23030   shlibpath_var=LD_LIBRARY_PATH
23031   hardcode_into_libs=yes
23032   if test "$with_gnu_ld" = yes; then
23033     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23034     shlibpath_overrides_runpath=no
23035   else
23036     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23037     shlibpath_overrides_runpath=yes
23038     case $host_os in
23039       sco3.2v5*)
23040         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23041         ;;
23042     esac
23043   fi
23044   sys_lib_dlsearch_path_spec='/usr/lib'
23045   ;;
23046
23047 uts4*)
23048   version_type=linux
23049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23050   soname_spec='${libname}${release}${shared_ext}$major'
23051   shlibpath_var=LD_LIBRARY_PATH
23052   ;;
23053
23054 *)
23055   dynamic_linker=no
23056   ;;
23057 esac
23058 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23059 echo "${ECHO_T}$dynamic_linker" >&6; }
23060 test "$dynamic_linker" = no && can_build_shared=no
23061
23062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23063 if test "$GCC" = yes; then
23064   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23065 fi
23066
23067 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23068 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23069 hardcode_action_F77=
23070 if test -n "$hardcode_libdir_flag_spec_F77" || \
23071    test -n "$runpath_var_F77" || \
23072    test "X$hardcode_automatic_F77" = "Xyes" ; then
23073
23074   # We can hardcode non-existant directories.
23075   if test "$hardcode_direct_F77" != no &&
23076      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23077      # have to relink, otherwise we might link with an installed library
23078      # when we should be linking with a yet-to-be-installed one
23079      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23080      test "$hardcode_minus_L_F77" != no; then
23081     # Linking always hardcodes the temporary library directory.
23082     hardcode_action_F77=relink
23083   else
23084     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23085     hardcode_action_F77=immediate
23086   fi
23087 else
23088   # We cannot hardcode anything, or else we can only hardcode existing
23089   # directories.
23090   hardcode_action_F77=unsupported
23091 fi
23092 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23093 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23094
23095 if test "$hardcode_action_F77" = relink; then
23096   # Fast installation is not supported
23097   enable_fast_install=no
23098 elif test "$shlibpath_overrides_runpath" = yes ||
23099      test "$enable_shared" = no; then
23100   # Fast installation is not necessary
23101   enable_fast_install=needless
23102 fi
23103
23104
23105 # The else clause should only fire when bootstrapping the
23106 # libtool distribution, otherwise you forgot to ship ltmain.sh
23107 # with your package, and you will get complaints that there are
23108 # no rules to generate ltmain.sh.
23109 if test -f "$ltmain"; then
23110   # See if we are running on zsh, and set the options which allow our commands through
23111   # without removal of \ escapes.
23112   if test -n "${ZSH_VERSION+set}" ; then
23113     setopt NO_GLOB_SUBST
23114   fi
23115   # Now quote all the things that may contain metacharacters while being
23116   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23117   # variables and quote the copies for generation of the libtool script.
23118   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23119     SED SHELL STRIP \
23120     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23121     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23122     deplibs_check_method reload_flag reload_cmds need_locks \
23123     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23124     lt_cv_sys_global_symbol_to_c_name_address \
23125     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23126     old_postinstall_cmds old_postuninstall_cmds \
23127     compiler_F77 \
23128     CC_F77 \
23129     LD_F77 \
23130     lt_prog_compiler_wl_F77 \
23131     lt_prog_compiler_pic_F77 \
23132     lt_prog_compiler_static_F77 \
23133     lt_prog_compiler_no_builtin_flag_F77 \
23134     export_dynamic_flag_spec_F77 \
23135     thread_safe_flag_spec_F77 \
23136     whole_archive_flag_spec_F77 \
23137     enable_shared_with_static_runtimes_F77 \
23138     old_archive_cmds_F77 \
23139     old_archive_from_new_cmds_F77 \
23140     predep_objects_F77 \
23141     postdep_objects_F77 \
23142     predeps_F77 \
23143     postdeps_F77 \
23144     compiler_lib_search_path_F77 \
23145     archive_cmds_F77 \
23146     archive_expsym_cmds_F77 \
23147     postinstall_cmds_F77 \
23148     postuninstall_cmds_F77 \
23149     old_archive_from_expsyms_cmds_F77 \
23150     allow_undefined_flag_F77 \
23151     no_undefined_flag_F77 \
23152     export_symbols_cmds_F77 \
23153     hardcode_libdir_flag_spec_F77 \
23154     hardcode_libdir_flag_spec_ld_F77 \
23155     hardcode_libdir_separator_F77 \
23156     hardcode_automatic_F77 \
23157     module_cmds_F77 \
23158     module_expsym_cmds_F77 \
23159     lt_cv_prog_compiler_c_o_F77 \
23160     exclude_expsyms_F77 \
23161     include_expsyms_F77; do
23162
23163     case $var in
23164     old_archive_cmds_F77 | \
23165     old_archive_from_new_cmds_F77 | \
23166     archive_cmds_F77 | \
23167     archive_expsym_cmds_F77 | \
23168     module_cmds_F77 | \
23169     module_expsym_cmds_F77 | \
23170     old_archive_from_expsyms_cmds_F77 | \
23171     export_symbols_cmds_F77 | \
23172     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23173     postinstall_cmds | postuninstall_cmds | \
23174     old_postinstall_cmds | old_postuninstall_cmds | \
23175     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23176       # Double-quote double-evaled strings.
23177       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23178       ;;
23179     *)
23180       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23181       ;;
23182     esac
23183   done
23184
23185   case $lt_echo in
23186   *'\$0 --fallback-echo"')
23187     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23188     ;;
23189   esac
23190
23191 cfgfile="$ofile"
23192
23193   cat <<__EOF__ >> "$cfgfile"
23194 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23195
23196 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23197
23198 # Shell to use when invoking shell scripts.
23199 SHELL=$lt_SHELL
23200
23201 # Whether or not to build shared libraries.
23202 build_libtool_libs=$enable_shared
23203
23204 # Whether or not to build static libraries.
23205 build_old_libs=$enable_static
23206
23207 # Whether or not to add -lc for building shared libraries.
23208 build_libtool_need_lc=$archive_cmds_need_lc_F77
23209
23210 # Whether or not to disallow shared libs when runtime libs are static
23211 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23212
23213 # Whether or not to optimize for fast installation.
23214 fast_install=$enable_fast_install
23215
23216 # The host system.
23217 host_alias=$host_alias
23218 host=$host
23219 host_os=$host_os
23220
23221 # The build system.
23222 build_alias=$build_alias
23223 build=$build
23224 build_os=$build_os
23225
23226 # An echo program that does not interpret backslashes.
23227 echo=$lt_echo
23228
23229 # The archiver.
23230 AR=$lt_AR
23231 AR_FLAGS=$lt_AR_FLAGS
23232
23233 # A C compiler.
23234 LTCC=$lt_LTCC
23235
23236 # LTCC compiler flags.
23237 LTCFLAGS=$lt_LTCFLAGS
23238
23239 # A language-specific compiler.
23240 CC=$lt_compiler_F77
23241
23242 # Is the compiler the GNU C compiler?
23243 with_gcc=$GCC_F77
23244
23245 # An ERE matcher.
23246 EGREP=$lt_EGREP
23247
23248 # The linker used to build libraries.
23249 LD=$lt_LD_F77
23250
23251 # Whether we need hard or soft links.
23252 LN_S=$lt_LN_S
23253
23254 # A BSD-compatible nm program.
23255 NM=$lt_NM
23256
23257 # A symbol stripping program
23258 STRIP=$lt_STRIP
23259
23260 # Used to examine libraries when file_magic_cmd begins "file"
23261 MAGIC_CMD=$MAGIC_CMD
23262
23263 # Used on cygwin: DLL creation program.
23264 DLLTOOL="$DLLTOOL"
23265
23266 # Used on cygwin: object dumper.
23267 OBJDUMP="$OBJDUMP"
23268
23269 # Used on cygwin: assembler.
23270 AS="$AS"
23271
23272 # The name of the directory that contains temporary libtool files.
23273 objdir=$objdir
23274
23275 # How to create reloadable object files.
23276 reload_flag=$lt_reload_flag
23277 reload_cmds=$lt_reload_cmds
23278
23279 # How to pass a linker flag through the compiler.
23280 wl=$lt_lt_prog_compiler_wl_F77
23281
23282 # Object file suffix (normally "o").
23283 objext="$ac_objext"
23284
23285 # Old archive suffix (normally "a").
23286 libext="$libext"
23287
23288 # Shared library suffix (normally ".so").
23289 shrext_cmds='$shrext_cmds'
23290
23291 # Executable file suffix (normally "").
23292 exeext="$exeext"
23293
23294 # Additional compiler flags for building library objects.
23295 pic_flag=$lt_lt_prog_compiler_pic_F77
23296 pic_mode=$pic_mode
23297
23298 # What is the maximum length of a command?
23299 max_cmd_len=$lt_cv_sys_max_cmd_len
23300
23301 # Does compiler simultaneously support -c and -o options?
23302 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23303
23304 # Must we lock files when doing compilation?
23305 need_locks=$lt_need_locks
23306
23307 # Do we need the lib prefix for modules?
23308 need_lib_prefix=$need_lib_prefix
23309
23310 # Do we need a version for libraries?
23311 need_version=$need_version
23312
23313 # Whether dlopen is supported.
23314 dlopen_support=$enable_dlopen
23315
23316 # Whether dlopen of programs is supported.
23317 dlopen_self=$enable_dlopen_self
23318
23319 # Whether dlopen of statically linked programs is supported.
23320 dlopen_self_static=$enable_dlopen_self_static
23321
23322 # Compiler flag to prevent dynamic linking.
23323 link_static_flag=$lt_lt_prog_compiler_static_F77
23324
23325 # Compiler flag to turn off builtin functions.
23326 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23327
23328 # Compiler flag to allow reflexive dlopens.
23329 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23330
23331 # Compiler flag to generate shared objects directly from archives.
23332 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23333
23334 # Compiler flag to generate thread-safe objects.
23335 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23336
23337 # Library versioning type.
23338 version_type=$version_type
23339
23340 # Format of library name prefix.
23341 libname_spec=$lt_libname_spec
23342
23343 # List of archive names.  First name is the real one, the rest are links.
23344 # The last name is the one that the linker finds with -lNAME.
23345 library_names_spec=$lt_library_names_spec
23346
23347 # The coded name of the library, if different from the real name.
23348 soname_spec=$lt_soname_spec
23349
23350 # Commands used to build and install an old-style archive.
23351 RANLIB=$lt_RANLIB
23352 old_archive_cmds=$lt_old_archive_cmds_F77
23353 old_postinstall_cmds=$lt_old_postinstall_cmds
23354 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23355
23356 # Create an old-style archive from a shared archive.
23357 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23358
23359 # Create a temporary old-style archive to link instead of a shared archive.
23360 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23361
23362 # Commands used to build and install a shared archive.
23363 archive_cmds=$lt_archive_cmds_F77
23364 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23365 postinstall_cmds=$lt_postinstall_cmds
23366 postuninstall_cmds=$lt_postuninstall_cmds
23367
23368 # Commands used to build a loadable module (assumed same as above if empty)
23369 module_cmds=$lt_module_cmds_F77
23370 module_expsym_cmds=$lt_module_expsym_cmds_F77
23371
23372 # Commands to strip libraries.
23373 old_striplib=$lt_old_striplib
23374 striplib=$lt_striplib
23375
23376 # Dependencies to place before the objects being linked to create a
23377 # shared library.
23378 predep_objects=$lt_predep_objects_F77
23379
23380 # Dependencies to place after the objects being linked to create a
23381 # shared library.
23382 postdep_objects=$lt_postdep_objects_F77
23383
23384 # Dependencies to place before the objects being linked to create a
23385 # shared library.
23386 predeps=$lt_predeps_F77
23387
23388 # Dependencies to place after the objects being linked to create a
23389 # shared library.
23390 postdeps=$lt_postdeps_F77
23391
23392 # The library search path used internally by the compiler when linking
23393 # a shared library.
23394 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23395
23396 # Method to check whether dependent libraries are shared objects.
23397 deplibs_check_method=$lt_deplibs_check_method
23398
23399 # Command to use when deplibs_check_method == file_magic.
23400 file_magic_cmd=$lt_file_magic_cmd
23401
23402 # Flag that allows shared libraries with undefined symbols to be built.
23403 allow_undefined_flag=$lt_allow_undefined_flag_F77
23404
23405 # Flag that forces no undefined symbols.
23406 no_undefined_flag=$lt_no_undefined_flag_F77
23407
23408 # Commands used to finish a libtool library installation in a directory.
23409 finish_cmds=$lt_finish_cmds
23410
23411 # Same as above, but a single script fragment to be evaled but not shown.
23412 finish_eval=$lt_finish_eval
23413
23414 # Take the output of nm and produce a listing of raw symbols and C names.
23415 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23416
23417 # Transform the output of nm in a proper C declaration
23418 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23419
23420 # Transform the output of nm in a C name address pair
23421 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23422
23423 # This is the shared library runtime path variable.
23424 runpath_var=$runpath_var
23425
23426 # This is the shared library path variable.
23427 shlibpath_var=$shlibpath_var
23428
23429 # Is shlibpath searched before the hard-coded library search path?
23430 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23431
23432 # How to hardcode a shared library path into an executable.
23433 hardcode_action=$hardcode_action_F77
23434
23435 # Whether we should hardcode library paths into libraries.
23436 hardcode_into_libs=$hardcode_into_libs
23437
23438 # Flag to hardcode \$libdir into a binary during linking.
23439 # This must work even if \$libdir does not exist.
23440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23441
23442 # If ld is used when linking, flag to hardcode \$libdir into
23443 # a binary during linking. This must work even if \$libdir does
23444 # not exist.
23445 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23446
23447 # Whether we need a single -rpath flag with a separated argument.
23448 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23449
23450 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23451 # resulting binary.
23452 hardcode_direct=$hardcode_direct_F77
23453
23454 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23455 # resulting binary.
23456 hardcode_minus_L=$hardcode_minus_L_F77
23457
23458 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23459 # the resulting binary.
23460 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23461
23462 # Set to yes if building a shared library automatically hardcodes DIR into the library
23463 # and all subsequent libraries and executables linked against it.
23464 hardcode_automatic=$hardcode_automatic_F77
23465
23466 # Variables whose values should be saved in libtool wrapper scripts and
23467 # restored at relink time.
23468 variables_saved_for_relink="$variables_saved_for_relink"
23469
23470 # Whether libtool must link a program against all its dependency libraries.
23471 link_all_deplibs=$link_all_deplibs_F77
23472
23473 # Compile-time system search path for libraries
23474 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23475
23476 # Run-time system search path for libraries
23477 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23478
23479 # Fix the shell variable \$srcfile for the compiler.
23480 fix_srcfile_path="$fix_srcfile_path_F77"
23481
23482 # Set to yes if exported symbols are required.
23483 always_export_symbols=$always_export_symbols_F77
23484
23485 # The commands to list exported symbols.
23486 export_symbols_cmds=$lt_export_symbols_cmds_F77
23487
23488 # The commands to extract the exported symbol list from a shared archive.
23489 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23490
23491 # Symbols that should not be listed in the preloaded symbols.
23492 exclude_expsyms=$lt_exclude_expsyms_F77
23493
23494 # Symbols that must always be exported.
23495 include_expsyms=$lt_include_expsyms_F77
23496
23497 # ### END LIBTOOL TAG CONFIG: $tagname
23498
23499 __EOF__
23500
23501
23502 else
23503   # If there is no Makefile yet, we rely on a make rule to execute
23504   # `config.status --recheck' to rerun these tests and create the
23505   # libtool script then.
23506   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23507   if test -f "$ltmain_in"; then
23508     test -f Makefile && make "$ltmain"
23509   fi
23510 fi
23511
23512
23513 ac_ext=c
23514 ac_cpp='$CPP $CPPFLAGS'
23515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23518
23519 CC="$lt_save_CC"
23520
23521         else
23522           tagname=""
23523         fi
23524         ;;
23525
23526       GCJ)
23527         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23528           ac_ext=c
23529 ac_cpp='$CPP $CPPFLAGS'
23530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23533
23534
23535 # Source file extension for Java test sources.
23536 ac_ext=java
23537
23538 # Object file extension for compiled Java test sources.
23539 objext=o
23540 objext_GCJ=$objext
23541
23542 # Code to be used in simple compile tests
23543 lt_simple_compile_test_code="class foo {}\n"
23544
23545 # Code to be used in simple link tests
23546 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23547
23548 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23549
23550 # If no C compiler was specified, use CC.
23551 LTCC=${LTCC-"$CC"}
23552
23553 # If no C compiler flags were specified, use CFLAGS.
23554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23555
23556 # Allow CC to be a program name with arguments.
23557 compiler=$CC
23558
23559
23560 # save warnings/boilerplate of simple test code
23561 ac_outfile=conftest.$ac_objext
23562 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23563 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23564 _lt_compiler_boilerplate=`cat conftest.err`
23565 $rm conftest*
23566
23567 ac_outfile=conftest.$ac_objext
23568 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23569 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23570 _lt_linker_boilerplate=`cat conftest.err`
23571 $rm conftest*
23572
23573
23574 # Allow CC to be a program name with arguments.
23575 lt_save_CC="$CC"
23576 CC=${GCJ-"gcj"}
23577 compiler=$CC
23578 compiler_GCJ=$CC
23579 for cc_temp in $compiler""; do
23580   case $cc_temp in
23581     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23582     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23583     \-*) ;;
23584     *) break;;
23585   esac
23586 done
23587 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23588
23589
23590 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23591 archive_cmds_need_lc_GCJ=no
23592
23593 old_archive_cmds_GCJ=$old_archive_cmds
23594
23595
23596 lt_prog_compiler_no_builtin_flag_GCJ=
23597
23598 if test "$GCC" = yes; then
23599   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23600
23601
23602 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23603 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23604 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23605   echo $ECHO_N "(cached) $ECHO_C" >&6
23606 else
23607   lt_cv_prog_compiler_rtti_exceptions=no
23608   ac_outfile=conftest.$ac_objext
23609    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23610    lt_compiler_flag="-fno-rtti -fno-exceptions"
23611    # Insert the option either (1) after the last *FLAGS variable, or
23612    # (2) before a word containing "conftest.", or (3) at the end.
23613    # Note that $ac_compile itself does not contain backslashes and begins
23614    # with a dollar sign (not a hyphen), so the echo should work correctly.
23615    # The option is referenced via a variable to avoid confusing sed.
23616    lt_compile=`echo "$ac_compile" | $SED \
23617    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23618    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23619    -e 's:$: $lt_compiler_flag:'`
23620    (eval echo "\"\$as_me:23620: $lt_compile\"" >&5)
23621    (eval "$lt_compile" 2>conftest.err)
23622    ac_status=$?
23623    cat conftest.err >&5
23624    echo "$as_me:23624: \$? = $ac_status" >&5
23625    if (exit $ac_status) && test -s "$ac_outfile"; then
23626      # The compiler can only warn and ignore the option if not recognized
23627      # So say no if there are warnings other than the usual output.
23628      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23629      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23630      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23631        lt_cv_prog_compiler_rtti_exceptions=yes
23632      fi
23633    fi
23634    $rm conftest*
23635
23636 fi
23637 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23638 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23639
23640 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23641     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23642 else
23643     :
23644 fi
23645
23646 fi
23647
23648 lt_prog_compiler_wl_GCJ=
23649 lt_prog_compiler_pic_GCJ=
23650 lt_prog_compiler_static_GCJ=
23651
23652 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23653 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23654
23655   if test "$GCC" = yes; then
23656     lt_prog_compiler_wl_GCJ='-Wl,'
23657     lt_prog_compiler_static_GCJ='-static'
23658
23659     case $host_os in
23660       aix*)
23661       # All AIX code is PIC.
23662       if test "$host_cpu" = ia64; then
23663         # AIX 5 now supports IA64 processor
23664         lt_prog_compiler_static_GCJ='-Bstatic'
23665       fi
23666       ;;
23667
23668     amigaos*)
23669       # FIXME: we need at least 68020 code to build shared libraries, but
23670       # adding the `-m68020' flag to GCC prevents building anything better,
23671       # like `-m68040'.
23672       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23673       ;;
23674
23675     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23676       # PIC is the default for these OSes.
23677       ;;
23678
23679     mingw* | pw32* | os2*)
23680       # This hack is so that the source file can tell whether it is being
23681       # built for inclusion in a dll (and should export symbols for example).
23682       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23683       ;;
23684
23685     darwin* | rhapsody*)
23686       # PIC is the default on this platform
23687       # Common symbols not allowed in MH_DYLIB files
23688       lt_prog_compiler_pic_GCJ='-fno-common'
23689       ;;
23690
23691     interix3*)
23692       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23693       # Instead, we relocate shared libraries at runtime.
23694       ;;
23695
23696     msdosdjgpp*)
23697       # Just because we use GCC doesn't mean we suddenly get shared libraries
23698       # on systems that don't support them.
23699       lt_prog_compiler_can_build_shared_GCJ=no
23700       enable_shared=no
23701       ;;
23702
23703     sysv4*MP*)
23704       if test -d /usr/nec; then
23705         lt_prog_compiler_pic_GCJ=-Kconform_pic
23706       fi
23707       ;;
23708
23709     hpux*)
23710       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23711       # not for PA HP-UX.
23712       case $host_cpu in
23713       hppa*64*|ia64*)
23714         # +Z the default
23715         ;;
23716       *)
23717         lt_prog_compiler_pic_GCJ='-fPIC'
23718         ;;
23719       esac
23720       ;;
23721
23722     *)
23723       lt_prog_compiler_pic_GCJ='-fPIC'
23724       ;;
23725     esac
23726   else
23727     # PORTME Check for flag to pass linker flags through the system compiler.
23728     case $host_os in
23729     aix*)
23730       lt_prog_compiler_wl_GCJ='-Wl,'
23731       if test "$host_cpu" = ia64; then
23732         # AIX 5 now supports IA64 processor
23733         lt_prog_compiler_static_GCJ='-Bstatic'
23734       else
23735         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23736       fi
23737       ;;
23738       darwin*)
23739         # PIC is the default on this platform
23740         # Common symbols not allowed in MH_DYLIB files
23741        case $cc_basename in
23742          xlc*)
23743          lt_prog_compiler_pic_GCJ='-qnocommon'
23744          lt_prog_compiler_wl_GCJ='-Wl,'
23745          ;;
23746        esac
23747        ;;
23748
23749     mingw* | pw32* | os2*)
23750       # This hack is so that the source file can tell whether it is being
23751       # built for inclusion in a dll (and should export symbols for example).
23752       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23753       ;;
23754
23755     hpux9* | hpux10* | hpux11*)
23756       lt_prog_compiler_wl_GCJ='-Wl,'
23757       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23758       # not for PA HP-UX.
23759       case $host_cpu in
23760       hppa*64*|ia64*)
23761         # +Z the default
23762         ;;
23763       *)
23764         lt_prog_compiler_pic_GCJ='+Z'
23765         ;;
23766       esac
23767       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23768       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23769       ;;
23770
23771     irix5* | irix6* | nonstopux*)
23772       lt_prog_compiler_wl_GCJ='-Wl,'
23773       # PIC (with -KPIC) is the default.
23774       lt_prog_compiler_static_GCJ='-non_shared'
23775       ;;
23776
23777     newsos6)
23778       lt_prog_compiler_pic_GCJ='-KPIC'
23779       lt_prog_compiler_static_GCJ='-Bstatic'
23780       ;;
23781
23782     linux*)
23783       case $cc_basename in
23784       icc* | ecc*)
23785         lt_prog_compiler_wl_GCJ='-Wl,'
23786         lt_prog_compiler_pic_GCJ='-KPIC'
23787         lt_prog_compiler_static_GCJ='-static'
23788         ;;
23789       pgcc* | pgf77* | pgf90* | pgf95*)
23790         # Portland Group compilers (*not* the Pentium gcc compiler,
23791         # which looks to be a dead project)
23792         lt_prog_compiler_wl_GCJ='-Wl,'
23793         lt_prog_compiler_pic_GCJ='-fpic'
23794         lt_prog_compiler_static_GCJ='-Bstatic'
23795         ;;
23796       ccc*)
23797         lt_prog_compiler_wl_GCJ='-Wl,'
23798         # All Alpha code is PIC.
23799         lt_prog_compiler_static_GCJ='-non_shared'
23800         ;;
23801       esac
23802       ;;
23803
23804     osf3* | osf4* | osf5*)
23805       lt_prog_compiler_wl_GCJ='-Wl,'
23806       # All OSF/1 code is PIC.
23807       lt_prog_compiler_static_GCJ='-non_shared'
23808       ;;
23809
23810     solaris*)
23811       lt_prog_compiler_pic_GCJ='-KPIC'
23812       lt_prog_compiler_static_GCJ='-Bstatic'
23813       case $cc_basename in
23814       f77* | f90* | f95*)
23815         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23816       *)
23817         lt_prog_compiler_wl_GCJ='-Wl,';;
23818       esac
23819       ;;
23820
23821     sunos4*)
23822       lt_prog_compiler_wl_GCJ='-Qoption ld '
23823       lt_prog_compiler_pic_GCJ='-PIC'
23824       lt_prog_compiler_static_GCJ='-Bstatic'
23825       ;;
23826
23827     sysv4 | sysv4.2uw2* | sysv4.3*)
23828       lt_prog_compiler_wl_GCJ='-Wl,'
23829       lt_prog_compiler_pic_GCJ='-KPIC'
23830       lt_prog_compiler_static_GCJ='-Bstatic'
23831       ;;
23832
23833     sysv4*MP*)
23834       if test -d /usr/nec ;then
23835         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23836         lt_prog_compiler_static_GCJ='-Bstatic'
23837       fi
23838       ;;
23839
23840     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23841       lt_prog_compiler_wl_GCJ='-Wl,'
23842       lt_prog_compiler_pic_GCJ='-KPIC'
23843       lt_prog_compiler_static_GCJ='-Bstatic'
23844       ;;
23845
23846     unicos*)
23847       lt_prog_compiler_wl_GCJ='-Wl,'
23848       lt_prog_compiler_can_build_shared_GCJ=no
23849       ;;
23850
23851     uts4*)
23852       lt_prog_compiler_pic_GCJ='-pic'
23853       lt_prog_compiler_static_GCJ='-Bstatic'
23854       ;;
23855
23856     *)
23857       lt_prog_compiler_can_build_shared_GCJ=no
23858       ;;
23859     esac
23860   fi
23861
23862 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23863 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23864
23865 #
23866 # Check to make sure the PIC flag actually works.
23867 #
23868 if test -n "$lt_prog_compiler_pic_GCJ"; then
23869
23870 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23871 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23872 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23873   echo $ECHO_N "(cached) $ECHO_C" >&6
23874 else
23875   lt_prog_compiler_pic_works_GCJ=no
23876   ac_outfile=conftest.$ac_objext
23877    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23878    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23879    # Insert the option either (1) after the last *FLAGS variable, or
23880    # (2) before a word containing "conftest.", or (3) at the end.
23881    # Note that $ac_compile itself does not contain backslashes and begins
23882    # with a dollar sign (not a hyphen), so the echo should work correctly.
23883    # The option is referenced via a variable to avoid confusing sed.
23884    lt_compile=`echo "$ac_compile" | $SED \
23885    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23886    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23887    -e 's:$: $lt_compiler_flag:'`
23888    (eval echo "\"\$as_me:23888: $lt_compile\"" >&5)
23889    (eval "$lt_compile" 2>conftest.err)
23890    ac_status=$?
23891    cat conftest.err >&5
23892    echo "$as_me:23892: \$? = $ac_status" >&5
23893    if (exit $ac_status) && test -s "$ac_outfile"; then
23894      # The compiler can only warn and ignore the option if not recognized
23895      # So say no if there are warnings other than the usual output.
23896      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23897      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23898      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23899        lt_prog_compiler_pic_works_GCJ=yes
23900      fi
23901    fi
23902    $rm conftest*
23903
23904 fi
23905 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23906 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23907
23908 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23909     case $lt_prog_compiler_pic_GCJ in
23910      "" | " "*) ;;
23911      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23912      esac
23913 else
23914     lt_prog_compiler_pic_GCJ=
23915      lt_prog_compiler_can_build_shared_GCJ=no
23916 fi
23917
23918 fi
23919 case $host_os in
23920   # For platforms which do not support PIC, -DPIC is meaningless:
23921   *djgpp*)
23922     lt_prog_compiler_pic_GCJ=
23923     ;;
23924   *)
23925     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23926     ;;
23927 esac
23928
23929 #
23930 # Check to make sure the static flag actually works.
23931 #
23932 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23933 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23934 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23935 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23936   echo $ECHO_N "(cached) $ECHO_C" >&6
23937 else
23938   lt_prog_compiler_static_works_GCJ=no
23939    save_LDFLAGS="$LDFLAGS"
23940    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23941    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23942    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23943      # The linker can only warn and ignore the option if not recognized
23944      # So say no if there are warnings
23945      if test -s conftest.err; then
23946        # Append any errors to the config.log.
23947        cat conftest.err 1>&5
23948        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23949        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23950        if diff conftest.exp conftest.er2 >/dev/null; then
23951          lt_prog_compiler_static_works_GCJ=yes
23952        fi
23953      else
23954        lt_prog_compiler_static_works_GCJ=yes
23955      fi
23956    fi
23957    $rm conftest*
23958    LDFLAGS="$save_LDFLAGS"
23959
23960 fi
23961 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23962 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23963
23964 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23965     :
23966 else
23967     lt_prog_compiler_static_GCJ=
23968 fi
23969
23970
23971 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23972 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23973 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23974   echo $ECHO_N "(cached) $ECHO_C" >&6
23975 else
23976   lt_cv_prog_compiler_c_o_GCJ=no
23977    $rm -r conftest 2>/dev/null
23978    mkdir conftest
23979    cd conftest
23980    mkdir out
23981    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23982
23983    lt_compiler_flag="-o out/conftest2.$ac_objext"
23984    # Insert the option either (1) after the last *FLAGS variable, or
23985    # (2) before a word containing "conftest.", or (3) at the end.
23986    # Note that $ac_compile itself does not contain backslashes and begins
23987    # with a dollar sign (not a hyphen), so the echo should work correctly.
23988    lt_compile=`echo "$ac_compile" | $SED \
23989    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23990    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23991    -e 's:$: $lt_compiler_flag:'`
23992    (eval echo "\"\$as_me:23992: $lt_compile\"" >&5)
23993    (eval "$lt_compile" 2>out/conftest.err)
23994    ac_status=$?
23995    cat out/conftest.err >&5
23996    echo "$as_me:23996: \$? = $ac_status" >&5
23997    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23998    then
23999      # The compiler can only warn and ignore the option if not recognized
24000      # So say no if there are warnings
24001      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24002      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24003      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24004        lt_cv_prog_compiler_c_o_GCJ=yes
24005      fi
24006    fi
24007    chmod u+w . 2>&5
24008    $rm conftest*
24009    # SGI C++ compiler will create directory out/ii_files/ for
24010    # template instantiation
24011    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24012    $rm out/* && rmdir out
24013    cd ..
24014    rmdir conftest
24015    $rm conftest*
24016
24017 fi
24018 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24019 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24020
24021
24022 hard_links="nottested"
24023 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24024   # do not overwrite the value of need_locks provided by the user
24025   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24026 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24027   hard_links=yes
24028   $rm conftest*
24029   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24030   touch conftest.a
24031   ln conftest.a conftest.b 2>&5 || hard_links=no
24032   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24033   { echo "$as_me:$LINENO: result: $hard_links" >&5
24034 echo "${ECHO_T}$hard_links" >&6; }
24035   if test "$hard_links" = no; then
24036     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24037 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24038     need_locks=warn
24039   fi
24040 else
24041   need_locks=no
24042 fi
24043
24044 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24045 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24046
24047   runpath_var=
24048   allow_undefined_flag_GCJ=
24049   enable_shared_with_static_runtimes_GCJ=no
24050   archive_cmds_GCJ=
24051   archive_expsym_cmds_GCJ=
24052   old_archive_From_new_cmds_GCJ=
24053   old_archive_from_expsyms_cmds_GCJ=
24054   export_dynamic_flag_spec_GCJ=
24055   whole_archive_flag_spec_GCJ=
24056   thread_safe_flag_spec_GCJ=
24057   hardcode_libdir_flag_spec_GCJ=
24058   hardcode_libdir_flag_spec_ld_GCJ=
24059   hardcode_libdir_separator_GCJ=
24060   hardcode_direct_GCJ=no
24061   hardcode_minus_L_GCJ=no
24062   hardcode_shlibpath_var_GCJ=unsupported
24063   link_all_deplibs_GCJ=unknown
24064   hardcode_automatic_GCJ=no
24065   module_cmds_GCJ=
24066   module_expsym_cmds_GCJ=
24067   always_export_symbols_GCJ=no
24068   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24069   # include_expsyms should be a list of space-separated symbols to be *always*
24070   # included in the symbol list
24071   include_expsyms_GCJ=
24072   # exclude_expsyms can be an extended regexp of symbols to exclude
24073   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24074   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24075   # as well as any symbol that contains `d'.
24076   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24077   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24078   # platforms (ab)use it in PIC code, but their linkers get confused if
24079   # the symbol is explicitly referenced.  Since portable code cannot
24080   # rely on this symbol name, it's probably fine to never include it in
24081   # preloaded symbol tables.
24082   extract_expsyms_cmds=
24083   # Just being paranoid about ensuring that cc_basename is set.
24084   for cc_temp in $compiler""; do
24085   case $cc_temp in
24086     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24087     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24088     \-*) ;;
24089     *) break;;
24090   esac
24091 done
24092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24093
24094   case $host_os in
24095   cygwin* | mingw* | pw32*)
24096     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24097     # When not using gcc, we currently assume that we are using
24098     # Microsoft Visual C++.
24099     if test "$GCC" != yes; then
24100       with_gnu_ld=no
24101     fi
24102     ;;
24103   interix*)
24104     # we just hope/assume this is gcc and not c89 (= MSVC++)
24105     with_gnu_ld=yes
24106     ;;
24107   openbsd*)
24108     with_gnu_ld=no
24109     ;;
24110   esac
24111
24112   ld_shlibs_GCJ=yes
24113   if test "$with_gnu_ld" = yes; then
24114     # If archive_cmds runs LD, not CC, wlarc should be empty
24115     wlarc='${wl}'
24116
24117     # Set some defaults for GNU ld with shared library support. These
24118     # are reset later if shared libraries are not supported. Putting them
24119     # here allows them to be overridden if necessary.
24120     runpath_var=LD_RUN_PATH
24121     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24122     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24123     # ancient GNU ld didn't support --whole-archive et. al.
24124     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24125         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24126       else
24127         whole_archive_flag_spec_GCJ=
24128     fi
24129     supports_anon_versioning=no
24130     case `$LD -v 2>/dev/null` in
24131       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24132       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24133       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24134       *\ 2.11.*) ;; # other 2.11 versions
24135       *) supports_anon_versioning=yes ;;
24136     esac
24137
24138     # See if GNU ld supports shared libraries.
24139     case $host_os in
24140     aix3* | aix4* | aix5*)
24141       # On AIX/PPC, the GNU linker is very broken
24142       if test "$host_cpu" != ia64; then
24143         ld_shlibs_GCJ=no
24144         cat <<EOF 1>&2
24145
24146 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24147 *** to be unable to reliably create shared libraries on AIX.
24148 *** Therefore, libtool is disabling shared libraries support.  If you
24149 *** really care for shared libraries, you may want to modify your PATH
24150 *** so that a non-GNU linker is found, and then restart.
24151
24152 EOF
24153       fi
24154       ;;
24155
24156     amigaos*)
24157       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)'
24158       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24159       hardcode_minus_L_GCJ=yes
24160
24161       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24162       # that the semantics of dynamic libraries on AmigaOS, at least up
24163       # to version 4, is to share data among multiple programs linked
24164       # with the same dynamic library.  Since this doesn't match the
24165       # behavior of shared libraries on other platforms, we can't use
24166       # them.
24167       ld_shlibs_GCJ=no
24168       ;;
24169
24170     beos*)
24171       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24172         allow_undefined_flag_GCJ=unsupported
24173         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24174         # support --undefined.  This deserves some investigation.  FIXME
24175         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24176       else
24177         ld_shlibs_GCJ=no
24178       fi
24179       ;;
24180
24181     cygwin* | mingw* | pw32*)
24182       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24183       # as there is no search path for DLLs.
24184       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24185       allow_undefined_flag_GCJ=unsupported
24186       always_export_symbols_GCJ=no
24187       enable_shared_with_static_runtimes_GCJ=yes
24188       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24189
24190       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24191         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24192         # If the export-symbols file already is a .def file (1st line
24193         # is EXPORTS), use it as is; otherwise, prepend...
24194         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24195           cp $export_symbols $output_objdir/$soname.def;
24196         else
24197           echo EXPORTS > $output_objdir/$soname.def;
24198           cat $export_symbols >> $output_objdir/$soname.def;
24199         fi~
24200         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24201       else
24202         ld_shlibs_GCJ=no
24203       fi
24204       ;;
24205
24206     interix3*)
24207       hardcode_direct_GCJ=no
24208       hardcode_shlibpath_var_GCJ=no
24209       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24210       export_dynamic_flag_spec_GCJ='${wl}-E'
24211       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24212       # Instead, shared libraries are loaded at an image base (0x10000000 by
24213       # default) and relocated if they conflict, which is a slow very memory
24214       # consuming and fragmenting process.  To avoid this, we pick a random,
24215       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24216       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24217       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'
24218       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'
24219       ;;
24220
24221     linux*)
24222       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24223         tmp_addflag=
24224         case $cc_basename,$host_cpu in
24225         pgcc*)                          # Portland Group C compiler
24226           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'
24227           tmp_addflag=' $pic_flag'
24228           ;;
24229         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24230           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'
24231           tmp_addflag=' $pic_flag -Mnomain' ;;
24232         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24233           tmp_addflag=' -i_dynamic' ;;
24234         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24235           tmp_addflag=' -i_dynamic -nofor_main' ;;
24236         ifc* | ifort*)                  # Intel Fortran compiler
24237           tmp_addflag=' -nofor_main' ;;
24238         esac
24239         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24240
24241         if test $supports_anon_versioning = yes; then
24242           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24243   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24244   $echo "local: *; };" >> $output_objdir/$libname.ver~
24245           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24246         fi
24247       else
24248         ld_shlibs_GCJ=no
24249       fi
24250       ;;
24251
24252     netbsd*)
24253       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24254         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24255         wlarc=
24256       else
24257         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24258         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24259       fi
24260       ;;
24261
24262     solaris*)
24263       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24264         ld_shlibs_GCJ=no
24265         cat <<EOF 1>&2
24266
24267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24268 *** create shared libraries on Solaris systems.  Therefore, libtool
24269 *** is disabling shared libraries support.  We urge you to upgrade GNU
24270 *** binutils to release 2.9.1 or newer.  Another option is to modify
24271 *** your PATH or compiler configuration so that the native linker is
24272 *** used, and then restart.
24273
24274 EOF
24275       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24276         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24277         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24278       else
24279         ld_shlibs_GCJ=no
24280       fi
24281       ;;
24282
24283     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24284       case `$LD -v 2>&1` in
24285         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24286         ld_shlibs_GCJ=no
24287         cat <<_LT_EOF 1>&2
24288
24289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24290 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24291 *** is disabling shared libraries support.  We urge you to upgrade GNU
24292 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24293 *** your PATH or compiler configuration so that the native linker is
24294 *** used, and then restart.
24295
24296 _LT_EOF
24297         ;;
24298         *)
24299           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24300             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24301             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24302             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24303           else
24304             ld_shlibs_GCJ=no
24305           fi
24306         ;;
24307       esac
24308       ;;
24309
24310     sunos4*)
24311       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24312       wlarc=
24313       hardcode_direct_GCJ=yes
24314       hardcode_shlibpath_var_GCJ=no
24315       ;;
24316
24317     *)
24318       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24319         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24320         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24321       else
24322         ld_shlibs_GCJ=no
24323       fi
24324       ;;
24325     esac
24326
24327     if test "$ld_shlibs_GCJ" = no; then
24328       runpath_var=
24329       hardcode_libdir_flag_spec_GCJ=
24330       export_dynamic_flag_spec_GCJ=
24331       whole_archive_flag_spec_GCJ=
24332     fi
24333   else
24334     # PORTME fill in a description of your system's linker (not GNU ld)
24335     case $host_os in
24336     aix3*)
24337       allow_undefined_flag_GCJ=unsupported
24338       always_export_symbols_GCJ=yes
24339       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'
24340       # Note: this linker hardcodes the directories in LIBPATH if there
24341       # are no directories specified by -L.
24342       hardcode_minus_L_GCJ=yes
24343       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24344         # Neither direct hardcoding nor static linking is supported with a
24345         # broken collect2.
24346         hardcode_direct_GCJ=unsupported
24347       fi
24348       ;;
24349
24350     aix4* | aix5*)
24351       if test "$host_cpu" = ia64; then
24352         # On IA64, the linker does run time linking by default, so we don't
24353         # have to do anything special.
24354         aix_use_runtimelinking=no
24355         exp_sym_flag='-Bexport'
24356         no_entry_flag=""
24357       else
24358         # If we're using GNU nm, then we don't want the "-C" option.
24359         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24360         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24361           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'
24362         else
24363           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'
24364         fi
24365         aix_use_runtimelinking=no
24366
24367         # Test if we are trying to use run time linking or normal
24368         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24369         # need to do runtime linking.
24370         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24371           for ld_flag in $LDFLAGS; do
24372           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24373             aix_use_runtimelinking=yes
24374             break
24375           fi
24376           done
24377           ;;
24378         esac
24379
24380         exp_sym_flag='-bexport'
24381         no_entry_flag='-bnoentry'
24382       fi
24383
24384       # When large executables or shared objects are built, AIX ld can
24385       # have problems creating the table of contents.  If linking a library
24386       # or program results in "error TOC overflow" add -mminimal-toc to
24387       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24388       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24389
24390       archive_cmds_GCJ=''
24391       hardcode_direct_GCJ=yes
24392       hardcode_libdir_separator_GCJ=':'
24393       link_all_deplibs_GCJ=yes
24394
24395       if test "$GCC" = yes; then
24396         case $host_os in aix4.[012]|aix4.[012].*)
24397         # We only want to do this on AIX 4.2 and lower, the check
24398         # below for broken collect2 doesn't work under 4.3+
24399           collect2name=`${CC} -print-prog-name=collect2`
24400           if test -f "$collect2name" && \
24401            strings "$collect2name" | grep resolve_lib_name >/dev/null
24402           then
24403           # We have reworked collect2
24404           hardcode_direct_GCJ=yes
24405           else
24406           # We have old collect2
24407           hardcode_direct_GCJ=unsupported
24408           # It fails to find uninstalled libraries when the uninstalled
24409           # path is not listed in the libpath.  Setting hardcode_minus_L
24410           # to unsupported forces relinking
24411           hardcode_minus_L_GCJ=yes
24412           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24413           hardcode_libdir_separator_GCJ=
24414           fi
24415           ;;
24416         esac
24417         shared_flag='-shared'
24418         if test "$aix_use_runtimelinking" = yes; then
24419           shared_flag="$shared_flag "'${wl}-G'
24420         fi
24421       else
24422         # not using gcc
24423         if test "$host_cpu" = ia64; then
24424         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24425         # chokes on -Wl,-G. The following line is correct:
24426           shared_flag='-G'
24427         else
24428           if test "$aix_use_runtimelinking" = yes; then
24429             shared_flag='${wl}-G'
24430           else
24431             shared_flag='${wl}-bM:SRE'
24432           fi
24433         fi
24434       fi
24435
24436       # It seems that -bexpall does not export symbols beginning with
24437       # underscore (_), so it is better to generate a list of symbols to export.
24438       always_export_symbols_GCJ=yes
24439       if test "$aix_use_runtimelinking" = yes; then
24440         # Warning - without using the other runtime loading flags (-brtl),
24441         # -berok will link without error, but may produce a broken library.
24442         allow_undefined_flag_GCJ='-berok'
24443        # Determine the default libpath from the value encoded in an empty executable.
24444        cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h.  */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h.  */
24450
24451 int
24452 main ()
24453 {
24454
24455   ;
24456   return 0;
24457 }
24458 _ACEOF
24459 rm -f conftest.$ac_objext conftest$ac_exeext
24460 if { (ac_try="$ac_link"
24461 case "(($ac_try" in
24462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463   *) ac_try_echo=$ac_try;;
24464 esac
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466   (eval "$ac_link") 2>conftest.er1
24467   ac_status=$?
24468   grep -v '^ *+' conftest.er1 >conftest.err
24469   rm -f conftest.er1
24470   cat conftest.err >&5
24471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472   (exit $ac_status); } &&
24473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24474   { (case "(($ac_try" in
24475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476   *) ac_try_echo=$ac_try;;
24477 esac
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479   (eval "$ac_try") 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; } &&
24483          { ac_try='test -s conftest$ac_exeext'
24484   { (case "(($ac_try" in
24485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486   *) ac_try_echo=$ac_try;;
24487 esac
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489   (eval "$ac_try") 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; }; then
24493
24494 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24495 }'`
24496 # Check for a 64-bit object if we didn't find anything.
24497 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; }
24498 }'`; fi
24499 else
24500   echo "$as_me: failed program was:" >&5
24501 sed 's/^/| /' conftest.$ac_ext >&5
24502
24503
24504 fi
24505
24506 rm -f core conftest.err conftest.$ac_objext \
24507       conftest$ac_exeext conftest.$ac_ext
24508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24509
24510        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24511         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"
24512        else
24513         if test "$host_cpu" = ia64; then
24514           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24515           allow_undefined_flag_GCJ="-z nodefs"
24516           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"
24517         else
24518          # Determine the default libpath from the value encoded in an empty executable.
24519          cat >conftest.$ac_ext <<_ACEOF
24520 /* confdefs.h.  */
24521 _ACEOF
24522 cat confdefs.h >>conftest.$ac_ext
24523 cat >>conftest.$ac_ext <<_ACEOF
24524 /* end confdefs.h.  */
24525
24526 int
24527 main ()
24528 {
24529
24530   ;
24531   return 0;
24532 }
24533 _ACEOF
24534 rm -f conftest.$ac_objext conftest$ac_exeext
24535 if { (ac_try="$ac_link"
24536 case "(($ac_try" in
24537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538   *) ac_try_echo=$ac_try;;
24539 esac
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541   (eval "$ac_link") 2>conftest.er1
24542   ac_status=$?
24543   grep -v '^ *+' conftest.er1 >conftest.err
24544   rm -f conftest.er1
24545   cat conftest.err >&5
24546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547   (exit $ac_status); } &&
24548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24549   { (case "(($ac_try" in
24550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551   *) ac_try_echo=$ac_try;;
24552 esac
24553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554   (eval "$ac_try") 2>&5
24555   ac_status=$?
24556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557   (exit $ac_status); }; } &&
24558          { ac_try='test -s conftest$ac_exeext'
24559   { (case "(($ac_try" in
24560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561   *) ac_try_echo=$ac_try;;
24562 esac
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564   (eval "$ac_try") 2>&5
24565   ac_status=$?
24566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567   (exit $ac_status); }; }; then
24568
24569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24570 }'`
24571 # Check for a 64-bit object if we didn't find anything.
24572 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; }
24573 }'`; fi
24574 else
24575   echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24577
24578
24579 fi
24580
24581 rm -f core conftest.err conftest.$ac_objext \
24582       conftest$ac_exeext conftest.$ac_ext
24583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24584
24585          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24586           # Warning - without using the other run time loading flags,
24587           # -berok will link without error, but may produce a broken library.
24588           no_undefined_flag_GCJ=' ${wl}-bernotok'
24589           allow_undefined_flag_GCJ=' ${wl}-berok'
24590           # Exported symbols can be pulled into shared objects from archives
24591           whole_archive_flag_spec_GCJ='$convenience'
24592           archive_cmds_need_lc_GCJ=yes
24593           # This is similar to how AIX traditionally builds its shared libraries.
24594           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'
24595         fi
24596       fi
24597       ;;
24598
24599     amigaos*)
24600       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)'
24601       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24602       hardcode_minus_L_GCJ=yes
24603       # see comment about different semantics on the GNU ld section
24604       ld_shlibs_GCJ=no
24605       ;;
24606
24607     bsdi[45]*)
24608       export_dynamic_flag_spec_GCJ=-rdynamic
24609       ;;
24610
24611     cygwin* | mingw* | pw32*)
24612       # When not using gcc, we currently assume that we are using
24613       # Microsoft Visual C++.
24614       # hardcode_libdir_flag_spec is actually meaningless, as there is
24615       # no search path for DLLs.
24616       hardcode_libdir_flag_spec_GCJ=' '
24617       allow_undefined_flag_GCJ=unsupported
24618       # Tell ltmain to make .lib files, not .a files.
24619       libext=lib
24620       # Tell ltmain to make .dll files, not .so files.
24621       shrext_cmds=".dll"
24622       # FIXME: Setting linknames here is a bad hack.
24623       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24624       # The linker will automatically build a .lib file if we build a DLL.
24625       old_archive_From_new_cmds_GCJ='true'
24626       # FIXME: Should let the user specify the lib program.
24627       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24628       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24629       enable_shared_with_static_runtimes_GCJ=yes
24630       ;;
24631
24632     darwin* | rhapsody*)
24633       case $host_os in
24634         rhapsody* | darwin1.[012])
24635          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24636          ;;
24637        *) # Darwin 1.3 on
24638          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24639            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24640          else
24641            case ${MACOSX_DEPLOYMENT_TARGET} in
24642              10.[012])
24643                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24644                ;;
24645              10.*)
24646                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24647                ;;
24648            esac
24649          fi
24650          ;;
24651       esac
24652       archive_cmds_need_lc_GCJ=no
24653       hardcode_direct_GCJ=no
24654       hardcode_automatic_GCJ=yes
24655       hardcode_shlibpath_var_GCJ=unsupported
24656       whole_archive_flag_spec_GCJ=''
24657       link_all_deplibs_GCJ=yes
24658     if test "$GCC" = yes ; then
24659         output_verbose_link_cmd='echo'
24660         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24661       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24662       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24663       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}'
24664       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}'
24665     else
24666       case $cc_basename in
24667         xlc*)
24668          output_verbose_link_cmd='echo'
24669          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24670          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24671           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24672          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}'
24673           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}'
24674           ;;
24675        *)
24676          ld_shlibs_GCJ=no
24677           ;;
24678       esac
24679     fi
24680       ;;
24681
24682     dgux*)
24683       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24684       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24685       hardcode_shlibpath_var_GCJ=no
24686       ;;
24687
24688     freebsd1*)
24689       ld_shlibs_GCJ=no
24690       ;;
24691
24692     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24693     # support.  Future versions do this automatically, but an explicit c++rt0.o
24694     # does not break anything, and helps significantly (at the cost of a little
24695     # extra space).
24696     freebsd2.2*)
24697       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24698       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24699       hardcode_direct_GCJ=yes
24700       hardcode_shlibpath_var_GCJ=no
24701       ;;
24702
24703     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24704     freebsd2*)
24705       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24706       hardcode_direct_GCJ=yes
24707       hardcode_minus_L_GCJ=yes
24708       hardcode_shlibpath_var_GCJ=no
24709       ;;
24710
24711     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24712     freebsd* | kfreebsd*-gnu | dragonfly*)
24713       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24714       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24715       hardcode_direct_GCJ=yes
24716       hardcode_shlibpath_var_GCJ=no
24717       ;;
24718
24719     hpux9*)
24720       if test "$GCC" = yes; then
24721         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'
24722       else
24723         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'
24724       fi
24725       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24726       hardcode_libdir_separator_GCJ=:
24727       hardcode_direct_GCJ=yes
24728
24729       # hardcode_minus_L: Not really in the search PATH,
24730       # but as the default location of the library.
24731       hardcode_minus_L_GCJ=yes
24732       export_dynamic_flag_spec_GCJ='${wl}-E'
24733       ;;
24734
24735     hpux10*)
24736       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24737         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24738       else
24739         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24740       fi
24741       if test "$with_gnu_ld" = no; then
24742         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24743         hardcode_libdir_separator_GCJ=:
24744
24745         hardcode_direct_GCJ=yes
24746         export_dynamic_flag_spec_GCJ='${wl}-E'
24747
24748         # hardcode_minus_L: Not really in the search PATH,
24749         # but as the default location of the library.
24750         hardcode_minus_L_GCJ=yes
24751       fi
24752       ;;
24753
24754     hpux11*)
24755       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24756         case $host_cpu in
24757         hppa*64*)
24758           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24759           ;;
24760         ia64*)
24761           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24762           ;;
24763         *)
24764           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24765           ;;
24766         esac
24767       else
24768         case $host_cpu in
24769         hppa*64*)
24770           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24771           ;;
24772         ia64*)
24773           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24774           ;;
24775         *)
24776           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24777           ;;
24778         esac
24779       fi
24780       if test "$with_gnu_ld" = no; then
24781         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24782         hardcode_libdir_separator_GCJ=:
24783
24784         case $host_cpu in
24785         hppa*64*|ia64*)
24786           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24787           hardcode_direct_GCJ=no
24788           hardcode_shlibpath_var_GCJ=no
24789           ;;
24790         *)
24791           hardcode_direct_GCJ=yes
24792           export_dynamic_flag_spec_GCJ='${wl}-E'
24793
24794           # hardcode_minus_L: Not really in the search PATH,
24795           # but as the default location of the library.
24796           hardcode_minus_L_GCJ=yes
24797           ;;
24798         esac
24799       fi
24800       ;;
24801
24802     irix5* | irix6* | nonstopux*)
24803       if test "$GCC" = yes; then
24804         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'
24805       else
24806         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'
24807         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24808       fi
24809       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24810       hardcode_libdir_separator_GCJ=:
24811       link_all_deplibs_GCJ=yes
24812       ;;
24813
24814     netbsd*)
24815       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24816         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24817       else
24818         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24819       fi
24820       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24821       hardcode_direct_GCJ=yes
24822       hardcode_shlibpath_var_GCJ=no
24823       ;;
24824
24825     newsos6)
24826       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24827       hardcode_direct_GCJ=yes
24828       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24829       hardcode_libdir_separator_GCJ=:
24830       hardcode_shlibpath_var_GCJ=no
24831       ;;
24832
24833     openbsd*)
24834       hardcode_direct_GCJ=yes
24835       hardcode_shlibpath_var_GCJ=no
24836       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24837         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24838         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24839         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24840         export_dynamic_flag_spec_GCJ='${wl}-E'
24841       else
24842        case $host_os in
24843          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24844            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24845            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24846            ;;
24847          *)
24848            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24849            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24850            ;;
24851        esac
24852       fi
24853       ;;
24854
24855     os2*)
24856       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24857       hardcode_minus_L_GCJ=yes
24858       allow_undefined_flag_GCJ=unsupported
24859       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'
24860       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24861       ;;
24862
24863     osf3*)
24864       if test "$GCC" = yes; then
24865         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24866         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'
24867       else
24868         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24869         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'
24870       fi
24871       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24872       hardcode_libdir_separator_GCJ=:
24873       ;;
24874
24875     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24876       if test "$GCC" = yes; then
24877         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24878         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'
24879         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24880       else
24881         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24882         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'
24883         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~
24884         $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'
24885
24886         # Both c and cxx compiler support -rpath directly
24887         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24888       fi
24889       hardcode_libdir_separator_GCJ=:
24890       ;;
24891
24892     solaris*)
24893       no_undefined_flag_GCJ=' -z text'
24894       if test "$GCC" = yes; then
24895         wlarc='${wl}'
24896         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24897         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24898           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24899       else
24900         wlarc=''
24901         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24902         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24903         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24904       fi
24905       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24906       hardcode_shlibpath_var_GCJ=no
24907       case $host_os in
24908       solaris2.[0-5] | solaris2.[0-5].*) ;;
24909       *)
24910         # The compiler driver will combine linker options so we
24911         # cannot just pass the convience library names through
24912         # without $wl, iff we do not link with $LD.
24913         # Luckily, gcc supports the same syntax we need for Sun Studio.
24914         # Supported since Solaris 2.6 (maybe 2.5.1?)
24915         case $wlarc in
24916         '')
24917           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24918         *)
24919           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' ;;
24920         esac ;;
24921       esac
24922       link_all_deplibs_GCJ=yes
24923       ;;
24924
24925     sunos4*)
24926       if test "x$host_vendor" = xsequent; then
24927         # Use $CC to link under sequent, because it throws in some extra .o
24928         # files that make .init and .fini sections work.
24929         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24930       else
24931         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24932       fi
24933       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24934       hardcode_direct_GCJ=yes
24935       hardcode_minus_L_GCJ=yes
24936       hardcode_shlibpath_var_GCJ=no
24937       ;;
24938
24939     sysv4)
24940       case $host_vendor in
24941         sni)
24942           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24943           hardcode_direct_GCJ=yes # is this really true???
24944         ;;
24945         siemens)
24946           ## LD is ld it makes a PLAMLIB
24947           ## CC just makes a GrossModule.
24948           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24949           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24950           hardcode_direct_GCJ=no
24951         ;;
24952         motorola)
24953           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24954           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24955         ;;
24956       esac
24957       runpath_var='LD_RUN_PATH'
24958       hardcode_shlibpath_var_GCJ=no
24959       ;;
24960
24961     sysv4.3*)
24962       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24963       hardcode_shlibpath_var_GCJ=no
24964       export_dynamic_flag_spec_GCJ='-Bexport'
24965       ;;
24966
24967     sysv4*MP*)
24968       if test -d /usr/nec; then
24969         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24970         hardcode_shlibpath_var_GCJ=no
24971         runpath_var=LD_RUN_PATH
24972         hardcode_runpath_var=yes
24973         ld_shlibs_GCJ=yes
24974       fi
24975       ;;
24976
24977     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24978       no_undefined_flag_GCJ='${wl}-z,text'
24979       archive_cmds_need_lc_GCJ=no
24980       hardcode_shlibpath_var_GCJ=no
24981       runpath_var='LD_RUN_PATH'
24982
24983       if test "$GCC" = yes; then
24984         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24985         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24986       else
24987         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24988         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24989       fi
24990       ;;
24991
24992     sysv5* | sco3.2v5* | sco5v6*)
24993       # Note: We can NOT use -z defs as we might desire, because we do not
24994       # link with -lc, and that would cause any symbols used from libc to
24995       # always be unresolved, which means just about no library would
24996       # ever link correctly.  If we're not using GNU ld we use -z text
24997       # though, which does catch some bad symbols but isn't as heavy-handed
24998       # as -z defs.
24999       no_undefined_flag_GCJ='${wl}-z,text'
25000       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25001       archive_cmds_need_lc_GCJ=no
25002       hardcode_shlibpath_var_GCJ=no
25003       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25004       hardcode_libdir_separator_GCJ=':'
25005       link_all_deplibs_GCJ=yes
25006       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25007       runpath_var='LD_RUN_PATH'
25008
25009       if test "$GCC" = yes; then
25010         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25011         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25012       else
25013         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25014         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25015       fi
25016       ;;
25017
25018     uts4*)
25019       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25020       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25021       hardcode_shlibpath_var_GCJ=no
25022       ;;
25023
25024     *)
25025       ld_shlibs_GCJ=no
25026       ;;
25027     esac
25028   fi
25029
25030 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25031 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25032 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25033
25034 #
25035 # Do we need to explicitly link libc?
25036 #
25037 case "x$archive_cmds_need_lc_GCJ" in
25038 x|xyes)
25039   # Assume -lc should be added
25040   archive_cmds_need_lc_GCJ=yes
25041
25042   if test "$enable_shared" = yes && test "$GCC" = yes; then
25043     case $archive_cmds_GCJ in
25044     *'~'*)
25045       # FIXME: we may have to deal with multi-command sequences.
25046       ;;
25047     '$CC '*)
25048       # Test whether the compiler implicitly links with -lc since on some
25049       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25050       # to ld, don't add -lc before -lgcc.
25051       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25053       $rm conftest*
25054       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25055
25056       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25057   (eval $ac_compile) 2>&5
25058   ac_status=$?
25059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060   (exit $ac_status); } 2>conftest.err; then
25061         soname=conftest
25062         lib=conftest
25063         libobjs=conftest.$ac_objext
25064         deplibs=
25065         wl=$lt_prog_compiler_wl_GCJ
25066         pic_flag=$lt_prog_compiler_pic_GCJ
25067         compiler_flags=-v
25068         linker_flags=-v
25069         verstring=
25070         output_objdir=.
25071         libname=conftest
25072         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25073         allow_undefined_flag_GCJ=
25074         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25075   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25076   ac_status=$?
25077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078   (exit $ac_status); }
25079         then
25080           archive_cmds_need_lc_GCJ=no
25081         else
25082           archive_cmds_need_lc_GCJ=yes
25083         fi
25084         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25085       else
25086         cat conftest.err 1>&5
25087       fi
25088       $rm conftest*
25089       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25090 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25091       ;;
25092     esac
25093   fi
25094   ;;
25095 esac
25096
25097 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25098 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25099 library_names_spec=
25100 libname_spec='lib$name'
25101 soname_spec=
25102 shrext_cmds=".so"
25103 postinstall_cmds=
25104 postuninstall_cmds=
25105 finish_cmds=
25106 finish_eval=
25107 shlibpath_var=
25108 shlibpath_overrides_runpath=unknown
25109 version_type=none
25110 dynamic_linker="$host_os ld.so"
25111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25112 if test "$GCC" = yes; then
25113   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25114   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25115     # if the path contains ";" then we assume it to be the separator
25116     # otherwise default to the standard path separator (i.e. ":") - it is
25117     # assumed that no part of a normal pathname contains ";" but that should
25118     # okay in the real world where ";" in dirpaths is itself problematic.
25119     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25120   else
25121     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25122   fi
25123 else
25124   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25125 fi
25126 need_lib_prefix=unknown
25127 hardcode_into_libs=no
25128
25129 # when you set need_version to no, make sure it does not cause -set_version
25130 # flags to be left without arguments
25131 need_version=unknown
25132
25133 case $host_os in
25134 aix3*)
25135   version_type=linux
25136   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25137   shlibpath_var=LIBPATH
25138
25139   # AIX 3 has no versioning support, so we append a major version to the name.
25140   soname_spec='${libname}${release}${shared_ext}$major'
25141   ;;
25142
25143 aix4* | aix5*)
25144   version_type=linux
25145   need_lib_prefix=no
25146   need_version=no
25147   hardcode_into_libs=yes
25148   if test "$host_cpu" = ia64; then
25149     # AIX 5 supports IA64
25150     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25151     shlibpath_var=LD_LIBRARY_PATH
25152   else
25153     # With GCC up to 2.95.x, collect2 would create an import file
25154     # for dependence libraries.  The import file would start with
25155     # the line `#! .'.  This would cause the generated library to
25156     # depend on `.', always an invalid library.  This was fixed in
25157     # development snapshots of GCC prior to 3.0.
25158     case $host_os in
25159       aix4 | aix4.[01] | aix4.[01].*)
25160       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25161            echo ' yes '
25162            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25163         :
25164       else
25165         can_build_shared=no
25166       fi
25167       ;;
25168     esac
25169     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25170     # soname into executable. Probably we can add versioning support to
25171     # collect2, so additional links can be useful in future.
25172     if test "$aix_use_runtimelinking" = yes; then
25173       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25174       # instead of lib<name>.a to let people know that these are not
25175       # typical AIX shared libraries.
25176       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25177     else
25178       # We preserve .a as extension for shared libraries through AIX4.2
25179       # and later when we are not doing run time linking.
25180       library_names_spec='${libname}${release}.a $libname.a'
25181       soname_spec='${libname}${release}${shared_ext}$major'
25182     fi
25183     shlibpath_var=LIBPATH
25184   fi
25185   ;;
25186
25187 amigaos*)
25188   library_names_spec='$libname.ixlibrary $libname.a'
25189   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25190   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'
25191   ;;
25192
25193 beos*)
25194   library_names_spec='${libname}${shared_ext}'
25195   dynamic_linker="$host_os ld.so"
25196   shlibpath_var=LIBRARY_PATH
25197   ;;
25198
25199 bsdi[45]*)
25200   version_type=linux
25201   need_version=no
25202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25203   soname_spec='${libname}${release}${shared_ext}$major'
25204   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25205   shlibpath_var=LD_LIBRARY_PATH
25206   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25207   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25208   # the default ld.so.conf also contains /usr/contrib/lib and
25209   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25210   # libtool to hard-code these into programs
25211   ;;
25212
25213 cygwin* | mingw* | pw32*)
25214   version_type=windows
25215   shrext_cmds=".dll"
25216   need_version=no
25217   need_lib_prefix=no
25218
25219   case $GCC,$host_os in
25220   yes,cygwin* | yes,mingw* | yes,pw32*)
25221     library_names_spec='$libname.dll.a'
25222     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25223     postinstall_cmds='base_file=`basename \${file}`~
25224       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25225       dldir=$destdir/`dirname \$dlpath`~
25226       test -d \$dldir || mkdir -p \$dldir~
25227       $install_prog $dir/$dlname \$dldir/$dlname~
25228       chmod a+x \$dldir/$dlname'
25229     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25230       dlpath=$dir/\$dldll~
25231        $rm \$dlpath'
25232     shlibpath_overrides_runpath=yes
25233
25234     case $host_os in
25235     cygwin*)
25236       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25237       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25238       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25239       ;;
25240     mingw*)
25241       # MinGW DLLs use traditional 'lib' prefix
25242       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25243       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25244       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25245         # It is most probably a Windows format PATH printed by
25246         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25247         # path with ; separators, and with drive letters. We can handle the
25248         # drive letters (cygwin fileutils understands them), so leave them,
25249         # especially as we might pass files found there to a mingw objdump,
25250         # which wouldn't understand a cygwinified path. Ahh.
25251         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25252       else
25253         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25254       fi
25255       ;;
25256     pw32*)
25257       # pw32 DLLs use 'pw' prefix rather than 'lib'
25258       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25259       ;;
25260     esac
25261     ;;
25262
25263   *)
25264     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25265     ;;
25266   esac
25267   dynamic_linker='Win32 ld.exe'
25268   # FIXME: first we should search . and the directory the executable is in
25269   shlibpath_var=PATH
25270   ;;
25271
25272 darwin* | rhapsody*)
25273   dynamic_linker="$host_os dyld"
25274   version_type=darwin
25275   need_lib_prefix=no
25276   need_version=no
25277   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25278   soname_spec='${libname}${release}${major}$shared_ext'
25279   shlibpath_overrides_runpath=yes
25280   shlibpath_var=DYLD_LIBRARY_PATH
25281   shrext_cmds='.dylib'
25282   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25283   if test "$GCC" = yes; then
25284     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"`
25285   else
25286     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25287   fi
25288   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25289   ;;
25290
25291 dgux*)
25292   version_type=linux
25293   need_lib_prefix=no
25294   need_version=no
25295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25296   soname_spec='${libname}${release}${shared_ext}$major'
25297   shlibpath_var=LD_LIBRARY_PATH
25298   ;;
25299
25300 freebsd1*)
25301   dynamic_linker=no
25302   ;;
25303
25304 kfreebsd*-gnu)
25305   version_type=linux
25306   need_lib_prefix=no
25307   need_version=no
25308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25309   soname_spec='${libname}${release}${shared_ext}$major'
25310   shlibpath_var=LD_LIBRARY_PATH
25311   shlibpath_overrides_runpath=no
25312   hardcode_into_libs=yes
25313   dynamic_linker='GNU ld.so'
25314   ;;
25315
25316 freebsd* | dragonfly*)
25317   # DragonFly does not have aout.  When/if they implement a new
25318   # versioning mechanism, adjust this.
25319   if test -x /usr/bin/objformat; then
25320     objformat=`/usr/bin/objformat`
25321   else
25322     case $host_os in
25323     freebsd[123]*) objformat=aout ;;
25324     *) objformat=elf ;;
25325     esac
25326   fi
25327   version_type=freebsd-$objformat
25328   case $version_type in
25329     freebsd-elf*)
25330       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25331       need_version=no
25332       need_lib_prefix=no
25333       ;;
25334     freebsd-*)
25335       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25336       need_version=yes
25337       ;;
25338   esac
25339   shlibpath_var=LD_LIBRARY_PATH
25340   case $host_os in
25341   freebsd2*)
25342     shlibpath_overrides_runpath=yes
25343     ;;
25344   freebsd3.[01]* | freebsdelf3.[01]*)
25345     shlibpath_overrides_runpath=yes
25346     hardcode_into_libs=yes
25347     ;;
25348   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25349   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25350     shlibpath_overrides_runpath=no
25351     hardcode_into_libs=yes
25352     ;;
25353   freebsd*) # from 4.6 on
25354     shlibpath_overrides_runpath=yes
25355     hardcode_into_libs=yes
25356     ;;
25357   esac
25358   ;;
25359
25360 gnu*)
25361   version_type=linux
25362   need_lib_prefix=no
25363   need_version=no
25364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25365   soname_spec='${libname}${release}${shared_ext}$major'
25366   shlibpath_var=LD_LIBRARY_PATH
25367   hardcode_into_libs=yes
25368   ;;
25369
25370 hpux9* | hpux10* | hpux11*)
25371   # Give a soname corresponding to the major version so that dld.sl refuses to
25372   # link against other versions.
25373   version_type=sunos
25374   need_lib_prefix=no
25375   need_version=no
25376   case $host_cpu in
25377   ia64*)
25378     shrext_cmds='.so'
25379     hardcode_into_libs=yes
25380     dynamic_linker="$host_os dld.so"
25381     shlibpath_var=LD_LIBRARY_PATH
25382     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25384     soname_spec='${libname}${release}${shared_ext}$major'
25385     if test "X$HPUX_IA64_MODE" = X32; then
25386       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25387     else
25388       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25389     fi
25390     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25391     ;;
25392    hppa*64*)
25393      shrext_cmds='.sl'
25394      hardcode_into_libs=yes
25395      dynamic_linker="$host_os dld.sl"
25396      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25397      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25398      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25399      soname_spec='${libname}${release}${shared_ext}$major'
25400      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25401      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25402      ;;
25403    *)
25404     shrext_cmds='.sl'
25405     dynamic_linker="$host_os dld.sl"
25406     shlibpath_var=SHLIB_PATH
25407     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25409     soname_spec='${libname}${release}${shared_ext}$major'
25410     ;;
25411   esac
25412   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25413   postinstall_cmds='chmod 555 $lib'
25414   ;;
25415
25416 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25423   shlibpath_var=LD_LIBRARY_PATH
25424   shlibpath_overrides_runpath=no
25425   hardcode_into_libs=yes
25426   ;;
25427
25428 irix5* | irix6* | nonstopux*)
25429   case $host_os in
25430     nonstopux*) version_type=nonstopux ;;
25431     *)
25432         if test "$lt_cv_prog_gnu_ld" = yes; then
25433                 version_type=linux
25434         else
25435                 version_type=irix
25436         fi ;;
25437   esac
25438   need_lib_prefix=no
25439   need_version=no
25440   soname_spec='${libname}${release}${shared_ext}$major'
25441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25442   case $host_os in
25443   irix5* | nonstopux*)
25444     libsuff= shlibsuff=
25445     ;;
25446   *)
25447     case $LD in # libtool.m4 will add one of these switches to LD
25448     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25449       libsuff= shlibsuff= libmagic=32-bit;;
25450     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25451       libsuff=32 shlibsuff=N32 libmagic=N32;;
25452     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25453       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25454     *) libsuff= shlibsuff= libmagic=never-match;;
25455     esac
25456     ;;
25457   esac
25458   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25459   shlibpath_overrides_runpath=no
25460   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25461   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25462   hardcode_into_libs=yes
25463   ;;
25464
25465 # No shared lib support for Linux oldld, aout, or coff.
25466 linux*oldld* | linux*aout* | linux*coff*)
25467   dynamic_linker=no
25468   ;;
25469
25470 # This must be Linux ELF.
25471 linux*)
25472   version_type=linux
25473   need_lib_prefix=no
25474   need_version=no
25475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25476   soname_spec='${libname}${release}${shared_ext}$major'
25477   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25478   shlibpath_var=LD_LIBRARY_PATH
25479   shlibpath_overrides_runpath=no
25480   # This implies no fast_install, which is unacceptable.
25481   # Some rework will be needed to allow for fast_install
25482   # before this can be enabled.
25483   hardcode_into_libs=yes
25484
25485   # Append ld.so.conf contents to the search path
25486   if test -f /etc/ld.so.conf; then
25487     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' ' '`
25488     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25489   fi
25490
25491   # We used to test for /lib/ld.so.1 and disable shared libraries on
25492   # powerpc, because MkLinux only supported shared libraries with the
25493   # GNU dynamic linker.  Since this was broken with cross compilers,
25494   # most powerpc-linux boxes support dynamic linking these days and
25495   # people can always --disable-shared, the test was removed, and we
25496   # assume the GNU/Linux dynamic linker is in use.
25497   dynamic_linker='GNU/Linux ld.so'
25498   ;;
25499
25500 knetbsd*-gnu)
25501   version_type=linux
25502   need_lib_prefix=no
25503   need_version=no
25504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25505   soname_spec='${libname}${release}${shared_ext}$major'
25506   shlibpath_var=LD_LIBRARY_PATH
25507   shlibpath_overrides_runpath=no
25508   hardcode_into_libs=yes
25509   dynamic_linker='GNU ld.so'
25510   ;;
25511
25512 netbsd*)
25513   version_type=sunos
25514   need_lib_prefix=no
25515   need_version=no
25516   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25518     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25519     dynamic_linker='NetBSD (a.out) ld.so'
25520   else
25521     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25522     soname_spec='${libname}${release}${shared_ext}$major'
25523     dynamic_linker='NetBSD ld.elf_so'
25524   fi
25525   shlibpath_var=LD_LIBRARY_PATH
25526   shlibpath_overrides_runpath=yes
25527   hardcode_into_libs=yes
25528   ;;
25529
25530 newsos6)
25531   version_type=linux
25532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25533   shlibpath_var=LD_LIBRARY_PATH
25534   shlibpath_overrides_runpath=yes
25535   ;;
25536
25537 nto-qnx*)
25538   version_type=linux
25539   need_lib_prefix=no
25540   need_version=no
25541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25542   soname_spec='${libname}${release}${shared_ext}$major'
25543   shlibpath_var=LD_LIBRARY_PATH
25544   shlibpath_overrides_runpath=yes
25545   ;;
25546
25547 openbsd*)
25548   version_type=sunos
25549   sys_lib_dlsearch_path_spec="/usr/lib"
25550   need_lib_prefix=no
25551   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25552   case $host_os in
25553     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25554     *)                         need_version=no  ;;
25555   esac
25556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25557   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25558   shlibpath_var=LD_LIBRARY_PATH
25559   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25560     case $host_os in
25561       openbsd2.[89] | openbsd2.[89].*)
25562         shlibpath_overrides_runpath=no
25563         ;;
25564       *)
25565         shlibpath_overrides_runpath=yes
25566         ;;
25567       esac
25568   else
25569     shlibpath_overrides_runpath=yes
25570   fi
25571   ;;
25572
25573 os2*)
25574   libname_spec='$name'
25575   shrext_cmds=".dll"
25576   need_lib_prefix=no
25577   library_names_spec='$libname${shared_ext} $libname.a'
25578   dynamic_linker='OS/2 ld.exe'
25579   shlibpath_var=LIBPATH
25580   ;;
25581
25582 osf3* | osf4* | osf5*)
25583   version_type=osf
25584   need_lib_prefix=no
25585   need_version=no
25586   soname_spec='${libname}${release}${shared_ext}$major'
25587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25588   shlibpath_var=LD_LIBRARY_PATH
25589   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25590   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25591   ;;
25592
25593 solaris*)
25594   version_type=linux
25595   need_lib_prefix=no
25596   need_version=no
25597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25598   soname_spec='${libname}${release}${shared_ext}$major'
25599   shlibpath_var=LD_LIBRARY_PATH
25600   shlibpath_overrides_runpath=yes
25601   hardcode_into_libs=yes
25602   # ldd complains unless libraries are executable
25603   postinstall_cmds='chmod +x $lib'
25604   ;;
25605
25606 sunos4*)
25607   version_type=sunos
25608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25609   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25610   shlibpath_var=LD_LIBRARY_PATH
25611   shlibpath_overrides_runpath=yes
25612   if test "$with_gnu_ld" = yes; then
25613     need_lib_prefix=no
25614   fi
25615   need_version=yes
25616   ;;
25617
25618 sysv4 | sysv4.3*)
25619   version_type=linux
25620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25621   soname_spec='${libname}${release}${shared_ext}$major'
25622   shlibpath_var=LD_LIBRARY_PATH
25623   case $host_vendor in
25624     sni)
25625       shlibpath_overrides_runpath=no
25626       need_lib_prefix=no
25627       export_dynamic_flag_spec='${wl}-Blargedynsym'
25628       runpath_var=LD_RUN_PATH
25629       ;;
25630     siemens)
25631       need_lib_prefix=no
25632       ;;
25633     motorola)
25634       need_lib_prefix=no
25635       need_version=no
25636       shlibpath_overrides_runpath=no
25637       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25638       ;;
25639   esac
25640   ;;
25641
25642 sysv4*MP*)
25643   if test -d /usr/nec ;then
25644     version_type=linux
25645     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25646     soname_spec='$libname${shared_ext}.$major'
25647     shlibpath_var=LD_LIBRARY_PATH
25648   fi
25649   ;;
25650
25651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25652   version_type=freebsd-elf
25653   need_lib_prefix=no
25654   need_version=no
25655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25656   soname_spec='${libname}${release}${shared_ext}$major'
25657   shlibpath_var=LD_LIBRARY_PATH
25658   hardcode_into_libs=yes
25659   if test "$with_gnu_ld" = yes; then
25660     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25661     shlibpath_overrides_runpath=no
25662   else
25663     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25664     shlibpath_overrides_runpath=yes
25665     case $host_os in
25666       sco3.2v5*)
25667         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25668         ;;
25669     esac
25670   fi
25671   sys_lib_dlsearch_path_spec='/usr/lib'
25672   ;;
25673
25674 uts4*)
25675   version_type=linux
25676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25677   soname_spec='${libname}${release}${shared_ext}$major'
25678   shlibpath_var=LD_LIBRARY_PATH
25679   ;;
25680
25681 *)
25682   dynamic_linker=no
25683   ;;
25684 esac
25685 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25686 echo "${ECHO_T}$dynamic_linker" >&6; }
25687 test "$dynamic_linker" = no && can_build_shared=no
25688
25689 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25690 if test "$GCC" = yes; then
25691   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25692 fi
25693
25694 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25695 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25696 hardcode_action_GCJ=
25697 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25698    test -n "$runpath_var_GCJ" || \
25699    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25700
25701   # We can hardcode non-existant directories.
25702   if test "$hardcode_direct_GCJ" != no &&
25703      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25704      # have to relink, otherwise we might link with an installed library
25705      # when we should be linking with a yet-to-be-installed one
25706      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25707      test "$hardcode_minus_L_GCJ" != no; then
25708     # Linking always hardcodes the temporary library directory.
25709     hardcode_action_GCJ=relink
25710   else
25711     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25712     hardcode_action_GCJ=immediate
25713   fi
25714 else
25715   # We cannot hardcode anything, or else we can only hardcode existing
25716   # directories.
25717   hardcode_action_GCJ=unsupported
25718 fi
25719 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25720 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25721
25722 if test "$hardcode_action_GCJ" = relink; then
25723   # Fast installation is not supported
25724   enable_fast_install=no
25725 elif test "$shlibpath_overrides_runpath" = yes ||
25726      test "$enable_shared" = no; then
25727   # Fast installation is not necessary
25728   enable_fast_install=needless
25729 fi
25730
25731
25732 # The else clause should only fire when bootstrapping the
25733 # libtool distribution, otherwise you forgot to ship ltmain.sh
25734 # with your package, and you will get complaints that there are
25735 # no rules to generate ltmain.sh.
25736 if test -f "$ltmain"; then
25737   # See if we are running on zsh, and set the options which allow our commands through
25738   # without removal of \ escapes.
25739   if test -n "${ZSH_VERSION+set}" ; then
25740     setopt NO_GLOB_SUBST
25741   fi
25742   # Now quote all the things that may contain metacharacters while being
25743   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25744   # variables and quote the copies for generation of the libtool script.
25745   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25746     SED SHELL STRIP \
25747     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25748     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25749     deplibs_check_method reload_flag reload_cmds need_locks \
25750     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25751     lt_cv_sys_global_symbol_to_c_name_address \
25752     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25753     old_postinstall_cmds old_postuninstall_cmds \
25754     compiler_GCJ \
25755     CC_GCJ \
25756     LD_GCJ \
25757     lt_prog_compiler_wl_GCJ \
25758     lt_prog_compiler_pic_GCJ \
25759     lt_prog_compiler_static_GCJ \
25760     lt_prog_compiler_no_builtin_flag_GCJ \
25761     export_dynamic_flag_spec_GCJ \
25762     thread_safe_flag_spec_GCJ \
25763     whole_archive_flag_spec_GCJ \
25764     enable_shared_with_static_runtimes_GCJ \
25765     old_archive_cmds_GCJ \
25766     old_archive_from_new_cmds_GCJ \
25767     predep_objects_GCJ \
25768     postdep_objects_GCJ \
25769     predeps_GCJ \
25770     postdeps_GCJ \
25771     compiler_lib_search_path_GCJ \
25772     archive_cmds_GCJ \
25773     archive_expsym_cmds_GCJ \
25774     postinstall_cmds_GCJ \
25775     postuninstall_cmds_GCJ \
25776     old_archive_from_expsyms_cmds_GCJ \
25777     allow_undefined_flag_GCJ \
25778     no_undefined_flag_GCJ \
25779     export_symbols_cmds_GCJ \
25780     hardcode_libdir_flag_spec_GCJ \
25781     hardcode_libdir_flag_spec_ld_GCJ \
25782     hardcode_libdir_separator_GCJ \
25783     hardcode_automatic_GCJ \
25784     module_cmds_GCJ \
25785     module_expsym_cmds_GCJ \
25786     lt_cv_prog_compiler_c_o_GCJ \
25787     exclude_expsyms_GCJ \
25788     include_expsyms_GCJ; do
25789
25790     case $var in
25791     old_archive_cmds_GCJ | \
25792     old_archive_from_new_cmds_GCJ | \
25793     archive_cmds_GCJ | \
25794     archive_expsym_cmds_GCJ | \
25795     module_cmds_GCJ | \
25796     module_expsym_cmds_GCJ | \
25797     old_archive_from_expsyms_cmds_GCJ | \
25798     export_symbols_cmds_GCJ | \
25799     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25800     postinstall_cmds | postuninstall_cmds | \
25801     old_postinstall_cmds | old_postuninstall_cmds | \
25802     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25803       # Double-quote double-evaled strings.
25804       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25805       ;;
25806     *)
25807       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25808       ;;
25809     esac
25810   done
25811
25812   case $lt_echo in
25813   *'\$0 --fallback-echo"')
25814     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25815     ;;
25816   esac
25817
25818 cfgfile="$ofile"
25819
25820   cat <<__EOF__ >> "$cfgfile"
25821 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25822
25823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25824
25825 # Shell to use when invoking shell scripts.
25826 SHELL=$lt_SHELL
25827
25828 # Whether or not to build shared libraries.
25829 build_libtool_libs=$enable_shared
25830
25831 # Whether or not to build static libraries.
25832 build_old_libs=$enable_static
25833
25834 # Whether or not to add -lc for building shared libraries.
25835 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25836
25837 # Whether or not to disallow shared libs when runtime libs are static
25838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25839
25840 # Whether or not to optimize for fast installation.
25841 fast_install=$enable_fast_install
25842
25843 # The host system.
25844 host_alias=$host_alias
25845 host=$host
25846 host_os=$host_os
25847
25848 # The build system.
25849 build_alias=$build_alias
25850 build=$build
25851 build_os=$build_os
25852
25853 # An echo program that does not interpret backslashes.
25854 echo=$lt_echo
25855
25856 # The archiver.
25857 AR=$lt_AR
25858 AR_FLAGS=$lt_AR_FLAGS
25859
25860 # A C compiler.
25861 LTCC=$lt_LTCC
25862
25863 # LTCC compiler flags.
25864 LTCFLAGS=$lt_LTCFLAGS
25865
25866 # A language-specific compiler.
25867 CC=$lt_compiler_GCJ
25868
25869 # Is the compiler the GNU C compiler?
25870 with_gcc=$GCC_GCJ
25871
25872 # An ERE matcher.
25873 EGREP=$lt_EGREP
25874
25875 # The linker used to build libraries.
25876 LD=$lt_LD_GCJ
25877
25878 # Whether we need hard or soft links.
25879 LN_S=$lt_LN_S
25880
25881 # A BSD-compatible nm program.
25882 NM=$lt_NM
25883
25884 # A symbol stripping program
25885 STRIP=$lt_STRIP
25886
25887 # Used to examine libraries when file_magic_cmd begins "file"
25888 MAGIC_CMD=$MAGIC_CMD
25889
25890 # Used on cygwin: DLL creation program.
25891 DLLTOOL="$DLLTOOL"
25892
25893 # Used on cygwin: object dumper.
25894 OBJDUMP="$OBJDUMP"
25895
25896 # Used on cygwin: assembler.
25897 AS="$AS"
25898
25899 # The name of the directory that contains temporary libtool files.
25900 objdir=$objdir
25901
25902 # How to create reloadable object files.
25903 reload_flag=$lt_reload_flag
25904 reload_cmds=$lt_reload_cmds
25905
25906 # How to pass a linker flag through the compiler.
25907 wl=$lt_lt_prog_compiler_wl_GCJ
25908
25909 # Object file suffix (normally "o").
25910 objext="$ac_objext"
25911
25912 # Old archive suffix (normally "a").
25913 libext="$libext"
25914
25915 # Shared library suffix (normally ".so").
25916 shrext_cmds='$shrext_cmds'
25917
25918 # Executable file suffix (normally "").
25919 exeext="$exeext"
25920
25921 # Additional compiler flags for building library objects.
25922 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25923 pic_mode=$pic_mode
25924
25925 # What is the maximum length of a command?
25926 max_cmd_len=$lt_cv_sys_max_cmd_len
25927
25928 # Does compiler simultaneously support -c and -o options?
25929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25930
25931 # Must we lock files when doing compilation?
25932 need_locks=$lt_need_locks
25933
25934 # Do we need the lib prefix for modules?
25935 need_lib_prefix=$need_lib_prefix
25936
25937 # Do we need a version for libraries?
25938 need_version=$need_version
25939
25940 # Whether dlopen is supported.
25941 dlopen_support=$enable_dlopen
25942
25943 # Whether dlopen of programs is supported.
25944 dlopen_self=$enable_dlopen_self
25945
25946 # Whether dlopen of statically linked programs is supported.
25947 dlopen_self_static=$enable_dlopen_self_static
25948
25949 # Compiler flag to prevent dynamic linking.
25950 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25951
25952 # Compiler flag to turn off builtin functions.
25953 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25954
25955 # Compiler flag to allow reflexive dlopens.
25956 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25957
25958 # Compiler flag to generate shared objects directly from archives.
25959 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25960
25961 # Compiler flag to generate thread-safe objects.
25962 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25963
25964 # Library versioning type.
25965 version_type=$version_type
25966
25967 # Format of library name prefix.
25968 libname_spec=$lt_libname_spec
25969
25970 # List of archive names.  First name is the real one, the rest are links.
25971 # The last name is the one that the linker finds with -lNAME.
25972 library_names_spec=$lt_library_names_spec
25973
25974 # The coded name of the library, if different from the real name.
25975 soname_spec=$lt_soname_spec
25976
25977 # Commands used to build and install an old-style archive.
25978 RANLIB=$lt_RANLIB
25979 old_archive_cmds=$lt_old_archive_cmds_GCJ
25980 old_postinstall_cmds=$lt_old_postinstall_cmds
25981 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25982
25983 # Create an old-style archive from a shared archive.
25984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25985
25986 # Create a temporary old-style archive to link instead of a shared archive.
25987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25988
25989 # Commands used to build and install a shared archive.
25990 archive_cmds=$lt_archive_cmds_GCJ
25991 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25992 postinstall_cmds=$lt_postinstall_cmds
25993 postuninstall_cmds=$lt_postuninstall_cmds
25994
25995 # Commands used to build a loadable module (assumed same as above if empty)
25996 module_cmds=$lt_module_cmds_GCJ
25997 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25998
25999 # Commands to strip libraries.
26000 old_striplib=$lt_old_striplib
26001 striplib=$lt_striplib
26002
26003 # Dependencies to place before the objects being linked to create a
26004 # shared library.
26005 predep_objects=$lt_predep_objects_GCJ
26006
26007 # Dependencies to place after the objects being linked to create a
26008 # shared library.
26009 postdep_objects=$lt_postdep_objects_GCJ
26010
26011 # Dependencies to place before the objects being linked to create a
26012 # shared library.
26013 predeps=$lt_predeps_GCJ
26014
26015 # Dependencies to place after the objects being linked to create a
26016 # shared library.
26017 postdeps=$lt_postdeps_GCJ
26018
26019 # The library search path used internally by the compiler when linking
26020 # a shared library.
26021 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26022
26023 # Method to check whether dependent libraries are shared objects.
26024 deplibs_check_method=$lt_deplibs_check_method
26025
26026 # Command to use when deplibs_check_method == file_magic.
26027 file_magic_cmd=$lt_file_magic_cmd
26028
26029 # Flag that allows shared libraries with undefined symbols to be built.
26030 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26031
26032 # Flag that forces no undefined symbols.
26033 no_undefined_flag=$lt_no_undefined_flag_GCJ
26034
26035 # Commands used to finish a libtool library installation in a directory.
26036 finish_cmds=$lt_finish_cmds
26037
26038 # Same as above, but a single script fragment to be evaled but not shown.
26039 finish_eval=$lt_finish_eval
26040
26041 # Take the output of nm and produce a listing of raw symbols and C names.
26042 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26043
26044 # Transform the output of nm in a proper C declaration
26045 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26046
26047 # Transform the output of nm in a C name address pair
26048 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26049
26050 # This is the shared library runtime path variable.
26051 runpath_var=$runpath_var
26052
26053 # This is the shared library path variable.
26054 shlibpath_var=$shlibpath_var
26055
26056 # Is shlibpath searched before the hard-coded library search path?
26057 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26058
26059 # How to hardcode a shared library path into an executable.
26060 hardcode_action=$hardcode_action_GCJ
26061
26062 # Whether we should hardcode library paths into libraries.
26063 hardcode_into_libs=$hardcode_into_libs
26064
26065 # Flag to hardcode \$libdir into a binary during linking.
26066 # This must work even if \$libdir does not exist.
26067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26068
26069 # If ld is used when linking, flag to hardcode \$libdir into
26070 # a binary during linking. This must work even if \$libdir does
26071 # not exist.
26072 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26073
26074 # Whether we need a single -rpath flag with a separated argument.
26075 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26076
26077 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26078 # resulting binary.
26079 hardcode_direct=$hardcode_direct_GCJ
26080
26081 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26082 # resulting binary.
26083 hardcode_minus_L=$hardcode_minus_L_GCJ
26084
26085 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26086 # the resulting binary.
26087 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26088
26089 # Set to yes if building a shared library automatically hardcodes DIR into the library
26090 # and all subsequent libraries and executables linked against it.
26091 hardcode_automatic=$hardcode_automatic_GCJ
26092
26093 # Variables whose values should be saved in libtool wrapper scripts and
26094 # restored at relink time.
26095 variables_saved_for_relink="$variables_saved_for_relink"
26096
26097 # Whether libtool must link a program against all its dependency libraries.
26098 link_all_deplibs=$link_all_deplibs_GCJ
26099
26100 # Compile-time system search path for libraries
26101 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26102
26103 # Run-time system search path for libraries
26104 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26105
26106 # Fix the shell variable \$srcfile for the compiler.
26107 fix_srcfile_path="$fix_srcfile_path_GCJ"
26108
26109 # Set to yes if exported symbols are required.
26110 always_export_symbols=$always_export_symbols_GCJ
26111
26112 # The commands to list exported symbols.
26113 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26114
26115 # The commands to extract the exported symbol list from a shared archive.
26116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26117
26118 # Symbols that should not be listed in the preloaded symbols.
26119 exclude_expsyms=$lt_exclude_expsyms_GCJ
26120
26121 # Symbols that must always be exported.
26122 include_expsyms=$lt_include_expsyms_GCJ
26123
26124 # ### END LIBTOOL TAG CONFIG: $tagname
26125
26126 __EOF__
26127
26128
26129 else
26130   # If there is no Makefile yet, we rely on a make rule to execute
26131   # `config.status --recheck' to rerun these tests and create the
26132   # libtool script then.
26133   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26134   if test -f "$ltmain_in"; then
26135     test -f Makefile && make "$ltmain"
26136   fi
26137 fi
26138
26139
26140 ac_ext=c
26141 ac_cpp='$CPP $CPPFLAGS'
26142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26145
26146 CC="$lt_save_CC"
26147
26148         else
26149           tagname=""
26150         fi
26151         ;;
26152
26153       RC)
26154         ac_ext=c
26155 ac_cpp='$CPP $CPPFLAGS'
26156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26159
26160
26161 # Source file extension for RC test sources.
26162 ac_ext=rc
26163
26164 # Object file extension for compiled RC test sources.
26165 objext=o
26166 objext_RC=$objext
26167
26168 # Code to be used in simple compile tests
26169 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26170
26171 # Code to be used in simple link tests
26172 lt_simple_link_test_code="$lt_simple_compile_test_code"
26173
26174 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26175
26176 # If no C compiler was specified, use CC.
26177 LTCC=${LTCC-"$CC"}
26178
26179 # If no C compiler flags were specified, use CFLAGS.
26180 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26181
26182 # Allow CC to be a program name with arguments.
26183 compiler=$CC
26184
26185
26186 # save warnings/boilerplate of simple test code
26187 ac_outfile=conftest.$ac_objext
26188 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26189 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26190 _lt_compiler_boilerplate=`cat conftest.err`
26191 $rm conftest*
26192
26193 ac_outfile=conftest.$ac_objext
26194 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26195 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26196 _lt_linker_boilerplate=`cat conftest.err`
26197 $rm conftest*
26198
26199
26200 # Allow CC to be a program name with arguments.
26201 lt_save_CC="$CC"
26202 CC=${RC-"windres"}
26203 compiler=$CC
26204 compiler_RC=$CC
26205 for cc_temp in $compiler""; do
26206   case $cc_temp in
26207     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26208     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26209     \-*) ;;
26210     *) break;;
26211   esac
26212 done
26213 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26214
26215 lt_cv_prog_compiler_c_o_RC=yes
26216
26217 # The else clause should only fire when bootstrapping the
26218 # libtool distribution, otherwise you forgot to ship ltmain.sh
26219 # with your package, and you will get complaints that there are
26220 # no rules to generate ltmain.sh.
26221 if test -f "$ltmain"; then
26222   # See if we are running on zsh, and set the options which allow our commands through
26223   # without removal of \ escapes.
26224   if test -n "${ZSH_VERSION+set}" ; then
26225     setopt NO_GLOB_SUBST
26226   fi
26227   # Now quote all the things that may contain metacharacters while being
26228   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26229   # variables and quote the copies for generation of the libtool script.
26230   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26231     SED SHELL STRIP \
26232     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26233     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26234     deplibs_check_method reload_flag reload_cmds need_locks \
26235     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26236     lt_cv_sys_global_symbol_to_c_name_address \
26237     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26238     old_postinstall_cmds old_postuninstall_cmds \
26239     compiler_RC \
26240     CC_RC \
26241     LD_RC \
26242     lt_prog_compiler_wl_RC \
26243     lt_prog_compiler_pic_RC \
26244     lt_prog_compiler_static_RC \
26245     lt_prog_compiler_no_builtin_flag_RC \
26246     export_dynamic_flag_spec_RC \
26247     thread_safe_flag_spec_RC \
26248     whole_archive_flag_spec_RC \
26249     enable_shared_with_static_runtimes_RC \
26250     old_archive_cmds_RC \
26251     old_archive_from_new_cmds_RC \
26252     predep_objects_RC \
26253     postdep_objects_RC \
26254     predeps_RC \
26255     postdeps_RC \
26256     compiler_lib_search_path_RC \
26257     archive_cmds_RC \
26258     archive_expsym_cmds_RC \
26259     postinstall_cmds_RC \
26260     postuninstall_cmds_RC \
26261     old_archive_from_expsyms_cmds_RC \
26262     allow_undefined_flag_RC \
26263     no_undefined_flag_RC \
26264     export_symbols_cmds_RC \
26265     hardcode_libdir_flag_spec_RC \
26266     hardcode_libdir_flag_spec_ld_RC \
26267     hardcode_libdir_separator_RC \
26268     hardcode_automatic_RC \
26269     module_cmds_RC \
26270     module_expsym_cmds_RC \
26271     lt_cv_prog_compiler_c_o_RC \
26272     exclude_expsyms_RC \
26273     include_expsyms_RC; do
26274
26275     case $var in
26276     old_archive_cmds_RC | \
26277     old_archive_from_new_cmds_RC | \
26278     archive_cmds_RC | \
26279     archive_expsym_cmds_RC | \
26280     module_cmds_RC | \
26281     module_expsym_cmds_RC | \
26282     old_archive_from_expsyms_cmds_RC | \
26283     export_symbols_cmds_RC | \
26284     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26285     postinstall_cmds | postuninstall_cmds | \
26286     old_postinstall_cmds | old_postuninstall_cmds | \
26287     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26288       # Double-quote double-evaled strings.
26289       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26290       ;;
26291     *)
26292       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26293       ;;
26294     esac
26295   done
26296
26297   case $lt_echo in
26298   *'\$0 --fallback-echo"')
26299     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26300     ;;
26301   esac
26302
26303 cfgfile="$ofile"
26304
26305   cat <<__EOF__ >> "$cfgfile"
26306 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26307
26308 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26309
26310 # Shell to use when invoking shell scripts.
26311 SHELL=$lt_SHELL
26312
26313 # Whether or not to build shared libraries.
26314 build_libtool_libs=$enable_shared
26315
26316 # Whether or not to build static libraries.
26317 build_old_libs=$enable_static
26318
26319 # Whether or not to add -lc for building shared libraries.
26320 build_libtool_need_lc=$archive_cmds_need_lc_RC
26321
26322 # Whether or not to disallow shared libs when runtime libs are static
26323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26324
26325 # Whether or not to optimize for fast installation.
26326 fast_install=$enable_fast_install
26327
26328 # The host system.
26329 host_alias=$host_alias
26330 host=$host
26331 host_os=$host_os
26332
26333 # The build system.
26334 build_alias=$build_alias
26335 build=$build
26336 build_os=$build_os
26337
26338 # An echo program that does not interpret backslashes.
26339 echo=$lt_echo
26340
26341 # The archiver.
26342 AR=$lt_AR
26343 AR_FLAGS=$lt_AR_FLAGS
26344
26345 # A C compiler.
26346 LTCC=$lt_LTCC
26347
26348 # LTCC compiler flags.
26349 LTCFLAGS=$lt_LTCFLAGS
26350
26351 # A language-specific compiler.
26352 CC=$lt_compiler_RC
26353
26354 # Is the compiler the GNU C compiler?
26355 with_gcc=$GCC_RC
26356
26357 # An ERE matcher.
26358 EGREP=$lt_EGREP
26359
26360 # The linker used to build libraries.
26361 LD=$lt_LD_RC
26362
26363 # Whether we need hard or soft links.
26364 LN_S=$lt_LN_S
26365
26366 # A BSD-compatible nm program.
26367 NM=$lt_NM
26368
26369 # A symbol stripping program
26370 STRIP=$lt_STRIP
26371
26372 # Used to examine libraries when file_magic_cmd begins "file"
26373 MAGIC_CMD=$MAGIC_CMD
26374
26375 # Used on cygwin: DLL creation program.
26376 DLLTOOL="$DLLTOOL"
26377
26378 # Used on cygwin: object dumper.
26379 OBJDUMP="$OBJDUMP"
26380
26381 # Used on cygwin: assembler.
26382 AS="$AS"
26383
26384 # The name of the directory that contains temporary libtool files.
26385 objdir=$objdir
26386
26387 # How to create reloadable object files.
26388 reload_flag=$lt_reload_flag
26389 reload_cmds=$lt_reload_cmds
26390
26391 # How to pass a linker flag through the compiler.
26392 wl=$lt_lt_prog_compiler_wl_RC
26393
26394 # Object file suffix (normally "o").
26395 objext="$ac_objext"
26396
26397 # Old archive suffix (normally "a").
26398 libext="$libext"
26399
26400 # Shared library suffix (normally ".so").
26401 shrext_cmds='$shrext_cmds'
26402
26403 # Executable file suffix (normally "").
26404 exeext="$exeext"
26405
26406 # Additional compiler flags for building library objects.
26407 pic_flag=$lt_lt_prog_compiler_pic_RC
26408 pic_mode=$pic_mode
26409
26410 # What is the maximum length of a command?
26411 max_cmd_len=$lt_cv_sys_max_cmd_len
26412
26413 # Does compiler simultaneously support -c and -o options?
26414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26415
26416 # Must we lock files when doing compilation?
26417 need_locks=$lt_need_locks
26418
26419 # Do we need the lib prefix for modules?
26420 need_lib_prefix=$need_lib_prefix
26421
26422 # Do we need a version for libraries?
26423 need_version=$need_version
26424
26425 # Whether dlopen is supported.
26426 dlopen_support=$enable_dlopen
26427
26428 # Whether dlopen of programs is supported.
26429 dlopen_self=$enable_dlopen_self
26430
26431 # Whether dlopen of statically linked programs is supported.
26432 dlopen_self_static=$enable_dlopen_self_static
26433
26434 # Compiler flag to prevent dynamic linking.
26435 link_static_flag=$lt_lt_prog_compiler_static_RC
26436
26437 # Compiler flag to turn off builtin functions.
26438 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26439
26440 # Compiler flag to allow reflexive dlopens.
26441 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26442
26443 # Compiler flag to generate shared objects directly from archives.
26444 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26445
26446 # Compiler flag to generate thread-safe objects.
26447 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26448
26449 # Library versioning type.
26450 version_type=$version_type
26451
26452 # Format of library name prefix.
26453 libname_spec=$lt_libname_spec
26454
26455 # List of archive names.  First name is the real one, the rest are links.
26456 # The last name is the one that the linker finds with -lNAME.
26457 library_names_spec=$lt_library_names_spec
26458
26459 # The coded name of the library, if different from the real name.
26460 soname_spec=$lt_soname_spec
26461
26462 # Commands used to build and install an old-style archive.
26463 RANLIB=$lt_RANLIB
26464 old_archive_cmds=$lt_old_archive_cmds_RC
26465 old_postinstall_cmds=$lt_old_postinstall_cmds
26466 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26467
26468 # Create an old-style archive from a shared archive.
26469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26470
26471 # Create a temporary old-style archive to link instead of a shared archive.
26472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26473
26474 # Commands used to build and install a shared archive.
26475 archive_cmds=$lt_archive_cmds_RC
26476 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26477 postinstall_cmds=$lt_postinstall_cmds
26478 postuninstall_cmds=$lt_postuninstall_cmds
26479
26480 # Commands used to build a loadable module (assumed same as above if empty)
26481 module_cmds=$lt_module_cmds_RC
26482 module_expsym_cmds=$lt_module_expsym_cmds_RC
26483
26484 # Commands to strip libraries.
26485 old_striplib=$lt_old_striplib
26486 striplib=$lt_striplib
26487
26488 # Dependencies to place before the objects being linked to create a
26489 # shared library.
26490 predep_objects=$lt_predep_objects_RC
26491
26492 # Dependencies to place after the objects being linked to create a
26493 # shared library.
26494 postdep_objects=$lt_postdep_objects_RC
26495
26496 # Dependencies to place before the objects being linked to create a
26497 # shared library.
26498 predeps=$lt_predeps_RC
26499
26500 # Dependencies to place after the objects being linked to create a
26501 # shared library.
26502 postdeps=$lt_postdeps_RC
26503
26504 # The library search path used internally by the compiler when linking
26505 # a shared library.
26506 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26507
26508 # Method to check whether dependent libraries are shared objects.
26509 deplibs_check_method=$lt_deplibs_check_method
26510
26511 # Command to use when deplibs_check_method == file_magic.
26512 file_magic_cmd=$lt_file_magic_cmd
26513
26514 # Flag that allows shared libraries with undefined symbols to be built.
26515 allow_undefined_flag=$lt_allow_undefined_flag_RC
26516
26517 # Flag that forces no undefined symbols.
26518 no_undefined_flag=$lt_no_undefined_flag_RC
26519
26520 # Commands used to finish a libtool library installation in a directory.
26521 finish_cmds=$lt_finish_cmds
26522
26523 # Same as above, but a single script fragment to be evaled but not shown.
26524 finish_eval=$lt_finish_eval
26525
26526 # Take the output of nm and produce a listing of raw symbols and C names.
26527 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26528
26529 # Transform the output of nm in a proper C declaration
26530 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26531
26532 # Transform the output of nm in a C name address pair
26533 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26534
26535 # This is the shared library runtime path variable.
26536 runpath_var=$runpath_var
26537
26538 # This is the shared library path variable.
26539 shlibpath_var=$shlibpath_var
26540
26541 # Is shlibpath searched before the hard-coded library search path?
26542 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26543
26544 # How to hardcode a shared library path into an executable.
26545 hardcode_action=$hardcode_action_RC
26546
26547 # Whether we should hardcode library paths into libraries.
26548 hardcode_into_libs=$hardcode_into_libs
26549
26550 # Flag to hardcode \$libdir into a binary during linking.
26551 # This must work even if \$libdir does not exist.
26552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26553
26554 # If ld is used when linking, flag to hardcode \$libdir into
26555 # a binary during linking. This must work even if \$libdir does
26556 # not exist.
26557 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26558
26559 # Whether we need a single -rpath flag with a separated argument.
26560 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26561
26562 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26563 # resulting binary.
26564 hardcode_direct=$hardcode_direct_RC
26565
26566 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26567 # resulting binary.
26568 hardcode_minus_L=$hardcode_minus_L_RC
26569
26570 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26571 # the resulting binary.
26572 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26573
26574 # Set to yes if building a shared library automatically hardcodes DIR into the library
26575 # and all subsequent libraries and executables linked against it.
26576 hardcode_automatic=$hardcode_automatic_RC
26577
26578 # Variables whose values should be saved in libtool wrapper scripts and
26579 # restored at relink time.
26580 variables_saved_for_relink="$variables_saved_for_relink"
26581
26582 # Whether libtool must link a program against all its dependency libraries.
26583 link_all_deplibs=$link_all_deplibs_RC
26584
26585 # Compile-time system search path for libraries
26586 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26587
26588 # Run-time system search path for libraries
26589 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26590
26591 # Fix the shell variable \$srcfile for the compiler.
26592 fix_srcfile_path="$fix_srcfile_path_RC"
26593
26594 # Set to yes if exported symbols are required.
26595 always_export_symbols=$always_export_symbols_RC
26596
26597 # The commands to list exported symbols.
26598 export_symbols_cmds=$lt_export_symbols_cmds_RC
26599
26600 # The commands to extract the exported symbol list from a shared archive.
26601 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26602
26603 # Symbols that should not be listed in the preloaded symbols.
26604 exclude_expsyms=$lt_exclude_expsyms_RC
26605
26606 # Symbols that must always be exported.
26607 include_expsyms=$lt_include_expsyms_RC
26608
26609 # ### END LIBTOOL TAG CONFIG: $tagname
26610
26611 __EOF__
26612
26613
26614 else
26615   # If there is no Makefile yet, we rely on a make rule to execute
26616   # `config.status --recheck' to rerun these tests and create the
26617   # libtool script then.
26618   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26619   if test -f "$ltmain_in"; then
26620     test -f Makefile && make "$ltmain"
26621   fi
26622 fi
26623
26624
26625 ac_ext=c
26626 ac_cpp='$CPP $CPPFLAGS'
26627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26630
26631 CC="$lt_save_CC"
26632
26633         ;;
26634
26635       *)
26636         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26637 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26638    { (exit 1); exit 1; }; }
26639         ;;
26640       esac
26641
26642       # Append the new tag name to the list of available tags.
26643       if test -n "$tagname" ; then
26644       available_tags="$available_tags $tagname"
26645     fi
26646     fi
26647   done
26648   IFS="$lt_save_ifs"
26649
26650   # Now substitute the updated list of available tags.
26651   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26652     mv "${ofile}T" "$ofile"
26653     chmod +x "$ofile"
26654   else
26655     rm -f "${ofile}T"
26656     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26657 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26658    { (exit 1); exit 1; }; }
26659   fi
26660 fi
26661
26662
26663
26664 # This can be used to rebuild libtool when needed
26665 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26666
26667 # Always use our own libtool.
26668 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26669
26670 # Prevent multiple expansion
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692 if test "$lt_cv_dlopen_self" = "yes" ; then
26693
26694 cat >>confdefs.h <<\_ACEOF
26695 #define CAN_DLOPEN_SELF 1
26696 _ACEOF
26697
26698 fi
26699
26700 if test "$WITH_LLVMGCCDIR" = "default" ; then
26701   LLVMGCC="llvm-gcc${EXEEXT}"
26702   LLVMGXX="llvm-g++${EXEEXT}"
26703   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26704 set dummy $LLVMGCC; ac_word=$2
26705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26707 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26708   echo $ECHO_N "(cached) $ECHO_C" >&6
26709 else
26710   case $LLVMGCC in
26711   [\\/]* | ?:[\\/]*)
26712   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26713   ;;
26714   *)
26715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26716 for as_dir in $PATH
26717 do
26718   IFS=$as_save_IFS
26719   test -z "$as_dir" && as_dir=.
26720   for ac_exec_ext in '' $ac_executable_extensions; do
26721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26722     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26724     break 2
26725   fi
26726 done
26727 done
26728 IFS=$as_save_IFS
26729
26730   ;;
26731 esac
26732 fi
26733 LLVMGCC=$ac_cv_path_LLVMGCC
26734 if test -n "$LLVMGCC"; then
26735   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26736 echo "${ECHO_T}$LLVMGCC" >&6; }
26737 else
26738   { echo "$as_me:$LINENO: result: no" >&5
26739 echo "${ECHO_T}no" >&6; }
26740 fi
26741
26742
26743   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26744 set dummy $LLVMGXX; ac_word=$2
26745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26747 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26748   echo $ECHO_N "(cached) $ECHO_C" >&6
26749 else
26750   case $LLVMGXX in
26751   [\\/]* | ?:[\\/]*)
26752   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26753   ;;
26754   *)
26755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26756 for as_dir in $PATH
26757 do
26758   IFS=$as_save_IFS
26759   test -z "$as_dir" && as_dir=.
26760   for ac_exec_ext in '' $ac_executable_extensions; do
26761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26762     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26764     break 2
26765   fi
26766 done
26767 done
26768 IFS=$as_save_IFS
26769
26770   ;;
26771 esac
26772 fi
26773 LLVMGXX=$ac_cv_path_LLVMGXX
26774 if test -n "$LLVMGXX"; then
26775   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26776 echo "${ECHO_T}$LLVMGXX" >&6; }
26777 else
26778   { echo "$as_me:$LINENO: result: no" >&5
26779 echo "${ECHO_T}no" >&6; }
26780 fi
26781
26782
26783 else
26784   if test -z "$LLVMGCC"; then
26785     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26786   fi
26787   if test -z "$LLVMGXX"; then
26788     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26789   fi
26790   LLVMGCC=$LLVMGCC
26791
26792   LLVMGXX=$LLVMGXX
26793
26794 fi
26795
26796 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26797 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26798
26799 ICC=no
26800 IXX=no
26801 case $CC in
26802   icc*|icpc*)
26803     ICC=yes
26804     IXX=yes
26805     ;;
26806    *)
26807     ;;
26808 esac
26809
26810 if test "$GCC" != "yes" && test "$ICC" != "yes"
26811 then
26812   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26813 echo "$as_me: error: gcc|icc required but not found" >&2;}
26814    { (exit 1); exit 1; }; }
26815 fi
26816
26817 if test "$GXX" != "yes" && test "$IXX" != "yes"
26818 then
26819   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26820 echo "$as_me: error: g++|icc required but not found" >&2;}
26821    { (exit 1); exit 1; }; }
26822 fi
26823
26824 if test "$GCC" = "yes"
26825 then
26826   cat >conftest.$ac_ext <<_ACEOF
26827 #if !defined(__GNUC__) || __GNUC__ < 3
26828 #error Unsupported GCC version
26829 #endif
26830
26831 _ACEOF
26832 rm -f conftest.$ac_objext
26833 if { (ac_try="$ac_compile"
26834 case "(($ac_try" in
26835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26836   *) ac_try_echo=$ac_try;;
26837 esac
26838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26839   (eval "$ac_compile") 2>conftest.er1
26840   ac_status=$?
26841   grep -v '^ *+' conftest.er1 >conftest.err
26842   rm -f conftest.er1
26843   cat conftest.err >&5
26844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845   (exit $ac_status); } &&
26846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26847   { (case "(($ac_try" in
26848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849   *) ac_try_echo=$ac_try;;
26850 esac
26851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852   (eval "$ac_try") 2>&5
26853   ac_status=$?
26854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); }; } &&
26856          { ac_try='test -s conftest.$ac_objext'
26857   { (case "(($ac_try" in
26858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26859   *) ac_try_echo=$ac_try;;
26860 esac
26861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26862   (eval "$ac_try") 2>&5
26863   ac_status=$?
26864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865   (exit $ac_status); }; }; then
26866   :
26867 else
26868   echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26870
26871         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26872 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26873    { (exit 1); exit 1; }; }
26874 fi
26875
26876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26877 fi
26878
26879 if test -z "$llvm_cv_gnu_make_command"
26880 then
26881   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26882 echo "$as_me: error: GNU Make required but not found" >&2;}
26883    { (exit 1); exit 1; }; }
26884 fi
26885
26886 { echo "$as_me:$LINENO: result: ok" >&5
26887 echo "${ECHO_T}ok" >&6; }
26888
26889
26890
26891 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26892 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26893 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26894   echo $ECHO_N "(cached) $ECHO_C" >&6
26895 else
26896   ac_check_lib_save_LIBS=$LIBS
26897 LIBS="-lelf  $LIBS"
26898 cat >conftest.$ac_ext <<_ACEOF
26899 /* confdefs.h.  */
26900 _ACEOF
26901 cat confdefs.h >>conftest.$ac_ext
26902 cat >>conftest.$ac_ext <<_ACEOF
26903 /* end confdefs.h.  */
26904
26905 /* Override any GCC internal prototype to avoid an error.
26906    Use char because int might match the return type of a GCC
26907    builtin and then its argument prototype would still apply.  */
26908 #ifdef __cplusplus
26909 extern "C"
26910 #endif
26911 char elf_begin ();
26912 int
26913 main ()
26914 {
26915 return elf_begin ();
26916   ;
26917   return 0;
26918 }
26919 _ACEOF
26920 rm -f conftest.$ac_objext conftest$ac_exeext
26921 if { (ac_try="$ac_link"
26922 case "(($ac_try" in
26923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924   *) ac_try_echo=$ac_try;;
26925 esac
26926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26927   (eval "$ac_link") 2>conftest.er1
26928   ac_status=$?
26929   grep -v '^ *+' conftest.er1 >conftest.err
26930   rm -f conftest.er1
26931   cat conftest.err >&5
26932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933   (exit $ac_status); } &&
26934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26935   { (case "(($ac_try" in
26936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937   *) ac_try_echo=$ac_try;;
26938 esac
26939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26940   (eval "$ac_try") 2>&5
26941   ac_status=$?
26942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943   (exit $ac_status); }; } &&
26944          { ac_try='test -s conftest$ac_exeext'
26945   { (case "(($ac_try" in
26946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947   *) ac_try_echo=$ac_try;;
26948 esac
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950   (eval "$ac_try") 2>&5
26951   ac_status=$?
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); }; }; then
26954   ac_cv_lib_elf_elf_begin=yes
26955 else
26956   echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26958
26959         ac_cv_lib_elf_elf_begin=no
26960 fi
26961
26962 rm -f core conftest.err conftest.$ac_objext \
26963       conftest$ac_exeext conftest.$ac_ext
26964 LIBS=$ac_check_lib_save_LIBS
26965 fi
26966 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26967 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26968 if test $ac_cv_lib_elf_elf_begin = yes; then
26969   cat >>confdefs.h <<_ACEOF
26970 #define HAVE_LIBELF 1
26971 _ACEOF
26972
26973   LIBS="-lelf $LIBS"
26974
26975 fi
26976
26977
26978 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26979 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26980 if test "${ac_cv_lib_m_sin+set}" = set; then
26981   echo $ECHO_N "(cached) $ECHO_C" >&6
26982 else
26983   ac_check_lib_save_LIBS=$LIBS
26984 LIBS="-lm  $LIBS"
26985 cat >conftest.$ac_ext <<_ACEOF
26986 /* confdefs.h.  */
26987 _ACEOF
26988 cat confdefs.h >>conftest.$ac_ext
26989 cat >>conftest.$ac_ext <<_ACEOF
26990 /* end confdefs.h.  */
26991
26992 /* Override any GCC internal prototype to avoid an error.
26993    Use char because int might match the return type of a GCC
26994    builtin and then its argument prototype would still apply.  */
26995 #ifdef __cplusplus
26996 extern "C"
26997 #endif
26998 char sin ();
26999 int
27000 main ()
27001 {
27002 return sin ();
27003   ;
27004   return 0;
27005 }
27006 _ACEOF
27007 rm -f conftest.$ac_objext conftest$ac_exeext
27008 if { (ac_try="$ac_link"
27009 case "(($ac_try" in
27010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27011   *) ac_try_echo=$ac_try;;
27012 esac
27013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27014   (eval "$ac_link") 2>conftest.er1
27015   ac_status=$?
27016   grep -v '^ *+' conftest.er1 >conftest.err
27017   rm -f conftest.er1
27018   cat conftest.err >&5
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); } &&
27021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27022   { (case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027   (eval "$ac_try") 2>&5
27028   ac_status=$?
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); }; } &&
27031          { ac_try='test -s conftest$ac_exeext'
27032   { (case "(($ac_try" in
27033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034   *) ac_try_echo=$ac_try;;
27035 esac
27036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037   (eval "$ac_try") 2>&5
27038   ac_status=$?
27039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040   (exit $ac_status); }; }; then
27041   ac_cv_lib_m_sin=yes
27042 else
27043   echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27045
27046         ac_cv_lib_m_sin=no
27047 fi
27048
27049 rm -f core conftest.err conftest.$ac_objext \
27050       conftest$ac_exeext conftest.$ac_ext
27051 LIBS=$ac_check_lib_save_LIBS
27052 fi
27053 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27054 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27055 if test $ac_cv_lib_m_sin = yes; then
27056   cat >>confdefs.h <<_ACEOF
27057 #define HAVE_LIBM 1
27058 _ACEOF
27059
27060   LIBS="-lm $LIBS"
27061
27062 fi
27063
27064 if test "$llvm_cv_os_type" = "MingW" ; then
27065
27066 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27067 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27068 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27069   echo $ECHO_N "(cached) $ECHO_C" >&6
27070 else
27071   ac_check_lib_save_LIBS=$LIBS
27072 LIBS="-limagehlp  $LIBS"
27073 cat >conftest.$ac_ext <<_ACEOF
27074 /* confdefs.h.  */
27075 _ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h.  */
27079
27080
27081 int
27082 main ()
27083 {
27084 return main ();
27085   ;
27086   return 0;
27087 }
27088 _ACEOF
27089 rm -f conftest.$ac_objext conftest$ac_exeext
27090 if { (ac_try="$ac_link"
27091 case "(($ac_try" in
27092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093   *) ac_try_echo=$ac_try;;
27094 esac
27095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096   (eval "$ac_link") 2>conftest.er1
27097   ac_status=$?
27098   grep -v '^ *+' conftest.er1 >conftest.err
27099   rm -f conftest.er1
27100   cat conftest.err >&5
27101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102   (exit $ac_status); } &&
27103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27104   { (case "(($ac_try" in
27105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106   *) ac_try_echo=$ac_try;;
27107 esac
27108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109   (eval "$ac_try") 2>&5
27110   ac_status=$?
27111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112   (exit $ac_status); }; } &&
27113          { ac_try='test -s conftest$ac_exeext'
27114   { (case "(($ac_try" in
27115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116   *) ac_try_echo=$ac_try;;
27117 esac
27118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27119   (eval "$ac_try") 2>&5
27120   ac_status=$?
27121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122   (exit $ac_status); }; }; then
27123   ac_cv_lib_imagehlp_main=yes
27124 else
27125   echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27127
27128         ac_cv_lib_imagehlp_main=no
27129 fi
27130
27131 rm -f core conftest.err conftest.$ac_objext \
27132       conftest$ac_exeext conftest.$ac_ext
27133 LIBS=$ac_check_lib_save_LIBS
27134 fi
27135 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27136 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27137 if test $ac_cv_lib_imagehlp_main = yes; then
27138   cat >>confdefs.h <<_ACEOF
27139 #define HAVE_LIBIMAGEHLP 1
27140 _ACEOF
27141
27142   LIBS="-limagehlp $LIBS"
27143
27144 fi
27145
27146
27147 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27148 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27149 if test "${ac_cv_lib_psapi_main+set}" = set; then
27150   echo $ECHO_N "(cached) $ECHO_C" >&6
27151 else
27152   ac_check_lib_save_LIBS=$LIBS
27153 LIBS="-lpsapi  $LIBS"
27154 cat >conftest.$ac_ext <<_ACEOF
27155 /* confdefs.h.  */
27156 _ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h.  */
27160
27161
27162 int
27163 main ()
27164 {
27165 return main ();
27166   ;
27167   return 0;
27168 }
27169 _ACEOF
27170 rm -f conftest.$ac_objext conftest$ac_exeext
27171 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27178   ac_status=$?
27179   grep -v '^ *+' conftest.er1 >conftest.err
27180   rm -f conftest.er1
27181   cat conftest.err >&5
27182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183   (exit $ac_status); } &&
27184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27185   { (case "(($ac_try" in
27186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187   *) ac_try_echo=$ac_try;;
27188 esac
27189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190   (eval "$ac_try") 2>&5
27191   ac_status=$?
27192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193   (exit $ac_status); }; } &&
27194          { ac_try='test -s conftest$ac_exeext'
27195   { (case "(($ac_try" in
27196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197   *) ac_try_echo=$ac_try;;
27198 esac
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200   (eval "$ac_try") 2>&5
27201   ac_status=$?
27202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); }; }; then
27204   ac_cv_lib_psapi_main=yes
27205 else
27206   echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27208
27209         ac_cv_lib_psapi_main=no
27210 fi
27211
27212 rm -f core conftest.err conftest.$ac_objext \
27213       conftest$ac_exeext conftest.$ac_ext
27214 LIBS=$ac_check_lib_save_LIBS
27215 fi
27216 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27217 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27218 if test $ac_cv_lib_psapi_main = yes; then
27219   cat >>confdefs.h <<_ACEOF
27220 #define HAVE_LIBPSAPI 1
27221 _ACEOF
27222
27223   LIBS="-lpsapi $LIBS"
27224
27225 fi
27226
27227 fi
27228
27229 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27230 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27231 if test "${ac_cv_search_dlopen+set}" = set; then
27232   echo $ECHO_N "(cached) $ECHO_C" >&6
27233 else
27234   ac_func_search_save_LIBS=$LIBS
27235 cat >conftest.$ac_ext <<_ACEOF
27236 /* confdefs.h.  */
27237 _ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h.  */
27241
27242 /* Override any GCC internal prototype to avoid an error.
27243    Use char because int might match the return type of a GCC
27244    builtin and then its argument prototype would still apply.  */
27245 #ifdef __cplusplus
27246 extern "C"
27247 #endif
27248 char dlopen ();
27249 int
27250 main ()
27251 {
27252 return dlopen ();
27253   ;
27254   return 0;
27255 }
27256 _ACEOF
27257 for ac_lib in '' dl; do
27258   if test -z "$ac_lib"; then
27259     ac_res="none required"
27260   else
27261     ac_res=-l$ac_lib
27262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27263   fi
27264   rm -f conftest.$ac_objext conftest$ac_exeext
27265 if { (ac_try="$ac_link"
27266 case "(($ac_try" in
27267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268   *) ac_try_echo=$ac_try;;
27269 esac
27270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271   (eval "$ac_link") 2>conftest.er1
27272   ac_status=$?
27273   grep -v '^ *+' conftest.er1 >conftest.err
27274   rm -f conftest.er1
27275   cat conftest.err >&5
27276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277   (exit $ac_status); } &&
27278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27279   { (case "(($ac_try" in
27280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281   *) ac_try_echo=$ac_try;;
27282 esac
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284   (eval "$ac_try") 2>&5
27285   ac_status=$?
27286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287   (exit $ac_status); }; } &&
27288          { ac_try='test -s conftest$ac_exeext'
27289   { (case "(($ac_try" in
27290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27291   *) ac_try_echo=$ac_try;;
27292 esac
27293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27294   (eval "$ac_try") 2>&5
27295   ac_status=$?
27296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297   (exit $ac_status); }; }; then
27298   ac_cv_search_dlopen=$ac_res
27299 else
27300   echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27302
27303
27304 fi
27305
27306 rm -f core conftest.err conftest.$ac_objext \
27307       conftest$ac_exeext
27308   if test "${ac_cv_search_dlopen+set}" = set; then
27309   break
27310 fi
27311 done
27312 if test "${ac_cv_search_dlopen+set}" = set; then
27313   :
27314 else
27315   ac_cv_search_dlopen=no
27316 fi
27317 rm conftest.$ac_ext
27318 LIBS=$ac_func_search_save_LIBS
27319 fi
27320 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27321 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27322 ac_res=$ac_cv_search_dlopen
27323 if test "$ac_res" != no; then
27324   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27325
27326 cat >>confdefs.h <<\_ACEOF
27327 #define HAVE_DLOPEN 1
27328 _ACEOF
27329
27330 else
27331   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27332 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27333 fi
27334
27335
27336 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27337 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27338 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27339   echo $ECHO_N "(cached) $ECHO_C" >&6
27340 else
27341   ac_check_lib_save_LIBS=$LIBS
27342 LIBS="-lffi  $LIBS"
27343 cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349
27350 /* Override any GCC internal prototype to avoid an error.
27351    Use char because int might match the return type of a GCC
27352    builtin and then its argument prototype would still apply.  */
27353 #ifdef __cplusplus
27354 extern "C"
27355 #endif
27356 char ffi_call ();
27357 int
27358 main ()
27359 {
27360 return ffi_call ();
27361   ;
27362   return 0;
27363 }
27364 _ACEOF
27365 rm -f conftest.$ac_objext conftest$ac_exeext
27366 if { (ac_try="$ac_link"
27367 case "(($ac_try" in
27368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369   *) ac_try_echo=$ac_try;;
27370 esac
27371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372   (eval "$ac_link") 2>conftest.er1
27373   ac_status=$?
27374   grep -v '^ *+' conftest.er1 >conftest.err
27375   rm -f conftest.er1
27376   cat conftest.err >&5
27377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378   (exit $ac_status); } &&
27379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27380   { (case "(($ac_try" in
27381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27382   *) ac_try_echo=$ac_try;;
27383 esac
27384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27385   (eval "$ac_try") 2>&5
27386   ac_status=$?
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); }; } &&
27389          { ac_try='test -s conftest$ac_exeext'
27390   { (case "(($ac_try" in
27391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392   *) ac_try_echo=$ac_try;;
27393 esac
27394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395   (eval "$ac_try") 2>&5
27396   ac_status=$?
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); }; }; then
27399   ac_cv_lib_ffi_ffi_call=yes
27400 else
27401   echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27403
27404         ac_cv_lib_ffi_ffi_call=no
27405 fi
27406
27407 rm -f core conftest.err conftest.$ac_objext \
27408       conftest$ac_exeext conftest.$ac_ext
27409 LIBS=$ac_check_lib_save_LIBS
27410 fi
27411 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27412 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27413 if test $ac_cv_lib_ffi_ffi_call = yes; then
27414   have_libffi=1
27415 else
27416   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27417 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27418 fi
27419
27420
27421 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27422 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27423 if test "${ac_cv_search_mallinfo+set}" = set; then
27424   echo $ECHO_N "(cached) $ECHO_C" >&6
27425 else
27426   ac_func_search_save_LIBS=$LIBS
27427 cat >conftest.$ac_ext <<_ACEOF
27428 /* confdefs.h.  */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h.  */
27433
27434 /* Override any GCC internal prototype to avoid an error.
27435    Use char because int might match the return type of a GCC
27436    builtin and then its argument prototype would still apply.  */
27437 #ifdef __cplusplus
27438 extern "C"
27439 #endif
27440 char mallinfo ();
27441 int
27442 main ()
27443 {
27444 return mallinfo ();
27445   ;
27446   return 0;
27447 }
27448 _ACEOF
27449 for ac_lib in '' malloc; do
27450   if test -z "$ac_lib"; then
27451     ac_res="none required"
27452   else
27453     ac_res=-l$ac_lib
27454     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27455   fi
27456   rm -f conftest.$ac_objext conftest$ac_exeext
27457 if { (ac_try="$ac_link"
27458 case "(($ac_try" in
27459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460   *) ac_try_echo=$ac_try;;
27461 esac
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463   (eval "$ac_link") 2>conftest.er1
27464   ac_status=$?
27465   grep -v '^ *+' conftest.er1 >conftest.err
27466   rm -f conftest.er1
27467   cat conftest.err >&5
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); } &&
27470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27471   { (case "(($ac_try" in
27472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473   *) ac_try_echo=$ac_try;;
27474 esac
27475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27476   (eval "$ac_try") 2>&5
27477   ac_status=$?
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); }; } &&
27480          { ac_try='test -s conftest$ac_exeext'
27481   { (case "(($ac_try" in
27482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483   *) ac_try_echo=$ac_try;;
27484 esac
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486   (eval "$ac_try") 2>&5
27487   ac_status=$?
27488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489   (exit $ac_status); }; }; then
27490   ac_cv_search_mallinfo=$ac_res
27491 else
27492   echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27494
27495
27496 fi
27497
27498 rm -f core conftest.err conftest.$ac_objext \
27499       conftest$ac_exeext
27500   if test "${ac_cv_search_mallinfo+set}" = set; then
27501   break
27502 fi
27503 done
27504 if test "${ac_cv_search_mallinfo+set}" = set; then
27505   :
27506 else
27507   ac_cv_search_mallinfo=no
27508 fi
27509 rm conftest.$ac_ext
27510 LIBS=$ac_func_search_save_LIBS
27511 fi
27512 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27513 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27514 ac_res=$ac_cv_search_mallinfo
27515 if test "$ac_res" != no; then
27516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27517
27518 cat >>confdefs.h <<\_ACEOF
27519 #define HAVE_MALLINFO 1
27520 _ACEOF
27521
27522 fi
27523
27524
27525 if test "$ENABLE_THREADS" -eq 1 ; then
27526
27527 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27528 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27529 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27530   echo $ECHO_N "(cached) $ECHO_C" >&6
27531 else
27532   ac_check_lib_save_LIBS=$LIBS
27533 LIBS="-lpthread  $LIBS"
27534 cat >conftest.$ac_ext <<_ACEOF
27535 /* confdefs.h.  */
27536 _ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h.  */
27540
27541 /* Override any GCC internal prototype to avoid an error.
27542    Use char because int might match the return type of a GCC
27543    builtin and then its argument prototype would still apply.  */
27544 #ifdef __cplusplus
27545 extern "C"
27546 #endif
27547 char pthread_mutex_init ();
27548 int
27549 main ()
27550 {
27551 return pthread_mutex_init ();
27552   ;
27553   return 0;
27554 }
27555 _ACEOF
27556 rm -f conftest.$ac_objext conftest$ac_exeext
27557 if { (ac_try="$ac_link"
27558 case "(($ac_try" in
27559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560   *) ac_try_echo=$ac_try;;
27561 esac
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563   (eval "$ac_link") 2>conftest.er1
27564   ac_status=$?
27565   grep -v '^ *+' conftest.er1 >conftest.err
27566   rm -f conftest.er1
27567   cat conftest.err >&5
27568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569   (exit $ac_status); } &&
27570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27571   { (case "(($ac_try" in
27572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573   *) ac_try_echo=$ac_try;;
27574 esac
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576   (eval "$ac_try") 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; } &&
27580          { ac_try='test -s conftest$ac_exeext'
27581   { (case "(($ac_try" in
27582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583   *) ac_try_echo=$ac_try;;
27584 esac
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586   (eval "$ac_try") 2>&5
27587   ac_status=$?
27588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589   (exit $ac_status); }; }; then
27590   ac_cv_lib_pthread_pthread_mutex_init=yes
27591 else
27592   echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.$ac_ext >&5
27594
27595         ac_cv_lib_pthread_pthread_mutex_init=no
27596 fi
27597
27598 rm -f core conftest.err conftest.$ac_objext \
27599       conftest$ac_exeext conftest.$ac_ext
27600 LIBS=$ac_check_lib_save_LIBS
27601 fi
27602 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27603 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27604 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27605   cat >>confdefs.h <<_ACEOF
27606 #define HAVE_LIBPTHREAD 1
27607 _ACEOF
27608
27609   LIBS="-lpthread $LIBS"
27610
27611 fi
27612
27613   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27614 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27615 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27616   echo $ECHO_N "(cached) $ECHO_C" >&6
27617 else
27618   ac_func_search_save_LIBS=$LIBS
27619 cat >conftest.$ac_ext <<_ACEOF
27620 /* confdefs.h.  */
27621 _ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h.  */
27625
27626 /* Override any GCC internal prototype to avoid an error.
27627    Use char because int might match the return type of a GCC
27628    builtin and then its argument prototype would still apply.  */
27629 #ifdef __cplusplus
27630 extern "C"
27631 #endif
27632 char pthread_mutex_lock ();
27633 int
27634 main ()
27635 {
27636 return pthread_mutex_lock ();
27637   ;
27638   return 0;
27639 }
27640 _ACEOF
27641 for ac_lib in '' pthread; do
27642   if test -z "$ac_lib"; then
27643     ac_res="none required"
27644   else
27645     ac_res=-l$ac_lib
27646     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27647   fi
27648   rm -f conftest.$ac_objext conftest$ac_exeext
27649 if { (ac_try="$ac_link"
27650 case "(($ac_try" in
27651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652   *) ac_try_echo=$ac_try;;
27653 esac
27654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27655   (eval "$ac_link") 2>conftest.er1
27656   ac_status=$?
27657   grep -v '^ *+' conftest.er1 >conftest.err
27658   rm -f conftest.er1
27659   cat conftest.err >&5
27660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661   (exit $ac_status); } &&
27662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27663   { (case "(($ac_try" in
27664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27665   *) ac_try_echo=$ac_try;;
27666 esac
27667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27668   (eval "$ac_try") 2>&5
27669   ac_status=$?
27670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671   (exit $ac_status); }; } &&
27672          { ac_try='test -s conftest$ac_exeext'
27673   { (case "(($ac_try" in
27674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675   *) ac_try_echo=$ac_try;;
27676 esac
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678   (eval "$ac_try") 2>&5
27679   ac_status=$?
27680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681   (exit $ac_status); }; }; then
27682   ac_cv_search_pthread_mutex_lock=$ac_res
27683 else
27684   echo "$as_me: failed program was:" >&5
27685 sed 's/^/| /' conftest.$ac_ext >&5
27686
27687
27688 fi
27689
27690 rm -f core conftest.err conftest.$ac_objext \
27691       conftest$ac_exeext
27692   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27693   break
27694 fi
27695 done
27696 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27697   :
27698 else
27699   ac_cv_search_pthread_mutex_lock=no
27700 fi
27701 rm conftest.$ac_ext
27702 LIBS=$ac_func_search_save_LIBS
27703 fi
27704 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27705 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27706 ac_res=$ac_cv_search_pthread_mutex_lock
27707 if test "$ac_res" != no; then
27708   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27709
27710 cat >>confdefs.h <<\_ACEOF
27711 #define HAVE_PTHREAD_MUTEX_LOCK 1
27712 _ACEOF
27713
27714 fi
27715
27716 fi
27717
27718
27719 # Check whether --with-udis86 was given.
27720 if test "${with_udis86+set}" = set; then
27721   withval=$with_udis86;
27722       USE_UDIS86=1
27723
27724       case "$withval" in
27725         /usr/lib|yes) ;;
27726         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27727       esac
27728
27729 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27730 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27731 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27732   echo $ECHO_N "(cached) $ECHO_C" >&6
27733 else
27734   ac_check_lib_save_LIBS=$LIBS
27735 LIBS="-ludis86  $LIBS"
27736 cat >conftest.$ac_ext <<_ACEOF
27737 /* confdefs.h.  */
27738 _ACEOF
27739 cat confdefs.h >>conftest.$ac_ext
27740 cat >>conftest.$ac_ext <<_ACEOF
27741 /* end confdefs.h.  */
27742
27743 /* Override any GCC internal prototype to avoid an error.
27744    Use char because int might match the return type of a GCC
27745    builtin and then its argument prototype would still apply.  */
27746 #ifdef __cplusplus
27747 extern "C"
27748 #endif
27749 char ud_init ();
27750 int
27751 main ()
27752 {
27753 return ud_init ();
27754   ;
27755   return 0;
27756 }
27757 _ACEOF
27758 rm -f conftest.$ac_objext conftest$ac_exeext
27759 if { (ac_try="$ac_link"
27760 case "(($ac_try" in
27761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27762   *) ac_try_echo=$ac_try;;
27763 esac
27764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27765   (eval "$ac_link") 2>conftest.er1
27766   ac_status=$?
27767   grep -v '^ *+' conftest.er1 >conftest.err
27768   rm -f conftest.er1
27769   cat conftest.err >&5
27770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771   (exit $ac_status); } &&
27772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27773   { (case "(($ac_try" in
27774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775   *) ac_try_echo=$ac_try;;
27776 esac
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778   (eval "$ac_try") 2>&5
27779   ac_status=$?
27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781   (exit $ac_status); }; } &&
27782          { ac_try='test -s conftest$ac_exeext'
27783   { (case "(($ac_try" in
27784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785   *) ac_try_echo=$ac_try;;
27786 esac
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788   (eval "$ac_try") 2>&5
27789   ac_status=$?
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); }; }; then
27792   ac_cv_lib_udis86_ud_init=yes
27793 else
27794   echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27796
27797         ac_cv_lib_udis86_ud_init=no
27798 fi
27799
27800 rm -f core conftest.err conftest.$ac_objext \
27801       conftest$ac_exeext conftest.$ac_ext
27802 LIBS=$ac_check_lib_save_LIBS
27803 fi
27804 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27805 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27806 if test $ac_cv_lib_udis86_ud_init = yes; then
27807   cat >>confdefs.h <<_ACEOF
27808 #define HAVE_LIBUDIS86 1
27809 _ACEOF
27810
27811   LIBS="-ludis86 $LIBS"
27812
27813 else
27814
27815         echo "Error! You need to have libudis86 around."
27816         exit -1
27817
27818 fi
27819
27820
27821 else
27822   USE_UDIS86=0
27823
27824 fi
27825
27826
27827 cat >>confdefs.h <<_ACEOF
27828 #define USE_UDIS86 $USE_UDIS86
27829 _ACEOF
27830
27831
27832
27833
27834
27835
27836
27837
27838 ac_header_dirent=no
27839 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27840   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27841 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27842 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27844   echo $ECHO_N "(cached) $ECHO_C" >&6
27845 else
27846   cat >conftest.$ac_ext <<_ACEOF
27847 /* confdefs.h.  */
27848 _ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h.  */
27852 #include <sys/types.h>
27853 #include <$ac_hdr>
27854
27855 int
27856 main ()
27857 {
27858 if ((DIR *) 0)
27859 return 0;
27860   ;
27861   return 0;
27862 }
27863 _ACEOF
27864 rm -f conftest.$ac_objext
27865 if { (ac_try="$ac_compile"
27866 case "(($ac_try" in
27867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868   *) ac_try_echo=$ac_try;;
27869 esac
27870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871   (eval "$ac_compile") 2>conftest.er1
27872   ac_status=$?
27873   grep -v '^ *+' conftest.er1 >conftest.err
27874   rm -f conftest.er1
27875   cat conftest.err >&5
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); } &&
27878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27879   { (case "(($ac_try" in
27880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881   *) ac_try_echo=$ac_try;;
27882 esac
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884   (eval "$ac_try") 2>&5
27885   ac_status=$?
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); }; } &&
27888          { ac_try='test -s conftest.$ac_objext'
27889   { (case "(($ac_try" in
27890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891   *) ac_try_echo=$ac_try;;
27892 esac
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894   (eval "$ac_try") 2>&5
27895   ac_status=$?
27896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897   (exit $ac_status); }; }; then
27898   eval "$as_ac_Header=yes"
27899 else
27900   echo "$as_me: failed program was:" >&5
27901 sed 's/^/| /' conftest.$ac_ext >&5
27902
27903         eval "$as_ac_Header=no"
27904 fi
27905
27906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27907 fi
27908 ac_res=`eval echo '${'$as_ac_Header'}'`
27909                { echo "$as_me:$LINENO: result: $ac_res" >&5
27910 echo "${ECHO_T}$ac_res" >&6; }
27911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27912   cat >>confdefs.h <<_ACEOF
27913 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27914 _ACEOF
27915
27916 ac_header_dirent=$ac_hdr; break
27917 fi
27918
27919 done
27920 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27921 if test $ac_header_dirent = dirent.h; then
27922   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27923 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27924 if test "${ac_cv_search_opendir+set}" = set; then
27925   echo $ECHO_N "(cached) $ECHO_C" >&6
27926 else
27927   ac_func_search_save_LIBS=$LIBS
27928 cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h.  */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h.  */
27934
27935 /* Override any GCC internal prototype to avoid an error.
27936    Use char because int might match the return type of a GCC
27937    builtin and then its argument prototype would still apply.  */
27938 #ifdef __cplusplus
27939 extern "C"
27940 #endif
27941 char opendir ();
27942 int
27943 main ()
27944 {
27945 return opendir ();
27946   ;
27947   return 0;
27948 }
27949 _ACEOF
27950 for ac_lib in '' dir; do
27951   if test -z "$ac_lib"; then
27952     ac_res="none required"
27953   else
27954     ac_res=-l$ac_lib
27955     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27956   fi
27957   rm -f conftest.$ac_objext conftest$ac_exeext
27958 if { (ac_try="$ac_link"
27959 case "(($ac_try" in
27960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961   *) ac_try_echo=$ac_try;;
27962 esac
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964   (eval "$ac_link") 2>conftest.er1
27965   ac_status=$?
27966   grep -v '^ *+' conftest.er1 >conftest.err
27967   rm -f conftest.er1
27968   cat conftest.err >&5
27969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970   (exit $ac_status); } &&
27971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27972   { (case "(($ac_try" in
27973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974   *) ac_try_echo=$ac_try;;
27975 esac
27976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977   (eval "$ac_try") 2>&5
27978   ac_status=$?
27979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980   (exit $ac_status); }; } &&
27981          { ac_try='test -s conftest$ac_exeext'
27982   { (case "(($ac_try" in
27983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984   *) ac_try_echo=$ac_try;;
27985 esac
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987   (eval "$ac_try") 2>&5
27988   ac_status=$?
27989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990   (exit $ac_status); }; }; then
27991   ac_cv_search_opendir=$ac_res
27992 else
27993   echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27995
27996
27997 fi
27998
27999 rm -f core conftest.err conftest.$ac_objext \
28000       conftest$ac_exeext
28001   if test "${ac_cv_search_opendir+set}" = set; then
28002   break
28003 fi
28004 done
28005 if test "${ac_cv_search_opendir+set}" = set; then
28006   :
28007 else
28008   ac_cv_search_opendir=no
28009 fi
28010 rm conftest.$ac_ext
28011 LIBS=$ac_func_search_save_LIBS
28012 fi
28013 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28014 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28015 ac_res=$ac_cv_search_opendir
28016 if test "$ac_res" != no; then
28017   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28018
28019 fi
28020
28021 else
28022   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28023 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28024 if test "${ac_cv_search_opendir+set}" = set; then
28025   echo $ECHO_N "(cached) $ECHO_C" >&6
28026 else
28027   ac_func_search_save_LIBS=$LIBS
28028 cat >conftest.$ac_ext <<_ACEOF
28029 /* confdefs.h.  */
28030 _ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h.  */
28034
28035 /* Override any GCC internal prototype to avoid an error.
28036    Use char because int might match the return type of a GCC
28037    builtin and then its argument prototype would still apply.  */
28038 #ifdef __cplusplus
28039 extern "C"
28040 #endif
28041 char opendir ();
28042 int
28043 main ()
28044 {
28045 return opendir ();
28046   ;
28047   return 0;
28048 }
28049 _ACEOF
28050 for ac_lib in '' x; do
28051   if test -z "$ac_lib"; then
28052     ac_res="none required"
28053   else
28054     ac_res=-l$ac_lib
28055     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28056   fi
28057   rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (ac_try="$ac_link"
28059 case "(($ac_try" in
28060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061   *) ac_try_echo=$ac_try;;
28062 esac
28063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064   (eval "$ac_link") 2>conftest.er1
28065   ac_status=$?
28066   grep -v '^ *+' conftest.er1 >conftest.err
28067   rm -f conftest.er1
28068   cat conftest.err >&5
28069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070   (exit $ac_status); } &&
28071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28072   { (case "(($ac_try" in
28073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074   *) ac_try_echo=$ac_try;;
28075 esac
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077   (eval "$ac_try") 2>&5
28078   ac_status=$?
28079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080   (exit $ac_status); }; } &&
28081          { ac_try='test -s conftest$ac_exeext'
28082   { (case "(($ac_try" in
28083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28084   *) ac_try_echo=$ac_try;;
28085 esac
28086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28087   (eval "$ac_try") 2>&5
28088   ac_status=$?
28089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090   (exit $ac_status); }; }; then
28091   ac_cv_search_opendir=$ac_res
28092 else
28093   echo "$as_me: failed program was:" >&5
28094 sed 's/^/| /' conftest.$ac_ext >&5
28095
28096
28097 fi
28098
28099 rm -f core conftest.err conftest.$ac_objext \
28100       conftest$ac_exeext
28101   if test "${ac_cv_search_opendir+set}" = set; then
28102   break
28103 fi
28104 done
28105 if test "${ac_cv_search_opendir+set}" = set; then
28106   :
28107 else
28108   ac_cv_search_opendir=no
28109 fi
28110 rm conftest.$ac_ext
28111 LIBS=$ac_func_search_save_LIBS
28112 fi
28113 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28114 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28115 ac_res=$ac_cv_search_opendir
28116 if test "$ac_res" != no; then
28117   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28118
28119 fi
28120
28121 fi
28122
28123 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28124 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28125 if test "${ac_cv_header_mmap_anon+set}" = set; then
28126   echo $ECHO_N "(cached) $ECHO_C" >&6
28127 else
28128    ac_ext=c
28129 ac_cpp='$CPP $CPPFLAGS'
28130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28133
28134   cat >conftest.$ac_ext <<_ACEOF
28135 /* confdefs.h.  */
28136 _ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h.  */
28140 #include <sys/mman.h>
28141 #include <unistd.h>
28142 #include <fcntl.h>
28143 int
28144 main ()
28145 {
28146 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28147   ;
28148   return 0;
28149 }
28150 _ACEOF
28151 rm -f conftest.$ac_objext
28152 if { (ac_try="$ac_compile"
28153 case "(($ac_try" in
28154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155   *) ac_try_echo=$ac_try;;
28156 esac
28157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158   (eval "$ac_compile") 2>conftest.er1
28159   ac_status=$?
28160   grep -v '^ *+' conftest.er1 >conftest.err
28161   rm -f conftest.er1
28162   cat conftest.err >&5
28163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164   (exit $ac_status); } &&
28165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28166   { (case "(($ac_try" in
28167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168   *) ac_try_echo=$ac_try;;
28169 esac
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171   (eval "$ac_try") 2>&5
28172   ac_status=$?
28173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174   (exit $ac_status); }; } &&
28175          { ac_try='test -s conftest.$ac_objext'
28176   { (case "(($ac_try" in
28177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178   *) ac_try_echo=$ac_try;;
28179 esac
28180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181   (eval "$ac_try") 2>&5
28182   ac_status=$?
28183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184   (exit $ac_status); }; }; then
28185   ac_cv_header_mmap_anon=yes
28186 else
28187   echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28189
28190         ac_cv_header_mmap_anon=no
28191 fi
28192
28193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28194   ac_ext=c
28195 ac_cpp='$CPP $CPPFLAGS'
28196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28199
28200
28201 fi
28202 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28203 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28204 if test "$ac_cv_header_mmap_anon" = yes; then
28205
28206 cat >>confdefs.h <<\_ACEOF
28207 #define HAVE_MMAP_ANONYMOUS 1
28208 _ACEOF
28209
28210 fi
28211
28212 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28213 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28214 if test "${ac_cv_header_stat_broken+set}" = set; then
28215   echo $ECHO_N "(cached) $ECHO_C" >&6
28216 else
28217   cat >conftest.$ac_ext <<_ACEOF
28218 /* confdefs.h.  */
28219 _ACEOF
28220 cat confdefs.h >>conftest.$ac_ext
28221 cat >>conftest.$ac_ext <<_ACEOF
28222 /* end confdefs.h.  */
28223 #include <sys/types.h>
28224 #include <sys/stat.h>
28225
28226 #if defined S_ISBLK && defined S_IFDIR
28227 # if S_ISBLK (S_IFDIR)
28228 You lose.
28229 # endif
28230 #endif
28231
28232 #if defined S_ISBLK && defined S_IFCHR
28233 # if S_ISBLK (S_IFCHR)
28234 You lose.
28235 # endif
28236 #endif
28237
28238 #if defined S_ISLNK && defined S_IFREG
28239 # if S_ISLNK (S_IFREG)
28240 You lose.
28241 # endif
28242 #endif
28243
28244 #if defined S_ISSOCK && defined S_IFREG
28245 # if S_ISSOCK (S_IFREG)
28246 You lose.
28247 # endif
28248 #endif
28249
28250 _ACEOF
28251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28252   $EGREP "You lose" >/dev/null 2>&1; then
28253   ac_cv_header_stat_broken=yes
28254 else
28255   ac_cv_header_stat_broken=no
28256 fi
28257 rm -f conftest*
28258
28259 fi
28260 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28261 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28262 if test $ac_cv_header_stat_broken = yes; then
28263
28264 cat >>confdefs.h <<\_ACEOF
28265 #define STAT_MACROS_BROKEN 1
28266 _ACEOF
28267
28268 fi
28269
28270 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28271 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28272 if test "${ac_cv_header_stdc+set}" = set; then
28273   echo $ECHO_N "(cached) $ECHO_C" >&6
28274 else
28275   cat >conftest.$ac_ext <<_ACEOF
28276 /* confdefs.h.  */
28277 _ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h.  */
28281 #include <stdlib.h>
28282 #include <stdarg.h>
28283 #include <string.h>
28284 #include <float.h>
28285
28286 int
28287 main ()
28288 {
28289
28290   ;
28291   return 0;
28292 }
28293 _ACEOF
28294 rm -f conftest.$ac_objext
28295 if { (ac_try="$ac_compile"
28296 case "(($ac_try" in
28297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298   *) ac_try_echo=$ac_try;;
28299 esac
28300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28301   (eval "$ac_compile") 2>conftest.er1
28302   ac_status=$?
28303   grep -v '^ *+' conftest.er1 >conftest.err
28304   rm -f conftest.er1
28305   cat conftest.err >&5
28306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307   (exit $ac_status); } &&
28308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28309   { (case "(($ac_try" in
28310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28311   *) ac_try_echo=$ac_try;;
28312 esac
28313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28314   (eval "$ac_try") 2>&5
28315   ac_status=$?
28316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317   (exit $ac_status); }; } &&
28318          { ac_try='test -s conftest.$ac_objext'
28319   { (case "(($ac_try" in
28320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321   *) ac_try_echo=$ac_try;;
28322 esac
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324   (eval "$ac_try") 2>&5
28325   ac_status=$?
28326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327   (exit $ac_status); }; }; then
28328   ac_cv_header_stdc=yes
28329 else
28330   echo "$as_me: failed program was:" >&5
28331 sed 's/^/| /' conftest.$ac_ext >&5
28332
28333         ac_cv_header_stdc=no
28334 fi
28335
28336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28337
28338 if test $ac_cv_header_stdc = yes; then
28339   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28340   cat >conftest.$ac_ext <<_ACEOF
28341 /* confdefs.h.  */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h.  */
28346 #include <string.h>
28347
28348 _ACEOF
28349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28350   $EGREP "memchr" >/dev/null 2>&1; then
28351   :
28352 else
28353   ac_cv_header_stdc=no
28354 fi
28355 rm -f conftest*
28356
28357 fi
28358
28359 if test $ac_cv_header_stdc = yes; then
28360   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28361   cat >conftest.$ac_ext <<_ACEOF
28362 /* confdefs.h.  */
28363 _ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h.  */
28367 #include <stdlib.h>
28368
28369 _ACEOF
28370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28371   $EGREP "free" >/dev/null 2>&1; then
28372   :
28373 else
28374   ac_cv_header_stdc=no
28375 fi
28376 rm -f conftest*
28377
28378 fi
28379
28380 if test $ac_cv_header_stdc = yes; then
28381   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28382   if test "$cross_compiling" = yes; then
28383   :
28384 else
28385   cat >conftest.$ac_ext <<_ACEOF
28386 /* confdefs.h.  */
28387 _ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h.  */
28391 #include <ctype.h>
28392 #include <stdlib.h>
28393 #if ((' ' & 0x0FF) == 0x020)
28394 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28395 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28396 #else
28397 # define ISLOWER(c) \
28398                    (('a' <= (c) && (c) <= 'i') \
28399                      || ('j' <= (c) && (c) <= 'r') \
28400                      || ('s' <= (c) && (c) <= 'z'))
28401 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28402 #endif
28403
28404 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28405 int
28406 main ()
28407 {
28408   int i;
28409   for (i = 0; i < 256; i++)
28410     if (XOR (islower (i), ISLOWER (i))
28411         || toupper (i) != TOUPPER (i))
28412       return 2;
28413   return 0;
28414 }
28415 _ACEOF
28416 rm -f conftest$ac_exeext
28417 if { (ac_try="$ac_link"
28418 case "(($ac_try" in
28419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420   *) ac_try_echo=$ac_try;;
28421 esac
28422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423   (eval "$ac_link") 2>&5
28424   ac_status=$?
28425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28427   { (case "(($ac_try" in
28428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429   *) ac_try_echo=$ac_try;;
28430 esac
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432   (eval "$ac_try") 2>&5
28433   ac_status=$?
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); }; }; then
28436   :
28437 else
28438   echo "$as_me: program exited with status $ac_status" >&5
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28441
28442 ( exit $ac_status )
28443 ac_cv_header_stdc=no
28444 fi
28445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28446 fi
28447
28448
28449 fi
28450 fi
28451 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28452 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28453 if test $ac_cv_header_stdc = yes; then
28454
28455 cat >>confdefs.h <<\_ACEOF
28456 #define STDC_HEADERS 1
28457 _ACEOF
28458
28459 fi
28460
28461 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28462 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28463 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28464   echo $ECHO_N "(cached) $ECHO_C" >&6
28465 else
28466   cat >conftest.$ac_ext <<_ACEOF
28467 /* confdefs.h.  */
28468 _ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h.  */
28472 #include <sys/types.h>
28473 #include <sys/wait.h>
28474 #ifndef WEXITSTATUS
28475 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28476 #endif
28477 #ifndef WIFEXITED
28478 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28479 #endif
28480
28481 int
28482 main ()
28483 {
28484   int s;
28485   wait (&s);
28486   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28487   ;
28488   return 0;
28489 }
28490 _ACEOF
28491 rm -f conftest.$ac_objext
28492 if { (ac_try="$ac_compile"
28493 case "(($ac_try" in
28494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28495   *) ac_try_echo=$ac_try;;
28496 esac
28497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28498   (eval "$ac_compile") 2>conftest.er1
28499   ac_status=$?
28500   grep -v '^ *+' conftest.er1 >conftest.err
28501   rm -f conftest.er1
28502   cat conftest.err >&5
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); } &&
28505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28506   { (case "(($ac_try" in
28507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28508   *) ac_try_echo=$ac_try;;
28509 esac
28510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28511   (eval "$ac_try") 2>&5
28512   ac_status=$?
28513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514   (exit $ac_status); }; } &&
28515          { ac_try='test -s conftest.$ac_objext'
28516   { (case "(($ac_try" in
28517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28518   *) ac_try_echo=$ac_try;;
28519 esac
28520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28521   (eval "$ac_try") 2>&5
28522   ac_status=$?
28523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524   (exit $ac_status); }; }; then
28525   ac_cv_header_sys_wait_h=yes
28526 else
28527   echo "$as_me: failed program was:" >&5
28528 sed 's/^/| /' conftest.$ac_ext >&5
28529
28530         ac_cv_header_sys_wait_h=no
28531 fi
28532
28533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28534 fi
28535 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28536 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28537 if test $ac_cv_header_sys_wait_h = yes; then
28538
28539 cat >>confdefs.h <<\_ACEOF
28540 #define HAVE_SYS_WAIT_H 1
28541 _ACEOF
28542
28543 fi
28544
28545 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28546 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28547 if test "${ac_cv_header_time+set}" = set; then
28548   echo $ECHO_N "(cached) $ECHO_C" >&6
28549 else
28550   cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h.  */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h.  */
28556 #include <sys/types.h>
28557 #include <sys/time.h>
28558 #include <time.h>
28559
28560 int
28561 main ()
28562 {
28563 if ((struct tm *) 0)
28564 return 0;
28565   ;
28566   return 0;
28567 }
28568 _ACEOF
28569 rm -f conftest.$ac_objext
28570 if { (ac_try="$ac_compile"
28571 case "(($ac_try" in
28572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28573   *) ac_try_echo=$ac_try;;
28574 esac
28575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28576   (eval "$ac_compile") 2>conftest.er1
28577   ac_status=$?
28578   grep -v '^ *+' conftest.er1 >conftest.err
28579   rm -f conftest.er1
28580   cat conftest.err >&5
28581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582   (exit $ac_status); } &&
28583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28584   { (case "(($ac_try" in
28585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586   *) ac_try_echo=$ac_try;;
28587 esac
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589   (eval "$ac_try") 2>&5
28590   ac_status=$?
28591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592   (exit $ac_status); }; } &&
28593          { ac_try='test -s conftest.$ac_objext'
28594   { (case "(($ac_try" in
28595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596   *) ac_try_echo=$ac_try;;
28597 esac
28598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28599   (eval "$ac_try") 2>&5
28600   ac_status=$?
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); }; }; then
28603   ac_cv_header_time=yes
28604 else
28605   echo "$as_me: failed program was:" >&5
28606 sed 's/^/| /' conftest.$ac_ext >&5
28607
28608         ac_cv_header_time=no
28609 fi
28610
28611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28612 fi
28613 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28614 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28615 if test $ac_cv_header_time = yes; then
28616
28617 cat >>confdefs.h <<\_ACEOF
28618 #define TIME_WITH_SYS_TIME 1
28619 _ACEOF
28620
28621 fi
28622
28623
28624
28625
28626
28627
28628
28629
28630 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28631 do
28632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28634   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28637   echo $ECHO_N "(cached) $ECHO_C" >&6
28638 fi
28639 ac_res=`eval echo '${'$as_ac_Header'}'`
28640                { echo "$as_me:$LINENO: result: $ac_res" >&5
28641 echo "${ECHO_T}$ac_res" >&6; }
28642 else
28643   # Is the header compilable?
28644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28646 cat >conftest.$ac_ext <<_ACEOF
28647 /* confdefs.h.  */
28648 _ACEOF
28649 cat confdefs.h >>conftest.$ac_ext
28650 cat >>conftest.$ac_ext <<_ACEOF
28651 /* end confdefs.h.  */
28652 $ac_includes_default
28653 #include <$ac_header>
28654 _ACEOF
28655 rm -f conftest.$ac_objext
28656 if { (ac_try="$ac_compile"
28657 case "(($ac_try" in
28658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28659   *) ac_try_echo=$ac_try;;
28660 esac
28661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28662   (eval "$ac_compile") 2>conftest.er1
28663   ac_status=$?
28664   grep -v '^ *+' conftest.er1 >conftest.err
28665   rm -f conftest.er1
28666   cat conftest.err >&5
28667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668   (exit $ac_status); } &&
28669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28670   { (case "(($ac_try" in
28671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28672   *) ac_try_echo=$ac_try;;
28673 esac
28674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28675   (eval "$ac_try") 2>&5
28676   ac_status=$?
28677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678   (exit $ac_status); }; } &&
28679          { ac_try='test -s conftest.$ac_objext'
28680   { (case "(($ac_try" in
28681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682   *) ac_try_echo=$ac_try;;
28683 esac
28684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685   (eval "$ac_try") 2>&5
28686   ac_status=$?
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); }; }; then
28689   ac_header_compiler=yes
28690 else
28691   echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.$ac_ext >&5
28693
28694         ac_header_compiler=no
28695 fi
28696
28697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28699 echo "${ECHO_T}$ac_header_compiler" >&6; }
28700
28701 # Is the header present?
28702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28704 cat >conftest.$ac_ext <<_ACEOF
28705 /* confdefs.h.  */
28706 _ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h.  */
28710 #include <$ac_header>
28711 _ACEOF
28712 if { (ac_try="$ac_cpp conftest.$ac_ext"
28713 case "(($ac_try" in
28714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715   *) ac_try_echo=$ac_try;;
28716 esac
28717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28719   ac_status=$?
28720   grep -v '^ *+' conftest.er1 >conftest.err
28721   rm -f conftest.er1
28722   cat conftest.err >&5
28723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724   (exit $ac_status); } >/dev/null; then
28725   if test -s conftest.err; then
28726     ac_cpp_err=$ac_c_preproc_warn_flag
28727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28728   else
28729     ac_cpp_err=
28730   fi
28731 else
28732   ac_cpp_err=yes
28733 fi
28734 if test -z "$ac_cpp_err"; then
28735   ac_header_preproc=yes
28736 else
28737   echo "$as_me: failed program was:" >&5
28738 sed 's/^/| /' conftest.$ac_ext >&5
28739
28740   ac_header_preproc=no
28741 fi
28742
28743 rm -f conftest.err conftest.$ac_ext
28744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28745 echo "${ECHO_T}$ac_header_preproc" >&6; }
28746
28747 # So?  What about this header?
28748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28749   yes:no: )
28750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28754     ac_header_preproc=yes
28755     ;;
28756   no:yes:* )
28757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28769     ( cat <<\_ASBOX
28770 ## ----------------------------------- ##
28771 ## Report this to llvmbugs@cs.uiuc.edu ##
28772 ## ----------------------------------- ##
28773 _ASBOX
28774      ) | sed "s/^/$as_me: WARNING:     /" >&2
28775     ;;
28776 esac
28777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28780   echo $ECHO_N "(cached) $ECHO_C" >&6
28781 else
28782   eval "$as_ac_Header=\$ac_header_preproc"
28783 fi
28784 ac_res=`eval echo '${'$as_ac_Header'}'`
28785                { echo "$as_me:$LINENO: result: $ac_res" >&5
28786 echo "${ECHO_T}$ac_res" >&6; }
28787
28788 fi
28789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28790   cat >>confdefs.h <<_ACEOF
28791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28792 _ACEOF
28793
28794 fi
28795
28796 done
28797
28798
28799
28800
28801
28802
28803
28804 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28805 do
28806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28808   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28811   echo $ECHO_N "(cached) $ECHO_C" >&6
28812 fi
28813 ac_res=`eval echo '${'$as_ac_Header'}'`
28814                { echo "$as_me:$LINENO: result: $ac_res" >&5
28815 echo "${ECHO_T}$ac_res" >&6; }
28816 else
28817   # Is the header compilable?
28818 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28820 cat >conftest.$ac_ext <<_ACEOF
28821 /* confdefs.h.  */
28822 _ACEOF
28823 cat confdefs.h >>conftest.$ac_ext
28824 cat >>conftest.$ac_ext <<_ACEOF
28825 /* end confdefs.h.  */
28826 $ac_includes_default
28827 #include <$ac_header>
28828 _ACEOF
28829 rm -f conftest.$ac_objext
28830 if { (ac_try="$ac_compile"
28831 case "(($ac_try" in
28832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833   *) ac_try_echo=$ac_try;;
28834 esac
28835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28836   (eval "$ac_compile") 2>conftest.er1
28837   ac_status=$?
28838   grep -v '^ *+' conftest.er1 >conftest.err
28839   rm -f conftest.er1
28840   cat conftest.err >&5
28841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842   (exit $ac_status); } &&
28843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28844   { (case "(($ac_try" in
28845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846   *) ac_try_echo=$ac_try;;
28847 esac
28848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28849   (eval "$ac_try") 2>&5
28850   ac_status=$?
28851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852   (exit $ac_status); }; } &&
28853          { ac_try='test -s conftest.$ac_objext'
28854   { (case "(($ac_try" in
28855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28856   *) ac_try_echo=$ac_try;;
28857 esac
28858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859   (eval "$ac_try") 2>&5
28860   ac_status=$?
28861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862   (exit $ac_status); }; }; then
28863   ac_header_compiler=yes
28864 else
28865   echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.$ac_ext >&5
28867
28868         ac_header_compiler=no
28869 fi
28870
28871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28873 echo "${ECHO_T}$ac_header_compiler" >&6; }
28874
28875 # Is the header present?
28876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28878 cat >conftest.$ac_ext <<_ACEOF
28879 /* confdefs.h.  */
28880 _ACEOF
28881 cat confdefs.h >>conftest.$ac_ext
28882 cat >>conftest.$ac_ext <<_ACEOF
28883 /* end confdefs.h.  */
28884 #include <$ac_header>
28885 _ACEOF
28886 if { (ac_try="$ac_cpp conftest.$ac_ext"
28887 case "(($ac_try" in
28888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28889   *) ac_try_echo=$ac_try;;
28890 esac
28891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28893   ac_status=$?
28894   grep -v '^ *+' conftest.er1 >conftest.err
28895   rm -f conftest.er1
28896   cat conftest.err >&5
28897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898   (exit $ac_status); } >/dev/null; then
28899   if test -s conftest.err; then
28900     ac_cpp_err=$ac_c_preproc_warn_flag
28901     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28902   else
28903     ac_cpp_err=
28904   fi
28905 else
28906   ac_cpp_err=yes
28907 fi
28908 if test -z "$ac_cpp_err"; then
28909   ac_header_preproc=yes
28910 else
28911   echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28913
28914   ac_header_preproc=no
28915 fi
28916
28917 rm -f conftest.err conftest.$ac_ext
28918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28919 echo "${ECHO_T}$ac_header_preproc" >&6; }
28920
28921 # So?  What about this header?
28922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28923   yes:no: )
28924     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28928     ac_header_preproc=yes
28929     ;;
28930   no:yes:* )
28931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28933     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28934 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28935     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28937     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28938 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28941     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28943     ( cat <<\_ASBOX
28944 ## ----------------------------------- ##
28945 ## Report this to llvmbugs@cs.uiuc.edu ##
28946 ## ----------------------------------- ##
28947 _ASBOX
28948      ) | sed "s/^/$as_me: WARNING:     /" >&2
28949     ;;
28950 esac
28951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28954   echo $ECHO_N "(cached) $ECHO_C" >&6
28955 else
28956   eval "$as_ac_Header=\$ac_header_preproc"
28957 fi
28958 ac_res=`eval echo '${'$as_ac_Header'}'`
28959                { echo "$as_me:$LINENO: result: $ac_res" >&5
28960 echo "${ECHO_T}$ac_res" >&6; }
28961
28962 fi
28963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28964   cat >>confdefs.h <<_ACEOF
28965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28966 _ACEOF
28967
28968 fi
28969
28970 done
28971
28972
28973 for ac_header in windows.h
28974 do
28975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28977   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28980   echo $ECHO_N "(cached) $ECHO_C" >&6
28981 fi
28982 ac_res=`eval echo '${'$as_ac_Header'}'`
28983                { echo "$as_me:$LINENO: result: $ac_res" >&5
28984 echo "${ECHO_T}$ac_res" >&6; }
28985 else
28986   # Is the header compilable?
28987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28989 cat >conftest.$ac_ext <<_ACEOF
28990 /* confdefs.h.  */
28991 _ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h.  */
28995 $ac_includes_default
28996 #include <$ac_header>
28997 _ACEOF
28998 rm -f conftest.$ac_objext
28999 if { (ac_try="$ac_compile"
29000 case "(($ac_try" in
29001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002   *) ac_try_echo=$ac_try;;
29003 esac
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005   (eval "$ac_compile") 2>conftest.er1
29006   ac_status=$?
29007   grep -v '^ *+' conftest.er1 >conftest.err
29008   rm -f conftest.er1
29009   cat conftest.err >&5
29010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011   (exit $ac_status); } &&
29012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29013   { (case "(($ac_try" in
29014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015   *) ac_try_echo=$ac_try;;
29016 esac
29017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018   (eval "$ac_try") 2>&5
29019   ac_status=$?
29020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021   (exit $ac_status); }; } &&
29022          { ac_try='test -s conftest.$ac_objext'
29023   { (case "(($ac_try" in
29024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29025   *) ac_try_echo=$ac_try;;
29026 esac
29027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29028   (eval "$ac_try") 2>&5
29029   ac_status=$?
29030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031   (exit $ac_status); }; }; then
29032   ac_header_compiler=yes
29033 else
29034   echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29036
29037         ac_header_compiler=no
29038 fi
29039
29040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29042 echo "${ECHO_T}$ac_header_compiler" >&6; }
29043
29044 # Is the header present?
29045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29047 cat >conftest.$ac_ext <<_ACEOF
29048 /* confdefs.h.  */
29049 _ACEOF
29050 cat confdefs.h >>conftest.$ac_ext
29051 cat >>conftest.$ac_ext <<_ACEOF
29052 /* end confdefs.h.  */
29053 #include <$ac_header>
29054 _ACEOF
29055 if { (ac_try="$ac_cpp conftest.$ac_ext"
29056 case "(($ac_try" in
29057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058   *) ac_try_echo=$ac_try;;
29059 esac
29060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29062   ac_status=$?
29063   grep -v '^ *+' conftest.er1 >conftest.err
29064   rm -f conftest.er1
29065   cat conftest.err >&5
29066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067   (exit $ac_status); } >/dev/null; then
29068   if test -s conftest.err; then
29069     ac_cpp_err=$ac_c_preproc_warn_flag
29070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29071   else
29072     ac_cpp_err=
29073   fi
29074 else
29075   ac_cpp_err=yes
29076 fi
29077 if test -z "$ac_cpp_err"; then
29078   ac_header_preproc=yes
29079 else
29080   echo "$as_me: failed program was:" >&5
29081 sed 's/^/| /' conftest.$ac_ext >&5
29082
29083   ac_header_preproc=no
29084 fi
29085
29086 rm -f conftest.err conftest.$ac_ext
29087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29088 echo "${ECHO_T}$ac_header_preproc" >&6; }
29089
29090 # So?  What about this header?
29091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29092   yes:no: )
29093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29097     ac_header_preproc=yes
29098     ;;
29099   no:yes:* )
29100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29112     ( cat <<\_ASBOX
29113 ## ----------------------------------- ##
29114 ## Report this to llvmbugs@cs.uiuc.edu ##
29115 ## ----------------------------------- ##
29116 _ASBOX
29117      ) | sed "s/^/$as_me: WARNING:     /" >&2
29118     ;;
29119 esac
29120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29123   echo $ECHO_N "(cached) $ECHO_C" >&6
29124 else
29125   eval "$as_ac_Header=\$ac_header_preproc"
29126 fi
29127 ac_res=`eval echo '${'$as_ac_Header'}'`
29128                { echo "$as_me:$LINENO: result: $ac_res" >&5
29129 echo "${ECHO_T}$ac_res" >&6; }
29130
29131 fi
29132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29133   cat >>confdefs.h <<_ACEOF
29134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29135 _ACEOF
29136
29137 fi
29138
29139 done
29140
29141
29142
29143
29144
29145 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29146 do
29147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29149   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29152   echo $ECHO_N "(cached) $ECHO_C" >&6
29153 fi
29154 ac_res=`eval echo '${'$as_ac_Header'}'`
29155                { echo "$as_me:$LINENO: result: $ac_res" >&5
29156 echo "${ECHO_T}$ac_res" >&6; }
29157 else
29158   # Is the header compilable?
29159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29161 cat >conftest.$ac_ext <<_ACEOF
29162 /* confdefs.h.  */
29163 _ACEOF
29164 cat confdefs.h >>conftest.$ac_ext
29165 cat >>conftest.$ac_ext <<_ACEOF
29166 /* end confdefs.h.  */
29167 $ac_includes_default
29168 #include <$ac_header>
29169 _ACEOF
29170 rm -f conftest.$ac_objext
29171 if { (ac_try="$ac_compile"
29172 case "(($ac_try" in
29173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174   *) ac_try_echo=$ac_try;;
29175 esac
29176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177   (eval "$ac_compile") 2>conftest.er1
29178   ac_status=$?
29179   grep -v '^ *+' conftest.er1 >conftest.err
29180   rm -f conftest.er1
29181   cat conftest.err >&5
29182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183   (exit $ac_status); } &&
29184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29194          { ac_try='test -s conftest.$ac_objext'
29195   { (case "(($ac_try" in
29196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197   *) ac_try_echo=$ac_try;;
29198 esac
29199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29200   (eval "$ac_try") 2>&5
29201   ac_status=$?
29202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203   (exit $ac_status); }; }; then
29204   ac_header_compiler=yes
29205 else
29206   echo "$as_me: failed program was:" >&5
29207 sed 's/^/| /' conftest.$ac_ext >&5
29208
29209         ac_header_compiler=no
29210 fi
29211
29212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29214 echo "${ECHO_T}$ac_header_compiler" >&6; }
29215
29216 # Is the header present?
29217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29219 cat >conftest.$ac_ext <<_ACEOF
29220 /* confdefs.h.  */
29221 _ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h.  */
29225 #include <$ac_header>
29226 _ACEOF
29227 if { (ac_try="$ac_cpp conftest.$ac_ext"
29228 case "(($ac_try" in
29229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230   *) ac_try_echo=$ac_try;;
29231 esac
29232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29234   ac_status=$?
29235   grep -v '^ *+' conftest.er1 >conftest.err
29236   rm -f conftest.er1
29237   cat conftest.err >&5
29238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239   (exit $ac_status); } >/dev/null; then
29240   if test -s conftest.err; then
29241     ac_cpp_err=$ac_c_preproc_warn_flag
29242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29243   else
29244     ac_cpp_err=
29245   fi
29246 else
29247   ac_cpp_err=yes
29248 fi
29249 if test -z "$ac_cpp_err"; then
29250   ac_header_preproc=yes
29251 else
29252   echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29254
29255   ac_header_preproc=no
29256 fi
29257
29258 rm -f conftest.err conftest.$ac_ext
29259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29260 echo "${ECHO_T}$ac_header_preproc" >&6; }
29261
29262 # So?  What about this header?
29263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29264   yes:no: )
29265     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29269     ac_header_preproc=yes
29270     ;;
29271   no:yes:* )
29272     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29274     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29275 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29276     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29278     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29279 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29282     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29284     ( cat <<\_ASBOX
29285 ## ----------------------------------- ##
29286 ## Report this to llvmbugs@cs.uiuc.edu ##
29287 ## ----------------------------------- ##
29288 _ASBOX
29289      ) | sed "s/^/$as_me: WARNING:     /" >&2
29290     ;;
29291 esac
29292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29295   echo $ECHO_N "(cached) $ECHO_C" >&6
29296 else
29297   eval "$as_ac_Header=\$ac_header_preproc"
29298 fi
29299 ac_res=`eval echo '${'$as_ac_Header'}'`
29300                { echo "$as_me:$LINENO: result: $ac_res" >&5
29301 echo "${ECHO_T}$ac_res" >&6; }
29302
29303 fi
29304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29305   cat >>confdefs.h <<_ACEOF
29306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29307 _ACEOF
29308
29309 fi
29310
29311 done
29312
29313
29314
29315
29316 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29317 do
29318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29320   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29323   echo $ECHO_N "(cached) $ECHO_C" >&6
29324 fi
29325 ac_res=`eval echo '${'$as_ac_Header'}'`
29326                { echo "$as_me:$LINENO: result: $ac_res" >&5
29327 echo "${ECHO_T}$ac_res" >&6; }
29328 else
29329   # Is the header compilable?
29330 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29332 cat >conftest.$ac_ext <<_ACEOF
29333 /* confdefs.h.  */
29334 _ACEOF
29335 cat confdefs.h >>conftest.$ac_ext
29336 cat >>conftest.$ac_ext <<_ACEOF
29337 /* end confdefs.h.  */
29338 $ac_includes_default
29339 #include <$ac_header>
29340 _ACEOF
29341 rm -f conftest.$ac_objext
29342 if { (ac_try="$ac_compile"
29343 case "(($ac_try" in
29344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345   *) ac_try_echo=$ac_try;;
29346 esac
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348   (eval "$ac_compile") 2>conftest.er1
29349   ac_status=$?
29350   grep -v '^ *+' conftest.er1 >conftest.err
29351   rm -f conftest.er1
29352   cat conftest.err >&5
29353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354   (exit $ac_status); } &&
29355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29356   { (case "(($ac_try" in
29357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29358   *) ac_try_echo=$ac_try;;
29359 esac
29360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29361   (eval "$ac_try") 2>&5
29362   ac_status=$?
29363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364   (exit $ac_status); }; } &&
29365          { ac_try='test -s conftest.$ac_objext'
29366   { (case "(($ac_try" in
29367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368   *) ac_try_echo=$ac_try;;
29369 esac
29370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371   (eval "$ac_try") 2>&5
29372   ac_status=$?
29373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); }; }; then
29375   ac_header_compiler=yes
29376 else
29377   echo "$as_me: failed program was:" >&5
29378 sed 's/^/| /' conftest.$ac_ext >&5
29379
29380         ac_header_compiler=no
29381 fi
29382
29383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29385 echo "${ECHO_T}$ac_header_compiler" >&6; }
29386
29387 # Is the header present?
29388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29390 cat >conftest.$ac_ext <<_ACEOF
29391 /* confdefs.h.  */
29392 _ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h.  */
29396 #include <$ac_header>
29397 _ACEOF
29398 if { (ac_try="$ac_cpp conftest.$ac_ext"
29399 case "(($ac_try" in
29400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29401   *) ac_try_echo=$ac_try;;
29402 esac
29403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29405   ac_status=$?
29406   grep -v '^ *+' conftest.er1 >conftest.err
29407   rm -f conftest.er1
29408   cat conftest.err >&5
29409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410   (exit $ac_status); } >/dev/null; then
29411   if test -s conftest.err; then
29412     ac_cpp_err=$ac_c_preproc_warn_flag
29413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29414   else
29415     ac_cpp_err=
29416   fi
29417 else
29418   ac_cpp_err=yes
29419 fi
29420 if test -z "$ac_cpp_err"; then
29421   ac_header_preproc=yes
29422 else
29423   echo "$as_me: failed program was:" >&5
29424 sed 's/^/| /' conftest.$ac_ext >&5
29425
29426   ac_header_preproc=no
29427 fi
29428
29429 rm -f conftest.err conftest.$ac_ext
29430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29431 echo "${ECHO_T}$ac_header_preproc" >&6; }
29432
29433 # So?  What about this header?
29434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29435   yes:no: )
29436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29440     ac_header_preproc=yes
29441     ;;
29442   no:yes:* )
29443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29455     ( cat <<\_ASBOX
29456 ## ----------------------------------- ##
29457 ## Report this to llvmbugs@cs.uiuc.edu ##
29458 ## ----------------------------------- ##
29459 _ASBOX
29460      ) | sed "s/^/$as_me: WARNING:     /" >&2
29461     ;;
29462 esac
29463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29466   echo $ECHO_N "(cached) $ECHO_C" >&6
29467 else
29468   eval "$as_ac_Header=\$ac_header_preproc"
29469 fi
29470 ac_res=`eval echo '${'$as_ac_Header'}'`
29471                { echo "$as_me:$LINENO: result: $ac_res" >&5
29472 echo "${ECHO_T}$ac_res" >&6; }
29473
29474 fi
29475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29476   cat >>confdefs.h <<_ACEOF
29477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29478 _ACEOF
29479
29480 fi
29481
29482 done
29483
29484 if test "$ENABLE_THREADS" -eq 1 ; then
29485
29486 for ac_header in pthread.h
29487 do
29488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29490   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29493   echo $ECHO_N "(cached) $ECHO_C" >&6
29494 fi
29495 ac_res=`eval echo '${'$as_ac_Header'}'`
29496                { echo "$as_me:$LINENO: result: $ac_res" >&5
29497 echo "${ECHO_T}$ac_res" >&6; }
29498 else
29499   # Is the header compilable?
29500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29502 cat >conftest.$ac_ext <<_ACEOF
29503 /* confdefs.h.  */
29504 _ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h.  */
29508 $ac_includes_default
29509 #include <$ac_header>
29510 _ACEOF
29511 rm -f conftest.$ac_objext
29512 if { (ac_try="$ac_compile"
29513 case "(($ac_try" in
29514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515   *) ac_try_echo=$ac_try;;
29516 esac
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518   (eval "$ac_compile") 2>conftest.er1
29519   ac_status=$?
29520   grep -v '^ *+' conftest.er1 >conftest.err
29521   rm -f conftest.er1
29522   cat conftest.err >&5
29523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524   (exit $ac_status); } &&
29525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29526   { (case "(($ac_try" in
29527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528   *) ac_try_echo=$ac_try;;
29529 esac
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531   (eval "$ac_try") 2>&5
29532   ac_status=$?
29533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534   (exit $ac_status); }; } &&
29535          { ac_try='test -s conftest.$ac_objext'
29536   { (case "(($ac_try" in
29537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29538   *) ac_try_echo=$ac_try;;
29539 esac
29540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29541   (eval "$ac_try") 2>&5
29542   ac_status=$?
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); }; }; then
29545   ac_header_compiler=yes
29546 else
29547   echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29549
29550         ac_header_compiler=no
29551 fi
29552
29553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29555 echo "${ECHO_T}$ac_header_compiler" >&6; }
29556
29557 # Is the header present?
29558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29560 cat >conftest.$ac_ext <<_ACEOF
29561 /* confdefs.h.  */
29562 _ACEOF
29563 cat confdefs.h >>conftest.$ac_ext
29564 cat >>conftest.$ac_ext <<_ACEOF
29565 /* end confdefs.h.  */
29566 #include <$ac_header>
29567 _ACEOF
29568 if { (ac_try="$ac_cpp conftest.$ac_ext"
29569 case "(($ac_try" in
29570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571   *) ac_try_echo=$ac_try;;
29572 esac
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29575   ac_status=$?
29576   grep -v '^ *+' conftest.er1 >conftest.err
29577   rm -f conftest.er1
29578   cat conftest.err >&5
29579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580   (exit $ac_status); } >/dev/null; then
29581   if test -s conftest.err; then
29582     ac_cpp_err=$ac_c_preproc_warn_flag
29583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29584   else
29585     ac_cpp_err=
29586   fi
29587 else
29588   ac_cpp_err=yes
29589 fi
29590 if test -z "$ac_cpp_err"; then
29591   ac_header_preproc=yes
29592 else
29593   echo "$as_me: failed program was:" >&5
29594 sed 's/^/| /' conftest.$ac_ext >&5
29595
29596   ac_header_preproc=no
29597 fi
29598
29599 rm -f conftest.err conftest.$ac_ext
29600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29601 echo "${ECHO_T}$ac_header_preproc" >&6; }
29602
29603 # So?  What about this header?
29604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29605   yes:no: )
29606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29610     ac_header_preproc=yes
29611     ;;
29612   no:yes:* )
29613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29625     ( cat <<\_ASBOX
29626 ## ----------------------------------- ##
29627 ## Report this to llvmbugs@cs.uiuc.edu ##
29628 ## ----------------------------------- ##
29629 _ASBOX
29630      ) | sed "s/^/$as_me: WARNING:     /" >&2
29631     ;;
29632 esac
29633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29636   echo $ECHO_N "(cached) $ECHO_C" >&6
29637 else
29638   eval "$as_ac_Header=\$ac_header_preproc"
29639 fi
29640 ac_res=`eval echo '${'$as_ac_Header'}'`
29641                { echo "$as_me:$LINENO: result: $ac_res" >&5
29642 echo "${ECHO_T}$ac_res" >&6; }
29643
29644 fi
29645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29646   cat >>confdefs.h <<_ACEOF
29647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29648 _ACEOF
29649  HAVE_PTHREAD=1
29650
29651 else
29652   HAVE_PTHREAD=0
29653
29654 fi
29655
29656 done
29657
29658 else
29659   HAVE_PTHREAD=0
29660
29661 fi
29662
29663 if test -n "$have_libffi" ; then
29664
29665
29666 for ac_header in ffi.h ffi/ffi.h
29667 do
29668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29673   echo $ECHO_N "(cached) $ECHO_C" >&6
29674 fi
29675 ac_res=`eval echo '${'$as_ac_Header'}'`
29676                { echo "$as_me:$LINENO: result: $ac_res" >&5
29677 echo "${ECHO_T}$ac_res" >&6; }
29678 else
29679   # Is the header compilable?
29680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29682 cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688 $ac_includes_default
29689 #include <$ac_header>
29690 _ACEOF
29691 rm -f conftest.$ac_objext
29692 if { (ac_try="$ac_compile"
29693 case "(($ac_try" in
29694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29695   *) ac_try_echo=$ac_try;;
29696 esac
29697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29698   (eval "$ac_compile") 2>conftest.er1
29699   ac_status=$?
29700   grep -v '^ *+' conftest.er1 >conftest.err
29701   rm -f conftest.er1
29702   cat conftest.err >&5
29703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704   (exit $ac_status); } &&
29705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29706   { (case "(($ac_try" in
29707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708   *) ac_try_echo=$ac_try;;
29709 esac
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711   (eval "$ac_try") 2>&5
29712   ac_status=$?
29713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714   (exit $ac_status); }; } &&
29715          { ac_try='test -s conftest.$ac_objext'
29716   { (case "(($ac_try" in
29717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718   *) ac_try_echo=$ac_try;;
29719 esac
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721   (eval "$ac_try") 2>&5
29722   ac_status=$?
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); }; }; then
29725   ac_header_compiler=yes
29726 else
29727   echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.$ac_ext >&5
29729
29730         ac_header_compiler=no
29731 fi
29732
29733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29735 echo "${ECHO_T}$ac_header_compiler" >&6; }
29736
29737 # Is the header present?
29738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29740 cat >conftest.$ac_ext <<_ACEOF
29741 /* confdefs.h.  */
29742 _ACEOF
29743 cat confdefs.h >>conftest.$ac_ext
29744 cat >>conftest.$ac_ext <<_ACEOF
29745 /* end confdefs.h.  */
29746 #include <$ac_header>
29747 _ACEOF
29748 if { (ac_try="$ac_cpp conftest.$ac_ext"
29749 case "(($ac_try" in
29750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751   *) ac_try_echo=$ac_try;;
29752 esac
29753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29755   ac_status=$?
29756   grep -v '^ *+' conftest.er1 >conftest.err
29757   rm -f conftest.er1
29758   cat conftest.err >&5
29759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760   (exit $ac_status); } >/dev/null; then
29761   if test -s conftest.err; then
29762     ac_cpp_err=$ac_c_preproc_warn_flag
29763     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29764   else
29765     ac_cpp_err=
29766   fi
29767 else
29768   ac_cpp_err=yes
29769 fi
29770 if test -z "$ac_cpp_err"; then
29771   ac_header_preproc=yes
29772 else
29773   echo "$as_me: failed program was:" >&5
29774 sed 's/^/| /' conftest.$ac_ext >&5
29775
29776   ac_header_preproc=no
29777 fi
29778
29779 rm -f conftest.err conftest.$ac_ext
29780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29781 echo "${ECHO_T}$ac_header_preproc" >&6; }
29782
29783 # So?  What about this header?
29784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29785   yes:no: )
29786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29790     ac_header_preproc=yes
29791     ;;
29792   no:yes:* )
29793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29805     ( cat <<\_ASBOX
29806 ## ----------------------------------- ##
29807 ## Report this to llvmbugs@cs.uiuc.edu ##
29808 ## ----------------------------------- ##
29809 _ASBOX
29810      ) | sed "s/^/$as_me: WARNING:     /" >&2
29811     ;;
29812 esac
29813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29816   echo $ECHO_N "(cached) $ECHO_C" >&6
29817 else
29818   eval "$as_ac_Header=\$ac_header_preproc"
29819 fi
29820 ac_res=`eval echo '${'$as_ac_Header'}'`
29821                { echo "$as_me:$LINENO: result: $ac_res" >&5
29822 echo "${ECHO_T}$ac_res" >&6; }
29823
29824 fi
29825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29826   cat >>confdefs.h <<_ACEOF
29827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29828 _ACEOF
29829  HAVE_FFI=1
29830
29831 fi
29832
29833 done
29834
29835 fi
29836
29837
29838
29839   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29840 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29841 if test "${ac_cv_huge_val_sanity+set}" = set; then
29842   echo $ECHO_N "(cached) $ECHO_C" >&6
29843 else
29844
29845     ac_ext=cpp
29846 ac_cpp='$CXXCPP $CPPFLAGS'
29847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29850
29851     CXXFLAGS=-pedantic
29852     if test "$cross_compiling" = yes; then
29853   ac_cv_huge_val_sanity=yes
29854 else
29855   cat >conftest.$ac_ext <<_ACEOF
29856 /* confdefs.h.  */
29857 _ACEOF
29858 cat confdefs.h >>conftest.$ac_ext
29859 cat >>conftest.$ac_ext <<_ACEOF
29860 /* end confdefs.h.  */
29861 #include <math.h>
29862 int
29863 main ()
29864 {
29865 double x = HUGE_VAL; return x != x;
29866   ;
29867   return 0;
29868 }
29869 _ACEOF
29870 rm -f conftest$ac_exeext
29871 if { (ac_try="$ac_link"
29872 case "(($ac_try" in
29873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874   *) ac_try_echo=$ac_try;;
29875 esac
29876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877   (eval "$ac_link") 2>&5
29878   ac_status=$?
29879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29881   { (case "(($ac_try" in
29882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883   *) ac_try_echo=$ac_try;;
29884 esac
29885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886   (eval "$ac_try") 2>&5
29887   ac_status=$?
29888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889   (exit $ac_status); }; }; then
29890   ac_cv_huge_val_sanity=yes
29891 else
29892   echo "$as_me: program exited with status $ac_status" >&5
29893 echo "$as_me: failed program was:" >&5
29894 sed 's/^/| /' conftest.$ac_ext >&5
29895
29896 ( exit $ac_status )
29897 ac_cv_huge_val_sanity=no
29898 fi
29899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29900 fi
29901
29902
29903     ac_ext=c
29904 ac_cpp='$CPP $CPPFLAGS'
29905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29908
29909
29910 fi
29911 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29912 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29913   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29914
29915
29916 { echo "$as_me:$LINENO: checking for pid_t" >&5
29917 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29918 if test "${ac_cv_type_pid_t+set}" = set; then
29919   echo $ECHO_N "(cached) $ECHO_C" >&6
29920 else
29921   cat >conftest.$ac_ext <<_ACEOF
29922 /* confdefs.h.  */
29923 _ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h.  */
29927 $ac_includes_default
29928 typedef pid_t ac__type_new_;
29929 int
29930 main ()
29931 {
29932 if ((ac__type_new_ *) 0)
29933   return 0;
29934 if (sizeof (ac__type_new_))
29935   return 0;
29936   ;
29937   return 0;
29938 }
29939 _ACEOF
29940 rm -f conftest.$ac_objext
29941 if { (ac_try="$ac_compile"
29942 case "(($ac_try" in
29943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944   *) ac_try_echo=$ac_try;;
29945 esac
29946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947   (eval "$ac_compile") 2>conftest.er1
29948   ac_status=$?
29949   grep -v '^ *+' conftest.er1 >conftest.err
29950   rm -f conftest.er1
29951   cat conftest.err >&5
29952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); } &&
29954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29955   { (case "(($ac_try" in
29956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957   *) ac_try_echo=$ac_try;;
29958 esac
29959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29960   (eval "$ac_try") 2>&5
29961   ac_status=$?
29962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963   (exit $ac_status); }; } &&
29964          { ac_try='test -s conftest.$ac_objext'
29965   { (case "(($ac_try" in
29966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29967   *) ac_try_echo=$ac_try;;
29968 esac
29969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29970   (eval "$ac_try") 2>&5
29971   ac_status=$?
29972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973   (exit $ac_status); }; }; then
29974   ac_cv_type_pid_t=yes
29975 else
29976   echo "$as_me: failed program was:" >&5
29977 sed 's/^/| /' conftest.$ac_ext >&5
29978
29979         ac_cv_type_pid_t=no
29980 fi
29981
29982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29983 fi
29984 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29985 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29986 if test $ac_cv_type_pid_t = yes; then
29987   :
29988 else
29989
29990 cat >>confdefs.h <<_ACEOF
29991 #define pid_t int
29992 _ACEOF
29993
29994 fi
29995
29996 { echo "$as_me:$LINENO: checking for size_t" >&5
29997 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29998 if test "${ac_cv_type_size_t+set}" = set; then
29999   echo $ECHO_N "(cached) $ECHO_C" >&6
30000 else
30001   cat >conftest.$ac_ext <<_ACEOF
30002 /* confdefs.h.  */
30003 _ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h.  */
30007 $ac_includes_default
30008 typedef size_t ac__type_new_;
30009 int
30010 main ()
30011 {
30012 if ((ac__type_new_ *) 0)
30013   return 0;
30014 if (sizeof (ac__type_new_))
30015   return 0;
30016   ;
30017   return 0;
30018 }
30019 _ACEOF
30020 rm -f conftest.$ac_objext
30021 if { (ac_try="$ac_compile"
30022 case "(($ac_try" in
30023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30024   *) ac_try_echo=$ac_try;;
30025 esac
30026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30027   (eval "$ac_compile") 2>conftest.er1
30028   ac_status=$?
30029   grep -v '^ *+' conftest.er1 >conftest.err
30030   rm -f conftest.er1
30031   cat conftest.err >&5
30032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033   (exit $ac_status); } &&
30034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30035   { (case "(($ac_try" in
30036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037   *) ac_try_echo=$ac_try;;
30038 esac
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040   (eval "$ac_try") 2>&5
30041   ac_status=$?
30042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043   (exit $ac_status); }; } &&
30044          { ac_try='test -s conftest.$ac_objext'
30045   { (case "(($ac_try" in
30046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047   *) ac_try_echo=$ac_try;;
30048 esac
30049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30050   (eval "$ac_try") 2>&5
30051   ac_status=$?
30052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053   (exit $ac_status); }; }; then
30054   ac_cv_type_size_t=yes
30055 else
30056   echo "$as_me: failed program was:" >&5
30057 sed 's/^/| /' conftest.$ac_ext >&5
30058
30059         ac_cv_type_size_t=no
30060 fi
30061
30062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30063 fi
30064 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30065 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30066 if test $ac_cv_type_size_t = yes; then
30067   :
30068 else
30069
30070 cat >>confdefs.h <<_ACEOF
30071 #define size_t unsigned int
30072 _ACEOF
30073
30074 fi
30075
30076 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30077 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30078 if test "${ac_cv_type_signal+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 #include <sys/types.h>
30088 #include <signal.h>
30089
30090 int
30091 main ()
30092 {
30093 return *(signal (0, 0)) (0) == 1;
30094   ;
30095   return 0;
30096 }
30097 _ACEOF
30098 rm -f conftest.$ac_objext
30099 if { (ac_try="$ac_compile"
30100 case "(($ac_try" in
30101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30102   *) ac_try_echo=$ac_try;;
30103 esac
30104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30105   (eval "$ac_compile") 2>conftest.er1
30106   ac_status=$?
30107   grep -v '^ *+' conftest.er1 >conftest.err
30108   rm -f conftest.er1
30109   cat conftest.err >&5
30110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111   (exit $ac_status); } &&
30112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30113   { (case "(($ac_try" in
30114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115   *) ac_try_echo=$ac_try;;
30116 esac
30117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118   (eval "$ac_try") 2>&5
30119   ac_status=$?
30120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121   (exit $ac_status); }; } &&
30122          { ac_try='test -s conftest.$ac_objext'
30123   { (case "(($ac_try" in
30124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30125   *) ac_try_echo=$ac_try;;
30126 esac
30127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30128   (eval "$ac_try") 2>&5
30129   ac_status=$?
30130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131   (exit $ac_status); }; }; then
30132   ac_cv_type_signal=int
30133 else
30134   echo "$as_me: failed program was:" >&5
30135 sed 's/^/| /' conftest.$ac_ext >&5
30136
30137         ac_cv_type_signal=void
30138 fi
30139
30140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30141 fi
30142 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30143 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30144
30145 cat >>confdefs.h <<_ACEOF
30146 #define RETSIGTYPE $ac_cv_type_signal
30147 _ACEOF
30148
30149
30150 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30151 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30152 if test "${ac_cv_struct_tm+set}" = set; then
30153   echo $ECHO_N "(cached) $ECHO_C" >&6
30154 else
30155   cat >conftest.$ac_ext <<_ACEOF
30156 /* confdefs.h.  */
30157 _ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h.  */
30161 #include <sys/types.h>
30162 #include <time.h>
30163
30164 int
30165 main ()
30166 {
30167 struct tm *tp; tp->tm_sec;
30168   ;
30169   return 0;
30170 }
30171 _ACEOF
30172 rm -f conftest.$ac_objext
30173 if { (ac_try="$ac_compile"
30174 case "(($ac_try" in
30175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176   *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179   (eval "$ac_compile") 2>conftest.er1
30180   ac_status=$?
30181   grep -v '^ *+' conftest.er1 >conftest.err
30182   rm -f conftest.er1
30183   cat conftest.err >&5
30184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185   (exit $ac_status); } &&
30186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30187   { (case "(($ac_try" in
30188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189   *) ac_try_echo=$ac_try;;
30190 esac
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192   (eval "$ac_try") 2>&5
30193   ac_status=$?
30194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195   (exit $ac_status); }; } &&
30196          { ac_try='test -s conftest.$ac_objext'
30197   { (case "(($ac_try" in
30198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199   *) ac_try_echo=$ac_try;;
30200 esac
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202   (eval "$ac_try") 2>&5
30203   ac_status=$?
30204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205   (exit $ac_status); }; }; then
30206   ac_cv_struct_tm=time.h
30207 else
30208   echo "$as_me: failed program was:" >&5
30209 sed 's/^/| /' conftest.$ac_ext >&5
30210
30211         ac_cv_struct_tm=sys/time.h
30212 fi
30213
30214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30215 fi
30216 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30217 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30218 if test $ac_cv_struct_tm = sys/time.h; then
30219
30220 cat >>confdefs.h <<\_ACEOF
30221 #define TM_IN_SYS_TIME 1
30222 _ACEOF
30223
30224 fi
30225
30226 { echo "$as_me:$LINENO: checking for int64_t" >&5
30227 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30228 if test "${ac_cv_type_int64_t+set}" = set; then
30229   echo $ECHO_N "(cached) $ECHO_C" >&6
30230 else
30231   cat >conftest.$ac_ext <<_ACEOF
30232 /* confdefs.h.  */
30233 _ACEOF
30234 cat confdefs.h >>conftest.$ac_ext
30235 cat >>conftest.$ac_ext <<_ACEOF
30236 /* end confdefs.h.  */
30237 $ac_includes_default
30238 typedef int64_t ac__type_new_;
30239 int
30240 main ()
30241 {
30242 if ((ac__type_new_ *) 0)
30243   return 0;
30244 if (sizeof (ac__type_new_))
30245   return 0;
30246   ;
30247   return 0;
30248 }
30249 _ACEOF
30250 rm -f conftest.$ac_objext
30251 if { (ac_try="$ac_compile"
30252 case "(($ac_try" in
30253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30254   *) ac_try_echo=$ac_try;;
30255 esac
30256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257   (eval "$ac_compile") 2>conftest.er1
30258   ac_status=$?
30259   grep -v '^ *+' conftest.er1 >conftest.err
30260   rm -f conftest.er1
30261   cat conftest.err >&5
30262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263   (exit $ac_status); } &&
30264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30265   { (case "(($ac_try" in
30266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267   *) ac_try_echo=$ac_try;;
30268 esac
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270   (eval "$ac_try") 2>&5
30271   ac_status=$?
30272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273   (exit $ac_status); }; } &&
30274          { ac_try='test -s conftest.$ac_objext'
30275   { (case "(($ac_try" in
30276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277   *) ac_try_echo=$ac_try;;
30278 esac
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280   (eval "$ac_try") 2>&5
30281   ac_status=$?
30282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283   (exit $ac_status); }; }; then
30284   ac_cv_type_int64_t=yes
30285 else
30286   echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.$ac_ext >&5
30288
30289         ac_cv_type_int64_t=no
30290 fi
30291
30292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30293 fi
30294 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30295 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30296 if test $ac_cv_type_int64_t = yes; then
30297
30298 cat >>confdefs.h <<_ACEOF
30299 #define HAVE_INT64_T 1
30300 _ACEOF
30301
30302
30303 else
30304   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30305 echo "$as_me: error: Type int64_t required but not found" >&2;}
30306    { (exit 1); exit 1; }; }
30307 fi
30308
30309 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30310 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30311 if test "${ac_cv_type_uint64_t+set}" = set; then
30312   echo $ECHO_N "(cached) $ECHO_C" >&6
30313 else
30314   cat >conftest.$ac_ext <<_ACEOF
30315 /* confdefs.h.  */
30316 _ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h.  */
30320 $ac_includes_default
30321 typedef uint64_t ac__type_new_;
30322 int
30323 main ()
30324 {
30325 if ((ac__type_new_ *) 0)
30326   return 0;
30327 if (sizeof (ac__type_new_))
30328   return 0;
30329   ;
30330   return 0;
30331 }
30332 _ACEOF
30333 rm -f conftest.$ac_objext
30334 if { (ac_try="$ac_compile"
30335 case "(($ac_try" in
30336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30337   *) ac_try_echo=$ac_try;;
30338 esac
30339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30340   (eval "$ac_compile") 2>conftest.er1
30341   ac_status=$?
30342   grep -v '^ *+' conftest.er1 >conftest.err
30343   rm -f conftest.er1
30344   cat conftest.err >&5
30345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346   (exit $ac_status); } &&
30347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30348   { (case "(($ac_try" in
30349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350   *) ac_try_echo=$ac_try;;
30351 esac
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353   (eval "$ac_try") 2>&5
30354   ac_status=$?
30355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356   (exit $ac_status); }; } &&
30357          { ac_try='test -s conftest.$ac_objext'
30358   { (case "(($ac_try" in
30359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360   *) ac_try_echo=$ac_try;;
30361 esac
30362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363   (eval "$ac_try") 2>&5
30364   ac_status=$?
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); }; }; then
30367   ac_cv_type_uint64_t=yes
30368 else
30369   echo "$as_me: failed program was:" >&5
30370 sed 's/^/| /' conftest.$ac_ext >&5
30371
30372         ac_cv_type_uint64_t=no
30373 fi
30374
30375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30376 fi
30377 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30378 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30379 if test $ac_cv_type_uint64_t = yes; then
30380
30381 cat >>confdefs.h <<_ACEOF
30382 #define HAVE_UINT64_T 1
30383 _ACEOF
30384
30385
30386 else
30387   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30388 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30389 if test "${ac_cv_type_u_int64_t+set}" = set; then
30390   echo $ECHO_N "(cached) $ECHO_C" >&6
30391 else
30392   cat >conftest.$ac_ext <<_ACEOF
30393 /* confdefs.h.  */
30394 _ACEOF
30395 cat confdefs.h >>conftest.$ac_ext
30396 cat >>conftest.$ac_ext <<_ACEOF
30397 /* end confdefs.h.  */
30398 $ac_includes_default
30399 typedef u_int64_t ac__type_new_;
30400 int
30401 main ()
30402 {
30403 if ((ac__type_new_ *) 0)
30404   return 0;
30405 if (sizeof (ac__type_new_))
30406   return 0;
30407   ;
30408   return 0;
30409 }
30410 _ACEOF
30411 rm -f conftest.$ac_objext
30412 if { (ac_try="$ac_compile"
30413 case "(($ac_try" in
30414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30415   *) ac_try_echo=$ac_try;;
30416 esac
30417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30418   (eval "$ac_compile") 2>conftest.er1
30419   ac_status=$?
30420   grep -v '^ *+' conftest.er1 >conftest.err
30421   rm -f conftest.er1
30422   cat conftest.err >&5
30423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424   (exit $ac_status); } &&
30425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30426   { (case "(($ac_try" in
30427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30428   *) ac_try_echo=$ac_try;;
30429 esac
30430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30431   (eval "$ac_try") 2>&5
30432   ac_status=$?
30433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434   (exit $ac_status); }; } &&
30435          { ac_try='test -s conftest.$ac_objext'
30436   { (case "(($ac_try" in
30437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30438   *) ac_try_echo=$ac_try;;
30439 esac
30440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30441   (eval "$ac_try") 2>&5
30442   ac_status=$?
30443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444   (exit $ac_status); }; }; then
30445   ac_cv_type_u_int64_t=yes
30446 else
30447   echo "$as_me: failed program was:" >&5
30448 sed 's/^/| /' conftest.$ac_ext >&5
30449
30450         ac_cv_type_u_int64_t=no
30451 fi
30452
30453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30454 fi
30455 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30456 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30457 if test $ac_cv_type_u_int64_t = yes; then
30458
30459 cat >>confdefs.h <<_ACEOF
30460 #define HAVE_U_INT64_T 1
30461 _ACEOF
30462
30463
30464 else
30465   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30466 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30467    { (exit 1); exit 1; }; }
30468 fi
30469
30470 fi
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30482 do
30483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30487   echo $ECHO_N "(cached) $ECHO_C" >&6
30488 else
30489   cat >conftest.$ac_ext <<_ACEOF
30490 /* confdefs.h.  */
30491 _ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h.  */
30495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30497 #define $ac_func innocuous_$ac_func
30498
30499 /* System header to define __stub macros and hopefully few prototypes,
30500     which can conflict with char $ac_func (); below.
30501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30502     <limits.h> exists even on freestanding compilers.  */
30503
30504 #ifdef __STDC__
30505 # include <limits.h>
30506 #else
30507 # include <assert.h>
30508 #endif
30509
30510 #undef $ac_func
30511
30512 /* Override any GCC internal prototype to avoid an error.
30513    Use char because int might match the return type of a GCC
30514    builtin and then its argument prototype would still apply.  */
30515 #ifdef __cplusplus
30516 extern "C"
30517 #endif
30518 char $ac_func ();
30519 /* The GNU C library defines this for functions which it implements
30520     to always fail with ENOSYS.  Some functions are actually named
30521     something starting with __ and the normal name is an alias.  */
30522 #if defined __stub_$ac_func || defined __stub___$ac_func
30523 choke me
30524 #endif
30525
30526 int
30527 main ()
30528 {
30529 return $ac_func ();
30530   ;
30531   return 0;
30532 }
30533 _ACEOF
30534 rm -f conftest.$ac_objext conftest$ac_exeext
30535 if { (ac_try="$ac_link"
30536 case "(($ac_try" in
30537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538   *) ac_try_echo=$ac_try;;
30539 esac
30540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541   (eval "$ac_link") 2>conftest.er1
30542   ac_status=$?
30543   grep -v '^ *+' conftest.er1 >conftest.err
30544   rm -f conftest.er1
30545   cat conftest.err >&5
30546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547   (exit $ac_status); } &&
30548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30549   { (case "(($ac_try" in
30550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551   *) ac_try_echo=$ac_try;;
30552 esac
30553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554   (eval "$ac_try") 2>&5
30555   ac_status=$?
30556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557   (exit $ac_status); }; } &&
30558          { ac_try='test -s conftest$ac_exeext'
30559   { (case "(($ac_try" in
30560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561   *) ac_try_echo=$ac_try;;
30562 esac
30563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564   (eval "$ac_try") 2>&5
30565   ac_status=$?
30566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567   (exit $ac_status); }; }; then
30568   eval "$as_ac_var=yes"
30569 else
30570   echo "$as_me: failed program was:" >&5
30571 sed 's/^/| /' conftest.$ac_ext >&5
30572
30573         eval "$as_ac_var=no"
30574 fi
30575
30576 rm -f core conftest.err conftest.$ac_objext \
30577       conftest$ac_exeext conftest.$ac_ext
30578 fi
30579 ac_res=`eval echo '${'$as_ac_var'}'`
30580                { echo "$as_me:$LINENO: result: $ac_res" >&5
30581 echo "${ECHO_T}$ac_res" >&6; }
30582 if test `eval echo '${'$as_ac_var'}'` = yes; then
30583   cat >>confdefs.h <<_ACEOF
30584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30585 _ACEOF
30586
30587 fi
30588 done
30589
30590
30591
30592
30593
30594 for ac_func in powf fmodf strtof round
30595 do
30596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30600   echo $ECHO_N "(cached) $ECHO_C" >&6
30601 else
30602   cat >conftest.$ac_ext <<_ACEOF
30603 /* confdefs.h.  */
30604 _ACEOF
30605 cat confdefs.h >>conftest.$ac_ext
30606 cat >>conftest.$ac_ext <<_ACEOF
30607 /* end confdefs.h.  */
30608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30610 #define $ac_func innocuous_$ac_func
30611
30612 /* System header to define __stub macros and hopefully few prototypes,
30613     which can conflict with char $ac_func (); below.
30614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30615     <limits.h> exists even on freestanding compilers.  */
30616
30617 #ifdef __STDC__
30618 # include <limits.h>
30619 #else
30620 # include <assert.h>
30621 #endif
30622
30623 #undef $ac_func
30624
30625 /* Override any GCC internal prototype to avoid an error.
30626    Use char because int might match the return type of a GCC
30627    builtin and then its argument prototype would still apply.  */
30628 #ifdef __cplusplus
30629 extern "C"
30630 #endif
30631 char $ac_func ();
30632 /* The GNU C library defines this for functions which it implements
30633     to always fail with ENOSYS.  Some functions are actually named
30634     something starting with __ and the normal name is an alias.  */
30635 #if defined __stub_$ac_func || defined __stub___$ac_func
30636 choke me
30637 #endif
30638
30639 int
30640 main ()
30641 {
30642 return $ac_func ();
30643   ;
30644   return 0;
30645 }
30646 _ACEOF
30647 rm -f conftest.$ac_objext conftest$ac_exeext
30648 if { (ac_try="$ac_link"
30649 case "(($ac_try" in
30650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30651   *) ac_try_echo=$ac_try;;
30652 esac
30653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30654   (eval "$ac_link") 2>conftest.er1
30655   ac_status=$?
30656   grep -v '^ *+' conftest.er1 >conftest.err
30657   rm -f conftest.er1
30658   cat conftest.err >&5
30659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660   (exit $ac_status); } &&
30661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30662   { (case "(($ac_try" in
30663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30664   *) ac_try_echo=$ac_try;;
30665 esac
30666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30667   (eval "$ac_try") 2>&5
30668   ac_status=$?
30669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670   (exit $ac_status); }; } &&
30671          { ac_try='test -s conftest$ac_exeext'
30672   { (case "(($ac_try" in
30673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30674   *) ac_try_echo=$ac_try;;
30675 esac
30676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677   (eval "$ac_try") 2>&5
30678   ac_status=$?
30679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680   (exit $ac_status); }; }; then
30681   eval "$as_ac_var=yes"
30682 else
30683   echo "$as_me: failed program was:" >&5
30684 sed 's/^/| /' conftest.$ac_ext >&5
30685
30686         eval "$as_ac_var=no"
30687 fi
30688
30689 rm -f core conftest.err conftest.$ac_objext \
30690       conftest$ac_exeext conftest.$ac_ext
30691 fi
30692 ac_res=`eval echo '${'$as_ac_var'}'`
30693                { echo "$as_me:$LINENO: result: $ac_res" >&5
30694 echo "${ECHO_T}$ac_res" >&6; }
30695 if test `eval echo '${'$as_ac_var'}'` = yes; then
30696   cat >>confdefs.h <<_ACEOF
30697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30698 _ACEOF
30699
30700 fi
30701 done
30702
30703
30704
30705
30706
30707
30708 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30709 do
30710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30714   echo $ECHO_N "(cached) $ECHO_C" >&6
30715 else
30716   cat >conftest.$ac_ext <<_ACEOF
30717 /* confdefs.h.  */
30718 _ACEOF
30719 cat confdefs.h >>conftest.$ac_ext
30720 cat >>conftest.$ac_ext <<_ACEOF
30721 /* end confdefs.h.  */
30722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30724 #define $ac_func innocuous_$ac_func
30725
30726 /* System header to define __stub macros and hopefully few prototypes,
30727     which can conflict with char $ac_func (); below.
30728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30729     <limits.h> exists even on freestanding compilers.  */
30730
30731 #ifdef __STDC__
30732 # include <limits.h>
30733 #else
30734 # include <assert.h>
30735 #endif
30736
30737 #undef $ac_func
30738
30739 /* Override any GCC internal prototype to avoid an error.
30740    Use char because int might match the return type of a GCC
30741    builtin and then its argument prototype would still apply.  */
30742 #ifdef __cplusplus
30743 extern "C"
30744 #endif
30745 char $ac_func ();
30746 /* The GNU C library defines this for functions which it implements
30747     to always fail with ENOSYS.  Some functions are actually named
30748     something starting with __ and the normal name is an alias.  */
30749 #if defined __stub_$ac_func || defined __stub___$ac_func
30750 choke me
30751 #endif
30752
30753 int
30754 main ()
30755 {
30756 return $ac_func ();
30757   ;
30758   return 0;
30759 }
30760 _ACEOF
30761 rm -f conftest.$ac_objext conftest$ac_exeext
30762 if { (ac_try="$ac_link"
30763 case "(($ac_try" in
30764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765   *) ac_try_echo=$ac_try;;
30766 esac
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768   (eval "$ac_link") 2>conftest.er1
30769   ac_status=$?
30770   grep -v '^ *+' conftest.er1 >conftest.err
30771   rm -f conftest.er1
30772   cat conftest.err >&5
30773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774   (exit $ac_status); } &&
30775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30776   { (case "(($ac_try" in
30777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778   *) ac_try_echo=$ac_try;;
30779 esac
30780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781   (eval "$ac_try") 2>&5
30782   ac_status=$?
30783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784   (exit $ac_status); }; } &&
30785          { ac_try='test -s conftest$ac_exeext'
30786   { (case "(($ac_try" in
30787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788   *) ac_try_echo=$ac_try;;
30789 esac
30790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30791   (eval "$ac_try") 2>&5
30792   ac_status=$?
30793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794   (exit $ac_status); }; }; then
30795   eval "$as_ac_var=yes"
30796 else
30797   echo "$as_me: failed program was:" >&5
30798 sed 's/^/| /' conftest.$ac_ext >&5
30799
30800         eval "$as_ac_var=no"
30801 fi
30802
30803 rm -f core conftest.err conftest.$ac_objext \
30804       conftest$ac_exeext conftest.$ac_ext
30805 fi
30806 ac_res=`eval echo '${'$as_ac_var'}'`
30807                { echo "$as_me:$LINENO: result: $ac_res" >&5
30808 echo "${ECHO_T}$ac_res" >&6; }
30809 if test `eval echo '${'$as_ac_var'}'` = yes; then
30810   cat >>confdefs.h <<_ACEOF
30811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30812 _ACEOF
30813
30814 fi
30815 done
30816
30817
30818
30819
30820 for ac_func in isatty mkdtemp mkstemp
30821 do
30822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30826   echo $ECHO_N "(cached) $ECHO_C" >&6
30827 else
30828   cat >conftest.$ac_ext <<_ACEOF
30829 /* confdefs.h.  */
30830 _ACEOF
30831 cat confdefs.h >>conftest.$ac_ext
30832 cat >>conftest.$ac_ext <<_ACEOF
30833 /* end confdefs.h.  */
30834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30836 #define $ac_func innocuous_$ac_func
30837
30838 /* System header to define __stub macros and hopefully few prototypes,
30839     which can conflict with char $ac_func (); below.
30840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841     <limits.h> exists even on freestanding compilers.  */
30842
30843 #ifdef __STDC__
30844 # include <limits.h>
30845 #else
30846 # include <assert.h>
30847 #endif
30848
30849 #undef $ac_func
30850
30851 /* Override any GCC internal prototype to avoid an error.
30852    Use char because int might match the return type of a GCC
30853    builtin and then its argument prototype would still apply.  */
30854 #ifdef __cplusplus
30855 extern "C"
30856 #endif
30857 char $ac_func ();
30858 /* The GNU C library defines this for functions which it implements
30859     to always fail with ENOSYS.  Some functions are actually named
30860     something starting with __ and the normal name is an alias.  */
30861 #if defined __stub_$ac_func || defined __stub___$ac_func
30862 choke me
30863 #endif
30864
30865 int
30866 main ()
30867 {
30868 return $ac_func ();
30869   ;
30870   return 0;
30871 }
30872 _ACEOF
30873 rm -f conftest.$ac_objext conftest$ac_exeext
30874 if { (ac_try="$ac_link"
30875 case "(($ac_try" in
30876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877   *) ac_try_echo=$ac_try;;
30878 esac
30879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880   (eval "$ac_link") 2>conftest.er1
30881   ac_status=$?
30882   grep -v '^ *+' conftest.er1 >conftest.err
30883   rm -f conftest.er1
30884   cat conftest.err >&5
30885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886   (exit $ac_status); } &&
30887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30888   { (case "(($ac_try" in
30889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890   *) ac_try_echo=$ac_try;;
30891 esac
30892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893   (eval "$ac_try") 2>&5
30894   ac_status=$?
30895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896   (exit $ac_status); }; } &&
30897          { ac_try='test -s conftest$ac_exeext'
30898   { (case "(($ac_try" in
30899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900   *) ac_try_echo=$ac_try;;
30901 esac
30902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903   (eval "$ac_try") 2>&5
30904   ac_status=$?
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); }; }; then
30907   eval "$as_ac_var=yes"
30908 else
30909   echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912         eval "$as_ac_var=no"
30913 fi
30914
30915 rm -f core conftest.err conftest.$ac_objext \
30916       conftest$ac_exeext conftest.$ac_ext
30917 fi
30918 ac_res=`eval echo '${'$as_ac_var'}'`
30919                { echo "$as_me:$LINENO: result: $ac_res" >&5
30920 echo "${ECHO_T}$ac_res" >&6; }
30921 if test `eval echo '${'$as_ac_var'}'` = yes; then
30922   cat >>confdefs.h <<_ACEOF
30923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30924 _ACEOF
30925
30926 fi
30927 done
30928
30929
30930
30931
30932
30933
30934
30935
30936 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30937 do
30938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30942   echo $ECHO_N "(cached) $ECHO_C" >&6
30943 else
30944   cat >conftest.$ac_ext <<_ACEOF
30945 /* confdefs.h.  */
30946 _ACEOF
30947 cat confdefs.h >>conftest.$ac_ext
30948 cat >>conftest.$ac_ext <<_ACEOF
30949 /* end confdefs.h.  */
30950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30952 #define $ac_func innocuous_$ac_func
30953
30954 /* System header to define __stub macros and hopefully few prototypes,
30955     which can conflict with char $ac_func (); below.
30956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30957     <limits.h> exists even on freestanding compilers.  */
30958
30959 #ifdef __STDC__
30960 # include <limits.h>
30961 #else
30962 # include <assert.h>
30963 #endif
30964
30965 #undef $ac_func
30966
30967 /* Override any GCC internal prototype to avoid an error.
30968    Use char because int might match the return type of a GCC
30969    builtin and then its argument prototype would still apply.  */
30970 #ifdef __cplusplus
30971 extern "C"
30972 #endif
30973 char $ac_func ();
30974 /* The GNU C library defines this for functions which it implements
30975     to always fail with ENOSYS.  Some functions are actually named
30976     something starting with __ and the normal name is an alias.  */
30977 #if defined __stub_$ac_func || defined __stub___$ac_func
30978 choke me
30979 #endif
30980
30981 int
30982 main ()
30983 {
30984 return $ac_func ();
30985   ;
30986   return 0;
30987 }
30988 _ACEOF
30989 rm -f conftest.$ac_objext conftest$ac_exeext
30990 if { (ac_try="$ac_link"
30991 case "(($ac_try" in
30992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30993   *) ac_try_echo=$ac_try;;
30994 esac
30995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30996   (eval "$ac_link") 2>conftest.er1
30997   ac_status=$?
30998   grep -v '^ *+' conftest.er1 >conftest.err
30999   rm -f conftest.er1
31000   cat conftest.err >&5
31001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002   (exit $ac_status); } &&
31003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31004   { (case "(($ac_try" in
31005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006   *) ac_try_echo=$ac_try;;
31007 esac
31008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31009   (eval "$ac_try") 2>&5
31010   ac_status=$?
31011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012   (exit $ac_status); }; } &&
31013          { ac_try='test -s conftest$ac_exeext'
31014   { (case "(($ac_try" in
31015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016   *) ac_try_echo=$ac_try;;
31017 esac
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019   (eval "$ac_try") 2>&5
31020   ac_status=$?
31021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022   (exit $ac_status); }; }; then
31023   eval "$as_ac_var=yes"
31024 else
31025   echo "$as_me: failed program was:" >&5
31026 sed 's/^/| /' conftest.$ac_ext >&5
31027
31028         eval "$as_ac_var=no"
31029 fi
31030
31031 rm -f core conftest.err conftest.$ac_objext \
31032       conftest$ac_exeext conftest.$ac_ext
31033 fi
31034 ac_res=`eval echo '${'$as_ac_var'}'`
31035                { echo "$as_me:$LINENO: result: $ac_res" >&5
31036 echo "${ECHO_T}$ac_res" >&6; }
31037 if test `eval echo '${'$as_ac_var'}'` = yes; then
31038   cat >>confdefs.h <<_ACEOF
31039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31040 _ACEOF
31041
31042 fi
31043 done
31044
31045
31046
31047
31048
31049 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31050 do
31051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31055   echo $ECHO_N "(cached) $ECHO_C" >&6
31056 else
31057   cat >conftest.$ac_ext <<_ACEOF
31058 /* confdefs.h.  */
31059 _ACEOF
31060 cat confdefs.h >>conftest.$ac_ext
31061 cat >>conftest.$ac_ext <<_ACEOF
31062 /* end confdefs.h.  */
31063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31065 #define $ac_func innocuous_$ac_func
31066
31067 /* System header to define __stub macros and hopefully few prototypes,
31068     which can conflict with char $ac_func (); below.
31069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31070     <limits.h> exists even on freestanding compilers.  */
31071
31072 #ifdef __STDC__
31073 # include <limits.h>
31074 #else
31075 # include <assert.h>
31076 #endif
31077
31078 #undef $ac_func
31079
31080 /* Override any GCC internal prototype to avoid an error.
31081    Use char because int might match the return type of a GCC
31082    builtin and then its argument prototype would still apply.  */
31083 #ifdef __cplusplus
31084 extern "C"
31085 #endif
31086 char $ac_func ();
31087 /* The GNU C library defines this for functions which it implements
31088     to always fail with ENOSYS.  Some functions are actually named
31089     something starting with __ and the normal name is an alias.  */
31090 #if defined __stub_$ac_func || defined __stub___$ac_func
31091 choke me
31092 #endif
31093
31094 int
31095 main ()
31096 {
31097 return $ac_func ();
31098   ;
31099   return 0;
31100 }
31101 _ACEOF
31102 rm -f conftest.$ac_objext conftest$ac_exeext
31103 if { (ac_try="$ac_link"
31104 case "(($ac_try" in
31105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106   *) ac_try_echo=$ac_try;;
31107 esac
31108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31109   (eval "$ac_link") 2>conftest.er1
31110   ac_status=$?
31111   grep -v '^ *+' conftest.er1 >conftest.err
31112   rm -f conftest.er1
31113   cat conftest.err >&5
31114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115   (exit $ac_status); } &&
31116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31117   { (case "(($ac_try" in
31118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119   *) ac_try_echo=$ac_try;;
31120 esac
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122   (eval "$ac_try") 2>&5
31123   ac_status=$?
31124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125   (exit $ac_status); }; } &&
31126          { ac_try='test -s conftest$ac_exeext'
31127   { (case "(($ac_try" in
31128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129   *) ac_try_echo=$ac_try;;
31130 esac
31131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132   (eval "$ac_try") 2>&5
31133   ac_status=$?
31134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135   (exit $ac_status); }; }; then
31136   eval "$as_ac_var=yes"
31137 else
31138   echo "$as_me: failed program was:" >&5
31139 sed 's/^/| /' conftest.$ac_ext >&5
31140
31141         eval "$as_ac_var=no"
31142 fi
31143
31144 rm -f core conftest.err conftest.$ac_objext \
31145       conftest$ac_exeext conftest.$ac_ext
31146 fi
31147 ac_res=`eval echo '${'$as_ac_var'}'`
31148                { echo "$as_me:$LINENO: result: $ac_res" >&5
31149 echo "${ECHO_T}$ac_res" >&6; }
31150 if test `eval echo '${'$as_ac_var'}'` = yes; then
31151   cat >>confdefs.h <<_ACEOF
31152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31153 _ACEOF
31154
31155 fi
31156 done
31157
31158
31159
31160
31161
31162 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31163 do
31164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31168   echo $ECHO_N "(cached) $ECHO_C" >&6
31169 else
31170   cat >conftest.$ac_ext <<_ACEOF
31171 /* confdefs.h.  */
31172 _ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h.  */
31176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31178 #define $ac_func innocuous_$ac_func
31179
31180 /* System header to define __stub macros and hopefully few prototypes,
31181     which can conflict with char $ac_func (); below.
31182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31183     <limits.h> exists even on freestanding compilers.  */
31184
31185 #ifdef __STDC__
31186 # include <limits.h>
31187 #else
31188 # include <assert.h>
31189 #endif
31190
31191 #undef $ac_func
31192
31193 /* Override any GCC internal prototype to avoid an error.
31194    Use char because int might match the return type of a GCC
31195    builtin and then its argument prototype would still apply.  */
31196 #ifdef __cplusplus
31197 extern "C"
31198 #endif
31199 char $ac_func ();
31200 /* The GNU C library defines this for functions which it implements
31201     to always fail with ENOSYS.  Some functions are actually named
31202     something starting with __ and the normal name is an alias.  */
31203 #if defined __stub_$ac_func || defined __stub___$ac_func
31204 choke me
31205 #endif
31206
31207 int
31208 main ()
31209 {
31210 return $ac_func ();
31211   ;
31212   return 0;
31213 }
31214 _ACEOF
31215 rm -f conftest.$ac_objext conftest$ac_exeext
31216 if { (ac_try="$ac_link"
31217 case "(($ac_try" in
31218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219   *) ac_try_echo=$ac_try;;
31220 esac
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222   (eval "$ac_link") 2>conftest.er1
31223   ac_status=$?
31224   grep -v '^ *+' conftest.er1 >conftest.err
31225   rm -f conftest.er1
31226   cat conftest.err >&5
31227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228   (exit $ac_status); } &&
31229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31230   { (case "(($ac_try" in
31231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232   *) ac_try_echo=$ac_try;;
31233 esac
31234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235   (eval "$ac_try") 2>&5
31236   ac_status=$?
31237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238   (exit $ac_status); }; } &&
31239          { ac_try='test -s conftest$ac_exeext'
31240   { (case "(($ac_try" in
31241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31242   *) ac_try_echo=$ac_try;;
31243 esac
31244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31245   (eval "$ac_try") 2>&5
31246   ac_status=$?
31247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248   (exit $ac_status); }; }; then
31249   eval "$as_ac_var=yes"
31250 else
31251   echo "$as_me: failed program was:" >&5
31252 sed 's/^/| /' conftest.$ac_ext >&5
31253
31254         eval "$as_ac_var=no"
31255 fi
31256
31257 rm -f core conftest.err conftest.$ac_objext \
31258       conftest$ac_exeext conftest.$ac_ext
31259 fi
31260 ac_res=`eval echo '${'$as_ac_var'}'`
31261                { echo "$as_me:$LINENO: result: $ac_res" >&5
31262 echo "${ECHO_T}$ac_res" >&6; }
31263 if test `eval echo '${'$as_ac_var'}'` = yes; then
31264   cat >>confdefs.h <<_ACEOF
31265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31266 _ACEOF
31267
31268 fi
31269 done
31270
31271 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31272 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31273 if test "${llvm_cv_c_printf_a+set}" = set; then
31274   echo $ECHO_N "(cached) $ECHO_C" >&6
31275 else
31276   ac_ext=c
31277 ac_cpp='$CPP $CPPFLAGS'
31278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31281
31282  if test "$cross_compiling" = yes; then
31283   llvmac_cv_c_printf_a=no
31284 else
31285   cat >conftest.$ac_ext <<_ACEOF
31286
31287   /* confdefs.h.  */
31288 _ACEOF
31289 cat confdefs.h >>conftest.$ac_ext
31290 cat >>conftest.$ac_ext <<_ACEOF
31291 /* end confdefs.h.  */
31292
31293 #include <stdio.h>
31294 #include <stdlib.h>
31295
31296 int
31297 main ()
31298 {
31299
31300 volatile double A, B;
31301 char Buffer[100];
31302 A = 1;
31303 A /= 10.0;
31304 sprintf(Buffer, "%a", A);
31305 B = atof(Buffer);
31306 if (A != B)
31307   return (1);
31308 if (A != 0x1.999999999999ap-4)
31309   return (1);
31310 return (0);
31311   ;
31312   return 0;
31313 }
31314 _ACEOF
31315 rm -f conftest$ac_exeext
31316 if { (ac_try="$ac_link"
31317 case "(($ac_try" in
31318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319   *) ac_try_echo=$ac_try;;
31320 esac
31321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322   (eval "$ac_link") 2>&5
31323   ac_status=$?
31324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31326   { (case "(($ac_try" in
31327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328   *) ac_try_echo=$ac_try;;
31329 esac
31330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331   (eval "$ac_try") 2>&5
31332   ac_status=$?
31333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334   (exit $ac_status); }; }; then
31335   llvm_cv_c_printf_a=yes
31336 else
31337   echo "$as_me: program exited with status $ac_status" >&5
31338 echo "$as_me: failed program was:" >&5
31339 sed 's/^/| /' conftest.$ac_ext >&5
31340
31341 ( exit $ac_status )
31342 llvmac_cv_c_printf_a=no
31343 fi
31344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31345 fi
31346
31347
31348  ac_ext=c
31349 ac_cpp='$CPP $CPPFLAGS'
31350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31353
31354 fi
31355 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31356 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31357  if test "$llvm_cv_c_printf_a" = "yes"; then
31358
31359 cat >>confdefs.h <<\_ACEOF
31360 #define HAVE_PRINTF_A 1
31361 _ACEOF
31362
31363  fi
31364
31365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31366 # for constant arguments.  Useless!
31367 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31368 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31369 if test "${ac_cv_working_alloca_h+set}" = set; then
31370   echo $ECHO_N "(cached) $ECHO_C" >&6
31371 else
31372   cat >conftest.$ac_ext <<_ACEOF
31373 /* confdefs.h.  */
31374 _ACEOF
31375 cat confdefs.h >>conftest.$ac_ext
31376 cat >>conftest.$ac_ext <<_ACEOF
31377 /* end confdefs.h.  */
31378 #include <alloca.h>
31379 int
31380 main ()
31381 {
31382 char *p = (char *) alloca (2 * sizeof (int));
31383                           if (p) return 0;
31384   ;
31385   return 0;
31386 }
31387 _ACEOF
31388 rm -f conftest.$ac_objext conftest$ac_exeext
31389 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31396   ac_status=$?
31397   grep -v '^ *+' conftest.er1 >conftest.err
31398   rm -f conftest.er1
31399   cat conftest.err >&5
31400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401   (exit $ac_status); } &&
31402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31403   { (case "(($ac_try" in
31404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405   *) ac_try_echo=$ac_try;;
31406 esac
31407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408   (eval "$ac_try") 2>&5
31409   ac_status=$?
31410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411   (exit $ac_status); }; } &&
31412          { ac_try='test -s conftest$ac_exeext'
31413   { (case "(($ac_try" in
31414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415   *) ac_try_echo=$ac_try;;
31416 esac
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418   (eval "$ac_try") 2>&5
31419   ac_status=$?
31420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421   (exit $ac_status); }; }; then
31422   ac_cv_working_alloca_h=yes
31423 else
31424   echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.$ac_ext >&5
31426
31427         ac_cv_working_alloca_h=no
31428 fi
31429
31430 rm -f core conftest.err conftest.$ac_objext \
31431       conftest$ac_exeext conftest.$ac_ext
31432 fi
31433 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31434 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31435 if test $ac_cv_working_alloca_h = yes; then
31436
31437 cat >>confdefs.h <<\_ACEOF
31438 #define HAVE_ALLOCA_H 1
31439 _ACEOF
31440
31441 fi
31442
31443 { echo "$as_me:$LINENO: checking for alloca" >&5
31444 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31445 if test "${ac_cv_func_alloca_works+set}" = set; then
31446   echo $ECHO_N "(cached) $ECHO_C" >&6
31447 else
31448   cat >conftest.$ac_ext <<_ACEOF
31449 /* confdefs.h.  */
31450 _ACEOF
31451 cat confdefs.h >>conftest.$ac_ext
31452 cat >>conftest.$ac_ext <<_ACEOF
31453 /* end confdefs.h.  */
31454 #ifdef __GNUC__
31455 # define alloca __builtin_alloca
31456 #else
31457 # ifdef _MSC_VER
31458 #  include <malloc.h>
31459 #  define alloca _alloca
31460 # else
31461 #  if HAVE_ALLOCA_H
31462 #   include <alloca.h>
31463 #  else
31464 #   ifdef _AIX
31465  #pragma alloca
31466 #   else
31467 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31468 char *alloca ();
31469 #    endif
31470 #   endif
31471 #  endif
31472 # endif
31473 #endif
31474
31475 int
31476 main ()
31477 {
31478 char *p = (char *) alloca (1);
31479                                     if (p) return 0;
31480   ;
31481   return 0;
31482 }
31483 _ACEOF
31484 rm -f conftest.$ac_objext conftest$ac_exeext
31485 if { (ac_try="$ac_link"
31486 case "(($ac_try" in
31487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31488   *) ac_try_echo=$ac_try;;
31489 esac
31490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491   (eval "$ac_link") 2>conftest.er1
31492   ac_status=$?
31493   grep -v '^ *+' conftest.er1 >conftest.err
31494   rm -f conftest.er1
31495   cat conftest.err >&5
31496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497   (exit $ac_status); } &&
31498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31499   { (case "(($ac_try" in
31500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31501   *) ac_try_echo=$ac_try;;
31502 esac
31503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31504   (eval "$ac_try") 2>&5
31505   ac_status=$?
31506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); }; } &&
31508          { ac_try='test -s conftest$ac_exeext'
31509   { (case "(($ac_try" in
31510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511   *) ac_try_echo=$ac_try;;
31512 esac
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514   (eval "$ac_try") 2>&5
31515   ac_status=$?
31516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517   (exit $ac_status); }; }; then
31518   ac_cv_func_alloca_works=yes
31519 else
31520   echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31522
31523         ac_cv_func_alloca_works=no
31524 fi
31525
31526 rm -f core conftest.err conftest.$ac_objext \
31527       conftest$ac_exeext conftest.$ac_ext
31528 fi
31529 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31530 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31531
31532 if test $ac_cv_func_alloca_works = yes; then
31533
31534 cat >>confdefs.h <<\_ACEOF
31535 #define HAVE_ALLOCA 1
31536 _ACEOF
31537
31538 else
31539   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31540 # that cause trouble.  Some versions do not even contain alloca or
31541 # contain a buggy version.  If you still want to use their alloca,
31542 # use ar to extract alloca.o from them instead of compiling alloca.c.
31543
31544 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31545
31546 cat >>confdefs.h <<\_ACEOF
31547 #define C_ALLOCA 1
31548 _ACEOF
31549
31550
31551 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31552 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31553 if test "${ac_cv_os_cray+set}" = set; then
31554   echo $ECHO_N "(cached) $ECHO_C" >&6
31555 else
31556   cat >conftest.$ac_ext <<_ACEOF
31557 /* confdefs.h.  */
31558 _ACEOF
31559 cat confdefs.h >>conftest.$ac_ext
31560 cat >>conftest.$ac_ext <<_ACEOF
31561 /* end confdefs.h.  */
31562 #if defined CRAY && ! defined CRAY2
31563 webecray
31564 #else
31565 wenotbecray
31566 #endif
31567
31568 _ACEOF
31569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31570   $EGREP "webecray" >/dev/null 2>&1; then
31571   ac_cv_os_cray=yes
31572 else
31573   ac_cv_os_cray=no
31574 fi
31575 rm -f conftest*
31576
31577 fi
31578 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31579 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31580 if test $ac_cv_os_cray = yes; then
31581   for ac_func in _getb67 GETB67 getb67; do
31582     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31586   echo $ECHO_N "(cached) $ECHO_C" >&6
31587 else
31588   cat >conftest.$ac_ext <<_ACEOF
31589 /* confdefs.h.  */
31590 _ACEOF
31591 cat confdefs.h >>conftest.$ac_ext
31592 cat >>conftest.$ac_ext <<_ACEOF
31593 /* end confdefs.h.  */
31594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31596 #define $ac_func innocuous_$ac_func
31597
31598 /* System header to define __stub macros and hopefully few prototypes,
31599     which can conflict with char $ac_func (); below.
31600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31601     <limits.h> exists even on freestanding compilers.  */
31602
31603 #ifdef __STDC__
31604 # include <limits.h>
31605 #else
31606 # include <assert.h>
31607 #endif
31608
31609 #undef $ac_func
31610
31611 /* Override any GCC internal prototype to avoid an error.
31612    Use char because int might match the return type of a GCC
31613    builtin and then its argument prototype would still apply.  */
31614 #ifdef __cplusplus
31615 extern "C"
31616 #endif
31617 char $ac_func ();
31618 /* The GNU C library defines this for functions which it implements
31619     to always fail with ENOSYS.  Some functions are actually named
31620     something starting with __ and the normal name is an alias.  */
31621 #if defined __stub_$ac_func || defined __stub___$ac_func
31622 choke me
31623 #endif
31624
31625 int
31626 main ()
31627 {
31628 return $ac_func ();
31629   ;
31630   return 0;
31631 }
31632 _ACEOF
31633 rm -f conftest.$ac_objext conftest$ac_exeext
31634 if { (ac_try="$ac_link"
31635 case "(($ac_try" in
31636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31637   *) ac_try_echo=$ac_try;;
31638 esac
31639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31640   (eval "$ac_link") 2>conftest.er1
31641   ac_status=$?
31642   grep -v '^ *+' conftest.er1 >conftest.err
31643   rm -f conftest.er1
31644   cat conftest.err >&5
31645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646   (exit $ac_status); } &&
31647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31648   { (case "(($ac_try" in
31649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31650   *) ac_try_echo=$ac_try;;
31651 esac
31652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31653   (eval "$ac_try") 2>&5
31654   ac_status=$?
31655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656   (exit $ac_status); }; } &&
31657          { ac_try='test -s conftest$ac_exeext'
31658   { (case "(($ac_try" in
31659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31660   *) ac_try_echo=$ac_try;;
31661 esac
31662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31663   (eval "$ac_try") 2>&5
31664   ac_status=$?
31665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666   (exit $ac_status); }; }; then
31667   eval "$as_ac_var=yes"
31668 else
31669   echo "$as_me: failed program was:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31671
31672         eval "$as_ac_var=no"
31673 fi
31674
31675 rm -f core conftest.err conftest.$ac_objext \
31676       conftest$ac_exeext conftest.$ac_ext
31677 fi
31678 ac_res=`eval echo '${'$as_ac_var'}'`
31679                { echo "$as_me:$LINENO: result: $ac_res" >&5
31680 echo "${ECHO_T}$ac_res" >&6; }
31681 if test `eval echo '${'$as_ac_var'}'` = yes; then
31682
31683 cat >>confdefs.h <<_ACEOF
31684 #define CRAY_STACKSEG_END $ac_func
31685 _ACEOF
31686
31687     break
31688 fi
31689
31690   done
31691 fi
31692
31693 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31694 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31695 if test "${ac_cv_c_stack_direction+set}" = set; then
31696   echo $ECHO_N "(cached) $ECHO_C" >&6
31697 else
31698   if test "$cross_compiling" = yes; then
31699   ac_cv_c_stack_direction=0
31700 else
31701   cat >conftest.$ac_ext <<_ACEOF
31702 /* confdefs.h.  */
31703 _ACEOF
31704 cat confdefs.h >>conftest.$ac_ext
31705 cat >>conftest.$ac_ext <<_ACEOF
31706 /* end confdefs.h.  */
31707 $ac_includes_default
31708 int
31709 find_stack_direction ()
31710 {
31711   static char *addr = 0;
31712   auto char dummy;
31713   if (addr == 0)
31714     {
31715       addr = &dummy;
31716       return find_stack_direction ();
31717     }
31718   else
31719     return (&dummy > addr) ? 1 : -1;
31720 }
31721
31722 int
31723 main ()
31724 {
31725   return find_stack_direction () < 0;
31726 }
31727 _ACEOF
31728 rm -f conftest$ac_exeext
31729 if { (ac_try="$ac_link"
31730 case "(($ac_try" in
31731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732   *) ac_try_echo=$ac_try;;
31733 esac
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735   (eval "$ac_link") 2>&5
31736   ac_status=$?
31737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31739   { (case "(($ac_try" in
31740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741   *) ac_try_echo=$ac_try;;
31742 esac
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744   (eval "$ac_try") 2>&5
31745   ac_status=$?
31746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747   (exit $ac_status); }; }; then
31748   ac_cv_c_stack_direction=1
31749 else
31750   echo "$as_me: program exited with status $ac_status" >&5
31751 echo "$as_me: failed program was:" >&5
31752 sed 's/^/| /' conftest.$ac_ext >&5
31753
31754 ( exit $ac_status )
31755 ac_cv_c_stack_direction=-1
31756 fi
31757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31758 fi
31759
31760
31761 fi
31762 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31763 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31764
31765 cat >>confdefs.h <<_ACEOF
31766 #define STACK_DIRECTION $ac_cv_c_stack_direction
31767 _ACEOF
31768
31769
31770 fi
31771
31772
31773 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31774 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31775 if test "${ac_cv_func_rand48+set}" = set; then
31776   echo $ECHO_N "(cached) $ECHO_C" >&6
31777 else
31778   ac_ext=cpp
31779 ac_cpp='$CXXCPP $CPPFLAGS'
31780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31783
31784    cat >conftest.$ac_ext <<_ACEOF
31785 /* confdefs.h.  */
31786 _ACEOF
31787 cat confdefs.h >>conftest.$ac_ext
31788 cat >>conftest.$ac_ext <<_ACEOF
31789 /* end confdefs.h.  */
31790 #include <stdlib.h>
31791 int
31792 main ()
31793 {
31794 srand48(0);lrand48();drand48();
31795   ;
31796   return 0;
31797 }
31798 _ACEOF
31799 rm -f conftest.$ac_objext
31800 if { (ac_try="$ac_compile"
31801 case "(($ac_try" in
31802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803   *) ac_try_echo=$ac_try;;
31804 esac
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806   (eval "$ac_compile") 2>conftest.er1
31807   ac_status=$?
31808   grep -v '^ *+' conftest.er1 >conftest.err
31809   rm -f conftest.er1
31810   cat conftest.err >&5
31811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812   (exit $ac_status); } &&
31813          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31814   { (case "(($ac_try" in
31815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816   *) ac_try_echo=$ac_try;;
31817 esac
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819   (eval "$ac_try") 2>&5
31820   ac_status=$?
31821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822   (exit $ac_status); }; } &&
31823          { ac_try='test -s conftest.$ac_objext'
31824   { (case "(($ac_try" in
31825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826   *) ac_try_echo=$ac_try;;
31827 esac
31828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829   (eval "$ac_try") 2>&5
31830   ac_status=$?
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); }; }; then
31833   ac_cv_func_rand48=yes
31834 else
31835   echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31837
31838         ac_cv_func_rand48=no
31839 fi
31840
31841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31842   ac_ext=c
31843 ac_cpp='$CPP $CPPFLAGS'
31844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31847
31848 fi
31849 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31850 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31851
31852 if test "$ac_cv_func_rand48" = "yes" ; then
31853
31854 cat >>confdefs.h <<\_ACEOF
31855 #define HAVE_RAND48 1
31856 _ACEOF
31857
31858 fi
31859
31860
31861 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31862 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31863 if test "${ac_cv_cxx_namespaces+set}" = set; then
31864   echo $ECHO_N "(cached) $ECHO_C" >&6
31865 else
31866   ac_ext=cpp
31867 ac_cpp='$CXXCPP $CPPFLAGS'
31868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31871
31872  cat >conftest.$ac_ext <<_ACEOF
31873 /* confdefs.h.  */
31874 _ACEOF
31875 cat confdefs.h >>conftest.$ac_ext
31876 cat >>conftest.$ac_ext <<_ACEOF
31877 /* end confdefs.h.  */
31878 namespace Outer { namespace Inner { int i = 0; }}
31879 int
31880 main ()
31881 {
31882 using namespace Outer::Inner; return i;
31883   ;
31884   return 0;
31885 }
31886 _ACEOF
31887 rm -f conftest.$ac_objext
31888 if { (ac_try="$ac_compile"
31889 case "(($ac_try" in
31890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31891   *) ac_try_echo=$ac_try;;
31892 esac
31893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31894   (eval "$ac_compile") 2>conftest.er1
31895   ac_status=$?
31896   grep -v '^ *+' conftest.er1 >conftest.err
31897   rm -f conftest.er1
31898   cat conftest.err >&5
31899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900   (exit $ac_status); } &&
31901          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31902   { (case "(($ac_try" in
31903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904   *) ac_try_echo=$ac_try;;
31905 esac
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907   (eval "$ac_try") 2>&5
31908   ac_status=$?
31909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910   (exit $ac_status); }; } &&
31911          { ac_try='test -s conftest.$ac_objext'
31912   { (case "(($ac_try" in
31913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914   *) ac_try_echo=$ac_try;;
31915 esac
31916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31917   (eval "$ac_try") 2>&5
31918   ac_status=$?
31919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920   (exit $ac_status); }; }; then
31921   ac_cv_cxx_namespaces=yes
31922 else
31923   echo "$as_me: failed program was:" >&5
31924 sed 's/^/| /' conftest.$ac_ext >&5
31925
31926         ac_cv_cxx_namespaces=no
31927 fi
31928
31929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31930  ac_ext=c
31931 ac_cpp='$CPP $CPPFLAGS'
31932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31935
31936
31937 fi
31938 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31939 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31940 if test "$ac_cv_cxx_namespaces" = yes; then
31941
31942 cat >>confdefs.h <<\_ACEOF
31943 #define HAVE_NAMESPACES
31944 _ACEOF
31945
31946 fi
31947
31948 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31949 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31950 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31951   echo $ECHO_N "(cached) $ECHO_C" >&6
31952 else
31953
31954   ac_ext=cpp
31955 ac_cpp='$CXXCPP $CPPFLAGS'
31956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31959
31960   cat >conftest.$ac_ext <<_ACEOF
31961 /* confdefs.h.  */
31962 _ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h.  */
31966 #include <ext/hash_map>
31967 #ifdef HAVE_NAMESPACES
31968 using namespace std;
31969 #endif
31970 int
31971 main ()
31972 {
31973 hash_map<int, int> t;
31974   ;
31975   return 0;
31976 }
31977 _ACEOF
31978 rm -f conftest.$ac_objext
31979 if { (ac_try="$ac_compile"
31980 case "(($ac_try" in
31981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982   *) ac_try_echo=$ac_try;;
31983 esac
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985   (eval "$ac_compile") 2>conftest.er1
31986   ac_status=$?
31987   grep -v '^ *+' conftest.er1 >conftest.err
31988   rm -f conftest.er1
31989   cat conftest.err >&5
31990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991   (exit $ac_status); } &&
31992          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31993   { (case "(($ac_try" in
31994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995   *) ac_try_echo=$ac_try;;
31996 esac
31997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998   (eval "$ac_try") 2>&5
31999   ac_status=$?
32000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001   (exit $ac_status); }; } &&
32002          { ac_try='test -s conftest.$ac_objext'
32003   { (case "(($ac_try" in
32004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005   *) ac_try_echo=$ac_try;;
32006 esac
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008   (eval "$ac_try") 2>&5
32009   ac_status=$?
32010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011   (exit $ac_status); }; }; then
32012   ac_cv_cxx_have_std_ext_hash_map=yes
32013 else
32014   echo "$as_me: failed program was:" >&5
32015 sed 's/^/| /' conftest.$ac_ext >&5
32016
32017         ac_cv_cxx_have_std_ext_hash_map=no
32018 fi
32019
32020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32021   ac_ext=c
32022 ac_cpp='$CPP $CPPFLAGS'
32023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32026
32027 fi
32028 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32029 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32030  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32031  then
32032
32033 cat >>confdefs.h <<\_ACEOF
32034 #define HAVE_STD_EXT_HASH_MAP 1
32035 _ACEOF
32036
32037  else
32038
32039 cat >>confdefs.h <<\_ACEOF
32040 #define HAVE_STD_EXT_HASH_MAP 0
32041 _ACEOF
32042
32043  fi
32044
32045  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32046 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32047 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32048   echo $ECHO_N "(cached) $ECHO_C" >&6
32049 else
32050
32051   ac_ext=cpp
32052 ac_cpp='$CXXCPP $CPPFLAGS'
32053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32056
32057   cat >conftest.$ac_ext <<_ACEOF
32058 /* confdefs.h.  */
32059 _ACEOF
32060 cat confdefs.h >>conftest.$ac_ext
32061 cat >>conftest.$ac_ext <<_ACEOF
32062 /* end confdefs.h.  */
32063 #include <ext/hash_map>
32064 #ifdef HAVE_NAMESPACES
32065 using namespace __gnu_cxx;
32066 #endif
32067 int
32068 main ()
32069 {
32070 hash_map<int,int> t;
32071   ;
32072   return 0;
32073 }
32074 _ACEOF
32075 rm -f conftest.$ac_objext
32076 if { (ac_try="$ac_compile"
32077 case "(($ac_try" in
32078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079   *) ac_try_echo=$ac_try;;
32080 esac
32081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082   (eval "$ac_compile") 2>conftest.er1
32083   ac_status=$?
32084   grep -v '^ *+' conftest.er1 >conftest.err
32085   rm -f conftest.er1
32086   cat conftest.err >&5
32087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088   (exit $ac_status); } &&
32089          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32090   { (case "(($ac_try" in
32091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092   *) ac_try_echo=$ac_try;;
32093 esac
32094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32095   (eval "$ac_try") 2>&5
32096   ac_status=$?
32097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098   (exit $ac_status); }; } &&
32099          { ac_try='test -s conftest.$ac_objext'
32100   { (case "(($ac_try" in
32101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102   *) ac_try_echo=$ac_try;;
32103 esac
32104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105   (eval "$ac_try") 2>&5
32106   ac_status=$?
32107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108   (exit $ac_status); }; }; then
32109   ac_cv_cxx_have_gnu_ext_hash_map=yes
32110 else
32111   echo "$as_me: failed program was:" >&5
32112 sed 's/^/| /' conftest.$ac_ext >&5
32113
32114         ac_cv_cxx_have_gnu_ext_hash_map=no
32115 fi
32116
32117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32118   ac_ext=c
32119 ac_cpp='$CPP $CPPFLAGS'
32120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32123
32124 fi
32125 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32126 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32127  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32128  then
32129
32130 cat >>confdefs.h <<\_ACEOF
32131 #define HAVE_GNU_EXT_HASH_MAP 1
32132 _ACEOF
32133
32134  else
32135
32136 cat >>confdefs.h <<\_ACEOF
32137 #define HAVE_GNU_EXT_HASH_MAP 0
32138 _ACEOF
32139
32140  fi
32141
32142  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32143 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32144 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32145   echo $ECHO_N "(cached) $ECHO_C" >&6
32146 else
32147
32148   ac_ext=cpp
32149 ac_cpp='$CXXCPP $CPPFLAGS'
32150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32153
32154   cat >conftest.$ac_ext <<_ACEOF
32155 /* confdefs.h.  */
32156 _ACEOF
32157 cat confdefs.h >>conftest.$ac_ext
32158 cat >>conftest.$ac_ext <<_ACEOF
32159 /* end confdefs.h.  */
32160 #include <hash_map>
32161 int
32162 main ()
32163 {
32164 hash_map<int,int> t;
32165   ;
32166   return 0;
32167 }
32168 _ACEOF
32169 rm -f conftest.$ac_objext
32170 if { (ac_try="$ac_compile"
32171 case "(($ac_try" in
32172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32173   *) ac_try_echo=$ac_try;;
32174 esac
32175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32176   (eval "$ac_compile") 2>conftest.er1
32177   ac_status=$?
32178   grep -v '^ *+' conftest.er1 >conftest.err
32179   rm -f conftest.er1
32180   cat conftest.err >&5
32181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182   (exit $ac_status); } &&
32183          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32184   { (case "(($ac_try" in
32185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186   *) ac_try_echo=$ac_try;;
32187 esac
32188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189   (eval "$ac_try") 2>&5
32190   ac_status=$?
32191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192   (exit $ac_status); }; } &&
32193          { ac_try='test -s conftest.$ac_objext'
32194   { (case "(($ac_try" in
32195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196   *) ac_try_echo=$ac_try;;
32197 esac
32198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199   (eval "$ac_try") 2>&5
32200   ac_status=$?
32201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202   (exit $ac_status); }; }; then
32203   ac_cv_cxx_have_global_hash_map=yes
32204 else
32205   echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32207
32208         ac_cv_cxx_have_global_hash_map=no
32209 fi
32210
32211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32212   ac_ext=c
32213 ac_cpp='$CPP $CPPFLAGS'
32214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32217
32218 fi
32219 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32220 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32221  if test "$ac_cv_cxx_have_global_hash_map" = yes
32222  then
32223
32224 cat >>confdefs.h <<\_ACEOF
32225 #define HAVE_GLOBAL_HASH_MAP 1
32226 _ACEOF
32227
32228  else
32229
32230 cat >>confdefs.h <<\_ACEOF
32231 #define HAVE_GLOBAL_HASH_MAP 0
32232 _ACEOF
32233
32234  fi
32235
32236 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32237 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32238 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32239   echo $ECHO_N "(cached) $ECHO_C" >&6
32240 else
32241
32242   ac_ext=cpp
32243 ac_cpp='$CXXCPP $CPPFLAGS'
32244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32247
32248   cat >conftest.$ac_ext <<_ACEOF
32249 /* confdefs.h.  */
32250 _ACEOF
32251 cat confdefs.h >>conftest.$ac_ext
32252 cat >>conftest.$ac_ext <<_ACEOF
32253 /* end confdefs.h.  */
32254 #include <ext/hash_set>
32255 #ifdef HAVE_NAMESPACES
32256 using namespace std;
32257 #endif
32258 int
32259 main ()
32260 {
32261 hash_set<int> t;
32262   ;
32263   return 0;
32264 }
32265 _ACEOF
32266 rm -f conftest.$ac_objext
32267 if { (ac_try="$ac_compile"
32268 case "(($ac_try" in
32269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32270   *) ac_try_echo=$ac_try;;
32271 esac
32272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32273   (eval "$ac_compile") 2>conftest.er1
32274   ac_status=$?
32275   grep -v '^ *+' conftest.er1 >conftest.err
32276   rm -f conftest.er1
32277   cat conftest.err >&5
32278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279   (exit $ac_status); } &&
32280          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32281   { (case "(($ac_try" in
32282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283   *) ac_try_echo=$ac_try;;
32284 esac
32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286   (eval "$ac_try") 2>&5
32287   ac_status=$?
32288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289   (exit $ac_status); }; } &&
32290          { ac_try='test -s conftest.$ac_objext'
32291   { (case "(($ac_try" in
32292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293   *) ac_try_echo=$ac_try;;
32294 esac
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296   (eval "$ac_try") 2>&5
32297   ac_status=$?
32298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299   (exit $ac_status); }; }; then
32300   ac_cv_cxx_have_std_ext_hash_set=yes
32301 else
32302   echo "$as_me: failed program was:" >&5
32303 sed 's/^/| /' conftest.$ac_ext >&5
32304
32305         ac_cv_cxx_have_std_ext_hash_set=no
32306 fi
32307
32308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32309   ac_ext=c
32310 ac_cpp='$CPP $CPPFLAGS'
32311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32314
32315 fi
32316 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32317 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32318  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32319  then
32320
32321 cat >>confdefs.h <<\_ACEOF
32322 #define HAVE_STD_EXT_HASH_SET 1
32323 _ACEOF
32324
32325  else
32326
32327 cat >>confdefs.h <<\_ACEOF
32328 #define HAVE_STD_EXT_HASH_SET 0
32329 _ACEOF
32330
32331  fi
32332
32333  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32334 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32335 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32336   echo $ECHO_N "(cached) $ECHO_C" >&6
32337 else
32338
32339   ac_ext=cpp
32340 ac_cpp='$CXXCPP $CPPFLAGS'
32341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32344
32345   cat >conftest.$ac_ext <<_ACEOF
32346 /* confdefs.h.  */
32347 _ACEOF
32348 cat confdefs.h >>conftest.$ac_ext
32349 cat >>conftest.$ac_ext <<_ACEOF
32350 /* end confdefs.h.  */
32351 #include <ext/hash_set>
32352 #ifdef HAVE_NAMESPACES
32353 using namespace __gnu_cxx;
32354 #endif
32355 int
32356 main ()
32357 {
32358 hash_set<int> t;
32359   ;
32360   return 0;
32361 }
32362 _ACEOF
32363 rm -f conftest.$ac_objext
32364 if { (ac_try="$ac_compile"
32365 case "(($ac_try" in
32366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367   *) ac_try_echo=$ac_try;;
32368 esac
32369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370   (eval "$ac_compile") 2>conftest.er1
32371   ac_status=$?
32372   grep -v '^ *+' conftest.er1 >conftest.err
32373   rm -f conftest.er1
32374   cat conftest.err >&5
32375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376   (exit $ac_status); } &&
32377          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32378   { (case "(($ac_try" in
32379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380   *) ac_try_echo=$ac_try;;
32381 esac
32382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383   (eval "$ac_try") 2>&5
32384   ac_status=$?
32385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); }; } &&
32387          { ac_try='test -s conftest.$ac_objext'
32388   { (case "(($ac_try" in
32389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390   *) ac_try_echo=$ac_try;;
32391 esac
32392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393   (eval "$ac_try") 2>&5
32394   ac_status=$?
32395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396   (exit $ac_status); }; }; then
32397   ac_cv_cxx_have_gnu_ext_hash_set=yes
32398 else
32399   echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32401
32402         ac_cv_cxx_have_gnu_ext_hash_set=no
32403 fi
32404
32405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32406   ac_ext=c
32407 ac_cpp='$CPP $CPPFLAGS'
32408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32411
32412 fi
32413 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32414 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32415  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32416  then
32417
32418 cat >>confdefs.h <<\_ACEOF
32419 #define HAVE_GNU_EXT_HASH_SET 1
32420 _ACEOF
32421
32422  else
32423
32424 cat >>confdefs.h <<\_ACEOF
32425 #define HAVE_GNU_EXT_HASH_SET 0
32426 _ACEOF
32427
32428  fi
32429
32430  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32431 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32432 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32433   echo $ECHO_N "(cached) $ECHO_C" >&6
32434 else
32435
32436   ac_ext=cpp
32437 ac_cpp='$CXXCPP $CPPFLAGS'
32438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32441
32442   cat >conftest.$ac_ext <<_ACEOF
32443 /* confdefs.h.  */
32444 _ACEOF
32445 cat confdefs.h >>conftest.$ac_ext
32446 cat >>conftest.$ac_ext <<_ACEOF
32447 /* end confdefs.h.  */
32448 #include <hash_set>
32449 int
32450 main ()
32451 {
32452 hash_set<int> t; return 0;
32453   ;
32454   return 0;
32455 }
32456 _ACEOF
32457 rm -f conftest.$ac_objext
32458 if { (ac_try="$ac_compile"
32459 case "(($ac_try" in
32460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32461   *) ac_try_echo=$ac_try;;
32462 esac
32463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464   (eval "$ac_compile") 2>conftest.er1
32465   ac_status=$?
32466   grep -v '^ *+' conftest.er1 >conftest.err
32467   rm -f conftest.er1
32468   cat conftest.err >&5
32469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470   (exit $ac_status); } &&
32471          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32472   { (case "(($ac_try" in
32473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474   *) ac_try_echo=$ac_try;;
32475 esac
32476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32477   (eval "$ac_try") 2>&5
32478   ac_status=$?
32479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480   (exit $ac_status); }; } &&
32481          { ac_try='test -s conftest.$ac_objext'
32482   { (case "(($ac_try" in
32483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32484   *) ac_try_echo=$ac_try;;
32485 esac
32486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487   (eval "$ac_try") 2>&5
32488   ac_status=$?
32489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490   (exit $ac_status); }; }; then
32491   ac_cv_cxx_have_global_hash_set=yes
32492 else
32493   echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32495
32496         ac_cv_cxx_have_global_hash_set=no
32497 fi
32498
32499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32500   ac_ext=c
32501 ac_cpp='$CPP $CPPFLAGS'
32502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32505
32506 fi
32507 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32508 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32509  if test "$ac_cv_cxx_have_global_hash_set" = yes
32510  then
32511
32512 cat >>confdefs.h <<\_ACEOF
32513 #define HAVE_GLOBAL_HASH_SET 1
32514 _ACEOF
32515
32516  else
32517
32518 cat >>confdefs.h <<\_ACEOF
32519 #define HAVE_GLOBAL_HASH_SET 0
32520 _ACEOF
32521
32522  fi
32523
32524 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32525 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32526 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32527   echo $ECHO_N "(cached) $ECHO_C" >&6
32528 else
32529
32530   ac_ext=cpp
32531 ac_cpp='$CXXCPP $CPPFLAGS'
32532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32535
32536   cat >conftest.$ac_ext <<_ACEOF
32537 /* confdefs.h.  */
32538 _ACEOF
32539 cat confdefs.h >>conftest.$ac_ext
32540 cat >>conftest.$ac_ext <<_ACEOF
32541 /* end confdefs.h.  */
32542 #include <iterator>
32543 #ifdef HAVE_NAMESPACES
32544 using namespace std;
32545 #endif
32546 int
32547 main ()
32548 {
32549 iterator<int,int,int> t; return 0;
32550   ;
32551   return 0;
32552 }
32553 _ACEOF
32554 rm -f conftest.$ac_objext
32555 if { (ac_try="$ac_compile"
32556 case "(($ac_try" in
32557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558   *) ac_try_echo=$ac_try;;
32559 esac
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561   (eval "$ac_compile") 2>conftest.er1
32562   ac_status=$?
32563   grep -v '^ *+' conftest.er1 >conftest.err
32564   rm -f conftest.er1
32565   cat conftest.err >&5
32566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567   (exit $ac_status); } &&
32568          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32569   { (case "(($ac_try" in
32570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571   *) ac_try_echo=$ac_try;;
32572 esac
32573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32574   (eval "$ac_try") 2>&5
32575   ac_status=$?
32576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577   (exit $ac_status); }; } &&
32578          { ac_try='test -s conftest.$ac_objext'
32579   { (case "(($ac_try" in
32580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32581   *) ac_try_echo=$ac_try;;
32582 esac
32583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32584   (eval "$ac_try") 2>&5
32585   ac_status=$?
32586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587   (exit $ac_status); }; }; then
32588   ac_cv_cxx_have_std_iterator=yes
32589 else
32590   echo "$as_me: failed program was:" >&5
32591 sed 's/^/| /' conftest.$ac_ext >&5
32592
32593         ac_cv_cxx_have_std_iterator=no
32594 fi
32595
32596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32597   ac_ext=c
32598 ac_cpp='$CPP $CPPFLAGS'
32599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32602
32603
32604 fi
32605 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32606 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32607 if test "$ac_cv_cxx_have_std_iterator" = yes
32608 then
32609
32610 cat >>confdefs.h <<\_ACEOF
32611 #define HAVE_STD_ITERATOR 1
32612 _ACEOF
32613
32614 else
32615
32616 cat >>confdefs.h <<\_ACEOF
32617 #define HAVE_STD_ITERATOR 0
32618 _ACEOF
32619
32620 fi
32621
32622 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32623 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32624 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32625   echo $ECHO_N "(cached) $ECHO_C" >&6
32626 else
32627
32628   ac_ext=cpp
32629 ac_cpp='$CXXCPP $CPPFLAGS'
32630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32633
32634   cat >conftest.$ac_ext <<_ACEOF
32635 /* confdefs.h.  */
32636 _ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h.  */
32640 #include <iterator>
32641 #ifdef HAVE_NAMESPACES
32642 using namespace std;
32643 #endif
32644 int
32645 main ()
32646 {
32647 bidirectional_iterator<int,int> t; return 0;
32648   ;
32649   return 0;
32650 }
32651 _ACEOF
32652 rm -f conftest.$ac_objext
32653 if { (ac_try="$ac_compile"
32654 case "(($ac_try" in
32655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32656   *) ac_try_echo=$ac_try;;
32657 esac
32658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32659   (eval "$ac_compile") 2>conftest.er1
32660   ac_status=$?
32661   grep -v '^ *+' conftest.er1 >conftest.err
32662   rm -f conftest.er1
32663   cat conftest.err >&5
32664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665   (exit $ac_status); } &&
32666          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32667   { (case "(($ac_try" in
32668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32669   *) ac_try_echo=$ac_try;;
32670 esac
32671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32672   (eval "$ac_try") 2>&5
32673   ac_status=$?
32674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675   (exit $ac_status); }; } &&
32676          { ac_try='test -s conftest.$ac_objext'
32677   { (case "(($ac_try" in
32678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32679   *) ac_try_echo=$ac_try;;
32680 esac
32681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32682   (eval "$ac_try") 2>&5
32683   ac_status=$?
32684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685   (exit $ac_status); }; }; then
32686   ac_cv_cxx_have_bi_iterator=yes
32687 else
32688   echo "$as_me: failed program was:" >&5
32689 sed 's/^/| /' conftest.$ac_ext >&5
32690
32691         ac_cv_cxx_have_bi_iterator=no
32692 fi
32693
32694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32695   ac_ext=c
32696 ac_cpp='$CPP $CPPFLAGS'
32697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32700
32701
32702 fi
32703 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32704 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32705 if test "$ac_cv_cxx_have_bi_iterator" = yes
32706 then
32707
32708 cat >>confdefs.h <<\_ACEOF
32709 #define HAVE_BI_ITERATOR 1
32710 _ACEOF
32711
32712 else
32713
32714 cat >>confdefs.h <<\_ACEOF
32715 #define HAVE_BI_ITERATOR 0
32716 _ACEOF
32717
32718 fi
32719
32720 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32721 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32722 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32723   echo $ECHO_N "(cached) $ECHO_C" >&6
32724 else
32725
32726   ac_ext=cpp
32727 ac_cpp='$CXXCPP $CPPFLAGS'
32728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32731
32732   cat >conftest.$ac_ext <<_ACEOF
32733 /* confdefs.h.  */
32734 _ACEOF
32735 cat confdefs.h >>conftest.$ac_ext
32736 cat >>conftest.$ac_ext <<_ACEOF
32737 /* end confdefs.h.  */
32738 #include <iterator>
32739 #ifdef HAVE_NAMESPACES
32740 using namespace std;
32741 #endif
32742 int
32743 main ()
32744 {
32745 forward_iterator<int,int> t; return 0;
32746   ;
32747   return 0;
32748 }
32749 _ACEOF
32750 rm -f conftest.$ac_objext
32751 if { (ac_try="$ac_compile"
32752 case "(($ac_try" in
32753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754   *) ac_try_echo=$ac_try;;
32755 esac
32756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757   (eval "$ac_compile") 2>conftest.er1
32758   ac_status=$?
32759   grep -v '^ *+' conftest.er1 >conftest.err
32760   rm -f conftest.er1
32761   cat conftest.err >&5
32762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763   (exit $ac_status); } &&
32764          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32765   { (case "(($ac_try" in
32766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32767   *) ac_try_echo=$ac_try;;
32768 esac
32769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32770   (eval "$ac_try") 2>&5
32771   ac_status=$?
32772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773   (exit $ac_status); }; } &&
32774          { ac_try='test -s conftest.$ac_objext'
32775   { (case "(($ac_try" in
32776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777   *) ac_try_echo=$ac_try;;
32778 esac
32779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780   (eval "$ac_try") 2>&5
32781   ac_status=$?
32782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783   (exit $ac_status); }; }; then
32784   ac_cv_cxx_have_fwd_iterator=yes
32785 else
32786   echo "$as_me: failed program was:" >&5
32787 sed 's/^/| /' conftest.$ac_ext >&5
32788
32789         ac_cv_cxx_have_fwd_iterator=no
32790 fi
32791
32792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32793   ac_ext=c
32794 ac_cpp='$CPP $CPPFLAGS'
32795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32798
32799
32800 fi
32801 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32802 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32803 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32804 then
32805
32806 cat >>confdefs.h <<\_ACEOF
32807 #define HAVE_FWD_ITERATOR 1
32808 _ACEOF
32809
32810 else
32811
32812 cat >>confdefs.h <<\_ACEOF
32813 #define HAVE_FWD_ITERATOR 0
32814 _ACEOF
32815
32816 fi
32817
32818
32819 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32820 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32821 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32822   echo $ECHO_N "(cached) $ECHO_C" >&6
32823 else
32824   ac_ext=cpp
32825 ac_cpp='$CXXCPP $CPPFLAGS'
32826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32829
32830    cat >conftest.$ac_ext <<_ACEOF
32831 /* confdefs.h.  */
32832 _ACEOF
32833 cat confdefs.h >>conftest.$ac_ext
32834 cat >>conftest.$ac_ext <<_ACEOF
32835 /* end confdefs.h.  */
32836 #include <math.h>
32837 int
32838 main ()
32839 {
32840 float f; isnan(f);
32841   ;
32842   return 0;
32843 }
32844 _ACEOF
32845 rm -f conftest.$ac_objext
32846 if { (ac_try="$ac_compile"
32847 case "(($ac_try" in
32848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849   *) ac_try_echo=$ac_try;;
32850 esac
32851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852   (eval "$ac_compile") 2>conftest.er1
32853   ac_status=$?
32854   grep -v '^ *+' conftest.er1 >conftest.err
32855   rm -f conftest.er1
32856   cat conftest.err >&5
32857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858   (exit $ac_status); } &&
32859          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32860   { (case "(($ac_try" in
32861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32862   *) ac_try_echo=$ac_try;;
32863 esac
32864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32865   (eval "$ac_try") 2>&5
32866   ac_status=$?
32867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868   (exit $ac_status); }; } &&
32869          { ac_try='test -s conftest.$ac_objext'
32870   { (case "(($ac_try" in
32871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872   *) ac_try_echo=$ac_try;;
32873 esac
32874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875   (eval "$ac_try") 2>&5
32876   ac_status=$?
32877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878   (exit $ac_status); }; }; then
32879   ac_cv_func_isnan_in_math_h=yes
32880 else
32881   echo "$as_me: failed program was:" >&5
32882 sed 's/^/| /' conftest.$ac_ext >&5
32883
32884         ac_cv_func_isnan_in_math_h=no
32885 fi
32886
32887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32888   ac_ext=c
32889 ac_cpp='$CPP $CPPFLAGS'
32890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32893
32894 fi
32895 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32896 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32897
32898
32899 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32900
32901 cat >>confdefs.h <<\_ACEOF
32902 #define HAVE_ISNAN_IN_MATH_H 1
32903 _ACEOF
32904
32905 fi
32906
32907 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32908 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32909 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32910   echo $ECHO_N "(cached) $ECHO_C" >&6
32911 else
32912   ac_ext=cpp
32913 ac_cpp='$CXXCPP $CPPFLAGS'
32914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32917
32918    cat >conftest.$ac_ext <<_ACEOF
32919 /* confdefs.h.  */
32920 _ACEOF
32921 cat confdefs.h >>conftest.$ac_ext
32922 cat >>conftest.$ac_ext <<_ACEOF
32923 /* end confdefs.h.  */
32924 #include <cmath>
32925 int
32926 main ()
32927 {
32928 float f; isnan(f);
32929   ;
32930   return 0;
32931 }
32932 _ACEOF
32933 rm -f conftest.$ac_objext
32934 if { (ac_try="$ac_compile"
32935 case "(($ac_try" in
32936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32937   *) ac_try_echo=$ac_try;;
32938 esac
32939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32940   (eval "$ac_compile") 2>conftest.er1
32941   ac_status=$?
32942   grep -v '^ *+' conftest.er1 >conftest.err
32943   rm -f conftest.er1
32944   cat conftest.err >&5
32945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946   (exit $ac_status); } &&
32947          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32948   { (case "(($ac_try" in
32949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32950   *) ac_try_echo=$ac_try;;
32951 esac
32952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32953   (eval "$ac_try") 2>&5
32954   ac_status=$?
32955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956   (exit $ac_status); }; } &&
32957          { ac_try='test -s conftest.$ac_objext'
32958   { (case "(($ac_try" in
32959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32960   *) ac_try_echo=$ac_try;;
32961 esac
32962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32963   (eval "$ac_try") 2>&5
32964   ac_status=$?
32965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966   (exit $ac_status); }; }; then
32967   ac_cv_func_isnan_in_cmath=yes
32968 else
32969   echo "$as_me: failed program was:" >&5
32970 sed 's/^/| /' conftest.$ac_ext >&5
32971
32972         ac_cv_func_isnan_in_cmath=no
32973 fi
32974
32975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32976   ac_ext=c
32977 ac_cpp='$CPP $CPPFLAGS'
32978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32981
32982 fi
32983 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32984 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32985
32986 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32987
32988 cat >>confdefs.h <<\_ACEOF
32989 #define HAVE_ISNAN_IN_CMATH 1
32990 _ACEOF
32991
32992 fi
32993
32994 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32995 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32996 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32997   echo $ECHO_N "(cached) $ECHO_C" >&6
32998 else
32999   ac_ext=cpp
33000 ac_cpp='$CXXCPP $CPPFLAGS'
33001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33004
33005    cat >conftest.$ac_ext <<_ACEOF
33006 /* confdefs.h.  */
33007 _ACEOF
33008 cat confdefs.h >>conftest.$ac_ext
33009 cat >>conftest.$ac_ext <<_ACEOF
33010 /* end confdefs.h.  */
33011 #include <cmath>
33012 int
33013 main ()
33014 {
33015 float f; std::isnan(f);
33016   ;
33017   return 0;
33018 }
33019 _ACEOF
33020 rm -f conftest.$ac_objext
33021 if { (ac_try="$ac_compile"
33022 case "(($ac_try" in
33023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33024   *) ac_try_echo=$ac_try;;
33025 esac
33026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33027   (eval "$ac_compile") 2>conftest.er1
33028   ac_status=$?
33029   grep -v '^ *+' conftest.er1 >conftest.err
33030   rm -f conftest.er1
33031   cat conftest.err >&5
33032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033   (exit $ac_status); } &&
33034          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33035   { (case "(($ac_try" in
33036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037   *) ac_try_echo=$ac_try;;
33038 esac
33039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040   (eval "$ac_try") 2>&5
33041   ac_status=$?
33042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043   (exit $ac_status); }; } &&
33044          { ac_try='test -s conftest.$ac_objext'
33045   { (case "(($ac_try" in
33046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047   *) ac_try_echo=$ac_try;;
33048 esac
33049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33050   (eval "$ac_try") 2>&5
33051   ac_status=$?
33052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053   (exit $ac_status); }; }; then
33054   ac_cv_func_std_isnan_in_cmath=yes
33055 else
33056   echo "$as_me: failed program was:" >&5
33057 sed 's/^/| /' conftest.$ac_ext >&5
33058
33059         ac_cv_func_std_isnan_in_cmath=no
33060 fi
33061
33062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33063   ac_ext=c
33064 ac_cpp='$CPP $CPPFLAGS'
33065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33068
33069 fi
33070 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33071 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33072
33073 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33074
33075 cat >>confdefs.h <<\_ACEOF
33076 #define HAVE_STD_ISNAN_IN_CMATH 1
33077 _ACEOF
33078
33079 fi
33080
33081
33082 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33083 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33084 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33085   echo $ECHO_N "(cached) $ECHO_C" >&6
33086 else
33087   ac_ext=cpp
33088 ac_cpp='$CXXCPP $CPPFLAGS'
33089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33092
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 <math.h>
33100 int
33101 main ()
33102 {
33103 float f; isinf(f);
33104   ;
33105   return 0;
33106 }
33107 _ACEOF
33108 rm -f conftest.$ac_objext
33109 if { (ac_try="$ac_compile"
33110 case "(($ac_try" in
33111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112   *) ac_try_echo=$ac_try;;
33113 esac
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115   (eval "$ac_compile") 2>conftest.er1
33116   ac_status=$?
33117   grep -v '^ *+' conftest.er1 >conftest.err
33118   rm -f conftest.er1
33119   cat conftest.err >&5
33120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121   (exit $ac_status); } &&
33122          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33123   { (case "(($ac_try" in
33124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33125   *) ac_try_echo=$ac_try;;
33126 esac
33127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33128   (eval "$ac_try") 2>&5
33129   ac_status=$?
33130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131   (exit $ac_status); }; } &&
33132          { ac_try='test -s conftest.$ac_objext'
33133   { (case "(($ac_try" in
33134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135   *) ac_try_echo=$ac_try;;
33136 esac
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138   (eval "$ac_try") 2>&5
33139   ac_status=$?
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); }; }; then
33142   ac_cv_func_isinf_in_math_h=yes
33143 else
33144   echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33146
33147         ac_cv_func_isinf_in_math_h=no
33148 fi
33149
33150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33151   ac_ext=c
33152 ac_cpp='$CPP $CPPFLAGS'
33153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33156
33157 fi
33158 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33159 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33160
33161 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33162
33163 cat >>confdefs.h <<\_ACEOF
33164 #define HAVE_ISINF_IN_MATH_H 1
33165 _ACEOF
33166
33167 fi
33168
33169 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33170 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33171 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33172   echo $ECHO_N "(cached) $ECHO_C" >&6
33173 else
33174   ac_ext=cpp
33175 ac_cpp='$CXXCPP $CPPFLAGS'
33176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33179
33180    cat >conftest.$ac_ext <<_ACEOF
33181 /* confdefs.h.  */
33182 _ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h.  */
33186 #include <cmath>
33187 int
33188 main ()
33189 {
33190 float f; isinf(f);
33191   ;
33192   return 0;
33193 }
33194 _ACEOF
33195 rm -f conftest.$ac_objext
33196 if { (ac_try="$ac_compile"
33197 case "(($ac_try" in
33198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199   *) ac_try_echo=$ac_try;;
33200 esac
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202   (eval "$ac_compile") 2>conftest.er1
33203   ac_status=$?
33204   grep -v '^ *+' conftest.er1 >conftest.err
33205   rm -f conftest.er1
33206   cat conftest.err >&5
33207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208   (exit $ac_status); } &&
33209          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33210   { (case "(($ac_try" in
33211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33212   *) ac_try_echo=$ac_try;;
33213 esac
33214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33215   (eval "$ac_try") 2>&5
33216   ac_status=$?
33217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218   (exit $ac_status); }; } &&
33219          { ac_try='test -s conftest.$ac_objext'
33220   { (case "(($ac_try" in
33221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222   *) ac_try_echo=$ac_try;;
33223 esac
33224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225   (eval "$ac_try") 2>&5
33226   ac_status=$?
33227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228   (exit $ac_status); }; }; then
33229   ac_cv_func_isinf_in_cmath=yes
33230 else
33231   echo "$as_me: failed program was:" >&5
33232 sed 's/^/| /' conftest.$ac_ext >&5
33233
33234         ac_cv_func_isinf_in_cmath=no
33235 fi
33236
33237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33238   ac_ext=c
33239 ac_cpp='$CPP $CPPFLAGS'
33240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33243
33244 fi
33245 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33246 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33247
33248 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33249
33250 cat >>confdefs.h <<\_ACEOF
33251 #define HAVE_ISINF_IN_CMATH 1
33252 _ACEOF
33253
33254 fi
33255
33256 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33257 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33258 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33259   echo $ECHO_N "(cached) $ECHO_C" >&6
33260 else
33261   ac_ext=cpp
33262 ac_cpp='$CXXCPP $CPPFLAGS'
33263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33266
33267    cat >conftest.$ac_ext <<_ACEOF
33268 /* confdefs.h.  */
33269 _ACEOF
33270 cat confdefs.h >>conftest.$ac_ext
33271 cat >>conftest.$ac_ext <<_ACEOF
33272 /* end confdefs.h.  */
33273 #include <cmath>
33274 int
33275 main ()
33276 {
33277 float f; std::isinf(f)}
33278   ;
33279   return 0;
33280 }
33281 _ACEOF
33282 rm -f conftest.$ac_objext
33283 if { (ac_try="$ac_compile"
33284 case "(($ac_try" in
33285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33286   *) ac_try_echo=$ac_try;;
33287 esac
33288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33289   (eval "$ac_compile") 2>conftest.er1
33290   ac_status=$?
33291   grep -v '^ *+' conftest.er1 >conftest.err
33292   rm -f conftest.er1
33293   cat conftest.err >&5
33294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295   (exit $ac_status); } &&
33296          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33297   { (case "(($ac_try" in
33298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299   *) ac_try_echo=$ac_try;;
33300 esac
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302   (eval "$ac_try") 2>&5
33303   ac_status=$?
33304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305   (exit $ac_status); }; } &&
33306          { ac_try='test -s conftest.$ac_objext'
33307   { (case "(($ac_try" in
33308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309   *) ac_try_echo=$ac_try;;
33310 esac
33311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312   (eval "$ac_try") 2>&5
33313   ac_status=$?
33314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315   (exit $ac_status); }; }; then
33316   ac_cv_func_std_isinf_in_cmath=yes
33317 else
33318   echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33320
33321         ac_cv_func_std_isinf_in_cmath=no
33322 fi
33323
33324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33325   ac_ext=c
33326 ac_cpp='$CPP $CPPFLAGS'
33327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33330
33331 fi
33332 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33333 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33334
33335 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33336
33337 cat >>confdefs.h <<\_ACEOF
33338 #define HAVE_STD_ISINF_IN_CMATH 1
33339 _ACEOF
33340
33341 fi
33342
33343 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33344 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33345 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33346   echo $ECHO_N "(cached) $ECHO_C" >&6
33347 else
33348   ac_ext=cpp
33349 ac_cpp='$CXXCPP $CPPFLAGS'
33350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33353
33354    cat >conftest.$ac_ext <<_ACEOF
33355 /* confdefs.h.  */
33356 _ACEOF
33357 cat confdefs.h >>conftest.$ac_ext
33358 cat >>conftest.$ac_ext <<_ACEOF
33359 /* end confdefs.h.  */
33360 #include <ieeefp.h>
33361 int
33362 main ()
33363 {
33364 float f; finite(f);
33365   ;
33366   return 0;
33367 }
33368 _ACEOF
33369 rm -f conftest.$ac_objext
33370 if { (ac_try="$ac_compile"
33371 case "(($ac_try" in
33372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33373   *) ac_try_echo=$ac_try;;
33374 esac
33375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33376   (eval "$ac_compile") 2>conftest.er1
33377   ac_status=$?
33378   grep -v '^ *+' conftest.er1 >conftest.err
33379   rm -f conftest.er1
33380   cat conftest.err >&5
33381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382   (exit $ac_status); } &&
33383          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33384   { (case "(($ac_try" in
33385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386   *) ac_try_echo=$ac_try;;
33387 esac
33388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33389   (eval "$ac_try") 2>&5
33390   ac_status=$?
33391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392   (exit $ac_status); }; } &&
33393          { ac_try='test -s conftest.$ac_objext'
33394   { (case "(($ac_try" in
33395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33396   *) ac_try_echo=$ac_try;;
33397 esac
33398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33399   (eval "$ac_try") 2>&5
33400   ac_status=$?
33401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33402   (exit $ac_status); }; }; then
33403   ac_cv_func_finite_in_ieeefp_h=yes
33404 else
33405   echo "$as_me: failed program was:" >&5
33406 sed 's/^/| /' conftest.$ac_ext >&5
33407
33408         ac_cv_func_finite_in_ieeefp_h=no
33409 fi
33410
33411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33412   ac_ext=c
33413 ac_cpp='$CPP $CPPFLAGS'
33414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33417
33418 fi
33419 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33420 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33421
33422 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33423
33424 cat >>confdefs.h <<\_ACEOF
33425 #define HAVE_FINITE_IN_IEEEFP_H 1
33426 _ACEOF
33427
33428 fi
33429
33430
33431
33432 if test "$llvm_cv_platform_type" = "Unix" ; then
33433
33434
33435 for ac_header in stdlib.h unistd.h
33436 do
33437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33439   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33442   echo $ECHO_N "(cached) $ECHO_C" >&6
33443 fi
33444 ac_res=`eval echo '${'$as_ac_Header'}'`
33445                { echo "$as_me:$LINENO: result: $ac_res" >&5
33446 echo "${ECHO_T}$ac_res" >&6; }
33447 else
33448   # Is the header compilable?
33449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33451 cat >conftest.$ac_ext <<_ACEOF
33452 /* confdefs.h.  */
33453 _ACEOF
33454 cat confdefs.h >>conftest.$ac_ext
33455 cat >>conftest.$ac_ext <<_ACEOF
33456 /* end confdefs.h.  */
33457 $ac_includes_default
33458 #include <$ac_header>
33459 _ACEOF
33460 rm -f conftest.$ac_objext
33461 if { (ac_try="$ac_compile"
33462 case "(($ac_try" in
33463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464   *) ac_try_echo=$ac_try;;
33465 esac
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467   (eval "$ac_compile") 2>conftest.er1
33468   ac_status=$?
33469   grep -v '^ *+' conftest.er1 >conftest.err
33470   rm -f conftest.er1
33471   cat conftest.err >&5
33472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473   (exit $ac_status); } &&
33474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33475   { (case "(($ac_try" in
33476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33477   *) ac_try_echo=$ac_try;;
33478 esac
33479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33480   (eval "$ac_try") 2>&5
33481   ac_status=$?
33482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483   (exit $ac_status); }; } &&
33484          { ac_try='test -s conftest.$ac_objext'
33485   { (case "(($ac_try" in
33486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33487   *) ac_try_echo=$ac_try;;
33488 esac
33489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33490   (eval "$ac_try") 2>&5
33491   ac_status=$?
33492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493   (exit $ac_status); }; }; then
33494   ac_header_compiler=yes
33495 else
33496   echo "$as_me: failed program was:" >&5
33497 sed 's/^/| /' conftest.$ac_ext >&5
33498
33499         ac_header_compiler=no
33500 fi
33501
33502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33504 echo "${ECHO_T}$ac_header_compiler" >&6; }
33505
33506 # Is the header present?
33507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33509 cat >conftest.$ac_ext <<_ACEOF
33510 /* confdefs.h.  */
33511 _ACEOF
33512 cat confdefs.h >>conftest.$ac_ext
33513 cat >>conftest.$ac_ext <<_ACEOF
33514 /* end confdefs.h.  */
33515 #include <$ac_header>
33516 _ACEOF
33517 if { (ac_try="$ac_cpp conftest.$ac_ext"
33518 case "(($ac_try" in
33519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33520   *) ac_try_echo=$ac_try;;
33521 esac
33522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33524   ac_status=$?
33525   grep -v '^ *+' conftest.er1 >conftest.err
33526   rm -f conftest.er1
33527   cat conftest.err >&5
33528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529   (exit $ac_status); } >/dev/null; then
33530   if test -s conftest.err; then
33531     ac_cpp_err=$ac_c_preproc_warn_flag
33532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33533   else
33534     ac_cpp_err=
33535   fi
33536 else
33537   ac_cpp_err=yes
33538 fi
33539 if test -z "$ac_cpp_err"; then
33540   ac_header_preproc=yes
33541 else
33542   echo "$as_me: failed program was:" >&5
33543 sed 's/^/| /' conftest.$ac_ext >&5
33544
33545   ac_header_preproc=no
33546 fi
33547
33548 rm -f conftest.err conftest.$ac_ext
33549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33550 echo "${ECHO_T}$ac_header_preproc" >&6; }
33551
33552 # So?  What about this header?
33553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33554   yes:no: )
33555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33559     ac_header_preproc=yes
33560     ;;
33561   no:yes:* )
33562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33564     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33565 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33566     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33568     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33569 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33572     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33574     ( cat <<\_ASBOX
33575 ## ----------------------------------- ##
33576 ## Report this to llvmbugs@cs.uiuc.edu ##
33577 ## ----------------------------------- ##
33578 _ASBOX
33579      ) | sed "s/^/$as_me: WARNING:     /" >&2
33580     ;;
33581 esac
33582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33585   echo $ECHO_N "(cached) $ECHO_C" >&6
33586 else
33587   eval "$as_ac_Header=\$ac_header_preproc"
33588 fi
33589 ac_res=`eval echo '${'$as_ac_Header'}'`
33590                { echo "$as_me:$LINENO: result: $ac_res" >&5
33591 echo "${ECHO_T}$ac_res" >&6; }
33592
33593 fi
33594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33595   cat >>confdefs.h <<_ACEOF
33596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33597 _ACEOF
33598
33599 fi
33600
33601 done
33602
33603
33604 for ac_func in getpagesize
33605 do
33606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33610   echo $ECHO_N "(cached) $ECHO_C" >&6
33611 else
33612   cat >conftest.$ac_ext <<_ACEOF
33613 /* confdefs.h.  */
33614 _ACEOF
33615 cat confdefs.h >>conftest.$ac_ext
33616 cat >>conftest.$ac_ext <<_ACEOF
33617 /* end confdefs.h.  */
33618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33620 #define $ac_func innocuous_$ac_func
33621
33622 /* System header to define __stub macros and hopefully few prototypes,
33623     which can conflict with char $ac_func (); below.
33624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33625     <limits.h> exists even on freestanding compilers.  */
33626
33627 #ifdef __STDC__
33628 # include <limits.h>
33629 #else
33630 # include <assert.h>
33631 #endif
33632
33633 #undef $ac_func
33634
33635 /* Override any GCC internal prototype to avoid an error.
33636    Use char because int might match the return type of a GCC
33637    builtin and then its argument prototype would still apply.  */
33638 #ifdef __cplusplus
33639 extern "C"
33640 #endif
33641 char $ac_func ();
33642 /* The GNU C library defines this for functions which it implements
33643     to always fail with ENOSYS.  Some functions are actually named
33644     something starting with __ and the normal name is an alias.  */
33645 #if defined __stub_$ac_func || defined __stub___$ac_func
33646 choke me
33647 #endif
33648
33649 int
33650 main ()
33651 {
33652 return $ac_func ();
33653   ;
33654   return 0;
33655 }
33656 _ACEOF
33657 rm -f conftest.$ac_objext conftest$ac_exeext
33658 if { (ac_try="$ac_link"
33659 case "(($ac_try" in
33660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33661   *) ac_try_echo=$ac_try;;
33662 esac
33663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33664   (eval "$ac_link") 2>conftest.er1
33665   ac_status=$?
33666   grep -v '^ *+' conftest.er1 >conftest.err
33667   rm -f conftest.er1
33668   cat conftest.err >&5
33669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670   (exit $ac_status); } &&
33671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33672   { (case "(($ac_try" in
33673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33674   *) ac_try_echo=$ac_try;;
33675 esac
33676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33677   (eval "$ac_try") 2>&5
33678   ac_status=$?
33679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680   (exit $ac_status); }; } &&
33681          { ac_try='test -s conftest$ac_exeext'
33682   { (case "(($ac_try" in
33683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33684   *) ac_try_echo=$ac_try;;
33685 esac
33686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33687   (eval "$ac_try") 2>&5
33688   ac_status=$?
33689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690   (exit $ac_status); }; }; then
33691   eval "$as_ac_var=yes"
33692 else
33693   echo "$as_me: failed program was:" >&5
33694 sed 's/^/| /' conftest.$ac_ext >&5
33695
33696         eval "$as_ac_var=no"
33697 fi
33698
33699 rm -f core conftest.err conftest.$ac_objext \
33700       conftest$ac_exeext conftest.$ac_ext
33701 fi
33702 ac_res=`eval echo '${'$as_ac_var'}'`
33703                { echo "$as_me:$LINENO: result: $ac_res" >&5
33704 echo "${ECHO_T}$ac_res" >&6; }
33705 if test `eval echo '${'$as_ac_var'}'` = yes; then
33706   cat >>confdefs.h <<_ACEOF
33707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33708 _ACEOF
33709
33710 fi
33711 done
33712
33713 { echo "$as_me:$LINENO: checking for working mmap" >&5
33714 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33715 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33716   echo $ECHO_N "(cached) $ECHO_C" >&6
33717 else
33718   if test "$cross_compiling" = yes; then
33719   ac_cv_func_mmap_fixed_mapped=no
33720 else
33721   cat >conftest.$ac_ext <<_ACEOF
33722 /* confdefs.h.  */
33723 _ACEOF
33724 cat confdefs.h >>conftest.$ac_ext
33725 cat >>conftest.$ac_ext <<_ACEOF
33726 /* end confdefs.h.  */
33727 $ac_includes_default
33728 /* malloc might have been renamed as rpl_malloc. */
33729 #undef malloc
33730
33731 /* Thanks to Mike Haertel and Jim Avera for this test.
33732    Here is a matrix of mmap possibilities:
33733         mmap private not fixed
33734         mmap private fixed at somewhere currently unmapped
33735         mmap private fixed at somewhere already mapped
33736         mmap shared not fixed
33737         mmap shared fixed at somewhere currently unmapped
33738         mmap shared fixed at somewhere already mapped
33739    For private mappings, we should verify that changes cannot be read()
33740    back from the file, nor mmap's back from the file at a different
33741    address.  (There have been systems where private was not correctly
33742    implemented like the infamous i386 svr4.0, and systems where the
33743    VM page cache was not coherent with the file system buffer cache
33744    like early versions of FreeBSD and possibly contemporary NetBSD.)
33745    For shared mappings, we should conversely verify that changes get
33746    propagated back to all the places they're supposed to be.
33747
33748    Grep wants private fixed already mapped.
33749    The main things grep needs to know about mmap are:
33750    * does it exist and is it safe to write into the mmap'd area
33751    * how to use it (BSD variants)  */
33752
33753 #include <fcntl.h>
33754 #include <sys/mman.h>
33755
33756 #if !STDC_HEADERS && !HAVE_STDLIB_H
33757 char *malloc ();
33758 #endif
33759
33760 /* This mess was copied from the GNU getpagesize.h.  */
33761 #if !HAVE_GETPAGESIZE
33762 /* Assume that all systems that can run configure have sys/param.h.  */
33763 # if !HAVE_SYS_PARAM_H
33764 #  define HAVE_SYS_PARAM_H 1
33765 # endif
33766
33767 # ifdef _SC_PAGESIZE
33768 #  define getpagesize() sysconf(_SC_PAGESIZE)
33769 # else /* no _SC_PAGESIZE */
33770 #  if HAVE_SYS_PARAM_H
33771 #   include <sys/param.h>
33772 #   ifdef EXEC_PAGESIZE
33773 #    define getpagesize() EXEC_PAGESIZE
33774 #   else /* no EXEC_PAGESIZE */
33775 #    ifdef NBPG
33776 #     define getpagesize() NBPG * CLSIZE
33777 #     ifndef CLSIZE
33778 #      define CLSIZE 1
33779 #     endif /* no CLSIZE */
33780 #    else /* no NBPG */
33781 #     ifdef NBPC
33782 #      define getpagesize() NBPC
33783 #     else /* no NBPC */
33784 #      ifdef PAGESIZE
33785 #       define getpagesize() PAGESIZE
33786 #      endif /* PAGESIZE */
33787 #     endif /* no NBPC */
33788 #    endif /* no NBPG */
33789 #   endif /* no EXEC_PAGESIZE */
33790 #  else /* no HAVE_SYS_PARAM_H */
33791 #   define getpagesize() 8192   /* punt totally */
33792 #  endif /* no HAVE_SYS_PARAM_H */
33793 # endif /* no _SC_PAGESIZE */
33794
33795 #endif /* no HAVE_GETPAGESIZE */
33796
33797 int
33798 main ()
33799 {
33800   char *data, *data2, *data3;
33801   int i, pagesize;
33802   int fd;
33803
33804   pagesize = getpagesize ();
33805
33806   /* First, make a file with some known garbage in it. */
33807   data = (char *) malloc (pagesize);
33808   if (!data)
33809     return 1;
33810   for (i = 0; i < pagesize; ++i)
33811     *(data + i) = rand ();
33812   umask (0);
33813   fd = creat ("conftest.mmap", 0600);
33814   if (fd < 0)
33815     return 1;
33816   if (write (fd, data, pagesize) != pagesize)
33817     return 1;
33818   close (fd);
33819
33820   /* Next, try to mmap the file at a fixed address which already has
33821      something else allocated at it.  If we can, also make sure that
33822      we see the same garbage.  */
33823   fd = open ("conftest.mmap", O_RDWR);
33824   if (fd < 0)
33825     return 1;
33826   data2 = (char *) malloc (2 * pagesize);
33827   if (!data2)
33828     return 1;
33829   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33830   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33831                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33832     return 1;
33833   for (i = 0; i < pagesize; ++i)
33834     if (*(data + i) != *(data2 + i))
33835       return 1;
33836
33837   /* Finally, make sure that changes to the mapped area do not
33838      percolate back to the file as seen by read().  (This is a bug on
33839      some variants of i386 svr4.0.)  */
33840   for (i = 0; i < pagesize; ++i)
33841     *(data2 + i) = *(data2 + i) + 1;
33842   data3 = (char *) malloc (pagesize);
33843   if (!data3)
33844     return 1;
33845   if (read (fd, data3, pagesize) != pagesize)
33846     return 1;
33847   for (i = 0; i < pagesize; ++i)
33848     if (*(data + i) != *(data3 + i))
33849       return 1;
33850   close (fd);
33851   return 0;
33852 }
33853 _ACEOF
33854 rm -f conftest$ac_exeext
33855 if { (ac_try="$ac_link"
33856 case "(($ac_try" in
33857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33858   *) ac_try_echo=$ac_try;;
33859 esac
33860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33861   (eval "$ac_link") 2>&5
33862   ac_status=$?
33863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33865   { (case "(($ac_try" in
33866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33867   *) ac_try_echo=$ac_try;;
33868 esac
33869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33870   (eval "$ac_try") 2>&5
33871   ac_status=$?
33872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873   (exit $ac_status); }; }; then
33874   ac_cv_func_mmap_fixed_mapped=yes
33875 else
33876   echo "$as_me: program exited with status $ac_status" >&5
33877 echo "$as_me: failed program was:" >&5
33878 sed 's/^/| /' conftest.$ac_ext >&5
33879
33880 ( exit $ac_status )
33881 ac_cv_func_mmap_fixed_mapped=no
33882 fi
33883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33884 fi
33885
33886
33887 fi
33888 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33889 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33890 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33891
33892 cat >>confdefs.h <<\_ACEOF
33893 #define HAVE_MMAP 1
33894 _ACEOF
33895
33896 fi
33897 rm -f conftest.mmap
33898
33899   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33900 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33901 if test "${ac_cv_func_mmap_file+set}" = set; then
33902   echo $ECHO_N "(cached) $ECHO_C" >&6
33903 else
33904    ac_ext=c
33905 ac_cpp='$CPP $CPPFLAGS'
33906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33909
33910   if test "$cross_compiling" = yes; then
33911   ac_cv_func_mmap_file=no
33912 else
33913   cat >conftest.$ac_ext <<_ACEOF
33914
33915     /* confdefs.h.  */
33916 _ACEOF
33917 cat confdefs.h >>conftest.$ac_ext
33918 cat >>conftest.$ac_ext <<_ACEOF
33919 /* end confdefs.h.  */
33920
33921 #include <sys/types.h>
33922 #include <sys/mman.h>
33923 #include <fcntl.h>
33924
33925 int
33926 main ()
33927 {
33928
33929   int fd;
33930   fd = creat ("foo",0777);
33931   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33932   unlink ("foo");
33933   return (fd != (int) MAP_FAILED);
33934   ;
33935   return 0;
33936 }
33937 _ACEOF
33938 rm -f conftest$ac_exeext
33939 if { (ac_try="$ac_link"
33940 case "(($ac_try" in
33941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33942   *) ac_try_echo=$ac_try;;
33943 esac
33944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33945   (eval "$ac_link") 2>&5
33946   ac_status=$?
33947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33949   { (case "(($ac_try" in
33950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33951   *) ac_try_echo=$ac_try;;
33952 esac
33953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33954   (eval "$ac_try") 2>&5
33955   ac_status=$?
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); }; }; then
33958   ac_cv_func_mmap_file=yes
33959 else
33960   echo "$as_me: program exited with status $ac_status" >&5
33961 echo "$as_me: failed program was:" >&5
33962 sed 's/^/| /' conftest.$ac_ext >&5
33963
33964 ( exit $ac_status )
33965 ac_cv_func_mmap_file=no
33966 fi
33967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33968 fi
33969
33970
33971   ac_ext=c
33972 ac_cpp='$CPP $CPPFLAGS'
33973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33976
33977
33978 fi
33979 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33980 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33981 if test "$ac_cv_func_mmap_file" = yes; then
33982
33983 cat >>confdefs.h <<\_ACEOF
33984 #define HAVE_MMAP_FILE
33985 _ACEOF
33986
33987    MMAP_FILE=yes
33988
33989 fi
33990
33991   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33992 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33993 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33994   echo $ECHO_N "(cached) $ECHO_C" >&6
33995 else
33996   if test "$llvm_cv_os_type" = "Interix" ; then
33997    ac_cv_need_dev_zero_for_mmap=yes
33998  else
33999    ac_cv_need_dev_zero_for_mmap=no
34000  fi
34001
34002 fi
34003 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34004 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34005 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34006
34007 cat >>confdefs.h <<\_ACEOF
34008 #define NEED_DEV_ZERO_FOR_MMAP 1
34009 _ACEOF
34010
34011 fi
34012
34013   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34014   then
34015     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34016 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34017   fi
34018   if test "$ac_cv_func_mmap_file" = "no"
34019   then
34020     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34021 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34022   fi
34023 fi
34024
34025
34026
34027 for ac_func in __dso_handle
34028 do
34029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34033   echo $ECHO_N "(cached) $ECHO_C" >&6
34034 else
34035   cat >conftest.$ac_ext <<_ACEOF
34036 /* confdefs.h.  */
34037 _ACEOF
34038 cat confdefs.h >>conftest.$ac_ext
34039 cat >>conftest.$ac_ext <<_ACEOF
34040 /* end confdefs.h.  */
34041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34043 #define $ac_func innocuous_$ac_func
34044
34045 /* System header to define __stub macros and hopefully few prototypes,
34046     which can conflict with char $ac_func (); below.
34047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34048     <limits.h> exists even on freestanding compilers.  */
34049
34050 #ifdef __STDC__
34051 # include <limits.h>
34052 #else
34053 # include <assert.h>
34054 #endif
34055
34056 #undef $ac_func
34057
34058 /* Override any GCC internal prototype to avoid an error.
34059    Use char because int might match the return type of a GCC
34060    builtin and then its argument prototype would still apply.  */
34061 #ifdef __cplusplus
34062 extern "C"
34063 #endif
34064 char $ac_func ();
34065 /* The GNU C library defines this for functions which it implements
34066     to always fail with ENOSYS.  Some functions are actually named
34067     something starting with __ and the normal name is an alias.  */
34068 #if defined __stub_$ac_func || defined __stub___$ac_func
34069 choke me
34070 #endif
34071
34072 int
34073 main ()
34074 {
34075 return $ac_func ();
34076   ;
34077   return 0;
34078 }
34079 _ACEOF
34080 rm -f conftest.$ac_objext conftest$ac_exeext
34081 if { (ac_try="$ac_link"
34082 case "(($ac_try" in
34083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34084   *) ac_try_echo=$ac_try;;
34085 esac
34086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34087   (eval "$ac_link") 2>conftest.er1
34088   ac_status=$?
34089   grep -v '^ *+' conftest.er1 >conftest.err
34090   rm -f conftest.er1
34091   cat conftest.err >&5
34092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093   (exit $ac_status); } &&
34094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34095   { (case "(($ac_try" in
34096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34097   *) ac_try_echo=$ac_try;;
34098 esac
34099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34100   (eval "$ac_try") 2>&5
34101   ac_status=$?
34102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103   (exit $ac_status); }; } &&
34104          { ac_try='test -s conftest$ac_exeext'
34105   { (case "(($ac_try" in
34106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34107   *) ac_try_echo=$ac_try;;
34108 esac
34109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34110   (eval "$ac_try") 2>&5
34111   ac_status=$?
34112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113   (exit $ac_status); }; }; then
34114   eval "$as_ac_var=yes"
34115 else
34116   echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34118
34119         eval "$as_ac_var=no"
34120 fi
34121
34122 rm -f core conftest.err conftest.$ac_objext \
34123       conftest$ac_exeext conftest.$ac_ext
34124 fi
34125 ac_res=`eval echo '${'$as_ac_var'}'`
34126                { echo "$as_me:$LINENO: result: $ac_res" >&5
34127 echo "${ECHO_T}$ac_res" >&6; }
34128 if test `eval echo '${'$as_ac_var'}'` = yes; then
34129   cat >>confdefs.h <<_ACEOF
34130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34131 _ACEOF
34132
34133 fi
34134 done
34135
34136
34137 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34138 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34139 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34140   echo $ECHO_N "(cached) $ECHO_C" >&6
34141 else
34142   llvm_cv_llvmgcc_sanity="no"
34143 if test -x "$LLVMGCC" ; then
34144   cp /dev/null conftest.c
34145   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34146       grep 'target datalayout =' > /dev/null 2>&1
34147   if test $? -eq 0 ; then
34148     llvm_cv_llvmgcc_sanity="yes"
34149   fi
34150   rm conftest.c
34151 fi
34152 fi
34153 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34154 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34155
34156 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34157   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34158 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34159   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34160   LLVMCC1=$llvmcc1path
34161
34162   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34163   LLVMCC1PLUS=$llvmcc1pluspath
34164
34165   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34166   LLVMGCCDIR=$llvmgccdir
34167
34168   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34169   LLVMGCCLIBEXEC=$llvmgcclibexec
34170
34171   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34172   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34173   LLVMGCC_VERSION=$llvmgccversion
34174
34175   LLVMGCC_MAJVERS=$llvmgccmajvers
34176
34177   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34178   LLVMGCC_LANGS=$llvmgcclangs
34179
34180   { echo "$as_me:$LINENO: result: ok" >&5
34181 echo "${ECHO_T}ok" >&6; }
34182 fi
34183
34184 SHLIBEXT=$libltdl_cv_shlibext
34185
34186
34187 # Translate the various configuration directories and other basic
34188 # information into substitutions that will end up in Makefile.config.in
34189 # that these configured values can be used by the makefiles
34190 if test "${prefix}" = "NONE" ; then
34191   prefix="/usr/local"
34192 fi
34193 eval LLVM_PREFIX="${prefix}";
34194 eval LLVM_BINDIR="${prefix}/bin";
34195 eval LLVM_LIBDIR="${prefix}/lib";
34196 eval LLVM_DATADIR="${prefix}/share/llvm";
34197 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34198 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34199 eval LLVM_INCLUDEDIR="${prefix}/include";
34200 eval LLVM_INFODIR="${prefix}/info";
34201 eval LLVM_MANDIR="${prefix}/man";
34202 LLVM_CONFIGTIME=`date`
34203
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214 # Place the various directores into the config.h file as #defines so that we
34215 # can know about the installation paths within LLVM.
34216
34217 cat >>confdefs.h <<_ACEOF
34218 #define LLVM_PREFIX "$LLVM_PREFIX"
34219 _ACEOF
34220
34221
34222 cat >>confdefs.h <<_ACEOF
34223 #define LLVM_BINDIR "$LLVM_BINDIR"
34224 _ACEOF
34225
34226
34227 cat >>confdefs.h <<_ACEOF
34228 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34229 _ACEOF
34230
34231
34232 cat >>confdefs.h <<_ACEOF
34233 #define LLVM_DATADIR "$LLVM_DATADIR"
34234 _ACEOF
34235
34236
34237 cat >>confdefs.h <<_ACEOF
34238 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34239 _ACEOF
34240
34241
34242 cat >>confdefs.h <<_ACEOF
34243 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34244 _ACEOF
34245
34246
34247 cat >>confdefs.h <<_ACEOF
34248 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34249 _ACEOF
34250
34251
34252 cat >>confdefs.h <<_ACEOF
34253 #define LLVM_INFODIR "$LLVM_INFODIR"
34254 _ACEOF
34255
34256
34257 cat >>confdefs.h <<_ACEOF
34258 #define LLVM_MANDIR "$LLVM_MANDIR"
34259 _ACEOF
34260
34261
34262 cat >>confdefs.h <<_ACEOF
34263 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34264 _ACEOF
34265
34266
34267 cat >>confdefs.h <<_ACEOF
34268 #define LLVM_HOSTTRIPLE "$host"
34269 _ACEOF
34270
34271
34272 # Determine which bindings to build.
34273 if test "$BINDINGS_TO_BUILD" = auto ; then
34274   BINDINGS_TO_BUILD=""
34275   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34276     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34277   fi
34278 fi
34279 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34280
34281
34282 # This isn't really configurey, but it avoids having to repeat the list in
34283 # other files.
34284 ALL_BINDINGS=ocaml
34285
34286
34287 # Do any work necessary to ensure that bindings have what they need.
34288 binding_prereqs_failed=0
34289 for a_binding in $BINDINGS_TO_BUILD ; do
34290   case "$a_binding" in
34291   ocaml)
34292     if test "x$OCAMLC" = x ; then
34293       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34294 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34295       binding_prereqs_failed=1
34296     fi
34297     if test "x$OCAMLDEP" = x ; then
34298       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34299 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34300       binding_prereqs_failed=1
34301     fi
34302     if test "x$OCAMLOPT" = x ; then
34303       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34304 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34305           fi
34306     if test "x$with_ocaml_libdir" != xauto ; then
34307       OCAML_LIBDIR=$with_ocaml_libdir
34308
34309     else
34310       ocaml_stdlib="`"$OCAMLC" -where`"
34311       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34312       then
34313         # ocaml stdlib is beneath our prefix; use stdlib
34314         OCAML_LIBDIR=$ocaml_stdlib
34315
34316       else
34317         # ocaml stdlib is outside our prefix; use libdir/ocaml
34318         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34319
34320       fi
34321     fi
34322     ;;
34323   esac
34324 done
34325 if test "$binding_prereqs_failed" = 1 ; then
34326   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34327 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34328    { (exit 1); exit 1; }; }
34329 fi
34330
34331 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34332 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34333 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34334   echo $ECHO_N "(cached) $ECHO_C" >&6
34335 else
34336    ac_ext=cpp
34337 ac_cpp='$CXXCPP $CPPFLAGS'
34338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34341
34342   oldcxxflags="$CXXFLAGS"
34343   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34344   cat >conftest.$ac_ext <<_ACEOF
34345 /* confdefs.h.  */
34346 _ACEOF
34347 cat confdefs.h >>conftest.$ac_ext
34348 cat >>conftest.$ac_ext <<_ACEOF
34349 /* end confdefs.h.  */
34350
34351 int
34352 main ()
34353 {
34354
34355   ;
34356   return 0;
34357 }
34358 _ACEOF
34359 rm -f conftest.$ac_objext
34360 if { (ac_try="$ac_compile"
34361 case "(($ac_try" in
34362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363   *) ac_try_echo=$ac_try;;
34364 esac
34365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366   (eval "$ac_compile") 2>conftest.er1
34367   ac_status=$?
34368   grep -v '^ *+' conftest.er1 >conftest.err
34369   rm -f conftest.er1
34370   cat conftest.err >&5
34371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372   (exit $ac_status); } &&
34373          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34374   { (case "(($ac_try" in
34375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34376   *) ac_try_echo=$ac_try;;
34377 esac
34378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34379   (eval "$ac_try") 2>&5
34380   ac_status=$?
34381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382   (exit $ac_status); }; } &&
34383          { ac_try='test -s conftest.$ac_objext'
34384   { (case "(($ac_try" in
34385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34386   *) ac_try_echo=$ac_try;;
34387 esac
34388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34389   (eval "$ac_try") 2>&5
34390   ac_status=$?
34391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34392   (exit $ac_status); }; }; then
34393   llvm_cv_cxx_visibility_inlines_hidden=yes
34394 else
34395   echo "$as_me: failed program was:" >&5
34396 sed 's/^/| /' conftest.$ac_ext >&5
34397
34398         llvm_cv_cxx_visibility_inlines_hidden=no
34399 fi
34400
34401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34402   CXXFLAGS="$oldcxxflags"
34403   ac_ext=c
34404 ac_cpp='$CPP $CPPFLAGS'
34405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34408
34409
34410 fi
34411 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34412 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34413 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34414   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34415
34416 else
34417   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34418
34419 fi
34420
34421
34422
34423 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34424
34425 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34426
34427 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34428
34429 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34430
34431 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34432
34433
34434 ac_config_files="$ac_config_files Makefile.config"
34435
34436
34437 ac_config_files="$ac_config_files llvm.spec"
34438
34439
34440 ac_config_files="$ac_config_files docs/doxygen.cfg"
34441
34442
34443 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34444
34445
34446 ac_config_commands="$ac_config_commands setup"
34447
34448 ac_config_commands="$ac_config_commands Makefile"
34449
34450
34451 ac_config_commands="$ac_config_commands Makefile.common"
34452
34453
34454 ac_config_commands="$ac_config_commands examples/Makefile"
34455
34456
34457 ac_config_commands="$ac_config_commands lib/Makefile"
34458
34459
34460 ac_config_commands="$ac_config_commands runtime/Makefile"
34461
34462
34463 ac_config_commands="$ac_config_commands test/Makefile"
34464
34465
34466 ac_config_commands="$ac_config_commands test/Makefile.tests"
34467
34468
34469 ac_config_commands="$ac_config_commands unittests/Makefile"
34470
34471
34472 ac_config_commands="$ac_config_commands tools/Makefile"
34473
34474
34475 ac_config_commands="$ac_config_commands utils/Makefile"
34476
34477
34478 ac_config_commands="$ac_config_commands projects/Makefile"
34479
34480
34481 ac_config_commands="$ac_config_commands bindings/Makefile"
34482
34483
34484 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34485
34486
34487
34488 cat >confcache <<\_ACEOF
34489 # This file is a shell script that caches the results of configure
34490 # tests run on this system so they can be shared between configure
34491 # scripts and configure runs, see configure's option --config-cache.
34492 # It is not useful on other systems.  If it contains results you don't
34493 # want to keep, you may remove or edit it.
34494 #
34495 # config.status only pays attention to the cache file if you give it
34496 # the --recheck option to rerun configure.
34497 #
34498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34500 # following values.
34501
34502 _ACEOF
34503
34504 # The following way of writing the cache mishandles newlines in values,
34505 # but we know of no workaround that is simple, portable, and efficient.
34506 # So, we kill variables containing newlines.
34507 # Ultrix sh set writes to stderr and can't be redirected directly,
34508 # and sets the high bit in the cache file unless we assign to the vars.
34509 (
34510   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34511     eval ac_val=\$$ac_var
34512     case $ac_val in #(
34513     *${as_nl}*)
34514       case $ac_var in #(
34515       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34516 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34517       esac
34518       case $ac_var in #(
34519       _ | IFS | as_nl) ;; #(
34520       *) $as_unset $ac_var ;;
34521       esac ;;
34522     esac
34523   done
34524
34525   (set) 2>&1 |
34526     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34527     *${as_nl}ac_space=\ *)
34528       # `set' does not quote correctly, so add quotes (double-quote
34529       # substitution turns \\\\ into \\, and sed turns \\ into \).
34530       sed -n \
34531         "s/'/'\\\\''/g;
34532           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34533       ;; #(
34534     *)
34535       # `set' quotes correctly as required by POSIX, so do not add quotes.
34536       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34537       ;;
34538     esac |
34539     sort
34540 ) |
34541   sed '
34542      /^ac_cv_env_/b end
34543      t clear
34544      :clear
34545      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34546      t end
34547      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34548      :end' >>confcache
34549 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34550   if test -w "$cache_file"; then
34551     test "x$cache_file" != "x/dev/null" &&
34552       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34553 echo "$as_me: updating cache $cache_file" >&6;}
34554     cat confcache >$cache_file
34555   else
34556     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34557 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34558   fi
34559 fi
34560 rm -f confcache
34561
34562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34563 # Let make expand exec_prefix.
34564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34565
34566 DEFS=-DHAVE_CONFIG_H
34567
34568 ac_libobjs=
34569 ac_ltlibobjs=
34570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34571   # 1. Remove the extension, and $U if already installed.
34572   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34573   ac_i=`echo "$ac_i" | sed "$ac_script"`
34574   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34575   #    will be set to the directory where LIBOBJS objects are built.
34576   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34577   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34578 done
34579 LIBOBJS=$ac_libobjs
34580
34581 LTLIBOBJS=$ac_ltlibobjs
34582
34583
34584 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34585   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34586 Usually this means the macro was only invoked conditionally." >&5
34587 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34588 Usually this means the macro was only invoked conditionally." >&2;}
34589    { (exit 1); exit 1; }; }
34590 fi
34591 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34592   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34593 Usually this means the macro was only invoked conditionally." >&5
34594 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34595 Usually this means the macro was only invoked conditionally." >&2;}
34596    { (exit 1); exit 1; }; }
34597 fi
34598
34599 : ${CONFIG_STATUS=./config.status}
34600 ac_clean_files_save=$ac_clean_files
34601 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34602 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34603 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34604 cat >$CONFIG_STATUS <<_ACEOF
34605 #! $SHELL
34606 # Generated by $as_me.
34607 # Run this file to recreate the current configuration.
34608 # Compiler output produced by configure, useful for debugging
34609 # configure, is in config.log if it exists.
34610
34611 debug=false
34612 ac_cs_recheck=false
34613 ac_cs_silent=false
34614 SHELL=\${CONFIG_SHELL-$SHELL}
34615 _ACEOF
34616
34617 cat >>$CONFIG_STATUS <<\_ACEOF
34618 ## --------------------- ##
34619 ## M4sh Initialization.  ##
34620 ## --------------------- ##
34621
34622 # Be Bourne compatible
34623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34624   emulate sh
34625   NULLCMD=:
34626   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34627   # is contrary to our usage.  Disable this feature.
34628   alias -g '${1+"$@"}'='"$@"'
34629   setopt NO_GLOB_SUBST
34630 else
34631   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34632 fi
34633 BIN_SH=xpg4; export BIN_SH # for Tru64
34634 DUALCASE=1; export DUALCASE # for MKS sh
34635
34636
34637 # PATH needs CR
34638 # Avoid depending upon Character Ranges.
34639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34642 as_cr_digits='0123456789'
34643 as_cr_alnum=$as_cr_Letters$as_cr_digits
34644
34645 # The user is always right.
34646 if test "${PATH_SEPARATOR+set}" != set; then
34647   echo "#! /bin/sh" >conf$$.sh
34648   echo  "exit 0"   >>conf$$.sh
34649   chmod +x conf$$.sh
34650   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34651     PATH_SEPARATOR=';'
34652   else
34653     PATH_SEPARATOR=:
34654   fi
34655   rm -f conf$$.sh
34656 fi
34657
34658 # Support unset when possible.
34659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34660   as_unset=unset
34661 else
34662   as_unset=false
34663 fi
34664
34665
34666 # IFS
34667 # We need space, tab and new line, in precisely that order.  Quoting is
34668 # there to prevent editors from complaining about space-tab.
34669 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34670 # splitting by setting IFS to empty value.)
34671 as_nl='
34672 '
34673 IFS=" ""        $as_nl"
34674
34675 # Find who we are.  Look in the path if we contain no directory separator.
34676 case $0 in
34677   *[\\/]* ) as_myself=$0 ;;
34678   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34679 for as_dir in $PATH
34680 do
34681   IFS=$as_save_IFS
34682   test -z "$as_dir" && as_dir=.
34683   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34684 done
34685 IFS=$as_save_IFS
34686
34687      ;;
34688 esac
34689 # We did not find ourselves, most probably we were run as `sh COMMAND'
34690 # in which case we are not to be found in the path.
34691 if test "x$as_myself" = x; then
34692   as_myself=$0
34693 fi
34694 if test ! -f "$as_myself"; then
34695   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34696   { (exit 1); exit 1; }
34697 fi
34698
34699 # Work around bugs in pre-3.0 UWIN ksh.
34700 for as_var in ENV MAIL MAILPATH
34701 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34702 done
34703 PS1='$ '
34704 PS2='> '
34705 PS4='+ '
34706
34707 # NLS nuisances.
34708 for as_var in \
34709   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34710   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34711   LC_TELEPHONE LC_TIME
34712 do
34713   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34714     eval $as_var=C; export $as_var
34715   else
34716     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34717   fi
34718 done
34719
34720 # Required to use basename.
34721 if expr a : '\(a\)' >/dev/null 2>&1 &&
34722    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34723   as_expr=expr
34724 else
34725   as_expr=false
34726 fi
34727
34728 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34729   as_basename=basename
34730 else
34731   as_basename=false
34732 fi
34733
34734
34735 # Name of the executable.
34736 as_me=`$as_basename -- "$0" ||
34737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34738          X"$0" : 'X\(//\)$' \| \
34739          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34740 echo X/"$0" |
34741     sed '/^.*\/\([^/][^/]*\)\/*$/{
34742             s//\1/
34743             q
34744           }
34745           /^X\/\(\/\/\)$/{
34746             s//\1/
34747             q
34748           }
34749           /^X\/\(\/\).*/{
34750             s//\1/
34751             q
34752           }
34753           s/.*/./; q'`
34754
34755 # CDPATH.
34756 $as_unset CDPATH
34757
34758
34759
34760   as_lineno_1=$LINENO
34761   as_lineno_2=$LINENO
34762   test "x$as_lineno_1" != "x$as_lineno_2" &&
34763   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34764
34765   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34766   # uniformly replaced by the line number.  The first 'sed' inserts a
34767   # line-number line after each line using $LINENO; the second 'sed'
34768   # does the real work.  The second script uses 'N' to pair each
34769   # line-number line with the line containing $LINENO, and appends
34770   # trailing '-' during substitution so that $LINENO is not a special
34771   # case at line end.
34772   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34773   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34774   # E. McMahon (1931-1989) for sed's syntax.  :-)
34775   sed -n '
34776     p
34777     /[$]LINENO/=
34778   ' <$as_myself |
34779     sed '
34780       s/[$]LINENO.*/&-/
34781       t lineno
34782       b
34783       :lineno
34784       N
34785       :loop
34786       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34787       t loop
34788       s/-\n.*//
34789     ' >$as_me.lineno &&
34790   chmod +x "$as_me.lineno" ||
34791     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34792    { (exit 1); exit 1; }; }
34793
34794   # Don't try to exec as it changes $[0], causing all sort of problems
34795   # (the dirname of $[0] is not the place where we might find the
34796   # original and so on.  Autoconf is especially sensitive to this).
34797   . "./$as_me.lineno"
34798   # Exit status is that of the last command.
34799   exit
34800 }
34801
34802
34803 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34804   as_dirname=dirname
34805 else
34806   as_dirname=false
34807 fi
34808
34809 ECHO_C= ECHO_N= ECHO_T=
34810 case `echo -n x` in
34811 -n*)
34812   case `echo 'x\c'` in
34813   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34814   *)   ECHO_C='\c';;
34815   esac;;
34816 *)
34817   ECHO_N='-n';;
34818 esac
34819
34820 if expr a : '\(a\)' >/dev/null 2>&1 &&
34821    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34822   as_expr=expr
34823 else
34824   as_expr=false
34825 fi
34826
34827 rm -f conf$$ conf$$.exe conf$$.file
34828 if test -d conf$$.dir; then
34829   rm -f conf$$.dir/conf$$.file
34830 else
34831   rm -f conf$$.dir
34832   mkdir conf$$.dir
34833 fi
34834 echo >conf$$.file
34835 if ln -s conf$$.file conf$$ 2>/dev/null; then
34836   as_ln_s='ln -s'
34837   # ... but there are two gotchas:
34838   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34839   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34840   # In both cases, we have to default to `cp -p'.
34841   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34842     as_ln_s='cp -p'
34843 elif ln conf$$.file conf$$ 2>/dev/null; then
34844   as_ln_s=ln
34845 else
34846   as_ln_s='cp -p'
34847 fi
34848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34849 rmdir conf$$.dir 2>/dev/null
34850
34851 if mkdir -p . 2>/dev/null; then
34852   as_mkdir_p=:
34853 else
34854   test -d ./-p && rmdir ./-p
34855   as_mkdir_p=false
34856 fi
34857
34858 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34859 # systems may use methods other than mode bits to determine executability.
34860 cat >conf$$.file <<_ASEOF
34861 #! /bin/sh
34862 exit 0
34863 _ASEOF
34864 chmod +x conf$$.file
34865 if test -x conf$$.file >/dev/null 2>&1; then
34866   as_executable_p="test -x"
34867 else
34868   as_executable_p=:
34869 fi
34870 rm -f conf$$.file
34871
34872 # Sed expression to map a string onto a valid CPP name.
34873 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34874
34875 # Sed expression to map a string onto a valid variable name.
34876 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34877
34878
34879 exec 6>&1
34880
34881 # Save the log message, to keep $[0] and so on meaningful, and to
34882 # report actual input values of CONFIG_FILES etc. instead of their
34883 # values after options handling.
34884 ac_log="
34885 This file was extended by llvm $as_me 2.6svn, which was
34886 generated by GNU Autoconf 2.60.  Invocation command line was
34887
34888   CONFIG_FILES    = $CONFIG_FILES
34889   CONFIG_HEADERS  = $CONFIG_HEADERS
34890   CONFIG_LINKS    = $CONFIG_LINKS
34891   CONFIG_COMMANDS = $CONFIG_COMMANDS
34892   $ $0 $@
34893
34894 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34895 "
34896
34897 _ACEOF
34898
34899 cat >>$CONFIG_STATUS <<_ACEOF
34900 # Files that config.status was made for.
34901 config_files="$ac_config_files"
34902 config_headers="$ac_config_headers"
34903 config_commands="$ac_config_commands"
34904
34905 _ACEOF
34906
34907 cat >>$CONFIG_STATUS <<\_ACEOF
34908 ac_cs_usage="\
34909 \`$as_me' instantiates files from templates according to the
34910 current configuration.
34911
34912 Usage: $0 [OPTIONS] [FILE]...
34913
34914   -h, --help       print this help, then exit
34915   -V, --version    print version number, then exit
34916   -q, --quiet      do not print progress messages
34917   -d, --debug      don't remove temporary files
34918       --recheck    update $as_me by reconfiguring in the same conditions
34919   --file=FILE[:TEMPLATE]
34920                    instantiate the configuration file FILE
34921   --header=FILE[:TEMPLATE]
34922                    instantiate the configuration header FILE
34923
34924 Configuration files:
34925 $config_files
34926
34927 Configuration headers:
34928 $config_headers
34929
34930 Configuration commands:
34931 $config_commands
34932
34933 Report bugs to <bug-autoconf@gnu.org>."
34934
34935 _ACEOF
34936 cat >>$CONFIG_STATUS <<_ACEOF
34937 ac_cs_version="\\
34938 llvm config.status 2.6svn
34939 configured by $0, generated by GNU Autoconf 2.60,
34940   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34941
34942 Copyright (C) 2006 Free Software Foundation, Inc.
34943 This config.status script is free software; the Free Software Foundation
34944 gives unlimited permission to copy, distribute and modify it."
34945
34946 ac_pwd='$ac_pwd'
34947 srcdir='$srcdir'
34948 INSTALL='$INSTALL'
34949 _ACEOF
34950
34951 cat >>$CONFIG_STATUS <<\_ACEOF
34952 # If no file are specified by the user, then we need to provide default
34953 # value.  By we need to know if files were specified by the user.
34954 ac_need_defaults=:
34955 while test $# != 0
34956 do
34957   case $1 in
34958   --*=*)
34959     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34960     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34961     ac_shift=:
34962     ;;
34963   *)
34964     ac_option=$1
34965     ac_optarg=$2
34966     ac_shift=shift
34967     ;;
34968   esac
34969
34970   case $ac_option in
34971   # Handling of the options.
34972   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34973     ac_cs_recheck=: ;;
34974   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34975     echo "$ac_cs_version"; exit ;;
34976   --debug | --debu | --deb | --de | --d | -d )
34977     debug=: ;;
34978   --file | --fil | --fi | --f )
34979     $ac_shift
34980     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34981     ac_need_defaults=false;;
34982   --header | --heade | --head | --hea )
34983     $ac_shift
34984     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34985     ac_need_defaults=false;;
34986   --he | --h)
34987     # Conflict between --help and --header
34988     { echo "$as_me: error: ambiguous option: $1
34989 Try \`$0 --help' for more information." >&2
34990    { (exit 1); exit 1; }; };;
34991   --help | --hel | -h )
34992     echo "$ac_cs_usage"; exit ;;
34993   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34994   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34995     ac_cs_silent=: ;;
34996
34997   # This is an error.
34998   -*) { echo "$as_me: error: unrecognized option: $1
34999 Try \`$0 --help' for more information." >&2
35000    { (exit 1); exit 1; }; } ;;
35001
35002   *) ac_config_targets="$ac_config_targets $1"
35003      ac_need_defaults=false ;;
35004
35005   esac
35006   shift
35007 done
35008
35009 ac_configure_extra_args=
35010
35011 if $ac_cs_silent; then
35012   exec 6>/dev/null
35013   ac_configure_extra_args="$ac_configure_extra_args --silent"
35014 fi
35015
35016 _ACEOF
35017 cat >>$CONFIG_STATUS <<_ACEOF
35018 if \$ac_cs_recheck; then
35019   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35020   CONFIG_SHELL=$SHELL
35021   export CONFIG_SHELL
35022   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35023 fi
35024
35025 _ACEOF
35026 cat >>$CONFIG_STATUS <<\_ACEOF
35027 exec 5>>config.log
35028 {
35029   echo
35030   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35031 ## Running $as_me. ##
35032 _ASBOX
35033   echo "$ac_log"
35034 } >&5
35035
35036 _ACEOF
35037 cat >>$CONFIG_STATUS <<_ACEOF
35038 #
35039 # INIT-COMMANDS
35040 #
35041 llvm_src="${srcdir}"
35042
35043 _ACEOF
35044
35045 cat >>$CONFIG_STATUS <<\_ACEOF
35046
35047 # Handling of arguments.
35048 for ac_config_target in $ac_config_targets
35049 do
35050   case $ac_config_target in
35051     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35052     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35053     "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35054     "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35055     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35056     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35057     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35058     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35059     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35060     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35061     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35062     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35063     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35064     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35065     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35066     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35067     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35068     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35069     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35070     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35071     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35072     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35073     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35074
35075   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35077    { (exit 1); exit 1; }; };;
35078   esac
35079 done
35080
35081
35082 # If the user did not use the arguments to specify the items to instantiate,
35083 # then the envvar interface is used.  Set only those that are not.
35084 # We use the long form for the default assignment because of an extremely
35085 # bizarre bug on SunOS 4.1.3.
35086 if $ac_need_defaults; then
35087   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35088   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35089   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35090 fi
35091
35092 # Have a temporary directory for convenience.  Make it in the build tree
35093 # simply because there is no reason against having it here, and in addition,
35094 # creating and moving files from /tmp can sometimes cause problems.
35095 # Hook for its removal unless debugging.
35096 # Note that there is a small window in which the directory will not be cleaned:
35097 # after its creation but before its name has been assigned to `$tmp'.
35098 $debug ||
35099 {
35100   tmp=
35101   trap 'exit_status=$?
35102   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35103 ' 0
35104   trap '{ (exit 1); exit 1; }' 1 2 13 15
35105 }
35106 # Create a (secure) tmp directory for tmp files.
35107
35108 {
35109   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35110   test -n "$tmp" && test -d "$tmp"
35111 }  ||
35112 {
35113   tmp=./conf$$-$RANDOM
35114   (umask 077 && mkdir "$tmp")
35115 } ||
35116 {
35117    echo "$me: cannot create a temporary directory in ." >&2
35118    { (exit 1); exit 1; }
35119 }
35120
35121 #
35122 # Set up the sed scripts for CONFIG_FILES section.
35123 #
35124
35125 # No need to generate the scripts if there are no CONFIG_FILES.
35126 # This happens for instance when ./config.status config.h
35127 if test -n "$CONFIG_FILES"; then
35128
35129 _ACEOF
35130
35131
35132
35133 ac_delim='%!_!# '
35134 for ac_last_try in false false false false false :; do
35135   cat >conf$$subs.sed <<_ACEOF
35136 SHELL!$SHELL$ac_delim
35137 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35138 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35139 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35140 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35141 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35142 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35143 exec_prefix!$exec_prefix$ac_delim
35144 prefix!$prefix$ac_delim
35145 program_transform_name!$program_transform_name$ac_delim
35146 bindir!$bindir$ac_delim
35147 sbindir!$sbindir$ac_delim
35148 libexecdir!$libexecdir$ac_delim
35149 datarootdir!$datarootdir$ac_delim
35150 datadir!$datadir$ac_delim
35151 sysconfdir!$sysconfdir$ac_delim
35152 sharedstatedir!$sharedstatedir$ac_delim
35153 localstatedir!$localstatedir$ac_delim
35154 includedir!$includedir$ac_delim
35155 oldincludedir!$oldincludedir$ac_delim
35156 docdir!$docdir$ac_delim
35157 infodir!$infodir$ac_delim
35158 htmldir!$htmldir$ac_delim
35159 dvidir!$dvidir$ac_delim
35160 pdfdir!$pdfdir$ac_delim
35161 psdir!$psdir$ac_delim
35162 libdir!$libdir$ac_delim
35163 localedir!$localedir$ac_delim
35164 mandir!$mandir$ac_delim
35165 DEFS!$DEFS$ac_delim
35166 ECHO_C!$ECHO_C$ac_delim
35167 ECHO_N!$ECHO_N$ac_delim
35168 ECHO_T!$ECHO_T$ac_delim
35169 LIBS!$LIBS$ac_delim
35170 build_alias!$build_alias$ac_delim
35171 host_alias!$host_alias$ac_delim
35172 target_alias!$target_alias$ac_delim
35173 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35174 subdirs!$subdirs$ac_delim
35175 build!$build$ac_delim
35176 build_cpu!$build_cpu$ac_delim
35177 build_vendor!$build_vendor$ac_delim
35178 build_os!$build_os$ac_delim
35179 host!$host$ac_delim
35180 host_cpu!$host_cpu$ac_delim
35181 host_vendor!$host_vendor$ac_delim
35182 host_os!$host_os$ac_delim
35183 target!$target$ac_delim
35184 target_cpu!$target_cpu$ac_delim
35185 target_vendor!$target_vendor$ac_delim
35186 target_os!$target_os$ac_delim
35187 OS!$OS$ac_delim
35188 LINKALL!$LINKALL$ac_delim
35189 NOLINKALL!$NOLINKALL$ac_delim
35190 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35191 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35192 ARCH!$ARCH$ac_delim
35193 ENDIAN!$ENDIAN$ac_delim
35194 CC!$CC$ac_delim
35195 CFLAGS!$CFLAGS$ac_delim
35196 LDFLAGS!$LDFLAGS$ac_delim
35197 CPPFLAGS!$CPPFLAGS$ac_delim
35198 ac_ct_CC!$ac_ct_CC$ac_delim
35199 EXEEXT!$EXEEXT$ac_delim
35200 OBJEXT!$OBJEXT$ac_delim
35201 CPP!$CPP$ac_delim
35202 GREP!$GREP$ac_delim
35203 EGREP!$EGREP$ac_delim
35204 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35205 BUILD_CC!$BUILD_CC$ac_delim
35206 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35207 BUILD_CXX!$BUILD_CXX$ac_delim
35208 CVSBUILD!$CVSBUILD$ac_delim
35209 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35210 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35211 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35212 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35213 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35214 JIT!$JIT$ac_delim
35215 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35216 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35217 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35218 ENABLE_PIC!$ENABLE_PIC$ac_delim
35219 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35220 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35221 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35222 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35223 CXX!$CXX$ac_delim
35224 CXXFLAGS!$CXXFLAGS$ac_delim
35225 ac_ct_CXX!$ac_ct_CXX$ac_delim
35226 NM!$NM$ac_delim
35227 ifGNUmake!$ifGNUmake$ac_delim
35228 LN_S!$LN_S$ac_delim
35229 CMP!$CMP$ac_delim
35230 CP!$CP$ac_delim
35231 DATE!$DATE$ac_delim
35232 FIND!$FIND$ac_delim
35233 _ACEOF
35234
35235   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35236     break
35237   elif $ac_last_try; then
35238     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35240    { (exit 1); exit 1; }; }
35241   else
35242     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35243   fi
35244 done
35245
35246 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35247 if test -n "$ac_eof"; then
35248   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35249   ac_eof=`expr $ac_eof + 1`
35250 fi
35251
35252 cat >>$CONFIG_STATUS <<_ACEOF
35253 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35255 _ACEOF
35256 sed '
35257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35258 s/^/s,@/; s/!/@,|#_!!_#|/
35259 :n
35260 t n
35261 s/'"$ac_delim"'$/,g/; t
35262 s/$/\\/; p
35263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35264 ' >>$CONFIG_STATUS <conf$$subs.sed
35265 rm -f conf$$subs.sed
35266 cat >>$CONFIG_STATUS <<_ACEOF
35267 CEOF$ac_eof
35268 _ACEOF
35269
35270
35271 ac_delim='%!_!# '
35272 for ac_last_try in false false false false false :; do
35273   cat >conf$$subs.sed <<_ACEOF
35274 MKDIR!$MKDIR$ac_delim
35275 MV!$MV$ac_delim
35276 RANLIB!$RANLIB$ac_delim
35277 RM!$RM$ac_delim
35278 SED!$SED$ac_delim
35279 TAR!$TAR$ac_delim
35280 BINPWD!$BINPWD$ac_delim
35281 GRAPHVIZ!$GRAPHVIZ$ac_delim
35282 DOT!$DOT$ac_delim
35283 GV!$GV$ac_delim
35284 DOTTY!$DOTTY$ac_delim
35285 PERL!$PERL$ac_delim
35286 HAVE_PERL!$HAVE_PERL$ac_delim
35287 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35288 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35289 INSTALL_DATA!$INSTALL_DATA$ac_delim
35290 BZIP2!$BZIP2$ac_delim
35291 DOXYGEN!$DOXYGEN$ac_delim
35292 GROFF!$GROFF$ac_delim
35293 GZIP!$GZIP$ac_delim
35294 POD2HTML!$POD2HTML$ac_delim
35295 POD2MAN!$POD2MAN$ac_delim
35296 RUNTEST!$RUNTEST$ac_delim
35297 TCLSH!$TCLSH$ac_delim
35298 ZIP!$ZIP$ac_delim
35299 OCAMLC!$OCAMLC$ac_delim
35300 OCAMLOPT!$OCAMLOPT$ac_delim
35301 OCAMLDEP!$OCAMLDEP$ac_delim
35302 OCAMLDOC!$OCAMLDOC$ac_delim
35303 GAS!$GAS$ac_delim
35304 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35305 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35306 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35307 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35308 LIBADD_DL!$LIBADD_DL$ac_delim
35309 ECHO!$ECHO$ac_delim
35310 AR!$AR$ac_delim
35311 STRIP!$STRIP$ac_delim
35312 CXXCPP!$CXXCPP$ac_delim
35313 F77!$F77$ac_delim
35314 FFLAGS!$FFLAGS$ac_delim
35315 ac_ct_F77!$ac_ct_F77$ac_delim
35316 LIBTOOL!$LIBTOOL$ac_delim
35317 LLVMGCC!$LLVMGCC$ac_delim
35318 LLVMGXX!$LLVMGXX$ac_delim
35319 USE_UDIS86!$USE_UDIS86$ac_delim
35320 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35321 HAVE_FFI!$HAVE_FFI$ac_delim
35322 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35323 ALLOCA!$ALLOCA$ac_delim
35324 MMAP_FILE!$MMAP_FILE$ac_delim
35325 LLVMCC1!$LLVMCC1$ac_delim
35326 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35327 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35328 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35329 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35330 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35331 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35332 SHLIBEXT!$SHLIBEXT$ac_delim
35333 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35334 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35335 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35336 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35337 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35338 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35339 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35340 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35341 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35342 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35343 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35344 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35345 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35346 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35347 LIBOBJS!$LIBOBJS$ac_delim
35348 LTLIBOBJS!$LTLIBOBJS$ac_delim
35349 _ACEOF
35350
35351   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
35352     break
35353   elif $ac_last_try; then
35354     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35355 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35356    { (exit 1); exit 1; }; }
35357   else
35358     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35359   fi
35360 done
35361
35362 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35363 if test -n "$ac_eof"; then
35364   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35365   ac_eof=`expr $ac_eof + 1`
35366 fi
35367
35368 cat >>$CONFIG_STATUS <<_ACEOF
35369 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35371 _ACEOF
35372 sed '
35373 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35374 s/^/s,@/; s/!/@,|#_!!_#|/
35375 :n
35376 t n
35377 s/'"$ac_delim"'$/,g/; t
35378 s/$/\\/; p
35379 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35380 ' >>$CONFIG_STATUS <conf$$subs.sed
35381 rm -f conf$$subs.sed
35382 cat >>$CONFIG_STATUS <<_ACEOF
35383 :end
35384 s/|#_!!_#|//g
35385 CEOF$ac_eof
35386 _ACEOF
35387
35388
35389 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35390 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35391 # trailing colons and then remove the whole line if VPATH becomes empty
35392 # (actually we leave an empty line to preserve line numbers).
35393 if test "x$srcdir" = x.; then
35394   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35395 s/:*\$(srcdir):*/:/
35396 s/:*\${srcdir}:*/:/
35397 s/:*@srcdir@:*/:/
35398 s/^\([^=]*=[     ]*\):*/\1/
35399 s/:*$//
35400 s/^[^=]*=[       ]*$//
35401 }'
35402 fi
35403
35404 cat >>$CONFIG_STATUS <<\_ACEOF
35405 fi # test -n "$CONFIG_FILES"
35406
35407
35408 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35409 do
35410   case $ac_tag in
35411   :[FHLC]) ac_mode=$ac_tag; continue;;
35412   esac
35413   case $ac_mode$ac_tag in
35414   :[FHL]*:*);;
35415   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35416 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35417    { (exit 1); exit 1; }; };;
35418   :[FH]-) ac_tag=-:-;;
35419   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35420   esac
35421   ac_save_IFS=$IFS
35422   IFS=:
35423   set x $ac_tag
35424   IFS=$ac_save_IFS
35425   shift
35426   ac_file=$1
35427   shift
35428
35429   case $ac_mode in
35430   :L) ac_source=$1;;
35431   :[FH])
35432     ac_file_inputs=
35433     for ac_f
35434     do
35435       case $ac_f in
35436       -) ac_f="$tmp/stdin";;
35437       *) # Look for the file first in the build tree, then in the source tree
35438          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35439          # because $ac_f cannot contain `:'.
35440          test -f "$ac_f" ||
35441            case $ac_f in
35442            [\\/$]*) false;;
35443            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35444            esac ||
35445            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35446 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35447    { (exit 1); exit 1; }; };;
35448       esac
35449       ac_file_inputs="$ac_file_inputs $ac_f"
35450     done
35451
35452     # Let's still pretend it is `configure' which instantiates (i.e., don't
35453     # use $as_me), people would be surprised to read:
35454     #    /* config.h.  Generated by config.status.  */
35455     configure_input="Generated from "`IFS=:
35456           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35457     if test x"$ac_file" != x-; then
35458       configure_input="$ac_file.  $configure_input"
35459       { echo "$as_me:$LINENO: creating $ac_file" >&5
35460 echo "$as_me: creating $ac_file" >&6;}
35461     fi
35462
35463     case $ac_tag in
35464     *:-:* | *:-) cat >"$tmp/stdin";;
35465     esac
35466     ;;
35467   esac
35468
35469   ac_dir=`$as_dirname -- "$ac_file" ||
35470 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35471          X"$ac_file" : 'X\(//\)[^/]' \| \
35472          X"$ac_file" : 'X\(//\)$' \| \
35473          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35474 echo X"$ac_file" |
35475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35476             s//\1/
35477             q
35478           }
35479           /^X\(\/\/\)[^/].*/{
35480             s//\1/
35481             q
35482           }
35483           /^X\(\/\/\)$/{
35484             s//\1/
35485             q
35486           }
35487           /^X\(\/\).*/{
35488             s//\1/
35489             q
35490           }
35491           s/.*/./; q'`
35492   { as_dir="$ac_dir"
35493   case $as_dir in #(
35494   -*) as_dir=./$as_dir;;
35495   esac
35496   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35497     as_dirs=
35498     while :; do
35499       case $as_dir in #(
35500       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35501       *) as_qdir=$as_dir;;
35502       esac
35503       as_dirs="'$as_qdir' $as_dirs"
35504       as_dir=`$as_dirname -- "$as_dir" ||
35505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35506          X"$as_dir" : 'X\(//\)[^/]' \| \
35507          X"$as_dir" : 'X\(//\)$' \| \
35508          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35509 echo X"$as_dir" |
35510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35511             s//\1/
35512             q
35513           }
35514           /^X\(\/\/\)[^/].*/{
35515             s//\1/
35516             q
35517           }
35518           /^X\(\/\/\)$/{
35519             s//\1/
35520             q
35521           }
35522           /^X\(\/\).*/{
35523             s//\1/
35524             q
35525           }
35526           s/.*/./; q'`
35527       test -d "$as_dir" && break
35528     done
35529     test -z "$as_dirs" || eval "mkdir $as_dirs"
35530   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35531 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35532    { (exit 1); exit 1; }; }; }
35533   ac_builddir=.
35534
35535 case "$ac_dir" in
35536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35537 *)
35538   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35539   # A ".." for each directory in $ac_dir_suffix.
35540   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35541   case $ac_top_builddir_sub in
35542   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35543   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35544   esac ;;
35545 esac
35546 ac_abs_top_builddir=$ac_pwd
35547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35548 # for backward compatibility:
35549 ac_top_builddir=$ac_top_build_prefix
35550
35551 case $srcdir in
35552   .)  # We are building in place.
35553     ac_srcdir=.
35554     ac_top_srcdir=$ac_top_builddir_sub
35555     ac_abs_top_srcdir=$ac_pwd ;;
35556   [\\/]* | ?:[\\/]* )  # Absolute name.
35557     ac_srcdir=$srcdir$ac_dir_suffix;
35558     ac_top_srcdir=$srcdir
35559     ac_abs_top_srcdir=$srcdir ;;
35560   *) # Relative name.
35561     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35562     ac_top_srcdir=$ac_top_build_prefix$srcdir
35563     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35564 esac
35565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35566
35567
35568   case $ac_mode in
35569   :F)
35570   #
35571   # CONFIG_FILE
35572   #
35573
35574   case $INSTALL in
35575   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35576   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35577   esac
35578 _ACEOF
35579
35580 cat >>$CONFIG_STATUS <<\_ACEOF
35581 # If the template does not know about datarootdir, expand it.
35582 # FIXME: This hack should be removed a few years after 2.60.
35583 ac_datarootdir_hack=; ac_datarootdir_seen=
35584
35585 case `sed -n '/datarootdir/ {
35586   p
35587   q
35588 }
35589 /@datadir@/p
35590 /@docdir@/p
35591 /@infodir@/p
35592 /@localedir@/p
35593 /@mandir@/p
35594 ' $ac_file_inputs` in
35595 *datarootdir*) ac_datarootdir_seen=yes;;
35596 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35597   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35598 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35599 _ACEOF
35600 cat >>$CONFIG_STATUS <<_ACEOF
35601   ac_datarootdir_hack='
35602   s&@datadir@&$datadir&g
35603   s&@docdir@&$docdir&g
35604   s&@infodir@&$infodir&g
35605   s&@localedir@&$localedir&g
35606   s&@mandir@&$mandir&g
35607     s&\\\${datarootdir}&$datarootdir&g' ;;
35608 esac
35609 _ACEOF
35610
35611 # Neutralize VPATH when `$srcdir' = `.'.
35612 # Shell code in configure.ac might set extrasub.
35613 # FIXME: do we really want to maintain this feature?
35614 cat >>$CONFIG_STATUS <<_ACEOF
35615   sed "$ac_vpsub
35616 $extrasub
35617 _ACEOF
35618 cat >>$CONFIG_STATUS <<\_ACEOF
35619 :t
35620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35621 s&@configure_input@&$configure_input&;t t
35622 s&@top_builddir@&$ac_top_builddir_sub&;t t
35623 s&@srcdir@&$ac_srcdir&;t t
35624 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35625 s&@top_srcdir@&$ac_top_srcdir&;t t
35626 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35627 s&@builddir@&$ac_builddir&;t t
35628 s&@abs_builddir@&$ac_abs_builddir&;t t
35629 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35630 s&@INSTALL@&$ac_INSTALL&;t t
35631 $ac_datarootdir_hack
35632 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35633
35634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35635   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35636   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35637   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35638 which seems to be undefined.  Please make sure it is defined." >&5
35639 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35640 which seems to be undefined.  Please make sure it is defined." >&2;}
35641
35642   rm -f "$tmp/stdin"
35643   case $ac_file in
35644   -) cat "$tmp/out"; rm -f "$tmp/out";;
35645   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35646   esac
35647  ;;
35648   :H)
35649   #
35650   # CONFIG_HEADER
35651   #
35652 _ACEOF
35653
35654 # Transform confdefs.h into a sed script `conftest.defines', that
35655 # substitutes the proper values into config.h.in to produce config.h.
35656 rm -f conftest.defines conftest.tail
35657 # First, append a space to every undef/define line, to ease matching.
35658 echo 's/$/ /' >conftest.defines
35659 # Then, protect against being on the right side of a sed subst, or in
35660 # an unquoted here document, in config.status.  If some macros were
35661 # called several times there might be several #defines for the same
35662 # symbol, which is useless.  But do not sort them, since the last
35663 # AC_DEFINE must be honored.
35664 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35665 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35666 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35667 # PARAMS is the parameter list in the macro definition--in most cases, it's
35668 # just an empty string.
35669 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35670 ac_dB='\\)[      (].*,\\1define\\2'
35671 ac_dC=' '
35672 ac_dD=' ,'
35673
35674 uniq confdefs.h |
35675   sed -n '
35676         t rset
35677         :rset
35678         s/^[     ]*#[    ]*define[       ][      ]*//
35679         t ok
35680         d
35681         :ok
35682         s/[\\&,]/\\&/g
35683         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35684         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35685   ' >>conftest.defines
35686
35687 # Remove the space that was appended to ease matching.
35688 # Then replace #undef with comments.  This is necessary, for
35689 # example, in the case of _POSIX_SOURCE, which is predefined and required
35690 # on some systems where configure will not decide to define it.
35691 # (The regexp can be short, since the line contains either #define or #undef.)
35692 echo 's/ $//
35693 s,^[     #]*u.*,/* & */,' >>conftest.defines
35694
35695 # Break up conftest.defines:
35696 ac_max_sed_lines=50
35697
35698 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35699 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35700 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35701 # et cetera.
35702 ac_in='$ac_file_inputs'
35703 ac_out='"$tmp/out1"'
35704 ac_nxt='"$tmp/out2"'
35705
35706 while :
35707 do
35708   # Write a here document:
35709     cat >>$CONFIG_STATUS <<_ACEOF
35710     # First, check the format of the line:
35711     cat >"\$tmp/defines.sed" <<\\CEOF
35712 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35713 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35714 b
35715 :def
35716 _ACEOF
35717   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35718   echo 'CEOF
35719     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35720   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35721   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35722   grep . conftest.tail >/dev/null || break
35723   rm -f conftest.defines
35724   mv conftest.tail conftest.defines
35725 done
35726 rm -f conftest.defines conftest.tail
35727
35728 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35729 cat >>$CONFIG_STATUS <<\_ACEOF
35730   if test x"$ac_file" != x-; then
35731     echo "/* $configure_input  */" >"$tmp/config.h"
35732     cat "$ac_result" >>"$tmp/config.h"
35733     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35734       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35735 echo "$as_me: $ac_file is unchanged" >&6;}
35736     else
35737       rm -f $ac_file
35738       mv "$tmp/config.h" $ac_file
35739     fi
35740   else
35741     echo "/* $configure_input  */"
35742     cat "$ac_result"
35743   fi
35744   rm -f "$tmp/out12"
35745  ;;
35746
35747   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35748 echo "$as_me: executing $ac_file commands" >&6;}
35749  ;;
35750   esac
35751
35752
35753   case $ac_file$ac_mode in
35754     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35755    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35756     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35757    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35758     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35759    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35760     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35761    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35762     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35763    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35764     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35765    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35766     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35767    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35768     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35769    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35770     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35771    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35772     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35773    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35774     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35775    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35776     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35777    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35778     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35779    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35780
35781   esac
35782 done # for ac_tag
35783
35784
35785 { (exit 0); exit 0; }
35786 _ACEOF
35787 chmod +x $CONFIG_STATUS
35788 ac_clean_files=$ac_clean_files_save
35789
35790
35791 # configure is writing to config.log, and then calls config.status.
35792 # config.status does its own redirection, appending to config.log.
35793 # Unfortunately, on DOS this fails, as config.log is still kept open
35794 # by configure, so config.status won't be able to write to it; its
35795 # output is simply discarded.  So we exec the FD to /dev/null,
35796 # effectively closing config.log, so it can be properly (re)opened and
35797 # appended to by config.status.  When coming back to configure, we
35798 # need to make the FD available again.
35799 if test "$no_create" != yes; then
35800   ac_cs_success=:
35801   ac_config_status_args=
35802   test "$silent" = yes &&
35803     ac_config_status_args="$ac_config_status_args --quiet"
35804   exec 5>/dev/null
35805   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35806   exec 5>>config.log
35807   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35808   # would make configure fail if this is the last instruction.
35809   $ac_cs_success || { (exit 1); exit 1; }
35810 fi
35811
35812 #
35813 # CONFIG_SUBDIRS section.
35814 #
35815 if test "$no_recursion" != yes; then
35816
35817   # Remove --cache-file and --srcdir arguments so they do not pile up.
35818   ac_sub_configure_args=
35819   ac_prev=
35820   eval "set x $ac_configure_args"
35821   shift
35822   for ac_arg
35823   do
35824     if test -n "$ac_prev"; then
35825       ac_prev=
35826       continue
35827     fi
35828     case $ac_arg in
35829     -cache-file | --cache-file | --cache-fil | --cache-fi \
35830     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35831       ac_prev=cache_file ;;
35832     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35833     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35834     | --c=*)
35835       ;;
35836     --config-cache | -C)
35837       ;;
35838     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35839       ac_prev=srcdir ;;
35840     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35841       ;;
35842     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35843       ac_prev=prefix ;;
35844     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35845       ;;
35846     *)
35847       case $ac_arg in
35848       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35849       esac
35850       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35851     esac
35852   done
35853
35854   # Always prepend --prefix to ensure using the same prefix
35855   # in subdir configurations.
35856   ac_arg="--prefix=$prefix"
35857   case $ac_arg in
35858   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35859   esac
35860   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35861
35862   ac_popdir=`pwd`
35863   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35864
35865     # Do not complain, so a configure script can configure whichever
35866     # parts of a large source tree are present.
35867     test -d "$srcdir/$ac_dir" || continue
35868
35869     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35870     echo "$as_me:$LINENO: $ac_msg" >&5
35871     echo "$ac_msg" >&6
35872     { as_dir="$ac_dir"
35873   case $as_dir in #(
35874   -*) as_dir=./$as_dir;;
35875   esac
35876   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35877     as_dirs=
35878     while :; do
35879       case $as_dir in #(
35880       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35881       *) as_qdir=$as_dir;;
35882       esac
35883       as_dirs="'$as_qdir' $as_dirs"
35884       as_dir=`$as_dirname -- "$as_dir" ||
35885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35886          X"$as_dir" : 'X\(//\)[^/]' \| \
35887          X"$as_dir" : 'X\(//\)$' \| \
35888          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35889 echo X"$as_dir" |
35890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35891             s//\1/
35892             q
35893           }
35894           /^X\(\/\/\)[^/].*/{
35895             s//\1/
35896             q
35897           }
35898           /^X\(\/\/\)$/{
35899             s//\1/
35900             q
35901           }
35902           /^X\(\/\).*/{
35903             s//\1/
35904             q
35905           }
35906           s/.*/./; q'`
35907       test -d "$as_dir" && break
35908     done
35909     test -z "$as_dirs" || eval "mkdir $as_dirs"
35910   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35911 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35912    { (exit 1); exit 1; }; }; }
35913     ac_builddir=.
35914
35915 case "$ac_dir" in
35916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35917 *)
35918   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35919   # A ".." for each directory in $ac_dir_suffix.
35920   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35921   case $ac_top_builddir_sub in
35922   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35923   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35924   esac ;;
35925 esac
35926 ac_abs_top_builddir=$ac_pwd
35927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35928 # for backward compatibility:
35929 ac_top_builddir=$ac_top_build_prefix
35930
35931 case $srcdir in
35932   .)  # We are building in place.
35933     ac_srcdir=.
35934     ac_top_srcdir=$ac_top_builddir_sub
35935     ac_abs_top_srcdir=$ac_pwd ;;
35936   [\\/]* | ?:[\\/]* )  # Absolute name.
35937     ac_srcdir=$srcdir$ac_dir_suffix;
35938     ac_top_srcdir=$srcdir
35939     ac_abs_top_srcdir=$srcdir ;;
35940   *) # Relative name.
35941     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35942     ac_top_srcdir=$ac_top_build_prefix$srcdir
35943     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35944 esac
35945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35946
35947
35948     cd "$ac_dir"
35949
35950     # Check for guested configure; otherwise get Cygnus style configure.
35951     if test -f "$ac_srcdir/configure.gnu"; then
35952       ac_sub_configure=$ac_srcdir/configure.gnu
35953     elif test -f "$ac_srcdir/configure"; then
35954       ac_sub_configure=$ac_srcdir/configure
35955     elif test -f "$ac_srcdir/configure.in"; then
35956       # This should be Cygnus configure.
35957       ac_sub_configure=$ac_aux_dir/configure
35958     else
35959       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35961       ac_sub_configure=
35962     fi
35963
35964     # The recursion is here.
35965     if test -n "$ac_sub_configure"; then
35966       # Make the cache file name correct relative to the subdirectory.
35967       case $cache_file in
35968       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35969       *) # Relative name.
35970         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35971       esac
35972
35973       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35974 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35975       # The eval makes quoting arguments work.
35976       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35977            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35978         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35979 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35980    { (exit 1); exit 1; }; }
35981     fi
35982
35983     cd "$ac_popdir"
35984   done
35985 fi
35986