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.2svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.2svn'
719 PACKAGE_STRING='llvm 2.2svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
836 JIT
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 LEX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 GV
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
885 ZIP
886 OCAMLC
887 OCAMLOPT
888 OCAMLDEP
889 INSTALL_LTDL_TRUE
890 INSTALL_LTDL_FALSE
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
893 LIBADD_DL
894 ECHO
895 AR
896 STRIP
897 CXXCPP
898 F77
899 FFLAGS
900 ac_ct_F77
901 LIBTOOL
902 LLVMGCC
903 LLVMGXX
904 USE_UDIS86
905 HAVE_PTHREAD
906 HUGE_VAL_SANITY
907 ALLOCA
908 MMAP_FILE
909 LLVMCC1
910 LLVMCC1PLUS
911 LLVMGCCDIR
912 LLVMGCCLIBEXEC
913 LLVMGCC_VERSION
914 LLVMGCC_MAJVERS
915 LLVMGCC_LANGS
916 SHLIBEXT
917 LLVM_PREFIX
918 LLVM_BINDIR
919 LLVM_LIBDIR
920 LLVM_DATADIR
921 LLVM_DOCSDIR
922 LLVM_ETCDIR
923 LLVM_INCLUDEDIR
924 LLVM_INFODIR
925 LLVM_MANDIR
926 LLVM_CONFIGTIME
927 BINDINGS_TO_BUILD
928 ALL_BINDINGS
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 YACC
944 YFLAGS
945 CXXCPP
946 F77
947 FFLAGS'
948 ac_subdirs_all='projects/sample
949 projects/privbracket
950 projects/llvm-stacker
951 projects/llvm-test
952 projects/llvm-reopt
953 projects/llvm-gcc
954 projects/llvm-java
955 projects/llvm-tv
956 projects/llvm-poolalloc
957 projects/poolalloc
958 projects/llvm-kernel'
959
960 # Initialize some variables set by options.
961 ac_init_help=
962 ac_init_version=false
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
979
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1005
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1009 do
1010   # If the previous option needs an argument, assign it.
1011   if test -n "$ac_prev"; then
1012     eval $ac_prev=\$ac_option
1013     ac_prev=
1014     continue
1015   fi
1016
1017   case $ac_option in
1018   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019   *)    ac_optarg=yes ;;
1020   esac
1021
1022   # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024   case $ac_dashdash$ac_option in
1025   --)
1026     ac_dashdash=yes ;;
1027
1028   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029     ac_prev=bindir ;;
1030   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031     bindir=$ac_optarg ;;
1032
1033   -build | --build | --buil | --bui | --bu)
1034     ac_prev=build_alias ;;
1035   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036     build_alias=$ac_optarg ;;
1037
1038   -cache-file | --cache-file | --cache-fil | --cache-fi \
1039   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040     ac_prev=cache_file ;;
1041   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043     cache_file=$ac_optarg ;;
1044
1045   --config-cache | -C)
1046     cache_file=config.cache ;;
1047
1048   -datadir | --datadir | --datadi | --datad)
1049     ac_prev=datadir ;;
1050   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051     datadir=$ac_optarg ;;
1052
1053   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054   | --dataroo | --dataro | --datar)
1055     ac_prev=datarootdir ;;
1056   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058     datarootdir=$ac_optarg ;;
1059
1060   -disable-* | --disable-*)
1061     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062     # Reject names that are not valid shell variable names.
1063     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1064       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065    { (exit 1); exit 1; }; }
1066     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1067     eval enable_$ac_feature=no ;;
1068
1069   -docdir | --docdir | --docdi | --doc | --do)
1070     ac_prev=docdir ;;
1071   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072     docdir=$ac_optarg ;;
1073
1074   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075     ac_prev=dvidir ;;
1076   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077     dvidir=$ac_optarg ;;
1078
1079   -enable-* | --enable-*)
1080     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084    { (exit 1); exit 1; }; }
1085     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1086     eval enable_$ac_feature=\$ac_optarg ;;
1087
1088   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090   | --exec | --exe | --ex)
1091     ac_prev=exec_prefix ;;
1092   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094   | --exec=* | --exe=* | --ex=*)
1095     exec_prefix=$ac_optarg ;;
1096
1097   -gas | --gas | --ga | --g)
1098     # Obsolete; use --with-gas.
1099     with_gas=yes ;;
1100
1101   -help | --help | --hel | --he | -h)
1102     ac_init_help=long ;;
1103   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104     ac_init_help=recursive ;;
1105   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106     ac_init_help=short ;;
1107
1108   -host | --host | --hos | --ho)
1109     ac_prev=host_alias ;;
1110   -host=* | --host=* | --hos=* | --ho=*)
1111     host_alias=$ac_optarg ;;
1112
1113   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114     ac_prev=htmldir ;;
1115   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116   | --ht=*)
1117     htmldir=$ac_optarg ;;
1118
1119   -includedir | --includedir | --includedi | --included | --include \
1120   | --includ | --inclu | --incl | --inc)
1121     ac_prev=includedir ;;
1122   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123   | --includ=* | --inclu=* | --incl=* | --inc=*)
1124     includedir=$ac_optarg ;;
1125
1126   -infodir | --infodir | --infodi | --infod | --info | --inf)
1127     ac_prev=infodir ;;
1128   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129     infodir=$ac_optarg ;;
1130
1131   -libdir | --libdir | --libdi | --libd)
1132     ac_prev=libdir ;;
1133   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134     libdir=$ac_optarg ;;
1135
1136   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137   | --libexe | --libex | --libe)
1138     ac_prev=libexecdir ;;
1139   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140   | --libexe=* | --libex=* | --libe=*)
1141     libexecdir=$ac_optarg ;;
1142
1143   -localedir | --localedir | --localedi | --localed | --locale)
1144     ac_prev=localedir ;;
1145   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146     localedir=$ac_optarg ;;
1147
1148   -localstatedir | --localstatedir | --localstatedi | --localstated \
1149   | --localstate | --localstat | --localsta | --localst | --locals)
1150     ac_prev=localstatedir ;;
1151   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153     localstatedir=$ac_optarg ;;
1154
1155   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156     ac_prev=mandir ;;
1157   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158     mandir=$ac_optarg ;;
1159
1160   -nfp | --nfp | --nf)
1161     # Obsolete; use --without-fp.
1162     with_fp=no ;;
1163
1164   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165   | --no-cr | --no-c | -n)
1166     no_create=yes ;;
1167
1168   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170     no_recursion=yes ;;
1171
1172   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174   | --oldin | --oldi | --old | --ol | --o)
1175     ac_prev=oldincludedir ;;
1176   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179     oldincludedir=$ac_optarg ;;
1180
1181   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182     ac_prev=prefix ;;
1183   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184     prefix=$ac_optarg ;;
1185
1186   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187   | --program-pre | --program-pr | --program-p)
1188     ac_prev=program_prefix ;;
1189   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191     program_prefix=$ac_optarg ;;
1192
1193   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194   | --program-suf | --program-su | --program-s)
1195     ac_prev=program_suffix ;;
1196   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198     program_suffix=$ac_optarg ;;
1199
1200   -program-transform-name | --program-transform-name \
1201   | --program-transform-nam | --program-transform-na \
1202   | --program-transform-n | --program-transform- \
1203   | --program-transform | --program-transfor \
1204   | --program-transfo | --program-transf \
1205   | --program-trans | --program-tran \
1206   | --progr-tra | --program-tr | --program-t)
1207     ac_prev=program_transform_name ;;
1208   -program-transform-name=* | --program-transform-name=* \
1209   | --program-transform-nam=* | --program-transform-na=* \
1210   | --program-transform-n=* | --program-transform-=* \
1211   | --program-transform=* | --program-transfor=* \
1212   | --program-transfo=* | --program-transf=* \
1213   | --program-trans=* | --program-tran=* \
1214   | --progr-tra=* | --program-tr=* | --program-t=*)
1215     program_transform_name=$ac_optarg ;;
1216
1217   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218     ac_prev=pdfdir ;;
1219   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220     pdfdir=$ac_optarg ;;
1221
1222   -psdir | --psdir | --psdi | --psd | --ps)
1223     ac_prev=psdir ;;
1224   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225     psdir=$ac_optarg ;;
1226
1227   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228   | -silent | --silent | --silen | --sile | --sil)
1229     silent=yes ;;
1230
1231   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232     ac_prev=sbindir ;;
1233   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234   | --sbi=* | --sb=*)
1235     sbindir=$ac_optarg ;;
1236
1237   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239   | --sharedst | --shareds | --shared | --share | --shar \
1240   | --sha | --sh)
1241     ac_prev=sharedstatedir ;;
1242   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245   | --sha=* | --sh=*)
1246     sharedstatedir=$ac_optarg ;;
1247
1248   -site | --site | --sit)
1249     ac_prev=site ;;
1250   -site=* | --site=* | --sit=*)
1251     site=$ac_optarg ;;
1252
1253   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254     ac_prev=srcdir ;;
1255   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256     srcdir=$ac_optarg ;;
1257
1258   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259   | --syscon | --sysco | --sysc | --sys | --sy)
1260     ac_prev=sysconfdir ;;
1261   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263     sysconfdir=$ac_optarg ;;
1264
1265   -target | --target | --targe | --targ | --tar | --ta | --t)
1266     ac_prev=target_alias ;;
1267   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268     target_alias=$ac_optarg ;;
1269
1270   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271     verbose=yes ;;
1272
1273   -version | --version | --versio | --versi | --vers | -V)
1274     ac_init_version=: ;;
1275
1276   -with-* | --with-*)
1277     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1280       { echo "$as_me: error: invalid package name: $ac_package" >&2
1281    { (exit 1); exit 1; }; }
1282     ac_package=`echo $ac_package| sed 's/-/_/g'`
1283     eval with_$ac_package=\$ac_optarg ;;
1284
1285   -without-* | --without-*)
1286     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1289       { echo "$as_me: error: invalid package name: $ac_package" >&2
1290    { (exit 1); exit 1; }; }
1291     ac_package=`echo $ac_package | sed 's/-/_/g'`
1292     eval with_$ac_package=no ;;
1293
1294   --x)
1295     # Obsolete; use --with-x.
1296     with_x=yes ;;
1297
1298   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299   | --x-incl | --x-inc | --x-in | --x-i)
1300     ac_prev=x_includes ;;
1301   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303     x_includes=$ac_optarg ;;
1304
1305   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307     ac_prev=x_libraries ;;
1308   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310     x_libraries=$ac_optarg ;;
1311
1312   -*) { echo "$as_me: error: unrecognized option: $ac_option
1313 Try \`$0 --help' for more information." >&2
1314    { (exit 1); exit 1; }; }
1315     ;;
1316
1317   *=*)
1318     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319     # Reject names that are not valid shell variable names.
1320     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322    { (exit 1); exit 1; }; }
1323     eval $ac_envvar=\$ac_optarg
1324     export $ac_envvar ;;
1325
1326   *)
1327     # FIXME: should be removed in autoconf 3.0.
1328     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332     ;;
1333
1334   esac
1335 done
1336
1337 if test -n "$ac_prev"; then
1338   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339   { echo "$as_me: error: missing argument to $ac_option" >&2
1340    { (exit 1); exit 1; }; }
1341 fi
1342
1343 # Be sure to have absolute directory names.
1344 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345                 datadir sysconfdir sharedstatedir localstatedir includedir \
1346                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347                 libdir localedir mandir
1348 do
1349   eval ac_val=\$$ac_var
1350   case $ac_val in
1351     [\\/$]* | ?:[\\/]* )  continue;;
1352     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353   esac
1354   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355    { (exit 1); exit 1; }; }
1356 done
1357
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1364
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367   if test "x$build_alias" = x; then
1368     cross_compiling=maybe
1369     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370     If a cross compiler is detected then cross compile mode will be used." >&2
1371   elif test "x$build_alias" != "x$host_alias"; then
1372     cross_compiling=yes
1373   fi
1374 fi
1375
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379 test "$silent" = yes && exec 6>/dev/null
1380
1381
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385   { echo "$as_me: error: Working directory cannot be determined" >&2
1386    { (exit 1); exit 1; }; }
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388   { echo "$as_me: error: pwd does not report name of working directory" >&2
1389    { (exit 1); exit 1; }; }
1390
1391
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394   ac_srcdir_defaulted=yes
1395   # Try the directory containing this script, then the parent directory.
1396   ac_confdir=`$as_dirname -- "$0" ||
1397 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398          X"$0" : 'X\(//\)[^/]' \| \
1399          X"$0" : 'X\(//\)$' \| \
1400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1401 echo X"$0" |
1402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\/\)[^/].*/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\/\)$/{
1411             s//\1/
1412             q
1413           }
1414           /^X\(\/\).*/{
1415             s//\1/
1416             q
1417           }
1418           s/.*/./; q'`
1419   srcdir=$ac_confdir
1420   if test ! -r "$srcdir/$ac_unique_file"; then
1421     srcdir=..
1422   fi
1423 else
1424   ac_srcdir_defaulted=no
1425 fi
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1429    { (exit 1); exit 1; }; }
1430 fi
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1434    { (exit 1); exit 1; }; }
1435         pwd)`
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438   srcdir=.
1439 fi
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1443 case $srcdir in
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 esac
1446 for ac_var in $ac_precious_vars; do
1447   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448   eval ac_env_${ac_var}_value=\$${ac_var}
1449   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1452
1453 #
1454 # Report the --help message.
1455 #
1456 if test "$ac_init_help" = "long"; then
1457   # Omit some internal or obsolete options to make the list less imposing.
1458   # This message is too long to be a string in the A/UX 3.1 sh.
1459   cat <<_ACEOF
1460 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1461
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE.  See below for descriptions of some of the useful variables.
1466
1467 Defaults for the options are specified in brackets.
1468
1469 Configuration:
1470   -h, --help              display this help and exit
1471       --help=short        display options specific to this package
1472       --help=recursive    display the short help of all the included packages
1473   -V, --version           display version information and exit
1474   -q, --quiet, --silent   do not print \`checking...' messages
1475       --cache-file=FILE   cache test results in FILE [disabled]
1476   -C, --config-cache      alias for \`--cache-file=config.cache'
1477   -n, --no-create         do not create output files
1478       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1479
1480 Installation directories:
1481   --prefix=PREFIX         install architecture-independent files in PREFIX
1482                           [$ac_default_prefix]
1483   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1484                           [PREFIX]
1485
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1490
1491 For better control, use the options below.
1492
1493 Fine tuning of the installation directories:
1494   --bindir=DIR           user executables [EPREFIX/bin]
1495   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1496   --libexecdir=DIR       program executables [EPREFIX/libexec]
1497   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1498   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1499   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1500   --libdir=DIR           object code libraries [EPREFIX/lib]
1501   --includedir=DIR       C header files [PREFIX/include]
1502   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1503   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1504   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1505   --infodir=DIR          info documentation [DATAROOTDIR/info]
1506   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1507   --mandir=DIR           man documentation [DATAROOTDIR/man]
1508   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1509   --htmldir=DIR          html documentation [DOCDIR]
1510   --dvidir=DIR           dvi documentation [DOCDIR]
1511   --pdfdir=DIR           pdf documentation [DOCDIR]
1512   --psdir=DIR            ps documentation [DOCDIR]
1513 _ACEOF
1514
1515   cat <<\_ACEOF
1516
1517 System types:
1518   --build=BUILD     configure for building on BUILD [guessed]
1519   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520   --target=TARGET   configure for building compilers for TARGET [HOST]
1521 _ACEOF
1522 fi
1523
1524 if test -n "$ac_init_help"; then
1525   case $ac_init_help in
1526      short | recursive ) echo "Configuration of llvm 2.2svn:";;
1527    esac
1528   cat <<\_ACEOF
1529
1530 Optional Features:
1531   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1532   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1533   --enable-optimized
1534   --enable-assertions
1535   --enable-expensive-checks
1536
1537   --enable-debug-runtime
1538   --enable-jit            Enable Just In Time Compiling (default is YES)
1539   --enable-doxygen        Build doxygen documentation (default is NO)
1540   --enable-threads        Use threads if available (default is YES)
1541   --enable-pic            Build LLVM with Position Independent Code (default
1542                           is NO)
1543   --enable-targets        Build specific host targets:
1544                           all,host-only,{target-name} (default=all)
1545   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1546                           %a (default is YES)
1547   --enable-bindings       Build specific language bindings:
1548                           all,auto,none,{binding-name} (default=auto)
1549   --enable-ltdl-install   install libltdl
1550   --enable-shared[=PKGS]  build shared libraries
1551                           [default=yes]
1552   --enable-static[=PKGS]  build static libraries
1553                           [default=yes]
1554   --enable-fast-install[=PKGS]
1555                           optimize for fast installation
1556                           [default=yes]
1557   --disable-libtool-lock  avoid locking (might break parallel builds)
1558
1559 Optional Packages:
1560   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1561   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1562   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1563                           searches PATH)
1564   --with-extra-options    Specify addtional options to compile LLVM with
1565   --with-tclinclude       directory where tcl headers are
1566   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1567   --with-pic              try to use only PIC/non-PIC objects [default=use
1568                           both]
1569   --with-tags[=TAGS]      include additional configurations [automatic]
1570   --with-udis86=<path>    Use udis86 external x86 disassembler library
1571
1572 Some influential environment variables:
1573   CC          C compiler command
1574   CFLAGS      C compiler flags
1575   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1576               nonstandard directory <lib dir>
1577   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1578               you have headers in a nonstandard directory <include dir>
1579   CPP         C preprocessor
1580   CXX         C++ compiler command
1581   CXXFLAGS    C++ compiler flags
1582   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1583               the first program found out of: `bison -y', `byacc', `yacc'.
1584   YFLAGS      The list of arguments that will be passed by default to $YACC.
1585               This script will default YFLAGS to the empty string to avoid a
1586               default value of `-d' given by some make applications.
1587   CXXCPP      C++ preprocessor
1588   F77         Fortran 77 compiler command
1589   FFLAGS      Fortran 77 compiler flags
1590
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1593
1594 Report bugs to <llvmbugs@cs.uiuc.edu>.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600   # If there are subdirs, report their specific --help.
1601   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602     test -d "$ac_dir" || continue
1603     ac_builddir=.
1604
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *)
1608   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1609   # A ".." for each directory in $ac_dir_suffix.
1610   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1611   case $ac_top_builddir_sub in
1612   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614   esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1620
1621 case $srcdir in
1622   .)  # We are building in place.
1623     ac_srcdir=.
1624     ac_top_srcdir=$ac_top_builddir_sub
1625     ac_abs_top_srcdir=$ac_pwd ;;
1626   [\\/]* | ?:[\\/]* )  # Absolute name.
1627     ac_srcdir=$srcdir$ac_dir_suffix;
1628     ac_top_srcdir=$srcdir
1629     ac_abs_top_srcdir=$srcdir ;;
1630   *) # Relative name.
1631     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632     ac_top_srcdir=$ac_top_build_prefix$srcdir
1633     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637     cd "$ac_dir" || { ac_status=$?; continue; }
1638     # Check for guested configure.
1639     if test -f "$ac_srcdir/configure.gnu"; then
1640       echo &&
1641       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642     elif test -f "$ac_srcdir/configure"; then
1643       echo &&
1644       $SHELL "$ac_srcdir/configure" --help=recursive
1645     else
1646       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647     fi || ac_status=$?
1648     cd "$ac_pwd" || { ac_status=$?; break; }
1649   done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654   cat <<\_ACEOF
1655 llvm configure 2.2svn
1656 generated by GNU Autoconf 2.60
1657
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662
1663 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1664 _ACEOF
1665   exit
1666 fi
1667 cat >config.log <<_ACEOF
1668 This file contains any messages produced by compilers while
1669 running configure, to aid debugging if configure makes a mistake.
1670
1671 It was created by llvm $as_me 2.2svn, which was
1672 generated by GNU Autoconf 2.60.  Invocation command line was
1673
1674   $ $0 $@
1675
1676 _ACEOF
1677 exec 5>>config.log
1678 {
1679 cat <<_ASUNAME
1680 ## --------- ##
1681 ## Platform. ##
1682 ## --------- ##
1683
1684 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1685 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1686 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1687 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1688 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1689
1690 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1691 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1692
1693 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1694 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1695 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1696 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1697 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1698 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1699 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1700
1701 _ASUNAME
1702
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706   IFS=$as_save_IFS
1707   test -z "$as_dir" && as_dir=.
1708   echo "PATH: $as_dir"
1709 done
1710 IFS=$as_save_IFS
1711
1712 } >&5
1713
1714 cat >&5 <<_ACEOF
1715
1716
1717 ## ----------- ##
1718 ## Core tests. ##
1719 ## ----------- ##
1720
1721 _ACEOF
1722
1723
1724 # Keep a trace of the command line.
1725 # Strip out --no-create and --no-recursion so they do not pile up.
1726 # Strip out --silent because we don't want to record it for future runs.
1727 # Also quote any args containing shell meta-characters.
1728 # Make two passes to allow for proper duplicate-argument suppression.
1729 ac_configure_args=
1730 ac_configure_args0=
1731 ac_configure_args1=
1732 ac_must_keep_next=false
1733 for ac_pass in 1 2
1734 do
1735   for ac_arg
1736   do
1737     case $ac_arg in
1738     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1739     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1740     | -silent | --silent | --silen | --sile | --sil)
1741       continue ;;
1742     *\'*)
1743       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1744     esac
1745     case $ac_pass in
1746     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1747     2)
1748       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1749       if test $ac_must_keep_next = true; then
1750         ac_must_keep_next=false # Got value, back to normal.
1751       else
1752         case $ac_arg in
1753           *=* | --config-cache | -C | -disable-* | --disable-* \
1754           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1755           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1756           | -with-* | --with-* | -without-* | --without-* | --x)
1757             case "$ac_configure_args0 " in
1758               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1759             esac
1760             ;;
1761           -* ) ac_must_keep_next=true ;;
1762         esac
1763       fi
1764       ac_configure_args="$ac_configure_args '$ac_arg'"
1765       ;;
1766     esac
1767   done
1768 done
1769 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1770 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1771
1772 # When interrupted or exit'd, cleanup temporary files, and complete
1773 # config.log.  We remove comments because anyway the quotes in there
1774 # would cause problems or look ugly.
1775 # WARNING: Use '\'' to represent an apostrophe within the trap.
1776 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1777 trap 'exit_status=$?
1778   # Save into config.log some information that might help in debugging.
1779   {
1780     echo
1781
1782     cat <<\_ASBOX
1783 ## ---------------- ##
1784 ## Cache variables. ##
1785 ## ---------------- ##
1786 _ASBOX
1787     echo
1788     # The following way of writing the cache mishandles newlines in values,
1789 (
1790   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1791     eval ac_val=\$$ac_var
1792     case $ac_val in #(
1793     *${as_nl}*)
1794       case $ac_var in #(
1795       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1796 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1797       esac
1798       case $ac_var in #(
1799       _ | IFS | as_nl) ;; #(
1800       *) $as_unset $ac_var ;;
1801       esac ;;
1802     esac
1803   done
1804   (set) 2>&1 |
1805     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1806     *${as_nl}ac_space=\ *)
1807       sed -n \
1808         "s/'\''/'\''\\\\'\'''\''/g;
1809           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810       ;; #(
1811     *)
1812       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1813       ;;
1814     esac |
1815     sort
1816 )
1817     echo
1818
1819     cat <<\_ASBOX
1820 ## ----------------- ##
1821 ## Output variables. ##
1822 ## ----------------- ##
1823 _ASBOX
1824     echo
1825     for ac_var in $ac_subst_vars
1826     do
1827       eval ac_val=\$$ac_var
1828       case $ac_val in
1829       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830       esac
1831       echo "$ac_var='\''$ac_val'\''"
1832     done | sort
1833     echo
1834
1835     if test -n "$ac_subst_files"; then
1836       cat <<\_ASBOX
1837 ## ------------------- ##
1838 ## File substitutions. ##
1839 ## ------------------- ##
1840 _ASBOX
1841       echo
1842       for ac_var in $ac_subst_files
1843       do
1844         eval ac_val=\$$ac_var
1845         case $ac_val in
1846         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847         esac
1848         echo "$ac_var='\''$ac_val'\''"
1849       done | sort
1850       echo
1851     fi
1852
1853     if test -s confdefs.h; then
1854       cat <<\_ASBOX
1855 ## ----------- ##
1856 ## confdefs.h. ##
1857 ## ----------- ##
1858 _ASBOX
1859       echo
1860       cat confdefs.h
1861       echo
1862     fi
1863     test "$ac_signal" != 0 &&
1864       echo "$as_me: caught signal $ac_signal"
1865     echo "$as_me: exit $exit_status"
1866   } >&5
1867   rm -f core *.core core.conftest.* &&
1868     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1869     exit $exit_status
1870 ' 0
1871 for ac_signal in 1 2 13 15; do
1872   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873 done
1874 ac_signal=0
1875
1876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1877 rm -f -r conftest* confdefs.h
1878
1879 # Predefined preprocessor variables.
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_NAME "$PACKAGE_NAME"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1893 _ACEOF
1894
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_STRING "$PACKAGE_STRING"
1898 _ACEOF
1899
1900
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903 _ACEOF
1904
1905
1906 # Let the site file select an alternate cache file if it wants to.
1907 # Prefer explicitly selected file to automatically selected ones.
1908 if test -n "$CONFIG_SITE"; then
1909   set x "$CONFIG_SITE"
1910 elif test "x$prefix" != xNONE; then
1911   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1912 else
1913   set x "$ac_default_prefix/share/config.site" \
1914         "$ac_default_prefix/etc/config.site"
1915 fi
1916 shift
1917 for ac_site_file
1918 do
1919   if test -r "$ac_site_file"; then
1920     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1921 echo "$as_me: loading site script $ac_site_file" >&6;}
1922     sed 's/^/| /' "$ac_site_file" >&5
1923     . "$ac_site_file"
1924   fi
1925 done
1926
1927 if test -r "$cache_file"; then
1928   # Some versions of bash will fail to source /dev/null (special
1929   # files actually), so we avoid doing that.
1930   if test -f "$cache_file"; then
1931     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1932 echo "$as_me: loading cache $cache_file" >&6;}
1933     case $cache_file in
1934       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1935       *)                      . "./$cache_file";;
1936     esac
1937   fi
1938 else
1939   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1940 echo "$as_me: creating cache $cache_file" >&6;}
1941   >$cache_file
1942 fi
1943
1944 # Check that the precious variables saved in the cache have kept the same
1945 # value.
1946 ac_cache_corrupted=false
1947 for ac_var in $ac_precious_vars; do
1948   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1949   eval ac_new_set=\$ac_env_${ac_var}_set
1950   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1951   eval ac_new_val=\$ac_env_${ac_var}_value
1952   case $ac_old_set,$ac_new_set in
1953     set,)
1954       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1956       ac_cache_corrupted=: ;;
1957     ,set)
1958       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1959 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1960       ac_cache_corrupted=: ;;
1961     ,);;
1962     *)
1963       if test "x$ac_old_val" != "x$ac_new_val"; then
1964         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1965 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1966         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1967 echo "$as_me:   former value:  $ac_old_val" >&2;}
1968         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1969 echo "$as_me:   current value: $ac_new_val" >&2;}
1970         ac_cache_corrupted=:
1971       fi;;
1972   esac
1973   # Pass precious variables to config.status.
1974   if test "$ac_new_set" = set; then
1975     case $ac_new_val in
1976     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1977     *) ac_arg=$ac_var=$ac_new_val ;;
1978     esac
1979     case " $ac_configure_args " in
1980       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1981       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1982     esac
1983   fi
1984 done
1985 if $ac_cache_corrupted; then
1986   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1987 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1988   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1989 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1990    { (exit 1); exit 1; }; }
1991 fi
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017 ac_ext=c
2018 ac_cpp='$CPP $CPPFLAGS'
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022
2023
2024
2025 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2026
2027
2028
2029
2030
2031
2032
2033 ac_aux_dir=
2034 for ac_dir in autoconf "$srcdir"/autoconf; do
2035   if test -f "$ac_dir/install-sh"; then
2036     ac_aux_dir=$ac_dir
2037     ac_install_sh="$ac_aux_dir/install-sh -c"
2038     break
2039   elif test -f "$ac_dir/install.sh"; then
2040     ac_aux_dir=$ac_dir
2041     ac_install_sh="$ac_aux_dir/install.sh -c"
2042     break
2043   elif test -f "$ac_dir/shtool"; then
2044     ac_aux_dir=$ac_dir
2045     ac_install_sh="$ac_aux_dir/shtool install -c"
2046     break
2047   fi
2048 done
2049 if test -z "$ac_aux_dir"; then
2050   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2051 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2052    { (exit 1); exit 1; }; }
2053 fi
2054
2055 # These three variables are undocumented and unsupported,
2056 # and are intended to be withdrawn in a future Autoconf release.
2057 # They can cause serious problems if a builder's source tree is in a directory
2058 # whose full name contains unusual characters.
2059 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2060 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2061 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2062
2063
2064
2065 if test ${srcdir} != "." ; then
2066   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2067     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2068 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2069    { (exit 1); exit 1; }; }
2070   fi
2071 fi
2072
2073 for i in `ls ${srcdir}/projects`
2074 do
2075   if test -d ${srcdir}/projects/${i} ; then
2076     case ${i} in
2077       CVS) ;;
2078       sample)       subdirs="$subdirs projects/sample"
2079     ;;
2080       privbracket)  subdirs="$subdirs projects/privbracket"
2081  ;;
2082       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2083  ;;
2084       llvm-test)    subdirs="$subdirs projects/llvm-test"
2085  ;;
2086       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2087 ;;
2088       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2089   ;;
2090       llvm-java)    subdirs="$subdirs projects/llvm-java"
2091  ;;
2092       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2093    ;;
2094       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2095  ;;
2096       poolalloc)    subdirs="$subdirs projects/poolalloc"
2097  ;;
2098       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2099  ;;
2100       *)
2101         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2102 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2103         ;;
2104     esac
2105   fi
2106 done
2107
2108
2109 # Make sure we can run config.sub.
2110 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2111   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2112 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2113    { (exit 1); exit 1; }; }
2114
2115 { echo "$as_me:$LINENO: checking build system type" >&5
2116 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2117 if test "${ac_cv_build+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   ac_build_alias=$build_alias
2121 test "x$ac_build_alias" = x &&
2122   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2123 test "x$ac_build_alias" = x &&
2124   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2125 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2126    { (exit 1); exit 1; }; }
2127 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2128   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2129 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2130    { (exit 1); exit 1; }; }
2131
2132 fi
2133 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2134 echo "${ECHO_T}$ac_cv_build" >&6; }
2135 case $ac_cv_build in
2136 *-*-*) ;;
2137 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2138 echo "$as_me: error: invalid value of canonical build" >&2;}
2139    { (exit 1); exit 1; }; };;
2140 esac
2141 build=$ac_cv_build
2142 ac_save_IFS=$IFS; IFS='-'
2143 set x $ac_cv_build
2144 shift
2145 build_cpu=$1
2146 build_vendor=$2
2147 shift; shift
2148 # Remember, the first character of IFS is used to create $*,
2149 # except with old shells:
2150 build_os=$*
2151 IFS=$ac_save_IFS
2152 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2153
2154
2155 { echo "$as_me:$LINENO: checking host system type" >&5
2156 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2157 if test "${ac_cv_host+set}" = set; then
2158   echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160   if test "x$host_alias" = x; then
2161   ac_cv_host=$ac_cv_build
2162 else
2163   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2164     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2165 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2166    { (exit 1); exit 1; }; }
2167 fi
2168
2169 fi
2170 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2171 echo "${ECHO_T}$ac_cv_host" >&6; }
2172 case $ac_cv_host in
2173 *-*-*) ;;
2174 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2175 echo "$as_me: error: invalid value of canonical host" >&2;}
2176    { (exit 1); exit 1; }; };;
2177 esac
2178 host=$ac_cv_host
2179 ac_save_IFS=$IFS; IFS='-'
2180 set x $ac_cv_host
2181 shift
2182 host_cpu=$1
2183 host_vendor=$2
2184 shift; shift
2185 # Remember, the first character of IFS is used to create $*,
2186 # except with old shells:
2187 host_os=$*
2188 IFS=$ac_save_IFS
2189 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2190
2191
2192 { echo "$as_me:$LINENO: checking target system type" >&5
2193 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2194 if test "${ac_cv_target+set}" = set; then
2195   echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197   if test "x$target_alias" = x; then
2198   ac_cv_target=$ac_cv_host
2199 else
2200   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2201     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2202 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2203    { (exit 1); exit 1; }; }
2204 fi
2205
2206 fi
2207 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2208 echo "${ECHO_T}$ac_cv_target" >&6; }
2209 case $ac_cv_target in
2210 *-*-*) ;;
2211 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2212 echo "$as_me: error: invalid value of canonical target" >&2;}
2213    { (exit 1); exit 1; }; };;
2214 esac
2215 target=$ac_cv_target
2216 ac_save_IFS=$IFS; IFS='-'
2217 set x $ac_cv_target
2218 shift
2219 target_cpu=$1
2220 target_vendor=$2
2221 shift; shift
2222 # Remember, the first character of IFS is used to create $*,
2223 # except with old shells:
2224 target_os=$*
2225 IFS=$ac_save_IFS
2226 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2227
2228
2229 # The aliases save the names the user supplied, while $host etc.
2230 # will get canonicalized.
2231 test -n "$target_alias" &&
2232   test "$program_prefix$program_suffix$program_transform_name" = \
2233     NONENONEs,x,x, &&
2234   program_prefix=${target_alias}-
2235
2236 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2237 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2238 if test "${llvm_cv_os_type+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   case $host in
2242   *-*-aix*)
2243     llvm_cv_link_all_option="-Wl,--whole-archive"
2244     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245     llvm_cv_os_type="AIX"
2246     llvm_cv_platform_type="Unix" ;;
2247   *-*-irix*)
2248     llvm_cv_link_all_option="-Wl,--whole-archive"
2249     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250     llvm_cv_os_type="IRIX"
2251     llvm_cv_platform_type="Unix" ;;
2252   *-*-cygwin*)
2253     llvm_cv_link_all_option="-Wl,--whole-archive"
2254     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255     llvm_cv_os_type="Cygwin"
2256     llvm_cv_platform_type="Unix" ;;
2257   *-*-darwin*)
2258     llvm_cv_link_all_option="-Wl,-all_load"
2259     llvm_cv_link_all_option="-Wl,-noall_load"
2260     llvm_cv_os_type="Darwin"
2261     llvm_cv_platform_type="Unix" ;;
2262   *-*-freebsd*)
2263     llvm_cv_link_all_option="-Wl,--whole-archive"
2264     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265     llvm_cv_os_type="FreeBSD"
2266     llvm_cv_platform_type="Unix" ;;
2267   *-*-openbsd*)
2268     llvm_cv_link_all_option="-Wl,--whole-archive"
2269     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270     llvm_cv_os_type="OpenBSD"
2271     llvm_cv_platform_type="Unix" ;;
2272   *-*-netbsd*)
2273     llvm_cv_link_all_option="-Wl,--whole-archive"
2274     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275     llvm_cv_os_type="NetBSD"
2276     llvm_cv_platform_type="Unix" ;;
2277   *-*-hpux*)
2278     llvm_cv_link_all_option="-Wl,--whole-archive"
2279     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280     llvm_cv_os_type="HP-UX"
2281     llvm_cv_platform_type="Unix" ;;
2282   *-*-interix*)
2283     llvm_cv_link_all_option="-Wl,--whole-archive"
2284     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285     llvm_cv_os_type="Interix"
2286     llvm_cv_platform_type="Unix" ;;
2287   *-*-linux*)
2288     llvm_cv_link_all_option="-Wl,--whole-archive"
2289     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290     llvm_cv_os_type="Linux"
2291     llvm_cv_platform_type="Unix" ;;
2292   *-*-solaris*)
2293     llvm_cv_link_all_option="-Wl,-z,allextract"
2294     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2295     llvm_cv_os_type="SunOS"
2296     llvm_cv_platform_type="Unix" ;;
2297   *-*-win32*)
2298     llvm_cv_link_all_option="-Wl,--whole-archive"
2299     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300     llvm_cv_os_type="Win32"
2301     llvm_cv_platform_type="Win32" ;;
2302   *-*-mingw*)
2303     llvm_cv_link_all_option="-Wl,--whole-archive"
2304     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305     llvm_cv_os_type="MingW"
2306     llvm_cv_platform_type="Win32" ;;
2307   *)
2308     llvm_cv_link_all_option=""
2309     llvm_cv_no_link_all_option=""
2310     llvm_cv_os_type="Unknown"
2311     llvm_cv_platform_type="Unknown" ;;
2312 esac
2313 fi
2314 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2315 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2316
2317 if test "$llvm_cv_os_type" = "Unknown" ; then
2318   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2319 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2320    { (exit 1); exit 1; }; }
2321 fi
2322
2323 OS=$llvm_cv_os_type
2324
2325
2326 LINKALL=$llvm_cv_link_all_option
2327
2328 NOLINKALL=$llvm_cv_no_link_all_option
2329
2330
2331 case $llvm_cv_platform_type in
2332   Unix)
2333
2334 cat >>confdefs.h <<\_ACEOF
2335 #define LLVM_ON_UNIX 1
2336 _ACEOF
2337
2338     LLVM_ON_UNIX=1
2339
2340     LLVM_ON_WIN32=0
2341
2342     ;;
2343   Win32)
2344
2345 cat >>confdefs.h <<\_ACEOF
2346 #define LLVM_ON_WIN32 1
2347 _ACEOF
2348
2349     LLVM_ON_UNIX=0
2350
2351     LLVM_ON_WIN32=1
2352
2353     ;;
2354 esac
2355
2356 { echo "$as_me:$LINENO: checking target architecture" >&5
2357 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2358 if test "${llvm_cv_target_arch+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   case $target in
2362   i?86-*)                 llvm_cv_target_arch="x86" ;;
2363   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2364   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2365   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2366   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2367   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2368   arm-*)                  llvm_cv_target_arch="ARM" ;;
2369   mips-*)                 llvm_cv_target_arch="Mips" ;;
2370   *)                      llvm_cv_target_arch="Unknown" ;;
2371 esac
2372 fi
2373 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2374 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2375
2376 if test "$llvm_cv_target_arch" = "Unknown" ; then
2377   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2378 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2379 fi
2380
2381 ARCH=$llvm_cv_target_arch
2382
2383
2384 ac_ext=c
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389 if test -n "$ac_tool_prefix"; then
2390   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394 if test "${ac_cv_prog_CC+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$CC"; then
2398   ac_cv_prog_CC="$CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2407     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413 IFS=$as_save_IFS
2414
2415 fi
2416 fi
2417 CC=$ac_cv_prog_CC
2418 if test -n "$CC"; then
2419   { echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6; }
2421 else
2422   { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2424 fi
2425
2426
2427 fi
2428 if test -z "$ac_cv_prog_CC"; then
2429   ac_ct_CC=$CC
2430   # Extract the first word of "gcc", so it can be a program name with args.
2431 set dummy gcc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   if test -n "$ac_ct_CC"; then
2438   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445   for ac_exec_ext in '' $ac_executable_extensions; do
2446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2447     ac_cv_prog_ac_ct_CC="gcc"
2448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449     break 2
2450   fi
2451 done
2452 done
2453 IFS=$as_save_IFS
2454
2455 fi
2456 fi
2457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2458 if test -n "$ac_ct_CC"; then
2459   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2460 echo "${ECHO_T}$ac_ct_CC" >&6; }
2461 else
2462   { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2464 fi
2465
2466   if test "x$ac_ct_CC" = x; then
2467     CC=""
2468   else
2469     case $cross_compiling:$ac_tool_warned in
2470 yes:)
2471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2472 whose name does not start with the host triplet.  If you think this
2473 configuration is useful to you, please write to autoconf@gnu.org." >&5
2474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet.  If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2477 ac_tool_warned=yes ;;
2478 esac
2479     CC=$ac_ct_CC
2480   fi
2481 else
2482   CC="$ac_cv_prog_CC"
2483 fi
2484
2485 if test -z "$CC"; then
2486           if test -n "$ac_tool_prefix"; then
2487     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2488 set dummy ${ac_tool_prefix}cc; ac_word=$2
2489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2491 if test "${ac_cv_prog_CC+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   if test -n "$CC"; then
2495   ac_cv_prog_CC="$CC" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500   IFS=$as_save_IFS
2501   test -z "$as_dir" && as_dir=.
2502   for ac_exec_ext in '' $ac_executable_extensions; do
2503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2504     ac_cv_prog_CC="${ac_tool_prefix}cc"
2505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506     break 2
2507   fi
2508 done
2509 done
2510 IFS=$as_save_IFS
2511
2512 fi
2513 fi
2514 CC=$ac_cv_prog_CC
2515 if test -n "$CC"; then
2516   { echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6; }
2518 else
2519   { echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6; }
2521 fi
2522
2523
2524   fi
2525 fi
2526 if test -z "$CC"; then
2527   # Extract the first word of "cc", so it can be a program name with args.
2528 set dummy cc; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   if test -n "$CC"; then
2535   ac_cv_prog_CC="$CC" # Let the user override the test.
2536 else
2537   ac_prog_rejected=no
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541   IFS=$as_save_IFS
2542   test -z "$as_dir" && as_dir=.
2543   for ac_exec_ext in '' $ac_executable_extensions; do
2544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2545     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2546        ac_prog_rejected=yes
2547        continue
2548      fi
2549     ac_cv_prog_CC="cc"
2550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551     break 2
2552   fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 if test $ac_prog_rejected = yes; then
2558   # We found a bogon in the path, so make sure we never use it.
2559   set dummy $ac_cv_prog_CC
2560   shift
2561   if test $# != 0; then
2562     # We chose a different compiler from the bogus one.
2563     # However, it has the same basename, so the bogon will be chosen
2564     # first if we set CC to just the basename; use the full file name.
2565     shift
2566     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2567   fi
2568 fi
2569 fi
2570 fi
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573   { echo "$as_me:$LINENO: result: $CC" >&5
2574 echo "${ECHO_T}$CC" >&6; }
2575 else
2576   { echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6; }
2578 fi
2579
2580
2581 fi
2582 if test -z "$CC"; then
2583   if test -n "$ac_tool_prefix"; then
2584   for ac_prog in cl.exe
2585   do
2586     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2590 if test "${ac_cv_prog_CC+set}" = set; then
2591   echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593   if test -n "$CC"; then
2594   ac_cv_prog_CC="$CC" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601   for ac_exec_ext in '' $ac_executable_extensions; do
2602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2603     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608 done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 CC=$ac_cv_prog_CC
2614 if test -n "$CC"; then
2615   { echo "$as_me:$LINENO: result: $CC" >&5
2616 echo "${ECHO_T}$CC" >&6; }
2617 else
2618   { echo "$as_me:$LINENO: result: no" >&5
2619 echo "${ECHO_T}no" >&6; }
2620 fi
2621
2622
2623     test -n "$CC" && break
2624   done
2625 fi
2626 if test -z "$CC"; then
2627   ac_ct_CC=$CC
2628   for ac_prog in cl.exe
2629 do
2630   # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 set dummy $ac_prog; ac_word=$2
2632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2635   echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637   if test -n "$ac_ct_CC"; then
2638   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643   IFS=$as_save_IFS
2644   test -z "$as_dir" && as_dir=.
2645   for ac_exec_ext in '' $ac_executable_extensions; do
2646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2647     ac_cv_prog_ac_ct_CC="$ac_prog"
2648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649     break 2
2650   fi
2651 done
2652 done
2653 IFS=$as_save_IFS
2654
2655 fi
2656 fi
2657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2658 if test -n "$ac_ct_CC"; then
2659   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2660 echo "${ECHO_T}$ac_ct_CC" >&6; }
2661 else
2662   { echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6; }
2664 fi
2665
2666
2667   test -n "$ac_ct_CC" && break
2668 done
2669
2670   if test "x$ac_ct_CC" = x; then
2671     CC=""
2672   else
2673     case $cross_compiling:$ac_tool_warned in
2674 yes:)
2675 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2676 whose name does not start with the host triplet.  If you think this
2677 configuration is useful to you, please write to autoconf@gnu.org." >&5
2678 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet.  If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2681 ac_tool_warned=yes ;;
2682 esac
2683     CC=$ac_ct_CC
2684   fi
2685 fi
2686
2687 fi
2688
2689
2690 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2691 See \`config.log' for more details." >&5
2692 echo "$as_me: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&2;}
2694    { (exit 1); exit 1; }; }
2695
2696 # Provide some information about the compiler.
2697 echo "$as_me:$LINENO: checking for C compiler version" >&5
2698 ac_compiler=`set X $ac_compile; echo $2`
2699 { (ac_try="$ac_compiler --version >&5"
2700 case "(($ac_try" in
2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702   *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705   (eval "$ac_compiler --version >&5") 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }
2709 { (ac_try="$ac_compiler -v >&5"
2710 case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_compiler -v >&5") 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }
2719 { (ac_try="$ac_compiler -V >&5"
2720 case "(($ac_try" in
2721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722   *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725   (eval "$ac_compiler -V >&5") 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }
2729
2730 cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h.  */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h.  */
2736
2737 int
2738 main ()
2739 {
2740
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 ac_clean_files_save=$ac_clean_files
2746 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2747 # Try to create an executable without -o first, disregard a.out.
2748 # It will help us diagnose broken compilers, and finding out an intuition
2749 # of exeext.
2750 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2751 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2752 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2753 #
2754 # List of possible output files, starting from the most likely.
2755 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2756 # only as a last resort.  b.out is created by i960 compilers.
2757 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2758 #
2759 # The IRIX 6 linker writes into existing files which may not be
2760 # executable, retaining their permissions.  Remove them first so a
2761 # subsequent execution test works.
2762 ac_rmfiles=
2763 for ac_file in $ac_files
2764 do
2765   case $ac_file in
2766     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2767     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2768   esac
2769 done
2770 rm -f $ac_rmfiles
2771
2772 if { (ac_try="$ac_link_default"
2773 case "(($ac_try" in
2774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775   *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778   (eval "$ac_link_default") 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; then
2782   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2783 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2784 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2785 # so that the user can short-circuit this test for compilers unknown to
2786 # Autoconf.
2787 for ac_file in $ac_files
2788 do
2789   test -f "$ac_file" || continue
2790   case $ac_file in
2791     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2792         ;;
2793     [ab].out )
2794         # We found the default executable, but exeext='' is most
2795         # certainly right.
2796         break;;
2797     *.* )
2798         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2799         then :; else
2800            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2801         fi
2802         # We set ac_cv_exeext here because the later test for it is not
2803         # safe: cross compilers may not add the suffix if given an `-o'
2804         # argument, so we may need to know it at that point already.
2805         # Even if this section looks crufty: it has the advantage of
2806         # actually working.
2807         break;;
2808     * )
2809         break;;
2810   esac
2811 done
2812 test "$ac_cv_exeext" = no && ac_cv_exeext=
2813
2814 else
2815   echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2819 See \`config.log' for more details." >&5
2820 echo "$as_me: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&2;}
2822    { (exit 77); exit 77; }; }
2823 fi
2824
2825 ac_exeext=$ac_cv_exeext
2826 { echo "$as_me:$LINENO: result: $ac_file" >&5
2827 echo "${ECHO_T}$ac_file" >&6; }
2828
2829 # Check that the compiler produces executables we can run.  If not, either
2830 # the compiler is broken, or we cross compile.
2831 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2832 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2833 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2834 # If not cross compiling, check that we can run a simple program.
2835 if test "$cross_compiling" != yes; then
2836   if { ac_try='./$ac_file'
2837   { (case "(($ac_try" in
2838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839   *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842   (eval "$ac_try") 2>&5
2843   ac_status=$?
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); }; }; then
2846     cross_compiling=no
2847   else
2848     if test "$cross_compiling" = maybe; then
2849         cross_compiling=yes
2850     else
2851         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2852 If you meant to cross compile, use \`--host'.
2853 See \`config.log' for more details." >&5
2854 echo "$as_me: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details." >&2;}
2857    { (exit 1); exit 1; }; }
2858     fi
2859   fi
2860 fi
2861 { echo "$as_me:$LINENO: result: yes" >&5
2862 echo "${ECHO_T}yes" >&6; }
2863
2864 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2865 ac_clean_files=$ac_clean_files_save
2866 # Check that the compiler produces executables we can run.  If not, either
2867 # the compiler is broken, or we cross compile.
2868 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2869 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2870 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2871 echo "${ECHO_T}$cross_compiling" >&6; }
2872
2873 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2874 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2875 if { (ac_try="$ac_link"
2876 case "(($ac_try" in
2877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878   *) ac_try_echo=$ac_try;;
2879 esac
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881   (eval "$ac_link") 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }; then
2885   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2886 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2887 # work properly (i.e., refer to `conftest.exe'), while it won't with
2888 # `rm'.
2889 for ac_file in conftest.exe conftest conftest.*; do
2890   test -f "$ac_file" || continue
2891   case $ac_file in
2892     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2893     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2894           break;;
2895     * ) break;;
2896   esac
2897 done
2898 else
2899   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2900 See \`config.log' for more details." >&5
2901 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&2;}
2903    { (exit 1); exit 1; }; }
2904 fi
2905
2906 rm -f conftest$ac_cv_exeext
2907 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2908 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2909
2910 rm -f conftest.$ac_ext
2911 EXEEXT=$ac_cv_exeext
2912 ac_exeext=$EXEEXT
2913 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2914 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2915 if test "${ac_cv_objext+set}" = set; then
2916   echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924
2925 int
2926 main ()
2927 {
2928
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.o conftest.obj
2934 if { (ac_try="$ac_compile"
2935 case "(($ac_try" in
2936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937   *) ac_try_echo=$ac_try;;
2938 esac
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940   (eval "$ac_compile") 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }; then
2944   for ac_file in conftest.o conftest.obj conftest.*; do
2945   test -f "$ac_file" || continue;
2946   case $ac_file in
2947     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2948     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2949        break;;
2950   esac
2951 done
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2957 See \`config.log' for more details." >&5
2958 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&2;}
2960    { (exit 1); exit 1; }; }
2961 fi
2962
2963 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2964 fi
2965 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2966 echo "${ECHO_T}$ac_cv_objext" >&6; }
2967 OBJEXT=$ac_cv_objext
2968 ac_objext=$OBJEXT
2969 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2970 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2971 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h.  */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h.  */
2980
2981 int
2982 main ()
2983 {
2984 #ifndef __GNUC__
2985        choke me
2986 #endif
2987
2988   ;
2989   return 0;
2990 }
2991 _ACEOF
2992 rm -f conftest.$ac_objext
2993 if { (ac_try="$ac_compile"
2994 case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_compile") 2>conftest.er1
3000   ac_status=$?
3001   grep -v '^ *+' conftest.er1 >conftest.err
3002   rm -f conftest.er1
3003   cat conftest.err >&5
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); } &&
3006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; } &&
3016          { ac_try='test -s conftest.$ac_objext'
3017   { (case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022   (eval "$ac_try") 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; }; then
3026   ac_compiler_gnu=yes
3027 else
3028   echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031         ac_compiler_gnu=no
3032 fi
3033
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3036
3037 fi
3038 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3039 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3040 GCC=`test $ac_compiler_gnu = yes && echo yes`
3041 ac_test_CFLAGS=${CFLAGS+set}
3042 ac_save_CFLAGS=$CFLAGS
3043 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3044 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3045 if test "${ac_cv_prog_cc_g+set}" = set; then
3046   echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048   ac_save_c_werror_flag=$ac_c_werror_flag
3049    ac_c_werror_flag=yes
3050    ac_cv_prog_cc_g=no
3051    CFLAGS="-g"
3052    cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h.  */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h.  */
3058
3059 int
3060 main ()
3061 {
3062
3063   ;
3064   return 0;
3065 }
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (ac_try="$ac_compile"
3069 case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_compile") 2>conftest.er1
3075   ac_status=$?
3076   grep -v '^ *+' conftest.er1 >conftest.err
3077   rm -f conftest.er1
3078   cat conftest.err >&5
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); } &&
3081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }; } &&
3091          { ac_try='test -s conftest.$ac_objext'
3092   { (case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_try") 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }; }; then
3101   ac_cv_prog_cc_g=yes
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106         CFLAGS=""
3107       cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3113
3114 int
3115 main ()
3116 {
3117
3118   ;
3119   return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_compile") 2>conftest.er1
3130   ac_status=$?
3131   grep -v '^ *+' conftest.er1 >conftest.err
3132   rm -f conftest.er1
3133   cat conftest.err >&5
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); } &&
3136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }; } &&
3146          { ac_try='test -s conftest.$ac_objext'
3147   { (case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_try") 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }; }; then
3156   :
3157 else
3158   echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161         ac_c_werror_flag=$ac_save_c_werror_flag
3162          CFLAGS="-g"
3163          cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h.  */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h.  */
3169
3170 int
3171 main ()
3172 {
3173
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (ac_try="$ac_compile"
3180 case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_compile") 2>conftest.er1
3186   ac_status=$?
3187   grep -v '^ *+' conftest.er1 >conftest.err
3188   rm -f conftest.er1
3189   cat conftest.err >&5
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); } &&
3192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3199   ac_status=$?
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); }; } &&
3202          { ac_try='test -s conftest.$ac_objext'
3203   { (case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208   (eval "$ac_try") 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; }; then
3212   ac_cv_prog_cc_g=yes
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217
3218 fi
3219
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 fi
3222
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 fi
3225
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227    ac_c_werror_flag=$ac_save_c_werror_flag
3228 fi
3229 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3230 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3231 if test "$ac_test_CFLAGS" = set; then
3232   CFLAGS=$ac_save_CFLAGS
3233 elif test $ac_cv_prog_cc_g = yes; then
3234   if test "$GCC" = yes; then
3235     CFLAGS="-g -O2"
3236   else
3237     CFLAGS="-g"
3238   fi
3239 else
3240   if test "$GCC" = yes; then
3241     CFLAGS="-O2"
3242   else
3243     CFLAGS=
3244   fi
3245 fi
3246 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3247 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_cc_c89+set}" = set; then
3249   echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251   ac_cv_prog_cc_c89=no
3252 ac_save_CC=$CC
3253 cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259 #include <stdarg.h>
3260 #include <stdio.h>
3261 #include <sys/types.h>
3262 #include <sys/stat.h>
3263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3264 struct buf { int x; };
3265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266 static char *e (p, i)
3267      char **p;
3268      int i;
3269 {
3270   return p[i];
3271 }
3272 static char *f (char * (*g) (char **, int), char **p, ...)
3273 {
3274   char *s;
3275   va_list v;
3276   va_start (v,p);
3277   s = g (p, va_arg (v,int));
3278   va_end (v);
3279   return s;
3280 }
3281
3282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3283    function prototypes and stuff, but not '\xHH' hex character constants.
3284    These don't provoke an error unfortunately, instead are silently treated
3285    as 'x'.  The following induces an error, until -std is added to get
3286    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3287    array size at least.  It's necessary to write '\x00'==0 to get something
3288    that's true only with -std.  */
3289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290
3291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292    inside strings and character constants.  */
3293 #define FOO(x) 'x'
3294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3295
3296 int test (int i, double x);
3297 struct s1 {int (*f) (int a);};
3298 struct s2 {int (*f) (double a);};
3299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300 int argc;
3301 char **argv;
3302 int
3303 main ()
3304 {
3305 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3306   ;
3307   return 0;
3308 }
3309 _ACEOF
3310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3312 do
3313   CC="$ac_save_CC $ac_arg"
3314   rm -f conftest.$ac_objext
3315 if { (ac_try="$ac_compile"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321   (eval "$ac_compile") 2>conftest.er1
3322   ac_status=$?
3323   grep -v '^ *+' conftest.er1 >conftest.err
3324   rm -f conftest.er1
3325   cat conftest.err >&5
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } &&
3328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3335   ac_status=$?
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); }; } &&
3338          { ac_try='test -s conftest.$ac_objext'
3339   { (case "(($ac_try" in
3340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341   *) ac_try_echo=$ac_try;;
3342 esac
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344   (eval "$ac_try") 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); }; }; then
3348   ac_cv_prog_cc_c89=$ac_arg
3349 else
3350   echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353
3354 fi
3355
3356 rm -f core conftest.err conftest.$ac_objext
3357   test "x$ac_cv_prog_cc_c89" != "xno" && break
3358 done
3359 rm -f conftest.$ac_ext
3360 CC=$ac_save_CC
3361
3362 fi
3363 # AC_CACHE_VAL
3364 case "x$ac_cv_prog_cc_c89" in
3365   x)
3366     { echo "$as_me:$LINENO: result: none needed" >&5
3367 echo "${ECHO_T}none needed" >&6; } ;;
3368   xno)
3369     { echo "$as_me:$LINENO: result: unsupported" >&5
3370 echo "${ECHO_T}unsupported" >&6; } ;;
3371   *)
3372     CC="$CC $ac_cv_prog_cc_c89"
3373     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3374 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3375 esac
3376
3377
3378 ac_ext=c
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3391 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3392 # On Suns, sometimes $CPP names a directory.
3393 if test -n "$CPP" && test -d "$CPP"; then
3394   CPP=
3395 fi
3396 if test -z "$CPP"; then
3397   if test "${ac_cv_prog_CPP+set}" = set; then
3398   echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400       # Double quotes because CPP needs to be expanded
3401     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3402     do
3403       ac_preproc_ok=false
3404 for ac_c_preproc_warn_flag in '' yes
3405 do
3406   # Use a header file that comes with gcc, so configuring glibc
3407   # with a fresh cross-compiler works.
3408   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3409   # <limits.h> exists even on freestanding compilers.
3410   # On the NeXT, cc -E runs the code through the compiler's parser,
3411   # not just through cpp. "Syntax error" is here to catch this case.
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #ifdef __STDC__
3419 # include <limits.h>
3420 #else
3421 # include <assert.h>
3422 #endif
3423                      Syntax error
3424 _ACEOF
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3432   ac_status=$?
3433   grep -v '^ *+' conftest.er1 >conftest.err
3434   rm -f conftest.er1
3435   cat conftest.err >&5
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); } >/dev/null; then
3438   if test -s conftest.err; then
3439     ac_cpp_err=$ac_c_preproc_warn_flag
3440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3441   else
3442     ac_cpp_err=
3443   fi
3444 else
3445   ac_cpp_err=yes
3446 fi
3447 if test -z "$ac_cpp_err"; then
3448   :
3449 else
3450   echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453   # Broken: fails on valid input.
3454 continue
3455 fi
3456
3457 rm -f conftest.err conftest.$ac_ext
3458
3459   # OK, works on sane cases.  Now check whether nonexistent headers
3460   # can be detected and how.
3461   cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h.  */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h.  */
3467 #include <ac_nonexistent.h>
3468 _ACEOF
3469 if { (ac_try="$ac_cpp conftest.$ac_ext"
3470 case "(($ac_try" in
3471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472   *) ac_try_echo=$ac_try;;
3473 esac
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3476   ac_status=$?
3477   grep -v '^ *+' conftest.er1 >conftest.err
3478   rm -f conftest.er1
3479   cat conftest.err >&5
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } >/dev/null; then
3482   if test -s conftest.err; then
3483     ac_cpp_err=$ac_c_preproc_warn_flag
3484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3485   else
3486     ac_cpp_err=
3487   fi
3488 else
3489   ac_cpp_err=yes
3490 fi
3491 if test -z "$ac_cpp_err"; then
3492   # Broken: success on invalid input.
3493 continue
3494 else
3495   echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498   # Passes both tests.
3499 ac_preproc_ok=:
3500 break
3501 fi
3502
3503 rm -f conftest.err conftest.$ac_ext
3504
3505 done
3506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507 rm -f conftest.err conftest.$ac_ext
3508 if $ac_preproc_ok; then
3509   break
3510 fi
3511
3512     done
3513     ac_cv_prog_CPP=$CPP
3514
3515 fi
3516   CPP=$ac_cv_prog_CPP
3517 else
3518   ac_cv_prog_CPP=$CPP
3519 fi
3520 { echo "$as_me:$LINENO: result: $CPP" >&5
3521 echo "${ECHO_T}$CPP" >&6; }
3522 ac_preproc_ok=false
3523 for ac_c_preproc_warn_flag in '' yes
3524 do
3525   # Use a header file that comes with gcc, so configuring glibc
3526   # with a fresh cross-compiler works.
3527   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3528   # <limits.h> exists even on freestanding compilers.
3529   # On the NeXT, cc -E runs the code through the compiler's parser,
3530   # not just through cpp. "Syntax error" is here to catch this case.
3531   cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537 #ifdef __STDC__
3538 # include <limits.h>
3539 #else
3540 # include <assert.h>
3541 #endif
3542                      Syntax error
3543 _ACEOF
3544 if { (ac_try="$ac_cpp conftest.$ac_ext"
3545 case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3551   ac_status=$?
3552   grep -v '^ *+' conftest.er1 >conftest.err
3553   rm -f conftest.er1
3554   cat conftest.err >&5
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); } >/dev/null; then
3557   if test -s conftest.err; then
3558     ac_cpp_err=$ac_c_preproc_warn_flag
3559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3560   else
3561     ac_cpp_err=
3562   fi
3563 else
3564   ac_cpp_err=yes
3565 fi
3566 if test -z "$ac_cpp_err"; then
3567   :
3568 else
3569   echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572   # Broken: fails on valid input.
3573 continue
3574 fi
3575
3576 rm -f conftest.err conftest.$ac_ext
3577
3578   # OK, works on sane cases.  Now check whether nonexistent headers
3579   # can be detected and how.
3580   cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h.  */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h.  */
3586 #include <ac_nonexistent.h>
3587 _ACEOF
3588 if { (ac_try="$ac_cpp conftest.$ac_ext"
3589 case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } >/dev/null; then
3601   if test -s conftest.err; then
3602     ac_cpp_err=$ac_c_preproc_warn_flag
3603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3604   else
3605     ac_cpp_err=
3606   fi
3607 else
3608   ac_cpp_err=yes
3609 fi
3610 if test -z "$ac_cpp_err"; then
3611   # Broken: success on invalid input.
3612 continue
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617   # Passes both tests.
3618 ac_preproc_ok=:
3619 break
3620 fi
3621
3622 rm -f conftest.err conftest.$ac_ext
3623
3624 done
3625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626 rm -f conftest.err conftest.$ac_ext
3627 if $ac_preproc_ok; then
3628   :
3629 else
3630   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3631 See \`config.log' for more details." >&5
3632 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&2;}
3634    { (exit 1); exit 1; }; }
3635 fi
3636
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642
3643
3644 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3645 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3646 if test "${ac_cv_path_GREP+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   # Extract the first word of "grep ggrep" to use in msg output
3650 if test -z "$GREP"; then
3651 set dummy grep ggrep; ac_prog_name=$2
3652 if test "${ac_cv_path_GREP+set}" = set; then
3653   echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655   ac_path_GREP_found=false
3656 # Loop through the user's path and test for each of PROGNAME-LIST
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3659 do
3660   IFS=$as_save_IFS
3661   test -z "$as_dir" && as_dir=.
3662   for ac_prog in grep ggrep; do
3663   for ac_exec_ext in '' $ac_executable_extensions; do
3664     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3665     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3666     # Check for GNU ac_path_GREP and select it if it is found.
3667   # Check for GNU $ac_path_GREP
3668 case `"$ac_path_GREP" --version 2>&1` in
3669 *GNU*)
3670   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3671 *)
3672   ac_count=0
3673   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3674   while :
3675   do
3676     cat "conftest.in" "conftest.in" >"conftest.tmp"
3677     mv "conftest.tmp" "conftest.in"
3678     cp "conftest.in" "conftest.nl"
3679     echo 'GREP' >> "conftest.nl"
3680     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3681     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3682     ac_count=`expr $ac_count + 1`
3683     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3684       # Best one so far, save it but keep looking for a better one
3685       ac_cv_path_GREP="$ac_path_GREP"
3686       ac_path_GREP_max=$ac_count
3687     fi
3688     # 10*(2^10) chars as input seems more than enough
3689     test $ac_count -gt 10 && break
3690   done
3691   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3692 esac
3693
3694
3695     $ac_path_GREP_found && break 3
3696   done
3697 done
3698
3699 done
3700 IFS=$as_save_IFS
3701
3702
3703 fi
3704
3705 GREP="$ac_cv_path_GREP"
3706 if test -z "$GREP"; then
3707   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3708 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3709    { (exit 1); exit 1; }; }
3710 fi
3711
3712 else
3713   ac_cv_path_GREP=$GREP
3714 fi
3715
3716
3717 fi
3718 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3719 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3720  GREP="$ac_cv_path_GREP"
3721
3722
3723 { echo "$as_me:$LINENO: checking for egrep" >&5
3724 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3725 if test "${ac_cv_path_EGREP+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3729    then ac_cv_path_EGREP="$GREP -E"
3730    else
3731      # Extract the first word of "egrep" to use in msg output
3732 if test -z "$EGREP"; then
3733 set dummy egrep; ac_prog_name=$2
3734 if test "${ac_cv_path_EGREP+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   ac_path_EGREP_found=false
3738 # Loop through the user's path and test for each of PROGNAME-LIST
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3741 do
3742   IFS=$as_save_IFS
3743   test -z "$as_dir" && as_dir=.
3744   for ac_prog in egrep; do
3745   for ac_exec_ext in '' $ac_executable_extensions; do
3746     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3747     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3748     # Check for GNU ac_path_EGREP and select it if it is found.
3749   # Check for GNU $ac_path_EGREP
3750 case `"$ac_path_EGREP" --version 2>&1` in
3751 *GNU*)
3752   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3753 *)
3754   ac_count=0
3755   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3756   while :
3757   do
3758     cat "conftest.in" "conftest.in" >"conftest.tmp"
3759     mv "conftest.tmp" "conftest.in"
3760     cp "conftest.in" "conftest.nl"
3761     echo 'EGREP' >> "conftest.nl"
3762     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3763     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3764     ac_count=`expr $ac_count + 1`
3765     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3766       # Best one so far, save it but keep looking for a better one
3767       ac_cv_path_EGREP="$ac_path_EGREP"
3768       ac_path_EGREP_max=$ac_count
3769     fi
3770     # 10*(2^10) chars as input seems more than enough
3771     test $ac_count -gt 10 && break
3772   done
3773   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3774 esac
3775
3776
3777     $ac_path_EGREP_found && break 3
3778   done
3779 done
3780
3781 done
3782 IFS=$as_save_IFS
3783
3784
3785 fi
3786
3787 EGREP="$ac_cv_path_EGREP"
3788 if test -z "$EGREP"; then
3789   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3790 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3791    { (exit 1); exit 1; }; }
3792 fi
3793
3794 else
3795   ac_cv_path_EGREP=$EGREP
3796 fi
3797
3798
3799    fi
3800 fi
3801 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3802 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3803  EGREP="$ac_cv_path_EGREP"
3804
3805
3806 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3808 if test "${ac_cv_header_stdc+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h.  */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h.  */
3817 #include <stdlib.h>
3818 #include <stdarg.h>
3819 #include <string.h>
3820 #include <float.h>
3821
3822 int
3823 main ()
3824 {
3825
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (ac_try="$ac_compile"
3832 case "(($ac_try" in
3833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834   *) ac_try_echo=$ac_try;;
3835 esac
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837   (eval "$ac_compile") 2>conftest.er1
3838   ac_status=$?
3839   grep -v '^ *+' conftest.er1 >conftest.err
3840   rm -f conftest.er1
3841   cat conftest.err >&5
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } &&
3844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3851   ac_status=$?
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); }; } &&
3854          { ac_try='test -s conftest.$ac_objext'
3855   { (case "(($ac_try" in
3856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857   *) ac_try_echo=$ac_try;;
3858 esac
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860   (eval "$ac_try") 2>&5
3861   ac_status=$?
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); }; }; then
3864   ac_cv_header_stdc=yes
3865 else
3866   echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869         ac_cv_header_stdc=no
3870 fi
3871
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873
3874 if test $ac_cv_header_stdc = yes; then
3875   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3876   cat >conftest.$ac_ext <<_ACEOF
3877 /* confdefs.h.  */
3878 _ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h.  */
3882 #include <string.h>
3883
3884 _ACEOF
3885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3886   $EGREP "memchr" >/dev/null 2>&1; then
3887   :
3888 else
3889   ac_cv_header_stdc=no
3890 fi
3891 rm -f conftest*
3892
3893 fi
3894
3895 if test $ac_cv_header_stdc = yes; then
3896   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3897   cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #include <stdlib.h>
3904
3905 _ACEOF
3906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907   $EGREP "free" >/dev/null 2>&1; then
3908   :
3909 else
3910   ac_cv_header_stdc=no
3911 fi
3912 rm -f conftest*
3913
3914 fi
3915
3916 if test $ac_cv_header_stdc = yes; then
3917   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3918   if test "$cross_compiling" = yes; then
3919   :
3920 else
3921   cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h.  */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h.  */
3927 #include <ctype.h>
3928 #include <stdlib.h>
3929 #if ((' ' & 0x0FF) == 0x020)
3930 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3931 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3932 #else
3933 # define ISLOWER(c) \
3934                    (('a' <= (c) && (c) <= 'i') \
3935                      || ('j' <= (c) && (c) <= 'r') \
3936                      || ('s' <= (c) && (c) <= 'z'))
3937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3938 #endif
3939
3940 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3941 int
3942 main ()
3943 {
3944   int i;
3945   for (i = 0; i < 256; i++)
3946     if (XOR (islower (i), ISLOWER (i))
3947         || toupper (i) != TOUPPER (i))
3948       return 2;
3949   return 0;
3950 }
3951 _ACEOF
3952 rm -f conftest$ac_exeext
3953 if { (ac_try="$ac_link"
3954 case "(($ac_try" in
3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956   *) ac_try_echo=$ac_try;;
3957 esac
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959   (eval "$ac_link") 2>&5
3960   ac_status=$?
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3963   { (case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_try") 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); }; }; then
3972   :
3973 else
3974   echo "$as_me: program exited with status $ac_status" >&5
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 ( exit $ac_status )
3979 ac_cv_header_stdc=no
3980 fi
3981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3982 fi
3983
3984
3985 fi
3986 fi
3987 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3988 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3989 if test $ac_cv_header_stdc = yes; then
3990
3991 cat >>confdefs.h <<\_ACEOF
3992 #define STDC_HEADERS 1
3993 _ACEOF
3994
3995 fi
3996
3997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4008                   inttypes.h stdint.h unistd.h
4009 do
4010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h.  */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h.  */
4022 $ac_includes_default
4023
4024 #include <$ac_header>
4025 _ACEOF
4026 rm -f conftest.$ac_objext
4027 if { (ac_try="$ac_compile"
4028 case "(($ac_try" in
4029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030   *) ac_try_echo=$ac_try;;
4031 esac
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033   (eval "$ac_compile") 2>conftest.er1
4034   ac_status=$?
4035   grep -v '^ *+' conftest.er1 >conftest.err
4036   rm -f conftest.er1
4037   cat conftest.err >&5
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); } &&
4040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4047   ac_status=$?
4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); }; } &&
4050          { ac_try='test -s conftest.$ac_objext'
4051   { (case "(($ac_try" in
4052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053   *) ac_try_echo=$ac_try;;
4054 esac
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056   (eval "$ac_try") 2>&5
4057   ac_status=$?
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); }; }; then
4060   eval "$as_ac_Header=yes"
4061 else
4062   echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065         eval "$as_ac_Header=no"
4066 fi
4067
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 fi
4070 ac_res=`eval echo '${'$as_ac_Header'}'`
4071                { echo "$as_me:$LINENO: result: $ac_res" >&5
4072 echo "${ECHO_T}$ac_res" >&6; }
4073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4074   cat >>confdefs.h <<_ACEOF
4075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4076 _ACEOF
4077
4078 fi
4079
4080 done
4081
4082
4083 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4084 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4085 if test "${ac_cv_c_bigendian+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   # See if sys/param.h defines the BYTE_ORDER macro.
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 #include <sys/types.h>
4096 #include <sys/param.h>
4097
4098 int
4099 main ()
4100 {
4101 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4102  bogus endian macros
4103 #endif
4104
4105   ;
4106   return 0;
4107 }
4108 _ACEOF
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4111 case "(($ac_try" in
4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113   *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116   (eval "$ac_compile") 2>conftest.er1
4117   ac_status=$?
4118   grep -v '^ *+' conftest.er1 >conftest.err
4119   rm -f conftest.er1
4120   cat conftest.err >&5
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } &&
4123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4130   ac_status=$?
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); }; } &&
4133          { ac_try='test -s conftest.$ac_objext'
4134   { (case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_try") 2>&5
4140   ac_status=$?
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); }; }; then
4143   # It does; now see whether it defined to BIG_ENDIAN or not.
4144 cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150 #include <sys/types.h>
4151 #include <sys/param.h>
4152
4153 int
4154 main ()
4155 {
4156 #if BYTE_ORDER != BIG_ENDIAN
4157  not big endian
4158 #endif
4159
4160   ;
4161   return 0;
4162 }
4163 _ACEOF
4164 rm -f conftest.$ac_objext
4165 if { (ac_try="$ac_compile"
4166 case "(($ac_try" in
4167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168   *) ac_try_echo=$ac_try;;
4169 esac
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171   (eval "$ac_compile") 2>conftest.er1
4172   ac_status=$?
4173   grep -v '^ *+' conftest.er1 >conftest.err
4174   rm -f conftest.er1
4175   cat conftest.err >&5
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); } &&
4178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4185   ac_status=$?
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); }; } &&
4188          { ac_try='test -s conftest.$ac_objext'
4189   { (case "(($ac_try" in
4190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191   *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194   (eval "$ac_try") 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); }; }; then
4198   ac_cv_c_bigendian=yes
4199 else
4200   echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203         ac_cv_c_bigendian=no
4204 fi
4205
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 else
4208   echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211         # It does not; compile a test program.
4212 if test "$cross_compiling" = yes; then
4213   # try to guess the endianness by grepping values into an object file
4214   ac_cv_c_bigendian=unknown
4215   cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h.  */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h.  */
4221 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4222 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4223 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4224 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4225 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4226 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4227 int
4228 main ()
4229 {
4230  _ascii (); _ebcdic ();
4231   ;
4232   return 0;
4233 }
4234 _ACEOF
4235 rm -f conftest.$ac_objext
4236 if { (ac_try="$ac_compile"
4237 case "(($ac_try" in
4238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239   *) ac_try_echo=$ac_try;;
4240 esac
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242   (eval "$ac_compile") 2>conftest.er1
4243   ac_status=$?
4244   grep -v '^ *+' conftest.er1 >conftest.err
4245   rm -f conftest.er1
4246   cat conftest.err >&5
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); } &&
4249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4256   ac_status=$?
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); }; } &&
4259          { ac_try='test -s conftest.$ac_objext'
4260   { (case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_try") 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; }; then
4269   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4270   ac_cv_c_bigendian=yes
4271 fi
4272 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4273   if test "$ac_cv_c_bigendian" = unknown; then
4274     ac_cv_c_bigendian=no
4275   else
4276     # finding both strings is unlikely to happen, but who knows?
4277     ac_cv_c_bigendian=unknown
4278   fi
4279 fi
4280 else
4281   echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4283
4284
4285 fi
4286
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 else
4289   cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295 $ac_includes_default
4296 int
4297 main ()
4298 {
4299
4300   /* Are we little or big endian?  From Harbison&Steele.  */
4301   union
4302   {
4303     long int l;
4304     char c[sizeof (long int)];
4305   } u;
4306   u.l = 1;
4307   return u.c[sizeof (long int) - 1] == 1;
4308
4309   ;
4310   return 0;
4311 }
4312 _ACEOF
4313 rm -f conftest$ac_exeext
4314 if { (ac_try="$ac_link"
4315 case "(($ac_try" in
4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317   *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320   (eval "$ac_link") 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4324   { (case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329   (eval "$ac_try") 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   ac_cv_c_bigendian=no
4334 else
4335   echo "$as_me: program exited with status $ac_status" >&5
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4338
4339 ( exit $ac_status )
4340 ac_cv_c_bigendian=yes
4341 fi
4342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4343 fi
4344
4345
4346 fi
4347
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 fi
4350 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4351 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4352 case $ac_cv_c_bigendian in
4353   yes)
4354     ENDIAN=big
4355  ;;
4356   no)
4357     ENDIAN=little
4358  ;;
4359   *)
4360     { { echo "$as_me:$LINENO: error: unknown endianness
4361 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4362 echo "$as_me: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4364    { (exit 1); exit 1; }; } ;;
4365 esac
4366
4367
4368 if test "$cross_compiling" = yes; then
4369   LLVM_CROSS_COMPILING=1
4370
4371
4372 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4373 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4374 if test "${ac_cv_build_exeext+set}" = set; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4378   ac_cv_build_exeext=.exe
4379 else
4380   ac_build_prefix=${build_alias}-
4381
4382   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4383 set dummy ${ac_build_prefix}gcc; ac_word=$2
4384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4386 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4387   echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389   if test -n "$BUILD_CC"; then
4390   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395   IFS=$as_save_IFS
4396   test -z "$as_dir" && as_dir=.
4397   for ac_exec_ext in '' $ac_executable_extensions; do
4398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4399     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401     break 2
4402   fi
4403 done
4404 done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 BUILD_CC=$ac_cv_prog_BUILD_CC
4410 if test -n "$BUILD_CC"; then
4411   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4412 echo "${ECHO_T}$BUILD_CC" >&6; }
4413 else
4414   { echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; }
4416 fi
4417
4418
4419   if test -z "$BUILD_CC"; then
4420      # Extract the first word of "gcc", so it can be a program name with args.
4421 set dummy gcc; ac_word=$2
4422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4424 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   if test -n "$BUILD_CC"; then
4428   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435   for ac_exec_ext in '' $ac_executable_extensions; do
4436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4437     ac_cv_prog_BUILD_CC="gcc"
4438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442 done
4443 IFS=$as_save_IFS
4444
4445 fi
4446 fi
4447 BUILD_CC=$ac_cv_prog_BUILD_CC
4448 if test -n "$BUILD_CC"; then
4449   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4450 echo "${ECHO_T}$BUILD_CC" >&6; }
4451 else
4452   { echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6; }
4454 fi
4455
4456
4457      if test -z "$BUILD_CC"; then
4458        # Extract the first word of "cc", so it can be a program name with args.
4459 set dummy cc; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   if test -n "$BUILD_CC"; then
4466   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4467 else
4468   ac_prog_rejected=no
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472   IFS=$as_save_IFS
4473   test -z "$as_dir" && as_dir=.
4474   for ac_exec_ext in '' $ac_executable_extensions; do
4475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4477        ac_prog_rejected=yes
4478        continue
4479      fi
4480     ac_cv_prog_BUILD_CC="cc"
4481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485 done
4486 IFS=$as_save_IFS
4487
4488 if test $ac_prog_rejected = yes; then
4489   # We found a bogon in the path, so make sure we never use it.
4490   set dummy $ac_cv_prog_BUILD_CC
4491   shift
4492   if test $# != 0; then
4493     # We chose a different compiler from the bogus one.
4494     # However, it has the same basename, so the bogon will be chosen
4495     # first if we set BUILD_CC to just the basename; use the full file name.
4496     shift
4497     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4498   fi
4499 fi
4500 fi
4501 fi
4502 BUILD_CC=$ac_cv_prog_BUILD_CC
4503 if test -n "$BUILD_CC"; then
4504   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4505 echo "${ECHO_T}$BUILD_CC" >&6; }
4506 else
4507   { echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6; }
4509 fi
4510
4511
4512      fi
4513   fi
4514   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4515 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4516    { (exit 1); exit 1; }; }
4517   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4518   rm -f conftest*
4519   echo 'int main () { return 0; }' > conftest.$ac_ext
4520   ac_cv_build_exeext=
4521   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4522   (eval $ac_build_link) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); }; then
4526     for file in conftest.*; do
4527       case $file in
4528       *.c | *.o | *.obj) ;;
4529       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4530       esac
4531     done
4532   else
4533     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4534 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4535    { (exit 1); exit 1; }; }
4536   fi
4537   rm -f conftest*
4538   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4539 fi
4540 fi
4541
4542 BUILD_EXEEXT=""
4543 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4544 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4545 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4546 ac_build_exeext=$BUILD_EXEEXT
4547
4548 else
4549   LLVM_CROSS_COMPILING=0
4550
4551 fi
4552
4553 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4554   cvsbuild="yes"
4555   optimize="no"
4556   CVSBUILD=CVSBUILD=1
4557
4558 else
4559   cvsbuild="no"
4560   optimize="yes"
4561 fi
4562
4563
4564 # Check whether --enable-optimized was given.
4565 if test "${enable_optimized+set}" = set; then
4566   enableval=$enable_optimized;
4567 else
4568   enableval=$optimize
4569 fi
4570
4571 if test ${enableval} = "no" ; then
4572   ENABLE_OPTIMIZED=
4573
4574 else
4575   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4576
4577 fi
4578
4579 # Check whether --enable-assertions was given.
4580 if test "${enable_assertions+set}" = set; then
4581   enableval=$enable_assertions;
4582 else
4583   enableval="yes"
4584 fi
4585
4586 if test ${enableval} = "yes" ; then
4587   DISABLE_ASSERTIONS=
4588
4589 else
4590   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4591
4592 fi
4593
4594 # Check whether --enable-expensive-checks was given.
4595 if test "${enable_expensive_checks+set}" = set; then
4596   enableval=$enable_expensive_checks;
4597 else
4598   enableval="no"
4599 fi
4600
4601 if test ${enableval} = "yes" ; then
4602   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4603
4604   EXPENSIVE_CHECKS=yes
4605
4606 else
4607   ENABLE_EXPENSIVE_CHECKS=
4608
4609   EXPENSIVE_CHECKS=no
4610
4611 fi
4612
4613 # Check whether --enable-debug-runtime was given.
4614 if test "${enable_debug_runtime+set}" = set; then
4615   enableval=$enable_debug_runtime;
4616 else
4617   enableval=no
4618 fi
4619
4620 if test ${enableval} = "no" ; then
4621   DEBUG_RUNTIME=
4622
4623 else
4624   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4625
4626 fi
4627
4628 # Check whether --enable-jit was given.
4629 if test "${enable_jit+set}" = set; then
4630   enableval=$enable_jit;
4631 else
4632   enableval=default
4633 fi
4634
4635 if test ${enableval} = "no"
4636 then
4637   JIT=
4638
4639 else
4640   case "$llvm_cv_target_arch" in
4641     x86)     TARGET_HAS_JIT=1
4642  ;;
4643     Sparc)   TARGET_HAS_JIT=0
4644  ;;
4645     PowerPC) TARGET_HAS_JIT=1
4646  ;;
4647     x86_64)  TARGET_HAS_JIT=1
4648  ;;
4649     Alpha)   TARGET_HAS_JIT=1
4650  ;;
4651     IA64)    TARGET_HAS_JIT=0
4652  ;;
4653     ARM)     TARGET_HAS_JIT=0
4654  ;;
4655     Mips)    TARGET_HAS_JIT=0
4656  ;;
4657     *)       TARGET_HAS_JIT=0
4658  ;;
4659   esac
4660 fi
4661
4662 # Check whether --enable-doxygen was given.
4663 if test "${enable_doxygen+set}" = set; then
4664   enableval=$enable_doxygen;
4665 else
4666   enableval=default
4667 fi
4668
4669 case "$enableval" in
4670   yes) ENABLE_DOXYGEN=1
4671  ;;
4672   no)  ENABLE_DOXYGEN=0
4673  ;;
4674   default) ENABLE_DOXYGEN=0
4675  ;;
4676   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4677 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4678    { (exit 1); exit 1; }; } ;;
4679 esac
4680
4681 # Check whether --enable-threads was given.
4682 if test "${enable_threads+set}" = set; then
4683   enableval=$enable_threads;
4684 else
4685   enableval=default
4686 fi
4687
4688 case "$enableval" in
4689   yes) ENABLE_THREADS=1
4690  ;;
4691   no)  ENABLE_THREADS=0
4692  ;;
4693   default) ENABLE_THREADS=1
4694  ;;
4695   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4696 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4697    { (exit 1); exit 1; }; } ;;
4698 esac
4699
4700 cat >>confdefs.h <<_ACEOF
4701 #define ENABLE_THREADS $ENABLE_THREADS
4702 _ACEOF
4703
4704
4705 # Check whether --enable-pic was given.
4706 if test "${enable_pic+set}" = set; then
4707   enableval=$enable_pic;
4708 else
4709   enableval=default
4710 fi
4711
4712 case "$enableval" in
4713   yes) ENABLE_PIC=1
4714  ;;
4715   no)  ENABLE_PIC=0
4716  ;;
4717   default) ENABLE_PIC=0
4718  ;;
4719   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4720 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4721    { (exit 1); exit 1; }; } ;;
4722 esac
4723
4724 cat >>confdefs.h <<_ACEOF
4725 #define ENABLE_PIC $ENABLE_PIC
4726 _ACEOF
4727
4728
4729 TARGETS_TO_BUILD=""
4730 # Check whether --enable-targets was given.
4731 if test "${enable_targets+set}" = set; then
4732   enableval=$enable_targets;
4733 else
4734   enableval=all
4735 fi
4736
4737 case "$enableval" in
4738   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4739   host-only)
4740     case "$llvm_cv_target_arch" in
4741       x86)     TARGETS_TO_BUILD="X86" ;;
4742       x86_64)  TARGETS_TO_BUILD="X86" ;;
4743       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4744       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4745       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4746       IA64)    TARGETS_TO_BUILD="IA64" ;;
4747       ARM)     TARGETS_TO_BUILD="ARM" ;;
4748       Mips)    TARGETS_TO_BUILD="Mips" ;;
4749       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4750 echo "$as_me: error: Can not set target to build" >&2;}
4751    { (exit 1); exit 1; }; } ;;
4752     esac
4753     ;;
4754   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4755       case "$a_target" in
4756         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4757         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4758         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4759         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4760         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4761         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4762         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4763         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4764         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4765 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4766    { (exit 1); exit 1; }; } ;;
4767       esac
4768   done
4769   ;;
4770 esac
4771 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4772 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4773
4774
4775 # Check whether --enable-cbe-printf-a was given.
4776 if test "${enable_cbe_printf_a+set}" = set; then
4777   enableval=$enable_cbe_printf_a;
4778 else
4779   enableval=default
4780 fi
4781
4782 case "$enableval" in
4783   yes) ENABLE_CBE_PRINTF_A=1
4784  ;;
4785   no)  ENABLE_CBE_PRINTF_A=0
4786  ;;
4787   default)  ENABLE_CBE_PRINTF_A=1
4788  ;;
4789   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4790 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4791    { (exit 1); exit 1; }; } ;;
4792 esac
4793
4794 cat >>confdefs.h <<_ACEOF
4795 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4796 _ACEOF
4797
4798
4799
4800 # Check whether --with-llvmgccdir was given.
4801 if test "${with_llvmgccdir+set}" = set; then
4802   withval=$with_llvmgccdir;
4803 else
4804   withval=default
4805 fi
4806
4807 case "$withval" in
4808   default) WITH_LLVMGCCDIR=default ;;
4809   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4810   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4811 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4812    { (exit 1); exit 1; }; } ;;
4813 esac
4814
4815
4816 # Check whether --with-extra-options was given.
4817 if test "${with_extra_options+set}" = set; then
4818   withval=$with_extra_options;
4819 else
4820   withval=default
4821 fi
4822
4823 case "$withval" in
4824   default) EXTRA_OPTIONS= ;;
4825   *) EXTRA_OPTIONS=$withval ;;
4826 esac
4827 EXTRA_OPTIONS=$EXTRA_OPTIONS
4828
4829
4830 # Check whether --enable-bindings was given.
4831 if test "${enable_bindings+set}" = set; then
4832   enableval=$enable_bindings;
4833 else
4834   enableval=default
4835 fi
4836
4837 BINDINGS_TO_BUILD=""
4838 case "$enableval" in
4839   all | yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4840   all ) BINDINGS_TO_BUILD="ocaml" ;;
4841   none | no) BINDINGS_TO_BUILD="" ;;
4842   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4843       case "$a_binding" in
4844         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4845         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4846 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4847    { (exit 1); exit 1; }; } ;;
4848       esac
4849   done
4850   ;;
4851 esac
4852
4853
4854 ac_ext=c
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4860 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4861 # On Suns, sometimes $CPP names a directory.
4862 if test -n "$CPP" && test -d "$CPP"; then
4863   CPP=
4864 fi
4865 if test -z "$CPP"; then
4866   if test "${ac_cv_prog_CPP+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869       # Double quotes because CPP needs to be expanded
4870     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4871     do
4872       ac_preproc_ok=false
4873 for ac_c_preproc_warn_flag in '' yes
4874 do
4875   # Use a header file that comes with gcc, so configuring glibc
4876   # with a fresh cross-compiler works.
4877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878   # <limits.h> exists even on freestanding compilers.
4879   # On the NeXT, cc -E runs the code through the compiler's parser,
4880   # not just through cpp. "Syntax error" is here to catch this case.
4881   cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h.  */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h.  */
4887 #ifdef __STDC__
4888 # include <limits.h>
4889 #else
4890 # include <assert.h>
4891 #endif
4892                      Syntax error
4893 _ACEOF
4894 if { (ac_try="$ac_cpp conftest.$ac_ext"
4895 case "(($ac_try" in
4896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897   *) ac_try_echo=$ac_try;;
4898 esac
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4901   ac_status=$?
4902   grep -v '^ *+' conftest.er1 >conftest.err
4903   rm -f conftest.er1
4904   cat conftest.err >&5
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); } >/dev/null; then
4907   if test -s conftest.err; then
4908     ac_cpp_err=$ac_c_preproc_warn_flag
4909     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4910   else
4911     ac_cpp_err=
4912   fi
4913 else
4914   ac_cpp_err=yes
4915 fi
4916 if test -z "$ac_cpp_err"; then
4917   :
4918 else
4919   echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922   # Broken: fails on valid input.
4923 continue
4924 fi
4925
4926 rm -f conftest.err conftest.$ac_ext
4927
4928   # OK, works on sane cases.  Now check whether nonexistent headers
4929   # can be detected and how.
4930   cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h.  */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h.  */
4936 #include <ac_nonexistent.h>
4937 _ACEOF
4938 if { (ac_try="$ac_cpp conftest.$ac_ext"
4939 case "(($ac_try" in
4940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941   *) ac_try_echo=$ac_try;;
4942 esac
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4945   ac_status=$?
4946   grep -v '^ *+' conftest.er1 >conftest.err
4947   rm -f conftest.er1
4948   cat conftest.err >&5
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); } >/dev/null; then
4951   if test -s conftest.err; then
4952     ac_cpp_err=$ac_c_preproc_warn_flag
4953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4954   else
4955     ac_cpp_err=
4956   fi
4957 else
4958   ac_cpp_err=yes
4959 fi
4960 if test -z "$ac_cpp_err"; then
4961   # Broken: success on invalid input.
4962 continue
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967   # Passes both tests.
4968 ac_preproc_ok=:
4969 break
4970 fi
4971
4972 rm -f conftest.err conftest.$ac_ext
4973
4974 done
4975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976 rm -f conftest.err conftest.$ac_ext
4977 if $ac_preproc_ok; then
4978   break
4979 fi
4980
4981     done
4982     ac_cv_prog_CPP=$CPP
4983
4984 fi
4985   CPP=$ac_cv_prog_CPP
4986 else
4987   ac_cv_prog_CPP=$CPP
4988 fi
4989 { echo "$as_me:$LINENO: result: $CPP" >&5
4990 echo "${ECHO_T}$CPP" >&6; }
4991 ac_preproc_ok=false
4992 for ac_c_preproc_warn_flag in '' yes
4993 do
4994   # Use a header file that comes with gcc, so configuring glibc
4995   # with a fresh cross-compiler works.
4996   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997   # <limits.h> exists even on freestanding compilers.
4998   # On the NeXT, cc -E runs the code through the compiler's parser,
4999   # not just through cpp. "Syntax error" is here to catch this case.
5000   cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h.  */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h.  */
5006 #ifdef __STDC__
5007 # include <limits.h>
5008 #else
5009 # include <assert.h>
5010 #endif
5011                      Syntax error
5012 _ACEOF
5013 if { (ac_try="$ac_cpp conftest.$ac_ext"
5014 case "(($ac_try" in
5015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016   *) ac_try_echo=$ac_try;;
5017 esac
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5020   ac_status=$?
5021   grep -v '^ *+' conftest.er1 >conftest.err
5022   rm -f conftest.er1
5023   cat conftest.err >&5
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } >/dev/null; then
5026   if test -s conftest.err; then
5027     ac_cpp_err=$ac_c_preproc_warn_flag
5028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5029   else
5030     ac_cpp_err=
5031   fi
5032 else
5033   ac_cpp_err=yes
5034 fi
5035 if test -z "$ac_cpp_err"; then
5036   :
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041   # Broken: fails on valid input.
5042 continue
5043 fi
5044
5045 rm -f conftest.err conftest.$ac_ext
5046
5047   # OK, works on sane cases.  Now check whether nonexistent headers
5048   # can be detected and how.
5049   cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h.  */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h.  */
5055 #include <ac_nonexistent.h>
5056 _ACEOF
5057 if { (ac_try="$ac_cpp conftest.$ac_ext"
5058 case "(($ac_try" in
5059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060   *) ac_try_echo=$ac_try;;
5061 esac
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } >/dev/null; then
5070   if test -s conftest.err; then
5071     ac_cpp_err=$ac_c_preproc_warn_flag
5072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5073   else
5074     ac_cpp_err=
5075   fi
5076 else
5077   ac_cpp_err=yes
5078 fi
5079 if test -z "$ac_cpp_err"; then
5080   # Broken: success on invalid input.
5081 continue
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086   # Passes both tests.
5087 ac_preproc_ok=:
5088 break
5089 fi
5090
5091 rm -f conftest.err conftest.$ac_ext
5092
5093 done
5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095 rm -f conftest.err conftest.$ac_ext
5096 if $ac_preproc_ok; then
5097   :
5098 else
5099   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5100 See \`config.log' for more details." >&5
5101 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5102 See \`config.log' for more details." >&2;}
5103    { (exit 1); exit 1; }; }
5104 fi
5105
5106 ac_ext=c
5107 ac_cpp='$CPP $CPPFLAGS'
5108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112 ac_ext=c
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117 if test -n "$ac_tool_prefix"; then
5118   for ac_prog in gcc
5119   do
5120     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5124 if test "${ac_cv_prog_CC+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127   if test -n "$CC"; then
5128   ac_cv_prog_CC="$CC" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133   IFS=$as_save_IFS
5134   test -z "$as_dir" && as_dir=.
5135   for ac_exec_ext in '' $ac_executable_extensions; do
5136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5137     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139     break 2
5140   fi
5141 done
5142 done
5143 IFS=$as_save_IFS
5144
5145 fi
5146 fi
5147 CC=$ac_cv_prog_CC
5148 if test -n "$CC"; then
5149   { echo "$as_me:$LINENO: result: $CC" >&5
5150 echo "${ECHO_T}$CC" >&6; }
5151 else
5152   { echo "$as_me:$LINENO: result: no" >&5
5153 echo "${ECHO_T}no" >&6; }
5154 fi
5155
5156
5157     test -n "$CC" && break
5158   done
5159 fi
5160 if test -z "$CC"; then
5161   ac_ct_CC=$CC
5162   for ac_prog in gcc
5163 do
5164   # Extract the first word of "$ac_prog", so it can be a program name with args.
5165 set dummy $ac_prog; ac_word=$2
5166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5169   echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171   if test -n "$ac_ct_CC"; then
5172   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179   for ac_exec_ext in '' $ac_executable_extensions; do
5180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5181     ac_cv_prog_ac_ct_CC="$ac_prog"
5182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183     break 2
5184   fi
5185 done
5186 done
5187 IFS=$as_save_IFS
5188
5189 fi
5190 fi
5191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5192 if test -n "$ac_ct_CC"; then
5193   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5194 echo "${ECHO_T}$ac_ct_CC" >&6; }
5195 else
5196   { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5198 fi
5199
5200
5201   test -n "$ac_ct_CC" && break
5202 done
5203
5204   if test "x$ac_ct_CC" = x; then
5205     CC=""
5206   else
5207     case $cross_compiling:$ac_tool_warned in
5208 yes:)
5209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5210 whose name does not start with the host triplet.  If you think this
5211 configuration is useful to you, please write to autoconf@gnu.org." >&5
5212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5213 whose name does not start with the host triplet.  If you think this
5214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217     CC=$ac_ct_CC
5218   fi
5219 fi
5220
5221
5222 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5223 See \`config.log' for more details." >&5
5224 echo "$as_me: error: no acceptable C compiler found in \$PATH
5225 See \`config.log' for more details." >&2;}
5226    { (exit 1); exit 1; }; }
5227
5228 # Provide some information about the compiler.
5229 echo "$as_me:$LINENO: checking for C compiler version" >&5
5230 ac_compiler=`set X $ac_compile; echo $2`
5231 { (ac_try="$ac_compiler --version >&5"
5232 case "(($ac_try" in
5233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234   *) ac_try_echo=$ac_try;;
5235 esac
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237   (eval "$ac_compiler --version >&5") 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); }
5241 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }
5251 { (ac_try="$ac_compiler -V >&5"
5252 case "(($ac_try" in
5253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254   *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257   (eval "$ac_compiler -V >&5") 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }
5261
5262 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5263 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5264 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5265   echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267   cat >conftest.$ac_ext <<_ACEOF
5268 /* confdefs.h.  */
5269 _ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h.  */
5273
5274 int
5275 main ()
5276 {
5277 #ifndef __GNUC__
5278        choke me
5279 #endif
5280
5281   ;
5282   return 0;
5283 }
5284 _ACEOF
5285 rm -f conftest.$ac_objext
5286 if { (ac_try="$ac_compile"
5287 case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_compile") 2>conftest.er1
5293   ac_status=$?
5294   grep -v '^ *+' conftest.er1 >conftest.err
5295   rm -f conftest.er1
5296   cat conftest.err >&5
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); } &&
5299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5300   { (case "(($ac_try" in
5301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302   *) ac_try_echo=$ac_try;;
5303 esac
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305   (eval "$ac_try") 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }; } &&
5309          { ac_try='test -s conftest.$ac_objext'
5310   { (case "(($ac_try" in
5311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312   *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315   (eval "$ac_try") 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_compiler_gnu=yes
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324         ac_compiler_gnu=no
5325 fi
5326
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5329
5330 fi
5331 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5332 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5333 GCC=`test $ac_compiler_gnu = yes && echo yes`
5334 ac_test_CFLAGS=${CFLAGS+set}
5335 ac_save_CFLAGS=$CFLAGS
5336 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5337 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5338 if test "${ac_cv_prog_cc_g+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   ac_save_c_werror_flag=$ac_c_werror_flag
5342    ac_c_werror_flag=yes
5343    ac_cv_prog_cc_g=no
5344    CFLAGS="-g"
5345    cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h.  */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h.  */
5351
5352 int
5353 main ()
5354 {
5355
5356   ;
5357   return 0;
5358 }
5359 _ACEOF
5360 rm -f conftest.$ac_objext
5361 if { (ac_try="$ac_compile"
5362 case "(($ac_try" in
5363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364   *) ac_try_echo=$ac_try;;
5365 esac
5366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367   (eval "$ac_compile") 2>conftest.er1
5368   ac_status=$?
5369   grep -v '^ *+' conftest.er1 >conftest.err
5370   rm -f conftest.er1
5371   cat conftest.err >&5
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); } &&
5374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5375   { (case "(($ac_try" in
5376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377   *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380   (eval "$ac_try") 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); }; } &&
5384          { ac_try='test -s conftest.$ac_objext'
5385   { (case "(($ac_try" in
5386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387   *) ac_try_echo=$ac_try;;
5388 esac
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390   (eval "$ac_try") 2>&5
5391   ac_status=$?
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); }; }; then
5394   ac_cv_prog_cc_g=yes
5395 else
5396   echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399         CFLAGS=""
5400       cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406
5407 int
5408 main ()
5409 {
5410
5411   ;
5412   return 0;
5413 }
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (ac_try="$ac_compile"
5417 case "(($ac_try" in
5418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419   *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422   (eval "$ac_compile") 2>conftest.er1
5423   ac_status=$?
5424   grep -v '^ *+' conftest.er1 >conftest.err
5425   rm -f conftest.er1
5426   cat conftest.err >&5
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5430   { (case "(($ac_try" in
5431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432   *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435   (eval "$ac_try") 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); }; } &&
5439          { ac_try='test -s conftest.$ac_objext'
5440   { (case "(($ac_try" in
5441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442   *) ac_try_echo=$ac_try;;
5443 esac
5444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445   (eval "$ac_try") 2>&5
5446   ac_status=$?
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); }; }; then
5449   :
5450 else
5451   echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454         ac_c_werror_flag=$ac_save_c_werror_flag
5455          CFLAGS="-g"
5456          cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h.  */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h.  */
5462
5463 int
5464 main ()
5465 {
5466
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5473 case "(($ac_try" in
5474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475   *) ac_try_echo=$ac_try;;
5476 esac
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478   (eval "$ac_compile") 2>conftest.er1
5479   ac_status=$?
5480   grep -v '^ *+' conftest.er1 >conftest.err
5481   rm -f conftest.er1
5482   cat conftest.err >&5
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } &&
5485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5486   { (case "(($ac_try" in
5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488   *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491   (eval "$ac_try") 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; } &&
5495          { ac_try='test -s conftest.$ac_objext'
5496   { (case "(($ac_try" in
5497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498   *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501   (eval "$ac_try") 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }; }; then
5505   ac_cv_prog_cc_g=yes
5506 else
5507   echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510
5511 fi
5512
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 fi
5515
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 fi
5518
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520    ac_c_werror_flag=$ac_save_c_werror_flag
5521 fi
5522 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5523 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5524 if test "$ac_test_CFLAGS" = set; then
5525   CFLAGS=$ac_save_CFLAGS
5526 elif test $ac_cv_prog_cc_g = yes; then
5527   if test "$GCC" = yes; then
5528     CFLAGS="-g -O2"
5529   else
5530     CFLAGS="-g"
5531   fi
5532 else
5533   if test "$GCC" = yes; then
5534     CFLAGS="-O2"
5535   else
5536     CFLAGS=
5537   fi
5538 fi
5539 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5540 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5541 if test "${ac_cv_prog_cc_c89+set}" = set; then
5542   echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544   ac_cv_prog_cc_c89=no
5545 ac_save_CC=$CC
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552 #include <stdarg.h>
5553 #include <stdio.h>
5554 #include <sys/types.h>
5555 #include <sys/stat.h>
5556 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5557 struct buf { int x; };
5558 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5559 static char *e (p, i)
5560      char **p;
5561      int i;
5562 {
5563   return p[i];
5564 }
5565 static char *f (char * (*g) (char **, int), char **p, ...)
5566 {
5567   char *s;
5568   va_list v;
5569   va_start (v,p);
5570   s = g (p, va_arg (v,int));
5571   va_end (v);
5572   return s;
5573 }
5574
5575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5576    function prototypes and stuff, but not '\xHH' hex character constants.
5577    These don't provoke an error unfortunately, instead are silently treated
5578    as 'x'.  The following induces an error, until -std is added to get
5579    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5580    array size at least.  It's necessary to write '\x00'==0 to get something
5581    that's true only with -std.  */
5582 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5583
5584 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5585    inside strings and character constants.  */
5586 #define FOO(x) 'x'
5587 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5588
5589 int test (int i, double x);
5590 struct s1 {int (*f) (int a);};
5591 struct s2 {int (*f) (double a);};
5592 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5593 int argc;
5594 char **argv;
5595 int
5596 main ()
5597 {
5598 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5599   ;
5600   return 0;
5601 }
5602 _ACEOF
5603 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5604         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5605 do
5606   CC="$ac_save_CC $ac_arg"
5607   rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5609 case "(($ac_try" in
5610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611   *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614   (eval "$ac_compile") 2>conftest.er1
5615   ac_status=$?
5616   grep -v '^ *+' conftest.er1 >conftest.err
5617   rm -f conftest.er1
5618   cat conftest.err >&5
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); } &&
5621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5622   { (case "(($ac_try" in
5623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624   *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627   (eval "$ac_try") 2>&5
5628   ac_status=$?
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); }; } &&
5631          { ac_try='test -s conftest.$ac_objext'
5632   { (case "(($ac_try" in
5633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634   *) ac_try_echo=$ac_try;;
5635 esac
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637   (eval "$ac_try") 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }; }; then
5641   ac_cv_prog_cc_c89=$ac_arg
5642 else
5643   echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646
5647 fi
5648
5649 rm -f core conftest.err conftest.$ac_objext
5650   test "x$ac_cv_prog_cc_c89" != "xno" && break
5651 done
5652 rm -f conftest.$ac_ext
5653 CC=$ac_save_CC
5654
5655 fi
5656 # AC_CACHE_VAL
5657 case "x$ac_cv_prog_cc_c89" in
5658   x)
5659     { echo "$as_me:$LINENO: result: none needed" >&5
5660 echo "${ECHO_T}none needed" >&6; } ;;
5661   xno)
5662     { echo "$as_me:$LINENO: result: unsupported" >&5
5663 echo "${ECHO_T}unsupported" >&6; } ;;
5664   *)
5665     CC="$CC $ac_cv_prog_cc_c89"
5666     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5667 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5668 esac
5669
5670
5671 ac_ext=c
5672 ac_cpp='$CPP $CPPFLAGS'
5673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5676
5677 ac_ext=cpp
5678 ac_cpp='$CXXCPP $CPPFLAGS'
5679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682 if test -z "$CXX"; then
5683   if test -n "$CCC"; then
5684     CXX=$CCC
5685   else
5686     if test -n "$ac_tool_prefix"; then
5687   for ac_prog in g++
5688   do
5689     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5693 if test "${ac_cv_prog_CXX+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   if test -n "$CXX"; then
5697   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702   IFS=$as_save_IFS
5703   test -z "$as_dir" && as_dir=.
5704   for ac_exec_ext in '' $ac_executable_extensions; do
5705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5706     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708     break 2
5709   fi
5710 done
5711 done
5712 IFS=$as_save_IFS
5713
5714 fi
5715 fi
5716 CXX=$ac_cv_prog_CXX
5717 if test -n "$CXX"; then
5718   { echo "$as_me:$LINENO: result: $CXX" >&5
5719 echo "${ECHO_T}$CXX" >&6; }
5720 else
5721   { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5723 fi
5724
5725
5726     test -n "$CXX" && break
5727   done
5728 fi
5729 if test -z "$CXX"; then
5730   ac_ct_CXX=$CXX
5731   for ac_prog in g++
5732 do
5733   # Extract the first word of "$ac_prog", so it can be a program name with args.
5734 set dummy $ac_prog; ac_word=$2
5735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5737 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   if test -n "$ac_ct_CXX"; then
5741   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746   IFS=$as_save_IFS
5747   test -z "$as_dir" && as_dir=.
5748   for ac_exec_ext in '' $ac_executable_extensions; do
5749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5750     ac_cv_prog_ac_ct_CXX="$ac_prog"
5751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5752     break 2
5753   fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5761 if test -n "$ac_ct_CXX"; then
5762   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5763 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5764 else
5765   { echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6; }
5767 fi
5768
5769
5770   test -n "$ac_ct_CXX" && break
5771 done
5772
5773   if test "x$ac_ct_CXX" = x; then
5774     CXX="g++"
5775   else
5776     case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5779 whose name does not start with the host triplet.  If you think this
5780 configuration is useful to you, please write to autoconf@gnu.org." >&5
5781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5782 whose name does not start with the host triplet.  If you think this
5783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786     CXX=$ac_ct_CXX
5787   fi
5788 fi
5789
5790   fi
5791 fi
5792 # Provide some information about the compiler.
5793 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5794 ac_compiler=`set X $ac_compile; echo $2`
5795 { (ac_try="$ac_compiler --version >&5"
5796 case "(($ac_try" in
5797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798   *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801   (eval "$ac_compiler --version >&5") 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); }
5805 { (ac_try="$ac_compiler -v >&5"
5806 case "(($ac_try" in
5807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808   *) ac_try_echo=$ac_try;;
5809 esac
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811   (eval "$ac_compiler -v >&5") 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }
5815 { (ac_try="$ac_compiler -V >&5"
5816 case "(($ac_try" in
5817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818   *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821   (eval "$ac_compiler -V >&5") 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }
5825
5826 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5827 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5828 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837
5838 int
5839 main ()
5840 {
5841 #ifndef __GNUC__
5842        choke me
5843 #endif
5844
5845   ;
5846   return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5851 case "(($ac_try" in
5852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853   *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856   (eval "$ac_compile") 2>conftest.er1
5857   ac_status=$?
5858   grep -v '^ *+' conftest.er1 >conftest.err
5859   rm -f conftest.er1
5860   cat conftest.err >&5
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); } &&
5863          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5864   { (case "(($ac_try" in
5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866   *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869   (eval "$ac_try") 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; } &&
5873          { ac_try='test -s conftest.$ac_objext'
5874   { (case "(($ac_try" in
5875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876   *) ac_try_echo=$ac_try;;
5877 esac
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879   (eval "$ac_try") 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; }; then
5883   ac_compiler_gnu=yes
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888         ac_compiler_gnu=no
5889 fi
5890
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5893
5894 fi
5895 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5896 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5897 GXX=`test $ac_compiler_gnu = yes && echo yes`
5898 ac_test_CXXFLAGS=${CXXFLAGS+set}
5899 ac_save_CXXFLAGS=$CXXFLAGS
5900 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5901 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_cxx_g+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5906    ac_cxx_werror_flag=yes
5907    ac_cv_prog_cxx_g=no
5908    CXXFLAGS="-g"
5909    cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915
5916 int
5917 main ()
5918 {
5919
5920   ;
5921   return 0;
5922 }
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5926 case "(($ac_try" in
5927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928   *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931   (eval "$ac_compile") 2>conftest.er1
5932   ac_status=$?
5933   grep -v '^ *+' conftest.er1 >conftest.err
5934   rm -f conftest.er1
5935   cat conftest.err >&5
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); } &&
5938          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5939   { (case "(($ac_try" in
5940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941   *) ac_try_echo=$ac_try;;
5942 esac
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944   (eval "$ac_try") 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; } &&
5948          { ac_try='test -s conftest.$ac_objext'
5949   { (case "(($ac_try" in
5950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951   *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954   (eval "$ac_try") 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_cv_prog_cxx_g=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963         CXXFLAGS=""
5964       cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970
5971 int
5972 main ()
5973 {
5974
5975   ;
5976   return 0;
5977 }
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5981 case "(($ac_try" in
5982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983   *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986   (eval "$ac_compile") 2>conftest.er1
5987   ac_status=$?
5988   grep -v '^ *+' conftest.er1 >conftest.err
5989   rm -f conftest.er1
5990   cat conftest.err >&5
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); } &&
5993          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5994   { (case "(($ac_try" in
5995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996   *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999   (eval "$ac_try") 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; } &&
6003          { ac_try='test -s conftest.$ac_objext'
6004   { (case "(($ac_try" in
6005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006   *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009   (eval "$ac_try") 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; }; then
6013   :
6014 else
6015   echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6019          CXXFLAGS="-g"
6020          cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h.  */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h.  */
6026
6027 int
6028 main ()
6029 {
6030
6031   ;
6032   return 0;
6033 }
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6037 case "(($ac_try" in
6038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039   *) ac_try_echo=$ac_try;;
6040 esac
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042   (eval "$ac_compile") 2>conftest.er1
6043   ac_status=$?
6044   grep -v '^ *+' conftest.er1 >conftest.err
6045   rm -f conftest.er1
6046   cat conftest.err >&5
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); } &&
6049          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6050   { (case "(($ac_try" in
6051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052   *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055   (eval "$ac_try") 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); }; } &&
6059          { ac_try='test -s conftest.$ac_objext'
6060   { (case "(($ac_try" in
6061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062   *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065   (eval "$ac_try") 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; }; then
6069   ac_cv_prog_cxx_g=yes
6070 else
6071   echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074
6075 fi
6076
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 fi
6079
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 fi
6082
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6085 fi
6086 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6087 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6088 if test "$ac_test_CXXFLAGS" = set; then
6089   CXXFLAGS=$ac_save_CXXFLAGS
6090 elif test $ac_cv_prog_cxx_g = yes; then
6091   if test "$GXX" = yes; then
6092     CXXFLAGS="-g -O2"
6093   else
6094     CXXFLAGS="-g"
6095   fi
6096 else
6097   if test "$GXX" = yes; then
6098     CXXFLAGS="-O2"
6099   else
6100     CXXFLAGS=
6101   fi
6102 fi
6103 ac_ext=c
6104 ac_cpp='$CPP $CPPFLAGS'
6105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6108
6109 { echo "$as_me:$LINENO: checking " >&5
6110 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6111 if test "${ac_cv_has_flex+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   for ac_prog in flex lex
6115 do
6116   # Extract the first word of "$ac_prog", so it can be a program name with args.
6117 set dummy $ac_prog; ac_word=$2
6118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6120 if test "${ac_cv_prog_LEX+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   if test -n "$LEX"; then
6124   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131   for ac_exec_ext in '' $ac_executable_extensions; do
6132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6133     ac_cv_prog_LEX="$ac_prog"
6134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135     break 2
6136   fi
6137 done
6138 done
6139 IFS=$as_save_IFS
6140
6141 fi
6142 fi
6143 LEX=$ac_cv_prog_LEX
6144 if test -n "$LEX"; then
6145   { echo "$as_me:$LINENO: result: $LEX" >&5
6146 echo "${ECHO_T}$LEX" >&6; }
6147 else
6148   { echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6; }
6150 fi
6151
6152
6153   test -n "$LEX" && break
6154 done
6155 test -n "$LEX" || LEX=":"
6156
6157 if test -z "$LEXLIB"
6158 then
6159   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6160 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6161 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   ac_check_lib_save_LIBS=$LIBS
6165 LIBS="-lfl  $LIBS"
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h.  */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h.  */
6172
6173 /* Override any GCC internal prototype to avoid an error.
6174    Use char because int might match the return type of a GCC
6175    builtin and then its argument prototype would still apply.  */
6176 #ifdef __cplusplus
6177 extern "C"
6178 #endif
6179 char yywrap ();
6180 int
6181 main ()
6182 {
6183 return yywrap ();
6184   ;
6185   return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (ac_try="$ac_link"
6190 case "(($ac_try" in
6191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192   *) ac_try_echo=$ac_try;;
6193 esac
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195   (eval "$ac_link") 2>conftest.er1
6196   ac_status=$?
6197   grep -v '^ *+' conftest.er1 >conftest.err
6198   rm -f conftest.er1
6199   cat conftest.err >&5
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); } &&
6202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6203   { (case "(($ac_try" in
6204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205   *) ac_try_echo=$ac_try;;
6206 esac
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208   (eval "$ac_try") 2>&5
6209   ac_status=$?
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); }; } &&
6212          { ac_try='test -s conftest$ac_exeext'
6213   { (case "(($ac_try" in
6214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215   *) ac_try_echo=$ac_try;;
6216 esac
6217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218   (eval "$ac_try") 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); }; }; then
6222   ac_cv_lib_fl_yywrap=yes
6223 else
6224   echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6226
6227         ac_cv_lib_fl_yywrap=no
6228 fi
6229
6230 rm -f core conftest.err conftest.$ac_objext \
6231       conftest$ac_exeext conftest.$ac_ext
6232 LIBS=$ac_check_lib_save_LIBS
6233 fi
6234 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6235 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6236 if test $ac_cv_lib_fl_yywrap = yes; then
6237   LEXLIB="-lfl"
6238 else
6239   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6240 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6241 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   ac_check_lib_save_LIBS=$LIBS
6245 LIBS="-ll  $LIBS"
6246 cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252
6253 /* Override any GCC internal prototype to avoid an error.
6254    Use char because int might match the return type of a GCC
6255    builtin and then its argument prototype would still apply.  */
6256 #ifdef __cplusplus
6257 extern "C"
6258 #endif
6259 char yywrap ();
6260 int
6261 main ()
6262 {
6263 return yywrap ();
6264   ;
6265   return 0;
6266 }
6267 _ACEOF
6268 rm -f conftest.$ac_objext conftest$ac_exeext
6269 if { (ac_try="$ac_link"
6270 case "(($ac_try" in
6271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272   *) ac_try_echo=$ac_try;;
6273 esac
6274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275   (eval "$ac_link") 2>conftest.er1
6276   ac_status=$?
6277   grep -v '^ *+' conftest.er1 >conftest.err
6278   rm -f conftest.er1
6279   cat conftest.err >&5
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); } &&
6282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6283   { (case "(($ac_try" in
6284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285   *) ac_try_echo=$ac_try;;
6286 esac
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288   (eval "$ac_try") 2>&5
6289   ac_status=$?
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); }; } &&
6292          { ac_try='test -s conftest$ac_exeext'
6293   { (case "(($ac_try" in
6294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295   *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298   (eval "$ac_try") 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); }; }; then
6302   ac_cv_lib_l_yywrap=yes
6303 else
6304   echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307         ac_cv_lib_l_yywrap=no
6308 fi
6309
6310 rm -f core conftest.err conftest.$ac_objext \
6311       conftest$ac_exeext conftest.$ac_ext
6312 LIBS=$ac_check_lib_save_LIBS
6313 fi
6314 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6315 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6316 if test $ac_cv_lib_l_yywrap = yes; then
6317   LEXLIB="-ll"
6318 fi
6319
6320 fi
6321
6322 fi
6323
6324 if test "x$LEX" != "x:"; then
6325   { echo "$as_me:$LINENO: checking lex output file root" >&5
6326 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6327 if test "${ac_cv_prog_lex_root+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   # The minimal lex program is just a single line: %%.  But some broken lexes
6331 # (Solaris, I think it was) want two %% lines, so accommodate them.
6332 cat >conftest.l <<_ACEOF
6333 %%
6334 %%
6335 _ACEOF
6336 { (ac_try="$LEX conftest.l"
6337 case "(($ac_try" in
6338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339   *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342   (eval "$LEX conftest.l") 2>&5
6343   ac_status=$?
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); }
6346 if test -f lex.yy.c; then
6347   ac_cv_prog_lex_root=lex.yy
6348 elif test -f lexyy.c; then
6349   ac_cv_prog_lex_root=lexyy
6350 else
6351   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6352 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6353    { (exit 1); exit 1; }; }
6354 fi
6355 fi
6356 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6357 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6358 rm -f conftest.l
6359 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6360
6361 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6362 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6363 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   # POSIX says lex can declare yytext either as a pointer or an array; the
6367 # default is implementation-dependent. Figure out which it is, since
6368 # not all implementations provide the %pointer and %array declarations.
6369 ac_cv_prog_lex_yytext_pointer=no
6370 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6371 ac_save_LIBS=$LIBS
6372 LIBS="$LIBS $LEXLIB"
6373 cat >conftest.$ac_ext <<_ACEOF
6374 `cat $LEX_OUTPUT_ROOT.c`
6375 _ACEOF
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (ac_try="$ac_link"
6378 case "(($ac_try" in
6379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380   *) ac_try_echo=$ac_try;;
6381 esac
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383   (eval "$ac_link") 2>conftest.er1
6384   ac_status=$?
6385   grep -v '^ *+' conftest.er1 >conftest.err
6386   rm -f conftest.er1
6387   cat conftest.err >&5
6388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); } &&
6390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6391   { (case "(($ac_try" in
6392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393   *) ac_try_echo=$ac_try;;
6394 esac
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396   (eval "$ac_try") 2>&5
6397   ac_status=$?
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); }; } &&
6400          { ac_try='test -s conftest$ac_exeext'
6401   { (case "(($ac_try" in
6402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403   *) ac_try_echo=$ac_try;;
6404 esac
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406   (eval "$ac_try") 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; }; then
6410   ac_cv_prog_lex_yytext_pointer=yes
6411 else
6412   echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415
6416 fi
6417
6418 rm -f core conftest.err conftest.$ac_objext \
6419       conftest$ac_exeext conftest.$ac_ext
6420 LIBS=$ac_save_LIBS
6421 rm -f "${LEX_OUTPUT_ROOT}.c"
6422
6423 fi
6424 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6425 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6426 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6427
6428 cat >>confdefs.h <<\_ACEOF
6429 #define YYTEXT_POINTER 1
6430 _ACEOF
6431
6432 fi
6433
6434 fi
6435
6436 fi
6437 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6438 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6439 if test "$LEX" != "flex"; then
6440   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6441 echo "$as_me: error: flex not found but required" >&2;}
6442    { (exit 1); exit 1; }; }
6443 else
6444   FLEX=flex
6445
6446 fi
6447
6448 { echo "$as_me:$LINENO: checking " >&5
6449 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6450 if test "${llvm_cv_has_bison+set}" = set; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453   for ac_prog in 'bison -y' byacc
6454 do
6455   # Extract the first word of "$ac_prog", so it can be a program name with args.
6456 set dummy $ac_prog; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_prog_YACC+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   if test -n "$YACC"; then
6463   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468   IFS=$as_save_IFS
6469   test -z "$as_dir" && as_dir=.
6470   for ac_exec_ext in '' $ac_executable_extensions; do
6471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6472     ac_cv_prog_YACC="$ac_prog"
6473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474     break 2
6475   fi
6476 done
6477 done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
6482 YACC=$ac_cv_prog_YACC
6483 if test -n "$YACC"; then
6484   { echo "$as_me:$LINENO: result: $YACC" >&5
6485 echo "${ECHO_T}$YACC" >&6; }
6486 else
6487   { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6489 fi
6490
6491
6492   test -n "$YACC" && break
6493 done
6494 test -n "$YACC" || YACC="yacc"
6495
6496 fi
6497 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6498 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6499 if test "$YACC" != "bison -y"; then
6500
6501   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6502 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6503 else
6504   BISON=bison
6505
6506 fi
6507
6508 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6509 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6510 if test "${lt_cv_path_NM+set}" = set; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   if test -n "$NM"; then
6514   # Let the user override the test.
6515   lt_cv_path_NM="$NM"
6516 else
6517   lt_nm_to_check="${ac_tool_prefix}nm"
6518   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6519     lt_nm_to_check="$lt_nm_to_check nm"
6520   fi
6521   for lt_tmp_nm in $lt_nm_to_check; do
6522     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6523     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6524       IFS="$lt_save_ifs"
6525       test -z "$ac_dir" && ac_dir=.
6526       tmp_nm="$ac_dir/$lt_tmp_nm"
6527       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6528         # Check to see if the nm accepts a BSD-compat flag.
6529         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6530         #   nm: unknown option "B" ignored
6531         # Tru64's nm complains that /dev/null is an invalid object file
6532         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6533         */dev/null* | *'Invalid file or object type'*)
6534           lt_cv_path_NM="$tmp_nm -B"
6535           break
6536           ;;
6537         *)
6538           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6539           */dev/null*)
6540             lt_cv_path_NM="$tmp_nm -p"
6541             break
6542             ;;
6543           *)
6544             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6545             continue # so that we can try to find one that supports BSD flags
6546             ;;
6547           esac
6548           ;;
6549         esac
6550       fi
6551     done
6552     IFS="$lt_save_ifs"
6553   done
6554   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6555 fi
6556 fi
6557 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6558 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6559 NM="$lt_cv_path_NM"
6560
6561
6562
6563 { echo "$as_me:$LINENO: checking for GNU make" >&5
6564 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6565 if test "${llvm_cv_gnu_make_command+set}" = set; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   llvm_cv_gnu_make_command=''
6569  for a in "$MAKE" make gmake gnumake ; do
6570   if test -z "$a" ; then continue ; fi ;
6571   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6572   then
6573    llvm_cv_gnu_make_command=$a ;
6574    break;
6575   fi
6576  done
6577 fi
6578 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6579 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6580  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6581    ifGNUmake='' ;
6582  else
6583    ifGNUmake='#' ;
6584    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6585 echo "${ECHO_T}\"Not found\"" >&6; };
6586  fi
6587
6588
6589 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6590 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6591 LN_S=$as_ln_s
6592 if test "$LN_S" = "ln -s"; then
6593   { echo "$as_me:$LINENO: result: yes" >&5
6594 echo "${ECHO_T}yes" >&6; }
6595 else
6596   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6597 echo "${ECHO_T}no, using $LN_S" >&6; }
6598 fi
6599
6600 # Extract the first word of "cmp", so it can be a program name with args.
6601 set dummy cmp; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_path_CMP+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   case $CMP in
6608   [\\/]* | ?:[\\/]*)
6609   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6610   ;;
6611   *)
6612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615   IFS=$as_save_IFS
6616   test -z "$as_dir" && as_dir=.
6617   for ac_exec_ext in '' $ac_executable_extensions; do
6618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6619     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621     break 2
6622   fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6628   ;;
6629 esac
6630 fi
6631 CMP=$ac_cv_path_CMP
6632 if test -n "$CMP"; then
6633   { echo "$as_me:$LINENO: result: $CMP" >&5
6634 echo "${ECHO_T}$CMP" >&6; }
6635 else
6636   { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640
6641 # Extract the first word of "cp", so it can be a program name with args.
6642 set dummy cp; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_path_CP+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   case $CP in
6649   [\\/]* | ?:[\\/]*)
6650   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6651   ;;
6652   *)
6653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658   for ac_exec_ext in '' $ac_executable_extensions; do
6659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6660     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6669   ;;
6670 esac
6671 fi
6672 CP=$ac_cv_path_CP
6673 if test -n "$CP"; then
6674   { echo "$as_me:$LINENO: result: $CP" >&5
6675 echo "${ECHO_T}$CP" >&6; }
6676 else
6677   { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6679 fi
6680
6681
6682 # Extract the first word of "date", so it can be a program name with args.
6683 set dummy date; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_DATE+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   case $DATE in
6690   [\\/]* | ?:[\\/]*)
6691   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6692   ;;
6693   *)
6694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   test -z "$as_dir" && as_dir=.
6699   for ac_exec_ext in '' $ac_executable_extensions; do
6700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703     break 2
6704   fi
6705 done
6706 done
6707 IFS=$as_save_IFS
6708
6709   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6710   ;;
6711 esac
6712 fi
6713 DATE=$ac_cv_path_DATE
6714 if test -n "$DATE"; then
6715   { echo "$as_me:$LINENO: result: $DATE" >&5
6716 echo "${ECHO_T}$DATE" >&6; }
6717 else
6718   { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6720 fi
6721
6722
6723 # Extract the first word of "find", so it can be a program name with args.
6724 set dummy find; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_FIND+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   case $FIND in
6731   [\\/]* | ?:[\\/]*)
6732   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6733   ;;
6734   *)
6735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740   for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6751   ;;
6752 esac
6753 fi
6754 FIND=$ac_cv_path_FIND
6755 if test -n "$FIND"; then
6756   { echo "$as_me:$LINENO: result: $FIND" >&5
6757 echo "${ECHO_T}$FIND" >&6; }
6758 else
6759   { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6761 fi
6762
6763
6764 # Extract the first word of "grep", so it can be a program name with args.
6765 set dummy grep; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_GREP+set}" = set; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   case $GREP in
6772   [\\/]* | ?:[\\/]*)
6773   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6774   ;;
6775   *)
6776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781   for ac_exec_ext in '' $ac_executable_extensions; do
6782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785     break 2
6786   fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6792   ;;
6793 esac
6794 fi
6795 GREP=$ac_cv_path_GREP
6796 if test -n "$GREP"; then
6797   { echo "$as_me:$LINENO: result: $GREP" >&5
6798 echo "${ECHO_T}$GREP" >&6; }
6799 else
6800   { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6802 fi
6803
6804
6805 # Extract the first word of "mkdir", so it can be a program name with args.
6806 set dummy mkdir; ac_word=$2
6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809 if test "${ac_cv_path_MKDIR+set}" = set; then
6810   echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812   case $MKDIR in
6813   [\\/]* | ?:[\\/]*)
6814   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6815   ;;
6816   *)
6817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822   for ac_exec_ext in '' $ac_executable_extensions; do
6823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6824     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6833   ;;
6834 esac
6835 fi
6836 MKDIR=$ac_cv_path_MKDIR
6837 if test -n "$MKDIR"; then
6838   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6839 echo "${ECHO_T}$MKDIR" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845
6846 # Extract the first word of "mv", so it can be a program name with args.
6847 set dummy mv; ac_word=$2
6848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850 if test "${ac_cv_path_MV+set}" = set; then
6851   echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853   case $MV in
6854   [\\/]* | ?:[\\/]*)
6855   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6856   ;;
6857   *)
6858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863   for ac_exec_ext in '' $ac_executable_extensions; do
6864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6865     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6874   ;;
6875 esac
6876 fi
6877 MV=$ac_cv_path_MV
6878 if test -n "$MV"; then
6879   { echo "$as_me:$LINENO: result: $MV" >&5
6880 echo "${ECHO_T}$MV" >&6; }
6881 else
6882   { echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6; }
6884 fi
6885
6886
6887 if test -n "$ac_tool_prefix"; then
6888   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_prog_RANLIB+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   if test -n "$RANLIB"; then
6896   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901   IFS=$as_save_IFS
6902   test -z "$as_dir" && as_dir=.
6903   for ac_exec_ext in '' $ac_executable_extensions; do
6904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907     break 2
6908   fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913 fi
6914 fi
6915 RANLIB=$ac_cv_prog_RANLIB
6916 if test -n "$RANLIB"; then
6917   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6918 echo "${ECHO_T}$RANLIB" >&6; }
6919 else
6920   { echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6; }
6922 fi
6923
6924
6925 fi
6926 if test -z "$ac_cv_prog_RANLIB"; then
6927   ac_ct_RANLIB=$RANLIB
6928   # Extract the first word of "ranlib", so it can be a program name with args.
6929 set dummy ranlib; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6933   echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935   if test -n "$ac_ct_RANLIB"; then
6936   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941   IFS=$as_save_IFS
6942   test -z "$as_dir" && as_dir=.
6943   for ac_exec_ext in '' $ac_executable_extensions; do
6944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945     ac_cv_prog_ac_ct_RANLIB="ranlib"
6946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947     break 2
6948   fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6956 if test -n "$ac_ct_RANLIB"; then
6957   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6958 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6959 else
6960   { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6962 fi
6963
6964   if test "x$ac_ct_RANLIB" = x; then
6965     RANLIB=":"
6966   else
6967     case $cross_compiling:$ac_tool_warned in
6968 yes:)
6969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6970 whose name does not start with the host triplet.  If you think this
6971 configuration is useful to you, please write to autoconf@gnu.org." >&5
6972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6973 whose name does not start with the host triplet.  If you think this
6974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977     RANLIB=$ac_ct_RANLIB
6978   fi
6979 else
6980   RANLIB="$ac_cv_prog_RANLIB"
6981 fi
6982
6983 # Extract the first word of "rm", so it can be a program name with args.
6984 set dummy rm; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_path_RM+set}" = set; then
6988   echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990   case $RM in
6991   [\\/]* | ?:[\\/]*)
6992   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6993   ;;
6994   *)
6995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   for ac_exec_ext in '' $ac_executable_extensions; do
7001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7011   ;;
7012 esac
7013 fi
7014 RM=$ac_cv_path_RM
7015 if test -n "$RM"; then
7016   { echo "$as_me:$LINENO: result: $RM" >&5
7017 echo "${ECHO_T}$RM" >&6; }
7018 else
7019   { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7021 fi
7022
7023
7024 # Extract the first word of "sed", so it can be a program name with args.
7025 set dummy sed; ac_word=$2
7026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028 if test "${ac_cv_path_SED+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   case $SED in
7032   [\\/]* | ?:[\\/]*)
7033   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7034   ;;
7035   *)
7036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041   for ac_exec_ext in '' $ac_executable_extensions; do
7042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048 done
7049 IFS=$as_save_IFS
7050
7051   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7052   ;;
7053 esac
7054 fi
7055 SED=$ac_cv_path_SED
7056 if test -n "$SED"; then
7057   { echo "$as_me:$LINENO: result: $SED" >&5
7058 echo "${ECHO_T}$SED" >&6; }
7059 else
7060   { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7062 fi
7063
7064
7065 # Extract the first word of "tar", so it can be a program name with args.
7066 set dummy tar; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_TAR+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   case $TAR in
7073   [\\/]* | ?:[\\/]*)
7074   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7075   ;;
7076   *)
7077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082   for ac_exec_ext in '' $ac_executable_extensions; do
7083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7093   ;;
7094 esac
7095 fi
7096 TAR=$ac_cv_path_TAR
7097 if test -n "$TAR"; then
7098   { echo "$as_me:$LINENO: result: $TAR" >&5
7099 echo "${ECHO_T}$TAR" >&6; }
7100 else
7101   { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7103 fi
7104
7105
7106 # Extract the first word of "pwd", so it can be a program name with args.
7107 set dummy pwd; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_path_BINPWD+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   case $BINPWD in
7114   [\\/]* | ?:[\\/]*)
7115   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7116   ;;
7117   *)
7118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121   IFS=$as_save_IFS
7122   test -z "$as_dir" && as_dir=.
7123   for ac_exec_ext in '' $ac_executable_extensions; do
7124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127     break 2
7128   fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7134   ;;
7135 esac
7136 fi
7137 BINPWD=$ac_cv_path_BINPWD
7138 if test -n "$BINPWD"; then
7139   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7140 echo "${ECHO_T}$BINPWD" >&6; }
7141 else
7142   { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7144 fi
7145
7146
7147
7148 # Extract the first word of "Graphviz", so it can be a program name with args.
7149 set dummy Graphviz; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   case $GRAPHVIZ in
7156   [\\/]* | ?:[\\/]*)
7157   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7158   ;;
7159   *)
7160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165   for ac_exec_ext in '' $ac_executable_extensions; do
7166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7176   ;;
7177 esac
7178 fi
7179 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7180 if test -n "$GRAPHVIZ"; then
7181   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7182 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7183 else
7184   { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7186 fi
7187
7188
7189 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7190
7191 cat >>confdefs.h <<\_ACEOF
7192 #define HAVE_GRAPHVIZ 1
7193 _ACEOF
7194
7195     if test "$llvm_cv_os_type" = "MingW" ; then
7196     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7197   fi
7198
7199 cat >>confdefs.h <<_ACEOF
7200 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7201 _ACEOF
7202
7203 fi
7204 # Extract the first word of "dot", so it can be a program name with args.
7205 set dummy dot; ac_word=$2
7206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208 if test "${ac_cv_path_DOT+set}" = set; then
7209   echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211   case $DOT in
7212   [\\/]* | ?:[\\/]*)
7213   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7214   ;;
7215   *)
7216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221   for ac_exec_ext in '' $ac_executable_extensions; do
7222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7223     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228 done
7229 IFS=$as_save_IFS
7230
7231   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7232   ;;
7233 esac
7234 fi
7235 DOT=$ac_cv_path_DOT
7236 if test -n "$DOT"; then
7237   { echo "$as_me:$LINENO: result: $DOT" >&5
7238 echo "${ECHO_T}$DOT" >&6; }
7239 else
7240   { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7242 fi
7243
7244
7245 if test "$DOT" != "echo dot" ; then
7246
7247 cat >>confdefs.h <<\_ACEOF
7248 #define HAVE_DOT 1
7249 _ACEOF
7250
7251     if test "$llvm_cv_os_type" = "MingW" ; then
7252     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7253   fi
7254
7255 cat >>confdefs.h <<_ACEOF
7256 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7257 _ACEOF
7258
7259 fi
7260 for ac_prog in gv gsview32
7261 do
7262   # Extract the first word of "$ac_prog", so it can be a program name with args.
7263 set dummy $ac_prog; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_GV+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   case $GV in
7270   [\\/]* | ?:[\\/]*)
7271   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7272   ;;
7273   *)
7274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277   IFS=$as_save_IFS
7278   test -z "$as_dir" && as_dir=.
7279   for ac_exec_ext in '' $ac_executable_extensions; do
7280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283     break 2
7284   fi
7285 done
7286 done
7287 IFS=$as_save_IFS
7288
7289   ;;
7290 esac
7291 fi
7292 GV=$ac_cv_path_GV
7293 if test -n "$GV"; then
7294   { echo "$as_me:$LINENO: result: $GV" >&5
7295 echo "${ECHO_T}$GV" >&6; }
7296 else
7297   { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7299 fi
7300
7301
7302   test -n "$GV" && break
7303 done
7304 test -n "$GV" || GV="echo gv"
7305
7306 if test "$GV" != "echo gv" ; then
7307
7308 cat >>confdefs.h <<\_ACEOF
7309 #define HAVE_GV 1
7310 _ACEOF
7311
7312     if test "$llvm_cv_os_type" = "MingW" ; then
7313     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7314   fi
7315
7316 cat >>confdefs.h <<_ACEOF
7317 #define LLVM_PATH_GV "$GV${EXEEXT}"
7318 _ACEOF
7319
7320 fi
7321 # Extract the first word of "dotty", so it can be a program name with args.
7322 set dummy dotty; ac_word=$2
7323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325 if test "${ac_cv_path_DOTTY+set}" = set; then
7326   echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328   case $DOTTY in
7329   [\\/]* | ?:[\\/]*)
7330   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7331   ;;
7332   *)
7333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336   IFS=$as_save_IFS
7337   test -z "$as_dir" && as_dir=.
7338   for ac_exec_ext in '' $ac_executable_extensions; do
7339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7340     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342     break 2
7343   fi
7344 done
7345 done
7346 IFS=$as_save_IFS
7347
7348   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7349   ;;
7350 esac
7351 fi
7352 DOTTY=$ac_cv_path_DOTTY
7353 if test -n "$DOTTY"; then
7354   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7355 echo "${ECHO_T}$DOTTY" >&6; }
7356 else
7357   { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7359 fi
7360
7361
7362 if test "$DOTTY" != "echo dotty" ; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_DOTTY 1
7366 _ACEOF
7367
7368     if test "$llvm_cv_os_type" = "MingW" ; then
7369     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7370   fi
7371
7372 cat >>confdefs.h <<_ACEOF
7373 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7374 _ACEOF
7375
7376 fi
7377
7378
7379 # Extract the first word of "perl", so it can be a program name with args.
7380 set dummy perl; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_PERL+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   case $PERL in
7387   [\\/]* | ?:[\\/]*)
7388   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7389   ;;
7390   *)
7391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396   for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7407   ;;
7408 esac
7409 fi
7410 PERL=$ac_cv_path_PERL
7411 if test -n "$PERL"; then
7412   { echo "$as_me:$LINENO: result: $PERL" >&5
7413 echo "${ECHO_T}$PERL" >&6; }
7414 else
7415   { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7417 fi
7418
7419
7420 if test "$PERL" != "none"; then
7421   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7422 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7423   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7424     { echo "$as_me:$LINENO: result: yes" >&5
7425 echo "${ECHO_T}yes" >&6; }
7426   else
7427     PERL=none
7428     { echo "$as_me:$LINENO: result: not found" >&5
7429 echo "${ECHO_T}not found" >&6; }
7430   fi
7431 fi
7432
7433
7434 if test x"$PERL" = xnone; then
7435    HAVE_PERL=0
7436
7437    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7438 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7439    { (exit 1); exit 1; }; }
7440 else
7441    HAVE_PERL=1
7442
7443 fi
7444
7445 # Find a good install program.  We prefer a C program (faster),
7446 # so one script is as good as another.  But avoid the broken or
7447 # incompatible versions:
7448 # SysV /etc/install, /usr/sbin/install
7449 # SunOS /usr/etc/install
7450 # IRIX /sbin/install
7451 # AIX /bin/install
7452 # AmigaOS /C/install, which installs bootblocks on floppy discs
7453 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7454 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7455 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7456 # OS/2's system install, which has a completely different semantic
7457 # ./install, which can be erroneously created by make from ./install.sh.
7458 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7459 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7460 if test -z "$INSTALL"; then
7461 if test "${ac_cv_path_install+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469   # Account for people who put trailing slashes in PATH elements.
7470 case $as_dir/ in
7471   ./ | .// | /cC/* | \
7472   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7473   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7474   /usr/ucb/* ) ;;
7475   *)
7476     # OSF1 and SCO ODT 3.0 have their own names for install.
7477     # Don't use installbsd from OSF since it installs stuff as root
7478     # by default.
7479     for ac_prog in ginstall scoinst install; do
7480       for ac_exec_ext in '' $ac_executable_extensions; do
7481         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7482           if test $ac_prog = install &&
7483             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7484             # AIX install.  It has an incompatible calling convention.
7485             :
7486           elif test $ac_prog = install &&
7487             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7488             # program-specific install script used by HP pwplus--don't use.
7489             :
7490           else
7491             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7492             break 3
7493           fi
7494         fi
7495       done
7496     done
7497     ;;
7498 esac
7499 done
7500 IFS=$as_save_IFS
7501
7502
7503 fi
7504   if test "${ac_cv_path_install+set}" = set; then
7505     INSTALL=$ac_cv_path_install
7506   else
7507     # As a last resort, use the slow shell script.  Don't cache a
7508     # value for INSTALL within a source directory, because that will
7509     # break other packages using the cache if that directory is
7510     # removed, or if the value is a relative name.
7511     INSTALL=$ac_install_sh
7512   fi
7513 fi
7514 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7515 echo "${ECHO_T}$INSTALL" >&6; }
7516
7517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7518 # It thinks the first close brace ends the variable substitution.
7519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7520
7521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7522
7523 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7524
7525
7526 # Extract the first word of "bzip2", so it can be a program name with args.
7527 set dummy bzip2; ac_word=$2
7528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530 if test "${ac_cv_path_BZIP2+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533   case $BZIP2 in
7534   [\\/]* | ?:[\\/]*)
7535   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7536   ;;
7537   *)
7538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541   IFS=$as_save_IFS
7542   test -z "$as_dir" && as_dir=.
7543   for ac_exec_ext in '' $ac_executable_extensions; do
7544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7545     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547     break 2
7548   fi
7549 done
7550 done
7551 IFS=$as_save_IFS
7552
7553   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7554   ;;
7555 esac
7556 fi
7557 BZIP2=$ac_cv_path_BZIP2
7558 if test -n "$BZIP2"; then
7559   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7560 echo "${ECHO_T}$BZIP2" >&6; }
7561 else
7562   { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7564 fi
7565
7566
7567 # Extract the first word of "doxygen", so it can be a program name with args.
7568 set dummy doxygen; ac_word=$2
7569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574   case $DOXYGEN in
7575   [\\/]* | ?:[\\/]*)
7576   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7577   ;;
7578   *)
7579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584   for ac_exec_ext in '' $ac_executable_extensions; do
7585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7586     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591 done
7592 IFS=$as_save_IFS
7593
7594   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7595   ;;
7596 esac
7597 fi
7598 DOXYGEN=$ac_cv_path_DOXYGEN
7599 if test -n "$DOXYGEN"; then
7600   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7601 echo "${ECHO_T}$DOXYGEN" >&6; }
7602 else
7603   { echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6; }
7605 fi
7606
7607
7608 # Extract the first word of "groff", so it can be a program name with args.
7609 set dummy groff; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_GROFF+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   case $GROFF in
7616   [\\/]* | ?:[\\/]*)
7617   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7618   ;;
7619   *)
7620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625   for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632 done
7633 IFS=$as_save_IFS
7634
7635   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7636   ;;
7637 esac
7638 fi
7639 GROFF=$ac_cv_path_GROFF
7640 if test -n "$GROFF"; then
7641   { echo "$as_me:$LINENO: result: $GROFF" >&5
7642 echo "${ECHO_T}$GROFF" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7646 fi
7647
7648
7649 # Extract the first word of "gzip", so it can be a program name with args.
7650 set dummy gzip; ac_word=$2
7651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7653 if test "${ac_cv_path_GZIP+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   case $GZIP in
7657   [\\/]* | ?:[\\/]*)
7658   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7659   ;;
7660   *)
7661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664   IFS=$as_save_IFS
7665   test -z "$as_dir" && as_dir=.
7666   for ac_exec_ext in '' $ac_executable_extensions; do
7667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7668     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670     break 2
7671   fi
7672 done
7673 done
7674 IFS=$as_save_IFS
7675
7676   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7677   ;;
7678 esac
7679 fi
7680 GZIP=$ac_cv_path_GZIP
7681 if test -n "$GZIP"; then
7682   { echo "$as_me:$LINENO: result: $GZIP" >&5
7683 echo "${ECHO_T}$GZIP" >&6; }
7684 else
7685   { echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6; }
7687 fi
7688
7689
7690 # Extract the first word of "pod2html", so it can be a program name with args.
7691 set dummy pod2html; ac_word=$2
7692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694 if test "${ac_cv_path_POD2HTML+set}" = set; then
7695   echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697   case $POD2HTML in
7698   [\\/]* | ?:[\\/]*)
7699   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7700   ;;
7701   *)
7702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707   for ac_exec_ext in '' $ac_executable_extensions; do
7708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7718   ;;
7719 esac
7720 fi
7721 POD2HTML=$ac_cv_path_POD2HTML
7722 if test -n "$POD2HTML"; then
7723   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7724 echo "${ECHO_T}$POD2HTML" >&6; }
7725 else
7726   { echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6; }
7728 fi
7729
7730
7731 # Extract the first word of "pod2man", so it can be a program name with args.
7732 set dummy pod2man; ac_word=$2
7733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7735 if test "${ac_cv_path_POD2MAN+set}" = set; then
7736   echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738   case $POD2MAN in
7739   [\\/]* | ?:[\\/]*)
7740   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7741   ;;
7742   *)
7743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746   IFS=$as_save_IFS
7747   test -z "$as_dir" && as_dir=.
7748   for ac_exec_ext in '' $ac_executable_extensions; do
7749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7750     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752     break 2
7753   fi
7754 done
7755 done
7756 IFS=$as_save_IFS
7757
7758   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7759   ;;
7760 esac
7761 fi
7762 POD2MAN=$ac_cv_path_POD2MAN
7763 if test -n "$POD2MAN"; then
7764   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7765 echo "${ECHO_T}$POD2MAN" >&6; }
7766 else
7767   { echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6; }
7769 fi
7770
7771
7772 # Extract the first word of "runtest", so it can be a program name with args.
7773 set dummy runtest; ac_word=$2
7774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776 if test "${ac_cv_path_RUNTEST+set}" = set; then
7777   echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779   case $RUNTEST in
7780   [\\/]* | ?:[\\/]*)
7781   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7782   ;;
7783   *)
7784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789   for ac_exec_ext in '' $ac_executable_extensions; do
7790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796 done
7797 IFS=$as_save_IFS
7798
7799   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7800   ;;
7801 esac
7802 fi
7803 RUNTEST=$ac_cv_path_RUNTEST
7804 if test -n "$RUNTEST"; then
7805   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7806 echo "${ECHO_T}$RUNTEST" >&6; }
7807 else
7808   { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7810 fi
7811
7812
7813
7814 no_itcl=true
7815 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7816 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7817
7818 # Check whether --with-tclinclude was given.
7819 if test "${with_tclinclude+set}" = set; then
7820   withval=$with_tclinclude; with_tclinclude=${withval}
7821 else
7822   with_tclinclude=''
7823 fi
7824
7825 if test "${ac_cv_path_tclsh+set}" = set; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828
7829 if test x"${with_tclinclude}" != x ; then
7830   if test -f ${with_tclinclude}/tclsh ; then
7831     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7832   elif test -f ${with_tclinclude}/src/tclsh ; then
7833     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7834   else
7835     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7836 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7837    { (exit 1); exit 1; }; }
7838   fi
7839 fi
7840
7841 if test x"${ac_cv_path_tclsh}" = x ; then
7842   { echo "$as_me:$LINENO: result: none" >&5
7843 echo "${ECHO_T}none" >&6; }
7844   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
7845 do
7846   # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850 if test "${ac_cv_path_TCLSH+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   case $TCLSH in
7854   [\\/]* | ?:[\\/]*)
7855   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7856   ;;
7857   *)
7858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861   IFS=$as_save_IFS
7862   test -z "$as_dir" && as_dir=.
7863   for ac_exec_ext in '' $ac_executable_extensions; do
7864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7865     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870 done
7871 IFS=$as_save_IFS
7872
7873   ;;
7874 esac
7875 fi
7876 TCLSH=$ac_cv_path_TCLSH
7877 if test -n "$TCLSH"; then
7878   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7879 echo "${ECHO_T}$TCLSH" >&6; }
7880 else
7881   { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7883 fi
7884
7885
7886   test -n "$TCLSH" && break
7887 done
7888
7889   if test x"${TCLSH}" = x ; then
7890     ac_cv_path_tclsh='';
7891   else
7892     ac_cv_path_tclsh="${TCLSH}";
7893   fi
7894 else
7895   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7896 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7897   TCLSH="${ac_cv_path_tclsh}"
7898
7899 fi
7900
7901 fi
7902
7903 # Extract the first word of "zip", so it can be a program name with args.
7904 set dummy zip; 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_ZIP+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910   case $ZIP in
7911   [\\/]* | ?:[\\/]*)
7912   ac_cv_path_ZIP="$ZIP" # 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_ZIP="$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   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7931   ;;
7932 esac
7933 fi
7934 ZIP=$ac_cv_path_ZIP
7935 if test -n "$ZIP"; then
7936   { echo "$as_me:$LINENO: result: $ZIP" >&5
7937 echo "${ECHO_T}$ZIP" >&6; }
7938 else
7939   { echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6; }
7941 fi
7942
7943
7944 # Extract the first word of "ocamlc", so it can be a program name with args.
7945 set dummy ocamlc; ac_word=$2
7946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7948 if test "${ac_cv_path_OCAMLC+set}" = set; then
7949   echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951   case $OCAMLC in
7952   [\\/]* | ?:[\\/]*)
7953   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7954   ;;
7955   *)
7956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961   for ac_exec_ext in '' $ac_executable_extensions; do
7962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7963     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968 done
7969 IFS=$as_save_IFS
7970
7971   test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7972   ;;
7973 esac
7974 fi
7975 OCAMLC=$ac_cv_path_OCAMLC
7976 if test -n "$OCAMLC"; then
7977   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7978 echo "${ECHO_T}$OCAMLC" >&6; }
7979 else
7980   { echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6; }
7982 fi
7983
7984
7985 # Extract the first word of "ocamlopt", so it can be a program name with args.
7986 set dummy ocamlopt; ac_word=$2
7987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7989 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7990   echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992   case $OCAMLOPT in
7993   [\\/]* | ?:[\\/]*)
7994   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7995   ;;
7996   *)
7997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000   IFS=$as_save_IFS
8001   test -z "$as_dir" && as_dir=.
8002   for ac_exec_ext in '' $ac_executable_extensions; do
8003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8004     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006     break 2
8007   fi
8008 done
8009 done
8010 IFS=$as_save_IFS
8011
8012   test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
8013   ;;
8014 esac
8015 fi
8016 OCAMLOPT=$ac_cv_path_OCAMLOPT
8017 if test -n "$OCAMLOPT"; then
8018   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8019 echo "${ECHO_T}$OCAMLOPT" >&6; }
8020 else
8021   { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8023 fi
8024
8025
8026 # Extract the first word of "ocamldep", so it can be a program name with args.
8027 set dummy ocamldep; ac_word=$2
8028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8031   echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033   case $OCAMLDEP in
8034   [\\/]* | ?:[\\/]*)
8035   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8036   ;;
8037   *)
8038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041   IFS=$as_save_IFS
8042   test -z "$as_dir" && as_dir=.
8043   for ac_exec_ext in '' $ac_executable_extensions; do
8044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047     break 2
8048   fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053   test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8054   ;;
8055 esac
8056 fi
8057 OCAMLDEP=$ac_cv_path_OCAMLDEP
8058 if test -n "$OCAMLDEP"; then
8059   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8060 echo "${ECHO_T}$OCAMLDEP" >&6; }
8061 else
8062   { echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6; }
8064 fi
8065
8066
8067
8068 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8069 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8070 if test "${llvm_cv_link_use_r+set}" = set; then
8071   echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073    ac_ext=c
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8078
8079   oldcflags="$CFLAGS"
8080   CFLAGS="$CFLAGS -Wl,-R."
8081   cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h.  */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h.  */
8087
8088 int
8089 main ()
8090 {
8091 int main() { return 0; }
8092   ;
8093   return 0;
8094 }
8095 _ACEOF
8096 rm -f conftest.$ac_objext conftest$ac_exeext
8097 if { (ac_try="$ac_link"
8098 case "(($ac_try" in
8099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100   *) ac_try_echo=$ac_try;;
8101 esac
8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103   (eval "$ac_link") 2>conftest.er1
8104   ac_status=$?
8105   grep -v '^ *+' conftest.er1 >conftest.err
8106   rm -f conftest.er1
8107   cat conftest.err >&5
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); } &&
8110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8111   { (case "(($ac_try" in
8112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113   *) ac_try_echo=$ac_try;;
8114 esac
8115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116   (eval "$ac_try") 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; } &&
8120          { ac_try='test -s conftest$ac_exeext'
8121   { (case "(($ac_try" in
8122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123   *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126   (eval "$ac_try") 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; }; then
8130   llvm_cv_link_use_r=yes
8131 else
8132   echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135         llvm_cv_link_use_r=no
8136 fi
8137
8138 rm -f core conftest.err conftest.$ac_objext \
8139       conftest$ac_exeext conftest.$ac_ext
8140   CFLAGS="$oldcflags"
8141   ac_ext=c
8142 ac_cpp='$CPP $CPPFLAGS'
8143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8146
8147
8148 fi
8149 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8150 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8151 if test "$llvm_cv_link_use_r" = yes ; then
8152
8153 cat >>confdefs.h <<\_ACEOF
8154 #define HAVE_LINK_R 1
8155 _ACEOF
8156
8157   fi
8158
8159
8160
8161
8162 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8163 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8164 if test "${ac_cv_c_const+set}" = set; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167   cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173
8174 int
8175 main ()
8176 {
8177 /* FIXME: Include the comments suggested by Paul. */
8178 #ifndef __cplusplus
8179   /* Ultrix mips cc rejects this.  */
8180   typedef int charset[2];
8181   const charset x;
8182   /* SunOS 4.1.1 cc rejects this.  */
8183   char const *const *ccp;
8184   char **p;
8185   /* NEC SVR4.0.2 mips cc rejects this.  */
8186   struct point {int x, y;};
8187   static struct point const zero = {0,0};
8188   /* AIX XL C 1.02.0.0 rejects this.
8189      It does not let you subtract one const X* pointer from another in
8190      an arm of an if-expression whose if-part is not a constant
8191      expression */
8192   const char *g = "string";
8193   ccp = &g + (g ? g-g : 0);
8194   /* HPUX 7.0 cc rejects these. */
8195   ++ccp;
8196   p = (char**) ccp;
8197   ccp = (char const *const *) p;
8198   { /* SCO 3.2v4 cc rejects this.  */
8199     char *t;
8200     char const *s = 0 ? (char *) 0 : (char const *) 0;
8201
8202     *t++ = 0;
8203     if (s) return 0;
8204   }
8205   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8206     int x[] = {25, 17};
8207     const int *foo = &x[0];
8208     ++foo;
8209   }
8210   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8211     typedef const int *iptr;
8212     iptr p = 0;
8213     ++p;
8214   }
8215   { /* AIX XL C 1.02.0.0 rejects this saying
8216        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8217     struct s { int j; const int *ap[3]; };
8218     struct s *b; b->j = 5;
8219   }
8220   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8221     const int foo = 10;
8222     if (!foo) return 0;
8223   }
8224   return !x[0] && !zero.x;
8225 #endif
8226
8227   ;
8228   return 0;
8229 }
8230 _ACEOF
8231 rm -f conftest.$ac_objext
8232 if { (ac_try="$ac_compile"
8233 case "(($ac_try" in
8234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235   *) ac_try_echo=$ac_try;;
8236 esac
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238   (eval "$ac_compile") 2>conftest.er1
8239   ac_status=$?
8240   grep -v '^ *+' conftest.er1 >conftest.err
8241   rm -f conftest.er1
8242   cat conftest.err >&5
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } &&
8245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246   { (case "(($ac_try" in
8247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248   *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251   (eval "$ac_try") 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); }; } &&
8255          { ac_try='test -s conftest.$ac_objext'
8256   { (case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_try") 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; }; then
8265   ac_cv_c_const=yes
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270         ac_cv_c_const=no
8271 fi
8272
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8276 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8277 if test $ac_cv_c_const = no; then
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define const
8281 _ACEOF
8282
8283 fi
8284
8285
8286
8287
8288
8289
8290 ac_header_dirent=no
8291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8292   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8293 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8294 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h.  */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h.  */
8304 #include <sys/types.h>
8305 #include <$ac_hdr>
8306
8307 int
8308 main ()
8309 {
8310 if ((DIR *) 0)
8311 return 0;
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_compile") 2>conftest.er1
8324   ac_status=$?
8325   grep -v '^ *+' conftest.er1 >conftest.err
8326   rm -f conftest.er1
8327   cat conftest.err >&5
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } &&
8330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331   { (case "(($ac_try" in
8332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333   *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336   (eval "$ac_try") 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; } &&
8340          { ac_try='test -s conftest.$ac_objext'
8341   { (case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_try") 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; }; then
8350   eval "$as_ac_Header=yes"
8351 else
8352   echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355         eval "$as_ac_Header=no"
8356 fi
8357
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 ac_res=`eval echo '${'$as_ac_Header'}'`
8361                { echo "$as_me:$LINENO: result: $ac_res" >&5
8362 echo "${ECHO_T}$ac_res" >&6; }
8363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8364   cat >>confdefs.h <<_ACEOF
8365 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8366 _ACEOF
8367
8368 ac_header_dirent=$ac_hdr; break
8369 fi
8370
8371 done
8372 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8373 if test $ac_header_dirent = dirent.h; then
8374   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8376 if test "${ac_cv_search_opendir+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   ac_func_search_save_LIBS=$LIBS
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386
8387 /* Override any GCC internal prototype to avoid an error.
8388    Use char because int might match the return type of a GCC
8389    builtin and then its argument prototype would still apply.  */
8390 #ifdef __cplusplus
8391 extern "C"
8392 #endif
8393 char opendir ();
8394 int
8395 main ()
8396 {
8397 return opendir ();
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 for ac_lib in '' dir; do
8403   if test -z "$ac_lib"; then
8404     ac_res="none required"
8405   else
8406     ac_res=-l$ac_lib
8407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8408   fi
8409   rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (ac_try="$ac_link"
8411 case "(($ac_try" in
8412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413   *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416   (eval "$ac_link") 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424   { (case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429   (eval "$ac_try") 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; } &&
8433          { ac_try='test -s conftest$ac_exeext'
8434   { (case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_try") 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443   ac_cv_search_opendir=$ac_res
8444 else
8445   echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448
8449 fi
8450
8451 rm -f core conftest.err conftest.$ac_objext \
8452       conftest$ac_exeext
8453   if test "${ac_cv_search_opendir+set}" = set; then
8454   break
8455 fi
8456 done
8457 if test "${ac_cv_search_opendir+set}" = set; then
8458   :
8459 else
8460   ac_cv_search_opendir=no
8461 fi
8462 rm conftest.$ac_ext
8463 LIBS=$ac_func_search_save_LIBS
8464 fi
8465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8467 ac_res=$ac_cv_search_opendir
8468 if test "$ac_res" != no; then
8469   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8470
8471 fi
8472
8473 else
8474   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8475 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8476 if test "${ac_cv_search_opendir+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   ac_func_search_save_LIBS=$LIBS
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486
8487 /* Override any GCC internal prototype to avoid an error.
8488    Use char because int might match the return type of a GCC
8489    builtin and then its argument prototype would still apply.  */
8490 #ifdef __cplusplus
8491 extern "C"
8492 #endif
8493 char opendir ();
8494 int
8495 main ()
8496 {
8497 return opendir ();
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 for ac_lib in '' x; do
8503   if test -z "$ac_lib"; then
8504     ac_res="none required"
8505   else
8506     ac_res=-l$ac_lib
8507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8508   fi
8509   rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (ac_try="$ac_link"
8511 case "(($ac_try" in
8512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513   *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516   (eval "$ac_link") 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524   { (case "(($ac_try" in
8525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526   *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529   (eval "$ac_try") 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); }; } &&
8533          { ac_try='test -s conftest$ac_exeext'
8534   { (case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_try") 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; }; then
8543   ac_cv_search_opendir=$ac_res
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548
8549 fi
8550
8551 rm -f core conftest.err conftest.$ac_objext \
8552       conftest$ac_exeext
8553   if test "${ac_cv_search_opendir+set}" = set; then
8554   break
8555 fi
8556 done
8557 if test "${ac_cv_search_opendir+set}" = set; then
8558   :
8559 else
8560   ac_cv_search_opendir=no
8561 fi
8562 rm conftest.$ac_ext
8563 LIBS=$ac_func_search_save_LIBS
8564 fi
8565 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8566 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8567 ac_res=$ac_cv_search_opendir
8568 if test "$ac_res" != no; then
8569   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8570
8571 fi
8572
8573 fi
8574
8575
8576 for ac_header in dlfcn.h
8577 do
8578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 fi
8585 ac_res=`eval echo '${'$as_ac_Header'}'`
8586                { echo "$as_me:$LINENO: result: $ac_res" >&5
8587 echo "${ECHO_T}$ac_res" >&6; }
8588 else
8589   # Is the header compilable?
8590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h.  */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h.  */
8598 $ac_includes_default
8599 #include <$ac_header>
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608   (eval "$ac_compile") 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616   { (case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_try") 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; } &&
8625          { ac_try='test -s conftest.$ac_objext'
8626   { (case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_try") 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; }; then
8635   ac_header_compiler=yes
8636 else
8637   echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640         ac_header_compiler=no
8641 fi
8642
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 echo "${ECHO_T}$ac_header_compiler" >&6; }
8646
8647 # Is the header present?
8648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 #include <$ac_header>
8657 _ACEOF
8658 if { (ac_try="$ac_cpp conftest.$ac_ext"
8659 case "(($ac_try" in
8660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661   *) ac_try_echo=$ac_try;;
8662 esac
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8665   ac_status=$?
8666   grep -v '^ *+' conftest.er1 >conftest.err
8667   rm -f conftest.er1
8668   cat conftest.err >&5
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } >/dev/null; then
8671   if test -s conftest.err; then
8672     ac_cpp_err=$ac_c_preproc_warn_flag
8673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8674   else
8675     ac_cpp_err=
8676   fi
8677 else
8678   ac_cpp_err=yes
8679 fi
8680 if test -z "$ac_cpp_err"; then
8681   ac_header_preproc=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686   ac_header_preproc=no
8687 fi
8688
8689 rm -f conftest.err conftest.$ac_ext
8690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691 echo "${ECHO_T}$ac_header_preproc" >&6; }
8692
8693 # So?  What about this header?
8694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8695   yes:no: )
8696     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700     ac_header_preproc=yes
8701     ;;
8702   no:yes:* )
8703     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8706 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8707     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8710 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8715     ( cat <<\_ASBOX
8716 ## ----------------------------------- ##
8717 ## Report this to llvmbugs@cs.uiuc.edu ##
8718 ## ----------------------------------- ##
8719 _ASBOX
8720      ) | sed "s/^/$as_me: WARNING:     /" >&2
8721     ;;
8722 esac
8723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   eval "$as_ac_Header=\$ac_header_preproc"
8729 fi
8730 ac_res=`eval echo '${'$as_ac_Header'}'`
8731                { echo "$as_me:$LINENO: result: $ac_res" >&5
8732 echo "${ECHO_T}$ac_res" >&6; }
8733
8734 fi
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736   cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8738 _ACEOF
8739
8740 fi
8741
8742 done
8743
8744 # Check whether --enable-ltdl-install was given.
8745 if test "${enable_ltdl_install+set}" = set; then
8746   enableval=$enable_ltdl_install;
8747 fi
8748
8749
8750
8751
8752 if test x"${enable_ltdl_install-no}" != xno; then
8753   INSTALL_LTDL_TRUE=
8754   INSTALL_LTDL_FALSE='#'
8755 else
8756   INSTALL_LTDL_TRUE='#'
8757   INSTALL_LTDL_FALSE=
8758 fi
8759
8760
8761
8762 if test x"${enable_ltdl_convenience-no}" != xno; then
8763   CONVENIENCE_LTDL_TRUE=
8764   CONVENIENCE_LTDL_FALSE='#'
8765 else
8766   CONVENIENCE_LTDL_TRUE='#'
8767   CONVENIENCE_LTDL_FALSE=
8768 fi
8769
8770
8771 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8773 library_names_spec=
8774 libname_spec='lib$name'
8775 soname_spec=
8776 shrext_cmds=".so"
8777 postinstall_cmds=
8778 postuninstall_cmds=
8779 finish_cmds=
8780 finish_eval=
8781 shlibpath_var=
8782 shlibpath_overrides_runpath=unknown
8783 version_type=none
8784 dynamic_linker="$host_os ld.so"
8785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786 if test "$GCC" = yes; then
8787   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789     # if the path contains ";" then we assume it to be the separator
8790     # otherwise default to the standard path separator (i.e. ":") - it is
8791     # assumed that no part of a normal pathname contains ";" but that should
8792     # okay in the real world where ";" in dirpaths is itself problematic.
8793     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8794   else
8795     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8796   fi
8797 else
8798   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8799 fi
8800 need_lib_prefix=unknown
8801 hardcode_into_libs=no
8802
8803 # when you set need_version to no, make sure it does not cause -set_version
8804 # flags to be left without arguments
8805 need_version=unknown
8806
8807 case $host_os in
8808 aix3*)
8809   version_type=linux
8810   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811   shlibpath_var=LIBPATH
8812
8813   # AIX 3 has no versioning support, so we append a major version to the name.
8814   soname_spec='${libname}${release}${shared_ext}$major'
8815   ;;
8816
8817 aix4* | aix5*)
8818   version_type=linux
8819   need_lib_prefix=no
8820   need_version=no
8821   hardcode_into_libs=yes
8822   if test "$host_cpu" = ia64; then
8823     # AIX 5 supports IA64
8824     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825     shlibpath_var=LD_LIBRARY_PATH
8826   else
8827     # With GCC up to 2.95.x, collect2 would create an import file
8828     # for dependence libraries.  The import file would start with
8829     # the line `#! .'.  This would cause the generated library to
8830     # depend on `.', always an invalid library.  This was fixed in
8831     # development snapshots of GCC prior to 3.0.
8832     case $host_os in
8833       aix4 | aix4.[01] | aix4.[01].*)
8834       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8835            echo ' yes '
8836            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8837         :
8838       else
8839         can_build_shared=no
8840       fi
8841       ;;
8842     esac
8843     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844     # soname into executable. Probably we can add versioning support to
8845     # collect2, so additional links can be useful in future.
8846     if test "$aix_use_runtimelinking" = yes; then
8847       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848       # instead of lib<name>.a to let people know that these are not
8849       # typical AIX shared libraries.
8850       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851     else
8852       # We preserve .a as extension for shared libraries through AIX4.2
8853       # and later when we are not doing run time linking.
8854       library_names_spec='${libname}${release}.a $libname.a'
8855       soname_spec='${libname}${release}${shared_ext}$major'
8856     fi
8857     shlibpath_var=LIBPATH
8858   fi
8859   ;;
8860
8861 amigaos*)
8862   library_names_spec='$libname.ixlibrary $libname.a'
8863   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864   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'
8865   ;;
8866
8867 beos*)
8868   library_names_spec='${libname}${shared_ext}'
8869   dynamic_linker="$host_os ld.so"
8870   shlibpath_var=LIBRARY_PATH
8871   ;;
8872
8873 bsdi[45]*)
8874   version_type=linux
8875   need_version=no
8876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877   soname_spec='${libname}${release}${shared_ext}$major'
8878   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879   shlibpath_var=LD_LIBRARY_PATH
8880   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882   # the default ld.so.conf also contains /usr/contrib/lib and
8883   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884   # libtool to hard-code these into programs
8885   ;;
8886
8887 cygwin* | mingw* | pw32*)
8888   version_type=windows
8889   shrext_cmds=".dll"
8890   need_version=no
8891   need_lib_prefix=no
8892
8893   case $GCC,$host_os in
8894   yes,cygwin* | yes,mingw* | yes,pw32*)
8895     library_names_spec='$libname.dll.a'
8896     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897     postinstall_cmds='base_file=`basename \${file}`~
8898       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899       dldir=$destdir/`dirname \$dlpath`~
8900       test -d \$dldir || mkdir -p \$dldir~
8901       $install_prog $dir/$dlname \$dldir/$dlname~
8902       chmod a+x \$dldir/$dlname'
8903     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904       dlpath=$dir/\$dldll~
8905        $rm \$dlpath'
8906     shlibpath_overrides_runpath=yes
8907
8908     case $host_os in
8909     cygwin*)
8910       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8913       ;;
8914     mingw*)
8915       # MinGW DLLs use traditional 'lib' prefix
8916       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919         # It is most probably a Windows format PATH printed by
8920         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921         # path with ; separators, and with drive letters. We can handle the
8922         # drive letters (cygwin fileutils understands them), so leave them,
8923         # especially as we might pass files found there to a mingw objdump,
8924         # which wouldn't understand a cygwinified path. Ahh.
8925         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8926       else
8927         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8928       fi
8929       ;;
8930     pw32*)
8931       # pw32 DLLs use 'pw' prefix rather than 'lib'
8932       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8933       ;;
8934     esac
8935     ;;
8936
8937   *)
8938     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8939     ;;
8940   esac
8941   dynamic_linker='Win32 ld.exe'
8942   # FIXME: first we should search . and the directory the executable is in
8943   shlibpath_var=PATH
8944   ;;
8945
8946 darwin* | rhapsody*)
8947   dynamic_linker="$host_os dyld"
8948   version_type=darwin
8949   need_lib_prefix=no
8950   need_version=no
8951   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952   soname_spec='${libname}${release}${major}$shared_ext'
8953   shlibpath_overrides_runpath=yes
8954   shlibpath_var=DYLD_LIBRARY_PATH
8955   shrext_cmds='.dylib'
8956   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957   if test "$GCC" = yes; then
8958     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"`
8959   else
8960     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8961   fi
8962   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8963   ;;
8964
8965 dgux*)
8966   version_type=linux
8967   need_lib_prefix=no
8968   need_version=no
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   ;;
8973
8974 freebsd1*)
8975   dynamic_linker=no
8976   ;;
8977
8978 kfreebsd*-gnu)
8979   version_type=linux
8980   need_lib_prefix=no
8981   need_version=no
8982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983   soname_spec='${libname}${release}${shared_ext}$major'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   shlibpath_overrides_runpath=no
8986   hardcode_into_libs=yes
8987   dynamic_linker='GNU ld.so'
8988   ;;
8989
8990 freebsd* | dragonfly*)
8991   # DragonFly does not have aout.  When/if they implement a new
8992   # versioning mechanism, adjust this.
8993   if test -x /usr/bin/objformat; then
8994     objformat=`/usr/bin/objformat`
8995   else
8996     case $host_os in
8997     freebsd[123]*) objformat=aout ;;
8998     *) objformat=elf ;;
8999     esac
9000   fi
9001   version_type=freebsd-$objformat
9002   case $version_type in
9003     freebsd-elf*)
9004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005       need_version=no
9006       need_lib_prefix=no
9007       ;;
9008     freebsd-*)
9009       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9010       need_version=yes
9011       ;;
9012   esac
9013   shlibpath_var=LD_LIBRARY_PATH
9014   case $host_os in
9015   freebsd2*)
9016     shlibpath_overrides_runpath=yes
9017     ;;
9018   freebsd3.[01]* | freebsdelf3.[01]*)
9019     shlibpath_overrides_runpath=yes
9020     hardcode_into_libs=yes
9021     ;;
9022   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024     shlibpath_overrides_runpath=no
9025     hardcode_into_libs=yes
9026     ;;
9027   freebsd*) # from 4.6 on
9028     shlibpath_overrides_runpath=yes
9029     hardcode_into_libs=yes
9030     ;;
9031   esac
9032   ;;
9033
9034 gnu*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   shlibpath_var=LD_LIBRARY_PATH
9041   hardcode_into_libs=yes
9042   ;;
9043
9044 hpux9* | hpux10* | hpux11*)
9045   # Give a soname corresponding to the major version so that dld.sl refuses to
9046   # link against other versions.
9047   version_type=sunos
9048   need_lib_prefix=no
9049   need_version=no
9050   case $host_cpu in
9051   ia64*)
9052     shrext_cmds='.so'
9053     hardcode_into_libs=yes
9054     dynamic_linker="$host_os dld.so"
9055     shlibpath_var=LD_LIBRARY_PATH
9056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058     soname_spec='${libname}${release}${shared_ext}$major'
9059     if test "X$HPUX_IA64_MODE" = X32; then
9060       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061     else
9062       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063     fi
9064     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065     ;;
9066    hppa*64*)
9067      shrext_cmds='.sl'
9068      hardcode_into_libs=yes
9069      dynamic_linker="$host_os dld.sl"
9070      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073      soname_spec='${libname}${release}${shared_ext}$major'
9074      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076      ;;
9077    *)
9078     shrext_cmds='.sl'
9079     dynamic_linker="$host_os dld.sl"
9080     shlibpath_var=SHLIB_PATH
9081     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083     soname_spec='${libname}${release}${shared_ext}$major'
9084     ;;
9085   esac
9086   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087   postinstall_cmds='chmod 555 $lib'
9088   ;;
9089
9090 interix3*)
9091   version_type=linux
9092   need_lib_prefix=no
9093   need_version=no
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095   soname_spec='${libname}${release}${shared_ext}$major'
9096   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   shlibpath_overrides_runpath=no
9099   hardcode_into_libs=yes
9100   ;;
9101
9102 irix5* | irix6* | nonstopux*)
9103   case $host_os in
9104     nonstopux*) version_type=nonstopux ;;
9105     *)
9106         if test "$lt_cv_prog_gnu_ld" = yes; then
9107                 version_type=linux
9108         else
9109                 version_type=irix
9110         fi ;;
9111   esac
9112   need_lib_prefix=no
9113   need_version=no
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116   case $host_os in
9117   irix5* | nonstopux*)
9118     libsuff= shlibsuff=
9119     ;;
9120   *)
9121     case $LD in # libtool.m4 will add one of these switches to LD
9122     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123       libsuff= shlibsuff= libmagic=32-bit;;
9124     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125       libsuff=32 shlibsuff=N32 libmagic=N32;;
9126     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128     *) libsuff= shlibsuff= libmagic=never-match;;
9129     esac
9130     ;;
9131   esac
9132   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133   shlibpath_overrides_runpath=no
9134   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136   hardcode_into_libs=yes
9137   ;;
9138
9139 # No shared lib support for Linux oldld, aout, or coff.
9140 linux*oldld* | linux*aout* | linux*coff*)
9141   dynamic_linker=no
9142   ;;
9143
9144 # This must be Linux ELF.
9145 linux*)
9146   version_type=linux
9147   need_lib_prefix=no
9148   need_version=no
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150   soname_spec='${libname}${release}${shared_ext}$major'
9151   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   shlibpath_overrides_runpath=no
9154   # This implies no fast_install, which is unacceptable.
9155   # Some rework will be needed to allow for fast_install
9156   # before this can be enabled.
9157   hardcode_into_libs=yes
9158
9159   # Append ld.so.conf contents to the search path
9160   if test -f /etc/ld.so.conf; then
9161     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' ' '`
9162     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163   fi
9164
9165   # We used to test for /lib/ld.so.1 and disable shared libraries on
9166   # powerpc, because MkLinux only supported shared libraries with the
9167   # GNU dynamic linker.  Since this was broken with cross compilers,
9168   # most powerpc-linux boxes support dynamic linking these days and
9169   # people can always --disable-shared, the test was removed, and we
9170   # assume the GNU/Linux dynamic linker is in use.
9171   dynamic_linker='GNU/Linux ld.so'
9172   ;;
9173
9174 knetbsd*-gnu)
9175   version_type=linux
9176   need_lib_prefix=no
9177   need_version=no
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179   soname_spec='${libname}${release}${shared_ext}$major'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   shlibpath_overrides_runpath=no
9182   hardcode_into_libs=yes
9183   dynamic_linker='GNU ld.so'
9184   ;;
9185
9186 netbsd*)
9187   version_type=sunos
9188   need_lib_prefix=no
9189   need_version=no
9190   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193     dynamic_linker='NetBSD (a.out) ld.so'
9194   else
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     dynamic_linker='NetBSD ld.elf_so'
9198   fi
9199   shlibpath_var=LD_LIBRARY_PATH
9200   shlibpath_overrides_runpath=yes
9201   hardcode_into_libs=yes
9202   ;;
9203
9204 newsos6)
9205   version_type=linux
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207   shlibpath_var=LD_LIBRARY_PATH
9208   shlibpath_overrides_runpath=yes
9209   ;;
9210
9211 nto-qnx*)
9212   version_type=linux
9213   need_lib_prefix=no
9214   need_version=no
9215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216   soname_spec='${libname}${release}${shared_ext}$major'
9217   shlibpath_var=LD_LIBRARY_PATH
9218   shlibpath_overrides_runpath=yes
9219   ;;
9220
9221 openbsd*)
9222   version_type=sunos
9223   sys_lib_dlsearch_path_spec="/usr/lib"
9224   need_lib_prefix=no
9225   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9226   case $host_os in
9227     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228     *)                         need_version=no  ;;
9229   esac
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232   shlibpath_var=LD_LIBRARY_PATH
9233   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9234     case $host_os in
9235       openbsd2.[89] | openbsd2.[89].*)
9236         shlibpath_overrides_runpath=no
9237         ;;
9238       *)
9239         shlibpath_overrides_runpath=yes
9240         ;;
9241       esac
9242   else
9243     shlibpath_overrides_runpath=yes
9244   fi
9245   ;;
9246
9247 os2*)
9248   libname_spec='$name'
9249   shrext_cmds=".dll"
9250   need_lib_prefix=no
9251   library_names_spec='$libname${shared_ext} $libname.a'
9252   dynamic_linker='OS/2 ld.exe'
9253   shlibpath_var=LIBPATH
9254   ;;
9255
9256 osf3* | osf4* | osf5*)
9257   version_type=osf
9258   need_lib_prefix=no
9259   need_version=no
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262   shlibpath_var=LD_LIBRARY_PATH
9263   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9265   ;;
9266
9267 solaris*)
9268   version_type=linux
9269   need_lib_prefix=no
9270   need_version=no
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272   soname_spec='${libname}${release}${shared_ext}$major'
9273   shlibpath_var=LD_LIBRARY_PATH
9274   shlibpath_overrides_runpath=yes
9275   hardcode_into_libs=yes
9276   # ldd complains unless libraries are executable
9277   postinstall_cmds='chmod +x $lib'
9278   ;;
9279
9280 sunos4*)
9281   version_type=sunos
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   shlibpath_overrides_runpath=yes
9286   if test "$with_gnu_ld" = yes; then
9287     need_lib_prefix=no
9288   fi
9289   need_version=yes
9290   ;;
9291
9292 sysv4 | sysv4.3*)
9293   version_type=linux
9294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295   soname_spec='${libname}${release}${shared_ext}$major'
9296   shlibpath_var=LD_LIBRARY_PATH
9297   case $host_vendor in
9298     sni)
9299       shlibpath_overrides_runpath=no
9300       need_lib_prefix=no
9301       export_dynamic_flag_spec='${wl}-Blargedynsym'
9302       runpath_var=LD_RUN_PATH
9303       ;;
9304     siemens)
9305       need_lib_prefix=no
9306       ;;
9307     motorola)
9308       need_lib_prefix=no
9309       need_version=no
9310       shlibpath_overrides_runpath=no
9311       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9312       ;;
9313   esac
9314   ;;
9315
9316 sysv4*MP*)
9317   if test -d /usr/nec ;then
9318     version_type=linux
9319     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320     soname_spec='$libname${shared_ext}.$major'
9321     shlibpath_var=LD_LIBRARY_PATH
9322   fi
9323   ;;
9324
9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326   version_type=freebsd-elf
9327   need_lib_prefix=no
9328   need_version=no
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   shlibpath_var=LD_LIBRARY_PATH
9332   hardcode_into_libs=yes
9333   if test "$with_gnu_ld" = yes; then
9334     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335     shlibpath_overrides_runpath=no
9336   else
9337     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338     shlibpath_overrides_runpath=yes
9339     case $host_os in
9340       sco3.2v5*)
9341         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9342         ;;
9343     esac
9344   fi
9345   sys_lib_dlsearch_path_spec='/usr/lib'
9346   ;;
9347
9348 uts4*)
9349   version_type=linux
9350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351   soname_spec='${libname}${release}${shared_ext}$major'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   ;;
9354
9355 *)
9356   dynamic_linker=no
9357   ;;
9358 esac
9359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360 echo "${ECHO_T}$dynamic_linker" >&6; }
9361 test "$dynamic_linker" = no && can_build_shared=no
9362
9363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364 if test "$GCC" = yes; then
9365   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9366 fi
9367
9368
9369 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9370 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9371 if test "${libltdl_cv_shlibext+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374
9375 module=yes
9376 eval libltdl_cv_shlibext=$shrext_cmds
9377
9378 fi
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9380 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9381 if test -n "$libltdl_cv_shlibext"; then
9382
9383 cat >>confdefs.h <<_ACEOF
9384 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9385 _ACEOF
9386
9387 fi
9388
9389
9390 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9391 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9392 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395   libltdl_cv_shlibpath_var="$shlibpath_var"
9396 fi
9397 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9398 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9399 if test -n "$libltdl_cv_shlibpath_var"; then
9400
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9403 _ACEOF
9404
9405 fi
9406
9407
9408 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9409 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9410 if test "${libltdl_cv_sys_search_path+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9414 fi
9415 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9416 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9417 if test -n "$libltdl_cv_sys_search_path"; then
9418   sys_search_path=
9419   for dir in $libltdl_cv_sys_search_path; do
9420     if test -z "$sys_search_path"; then
9421       sys_search_path="$dir"
9422     else
9423       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9424     fi
9425   done
9426
9427 cat >>confdefs.h <<_ACEOF
9428 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9429 _ACEOF
9430
9431 fi
9432
9433 { echo "$as_me:$LINENO: checking for objdir" >&5
9434 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9435 if test "${libltdl_cv_objdir+set}" = set; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   libltdl_cv_objdir="$objdir"
9439   if test -n "$objdir"; then
9440     :
9441   else
9442     rm -f .libs 2>/dev/null
9443     mkdir .libs 2>/dev/null
9444     if test -d .libs; then
9445       libltdl_cv_objdir=.libs
9446     else
9447       # MS-DOS does not allow filenames that begin with a dot.
9448       libltdl_cv_objdir=_libs
9449     fi
9450   rmdir .libs 2>/dev/null
9451   fi
9452
9453 fi
9454 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9455 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9456
9457 cat >>confdefs.h <<_ACEOF
9458 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9459 _ACEOF
9460
9461
9462
9463
9464
9465
9466 # Check for command to grab the raw symbol name followed by C symbol from nm.
9467 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472
9473 # These are sane defaults that work on at least a few old systems.
9474 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9475
9476 # Character class describing NM global symbol codes.
9477 symcode='[BCDEGRST]'
9478
9479 # Regexp to match symbols that can be accessed directly from C.
9480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9481
9482 # Transform an extracted symbol line into a proper C declaration
9483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9484
9485 # Transform an extracted symbol line into symbol name and symbol address
9486 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'"
9487
9488 # Define system-specific variables.
9489 case $host_os in
9490 aix*)
9491   symcode='[BCDT]'
9492   ;;
9493 cygwin* | mingw* | pw32*)
9494   symcode='[ABCDGISTW]'
9495   ;;
9496 hpux*) # Its linker distinguishes data from code symbols
9497   if test "$host_cpu" = ia64; then
9498     symcode='[ABCDEGRST]'
9499   fi
9500   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9501   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'"
9502   ;;
9503 linux*)
9504   if test "$host_cpu" = ia64; then
9505     symcode='[ABCDGIRSTW]'
9506     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9507     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'"
9508   fi
9509   ;;
9510 irix* | nonstopux*)
9511   symcode='[BCDEGRST]'
9512   ;;
9513 osf*)
9514   symcode='[BCDEGQRST]'
9515   ;;
9516 solaris*)
9517   symcode='[BDRT]'
9518   ;;
9519 sco3.2v5*)
9520   symcode='[DT]'
9521   ;;
9522 sysv4.2uw2*)
9523   symcode='[DT]'
9524   ;;
9525 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9526   symcode='[ABDT]'
9527   ;;
9528 sysv4)
9529   symcode='[DFNSTU]'
9530   ;;
9531 esac
9532
9533 # Handle CRLF in mingw tool chain
9534 opt_cr=
9535 case $build_os in
9536 mingw*)
9537   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9538   ;;
9539 esac
9540
9541 # If we're using GNU nm, then use its standard symbol codes.
9542 case `$NM -V 2>&1` in
9543 *GNU* | *'with BFD'*)
9544   symcode='[ABCDGIRSTW]' ;;
9545 esac
9546
9547 # Try without a prefix undercore, then with it.
9548 for ac_symprfx in "" "_"; do
9549
9550   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9551   symxfrm="\\1 $ac_symprfx\\2 \\2"
9552
9553   # Write the raw and C identifiers.
9554   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9555
9556   # Check to see that the pipe works correctly.
9557   pipe_works=no
9558
9559   rm -f conftest*
9560   cat > conftest.$ac_ext <<EOF
9561 #ifdef __cplusplus
9562 extern "C" {
9563 #endif
9564 char nm_test_var;
9565 void nm_test_func(){}
9566 #ifdef __cplusplus
9567 }
9568 #endif
9569 int main(){nm_test_var='a';nm_test_func();return(0);}
9570 EOF
9571
9572   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573   (eval $ac_compile) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; then
9577     # Now try to grab the symbols.
9578     nlist=conftest.nm
9579     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9580   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } && test -s "$nlist"; then
9584       # Try sorting and uniquifying the output.
9585       if sort "$nlist" | uniq > "$nlist"T; then
9586         mv -f "$nlist"T "$nlist"
9587       else
9588         rm -f "$nlist"T
9589       fi
9590
9591       # Make sure that we snagged all the symbols we need.
9592       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9593         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9594           cat <<EOF > conftest.$ac_ext
9595 #ifdef __cplusplus
9596 extern "C" {
9597 #endif
9598
9599 EOF
9600           # Now generate the symbol file.
9601           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9602
9603           cat <<EOF >> conftest.$ac_ext
9604 #if defined (__STDC__) && __STDC__
9605 # define lt_ptr_t void *
9606 #else
9607 # define lt_ptr_t char *
9608 # define const
9609 #endif
9610
9611 /* The mapping between symbol names and symbols. */
9612 const struct {
9613   const char *name;
9614   lt_ptr_t address;
9615 }
9616 lt_preloaded_symbols[] =
9617 {
9618 EOF
9619           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9620           cat <<\EOF >> conftest.$ac_ext
9621   {0, (lt_ptr_t) 0}
9622 };
9623
9624 #ifdef __cplusplus
9625 }
9626 #endif
9627 EOF
9628           # Now try linking the two files.
9629           mv conftest.$ac_objext conftstm.$ac_objext
9630           lt_save_LIBS="$LIBS"
9631           lt_save_CFLAGS="$CFLAGS"
9632           LIBS="conftstm.$ac_objext"
9633           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9634           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635   (eval $ac_link) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9639             pipe_works=yes
9640           fi
9641           LIBS="$lt_save_LIBS"
9642           CFLAGS="$lt_save_CFLAGS"
9643         else
9644           echo "cannot find nm_test_func in $nlist" >&5
9645         fi
9646       else
9647         echo "cannot find nm_test_var in $nlist" >&5
9648       fi
9649     else
9650       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9651     fi
9652   else
9653     echo "$progname: failed program was:" >&5
9654     cat conftest.$ac_ext >&5
9655   fi
9656   rm -f conftest* conftst*
9657
9658   # Do not use the global_symbol_pipe unless it works.
9659   if test "$pipe_works" = yes; then
9660     break
9661   else
9662     lt_cv_sys_global_symbol_pipe=
9663   fi
9664 done
9665
9666 fi
9667
9668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9669   lt_cv_sys_global_symbol_to_cdecl=
9670 fi
9671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9672   { echo "$as_me:$LINENO: result: failed" >&5
9673 echo "${ECHO_T}failed" >&6; }
9674 else
9675   { echo "$as_me:$LINENO: result: ok" >&5
9676 echo "${ECHO_T}ok" >&6; }
9677 fi
9678
9679
9680 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9681 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9682 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9683   echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9686     libltdl_cv_preloaded_symbols=yes
9687   else
9688     libltdl_cv_preloaded_symbols=no
9689   fi
9690
9691 fi
9692 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9693 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9694 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9695
9696 cat >>confdefs.h <<\_ACEOF
9697 #define HAVE_PRELOADED_SYMBOLS 1
9698 _ACEOF
9699
9700 fi
9701
9702 LIBADD_DL=
9703
9704 ac_ext=c
9705 ac_cpp='$CPP $CPPFLAGS'
9706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9709
9710
9711 { echo "$as_me:$LINENO: checking for shl_load" >&5
9712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9713 if test "${ac_cv_func_shl_load+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9724 #define shl_load innocuous_shl_load
9725
9726 /* System header to define __stub macros and hopefully few prototypes,
9727     which can conflict with char shl_load (); below.
9728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729     <limits.h> exists even on freestanding compilers.  */
9730
9731 #ifdef __STDC__
9732 # include <limits.h>
9733 #else
9734 # include <assert.h>
9735 #endif
9736
9737 #undef shl_load
9738
9739 /* Override any GCC internal prototype to avoid an error.
9740    Use char because int might match the return type of a GCC
9741    builtin and then its argument prototype would still apply.  */
9742 #ifdef __cplusplus
9743 extern "C"
9744 #endif
9745 char shl_load ();
9746 /* The GNU C library defines this for functions which it implements
9747     to always fail with ENOSYS.  Some functions are actually named
9748     something starting with __ and the normal name is an alias.  */
9749 #if defined __stub_shl_load || defined __stub___shl_load
9750 choke me
9751 #endif
9752
9753 int
9754 main ()
9755 {
9756 return shl_load ();
9757   ;
9758   return 0;
9759 }
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9763 case "(($ac_try" in
9764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765   *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768   (eval "$ac_link") 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776   { (case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_try") 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); }; } &&
9785          { ac_try='test -s conftest$ac_exeext'
9786   { (case "(($ac_try" in
9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788   *) ac_try_echo=$ac_try;;
9789 esac
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791   (eval "$ac_try") 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_func_shl_load=yes
9796 else
9797   echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800         ac_cv_func_shl_load=no
9801 fi
9802
9803 rm -f core conftest.err conftest.$ac_objext \
9804       conftest$ac_exeext conftest.$ac_ext
9805 fi
9806 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9808 if test $ac_cv_func_shl_load = yes; then
9809
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_SHL_LOAD 1
9812 _ACEOF
9813
9814 else
9815   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   ac_check_lib_save_LIBS=$LIBS
9821 LIBS="-ldld  $LIBS"
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828
9829 /* Override any GCC internal prototype to avoid an error.
9830    Use char because int might match the return type of a GCC
9831    builtin and then its argument prototype would still apply.  */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char shl_load ();
9836 int
9837 main ()
9838 {
9839 return shl_load ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859   { (case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_try") 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; } &&
9868          { ac_try='test -s conftest$ac_exeext'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; }; then
9878   ac_cv_lib_dld_shl_load=yes
9879 else
9880   echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883         ac_cv_lib_dld_shl_load=no
9884 fi
9885
9886 rm -f core conftest.err conftest.$ac_objext \
9887       conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9889 fi
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9891 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9892 if test $ac_cv_lib_dld_shl_load = yes; then
9893
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_SHL_LOAD 1
9896 _ACEOF
9897
9898         LIBADD_DL="$LIBADD_DL -ldld"
9899 else
9900   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   ac_check_lib_save_LIBS=$LIBS
9906 LIBS="-ldl  $LIBS"
9907 cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h.  */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h.  */
9913
9914 /* Override any GCC internal prototype to avoid an error.
9915    Use char because int might match the return type of a GCC
9916    builtin and then its argument prototype would still apply.  */
9917 #ifdef __cplusplus
9918 extern "C"
9919 #endif
9920 char dlopen ();
9921 int
9922 main ()
9923 {
9924 return dlopen ();
9925   ;
9926   return 0;
9927 }
9928 _ACEOF
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (ac_try="$ac_link"
9931 case "(($ac_try" in
9932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933   *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936   (eval "$ac_link") 2>conftest.er1
9937   ac_status=$?
9938   grep -v '^ *+' conftest.er1 >conftest.err
9939   rm -f conftest.er1
9940   cat conftest.err >&5
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } &&
9943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944   { (case "(($ac_try" in
9945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946   *) ac_try_echo=$ac_try;;
9947 esac
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949   (eval "$ac_try") 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; } &&
9953          { ac_try='test -s conftest$ac_exeext'
9954   { (case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_try") 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; }; then
9963   ac_cv_lib_dl_dlopen=yes
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968         ac_cv_lib_dl_dlopen=no
9969 fi
9970
9971 rm -f core conftest.err conftest.$ac_objext \
9972       conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9974 fi
9975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9977 if test $ac_cv_lib_dl_dlopen = yes; then
9978
9979 cat >>confdefs.h <<\_ACEOF
9980 #define HAVE_LIBDL 1
9981 _ACEOF
9982
9983                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9984 else
9985   cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991 #if HAVE_DLFCN_H
9992 #  include <dlfcn.h>
9993 #endif
9994
9995 int
9996 main ()
9997 {
9998 dlopen(0, 0);
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007   *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010   (eval "$ac_link") 2>conftest.er1
10011   ac_status=$?
10012   grep -v '^ *+' conftest.er1 >conftest.err
10013   rm -f conftest.er1
10014   cat conftest.err >&5
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } &&
10017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018   { (case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023   (eval "$ac_try") 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; } &&
10027          { ac_try='test -s conftest$ac_exeext'
10028   { (case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_try") 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10037
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_LIBDL 1
10040 _ACEOF
10041  libltdl_cv_func_dlopen="yes"
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   ac_check_lib_save_LIBS=$LIBS
10052 LIBS="-lsvld  $LIBS"
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059
10060 /* Override any GCC internal prototype to avoid an error.
10061    Use char because int might match the return type of a GCC
10062    builtin and then its argument prototype would still apply.  */
10063 #ifdef __cplusplus
10064 extern "C"
10065 #endif
10066 char dlopen ();
10067 int
10068 main ()
10069 {
10070 return dlopen ();
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (ac_try="$ac_link"
10077 case "(($ac_try" in
10078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079   *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082   (eval "$ac_link") 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } &&
10089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090   { (case "(($ac_try" in
10091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092   *) ac_try_echo=$ac_try;;
10093 esac
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095   (eval "$ac_try") 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; } &&
10099          { ac_try='test -s conftest$ac_exeext'
10100   { (case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_try") 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_cv_lib_svld_dlopen=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114         ac_cv_lib_svld_dlopen=no
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext \
10118       conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10120 fi
10121 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10123 if test $ac_cv_lib_svld_dlopen = yes; then
10124
10125 cat >>confdefs.h <<\_ACEOF
10126 #define HAVE_LIBDL 1
10127 _ACEOF
10128
10129                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10130 else
10131   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10132 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10133 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10134   echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136   ac_check_lib_save_LIBS=$LIBS
10137 LIBS="-ldld  $LIBS"
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h.  */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h.  */
10144
10145 /* Override any GCC internal prototype to avoid an error.
10146    Use char because int might match the return type of a GCC
10147    builtin and then its argument prototype would still apply.  */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 char dld_link ();
10152 int
10153 main ()
10154 {
10155 return dld_link ();
10156   ;
10157   return 0;
10158 }
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164   *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167   (eval "$ac_link") 2>conftest.er1
10168   ac_status=$?
10169   grep -v '^ *+' conftest.er1 >conftest.err
10170   rm -f conftest.er1
10171   cat conftest.err >&5
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175   { (case "(($ac_try" in
10176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177   *) ac_try_echo=$ac_try;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180   (eval "$ac_try") 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; } &&
10184          { ac_try='test -s conftest$ac_exeext'
10185   { (case "(($ac_try" in
10186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187   *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190   (eval "$ac_try") 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; }; then
10194   ac_cv_lib_dld_dld_link=yes
10195 else
10196   echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10198
10199         ac_cv_lib_dld_dld_link=no
10200 fi
10201
10202 rm -f core conftest.err conftest.$ac_objext \
10203       conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10205 fi
10206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10208 if test $ac_cv_lib_dld_dld_link = yes; then
10209
10210 cat >>confdefs.h <<\_ACEOF
10211 #define HAVE_DLD 1
10212 _ACEOF
10213
10214                 LIBADD_DL="$LIBADD_DL -ldld"
10215 else
10216   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10217 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10218 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10229 #define _dyld_func_lookup innocuous__dyld_func_lookup
10230
10231 /* System header to define __stub macros and hopefully few prototypes,
10232     which can conflict with char _dyld_func_lookup (); below.
10233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234     <limits.h> exists even on freestanding compilers.  */
10235
10236 #ifdef __STDC__
10237 # include <limits.h>
10238 #else
10239 # include <assert.h>
10240 #endif
10241
10242 #undef _dyld_func_lookup
10243
10244 /* Override any GCC internal prototype to avoid an error.
10245    Use char because int might match the return type of a GCC
10246    builtin and then its argument prototype would still apply.  */
10247 #ifdef __cplusplus
10248 extern "C"
10249 #endif
10250 char _dyld_func_lookup ();
10251 /* The GNU C library defines this for functions which it implements
10252     to always fail with ENOSYS.  Some functions are actually named
10253     something starting with __ and the normal name is an alias.  */
10254 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10255 choke me
10256 #endif
10257
10258 int
10259 main ()
10260 {
10261 return _dyld_func_lookup ();
10262   ;
10263   return 0;
10264 }
10265 _ACEOF
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (ac_try="$ac_link"
10268 case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_link") 2>conftest.er1
10274   ac_status=$?
10275   grep -v '^ *+' conftest.er1 >conftest.err
10276   rm -f conftest.er1
10277   cat conftest.err >&5
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); } &&
10280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281   { (case "(($ac_try" in
10282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283   *) ac_try_echo=$ac_try;;
10284 esac
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286   (eval "$ac_try") 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; } &&
10290          { ac_try='test -s conftest$ac_exeext'
10291   { (case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_try") 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; }; then
10300   ac_cv_func__dyld_func_lookup=yes
10301 else
10302   echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305         ac_cv_func__dyld_func_lookup=no
10306 fi
10307
10308 rm -f core conftest.err conftest.$ac_objext \
10309       conftest$ac_exeext conftest.$ac_ext
10310 fi
10311 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10312 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10313 if test $ac_cv_func__dyld_func_lookup = yes; then
10314
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_DYLD 1
10317 _ACEOF
10318
10319 fi
10320
10321
10322 fi
10323
10324
10325 fi
10326
10327
10328 fi
10329
10330 rm -f core conftest.err conftest.$ac_objext \
10331       conftest$ac_exeext conftest.$ac_ext
10332
10333 fi
10334
10335
10336 fi
10337
10338
10339 fi
10340
10341
10342 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10343 then
10344   lt_save_LIBS="$LIBS"
10345   LIBS="$LIBS $LIBADD_DL"
10346
10347 for ac_func in dlerror
10348 do
10349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h.  */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h.  */
10361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10363 #define $ac_func innocuous_$ac_func
10364
10365 /* System header to define __stub macros and hopefully few prototypes,
10366     which can conflict with char $ac_func (); below.
10367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368     <limits.h> exists even on freestanding compilers.  */
10369
10370 #ifdef __STDC__
10371 # include <limits.h>
10372 #else
10373 # include <assert.h>
10374 #endif
10375
10376 #undef $ac_func
10377
10378 /* Override any GCC internal prototype to avoid an error.
10379    Use char because int might match the return type of a GCC
10380    builtin and then its argument prototype would still apply.  */
10381 #ifdef __cplusplus
10382 extern "C"
10383 #endif
10384 char $ac_func ();
10385 /* The GNU C library defines this for functions which it implements
10386     to always fail with ENOSYS.  Some functions are actually named
10387     something starting with __ and the normal name is an alias.  */
10388 #if defined __stub_$ac_func || defined __stub___$ac_func
10389 choke me
10390 #endif
10391
10392 int
10393 main ()
10394 {
10395 return $ac_func ();
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404   *) ac_try_echo=$ac_try;;
10405 esac
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407   (eval "$ac_link") 2>conftest.er1
10408   ac_status=$?
10409   grep -v '^ *+' conftest.er1 >conftest.err
10410   rm -f conftest.er1
10411   cat conftest.err >&5
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } &&
10414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415   { (case "(($ac_try" in
10416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417   *) ac_try_echo=$ac_try;;
10418 esac
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420   (eval "$ac_try") 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; } &&
10424          { ac_try='test -s conftest$ac_exeext'
10425   { (case "(($ac_try" in
10426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427   *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430   (eval "$ac_try") 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   eval "$as_ac_var=yes"
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439         eval "$as_ac_var=no"
10440 fi
10441
10442 rm -f core conftest.err conftest.$ac_objext \
10443       conftest$ac_exeext conftest.$ac_ext
10444 fi
10445 ac_res=`eval echo '${'$as_ac_var'}'`
10446                { echo "$as_me:$LINENO: result: $ac_res" >&5
10447 echo "${ECHO_T}$ac_res" >&6; }
10448 if test `eval echo '${'$as_ac_var'}'` = yes; then
10449   cat >>confdefs.h <<_ACEOF
10450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10451 _ACEOF
10452
10453 fi
10454 done
10455
10456   LIBS="$lt_save_LIBS"
10457 fi
10458 ac_ext=c
10459 ac_cpp='$CPP $CPPFLAGS'
10460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10463
10464
10465
10466 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10467 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10468 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471   ac_cv_sys_symbol_underscore=no
10472   cat > conftest.$ac_ext <<EOF
10473 void nm_test_func(){}
10474 int main(){nm_test_func;return 0;}
10475 EOF
10476   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477   (eval $ac_compile) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; then
10481     # Now try to grab the symbols.
10482     ac_nlist=conftest.nm
10483     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10484   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } && test -s "$ac_nlist"; then
10488       # See whether the symbols have a leading underscore.
10489       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10490         ac_cv_sys_symbol_underscore=yes
10491       else
10492         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10493           :
10494         else
10495           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10496         fi
10497       fi
10498     else
10499       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10500     fi
10501   else
10502     echo "configure: failed program was:" >&5
10503     cat conftest.c >&5
10504   fi
10505   rm -rf conftest*
10506
10507 fi
10508 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10509 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10510
10511
10512 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10513   if test x"$libltdl_cv_func_dlopen" = xyes ||
10514      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10515         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10516 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10517 if test "${libltdl_cv_need_uscore+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   libltdl_cv_need_uscore=unknown
10521           save_LIBS="$LIBS"
10522           LIBS="$LIBS $LIBADD_DL"
10523           if test "$cross_compiling" = yes; then :
10524   libltdl_cv_need_uscore=cross
10525 else
10526   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527   lt_status=$lt_dlunknown
10528   cat > conftest.$ac_ext <<EOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10531
10532 #if HAVE_DLFCN_H
10533 #include <dlfcn.h>
10534 #endif
10535
10536 #include <stdio.h>
10537
10538 #ifdef RTLD_GLOBAL
10539 #  define LT_DLGLOBAL           RTLD_GLOBAL
10540 #else
10541 #  ifdef DL_GLOBAL
10542 #    define LT_DLGLOBAL         DL_GLOBAL
10543 #  else
10544 #    define LT_DLGLOBAL         0
10545 #  endif
10546 #endif
10547
10548 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549    find out it does not work in some platform. */
10550 #ifndef LT_DLLAZY_OR_NOW
10551 #  ifdef RTLD_LAZY
10552 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10553 #  else
10554 #    ifdef DL_LAZY
10555 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10556 #    else
10557 #      ifdef RTLD_NOW
10558 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10559 #      else
10560 #        ifdef DL_NOW
10561 #          define LT_DLLAZY_OR_NOW      DL_NOW
10562 #        else
10563 #          define LT_DLLAZY_OR_NOW      0
10564 #        endif
10565 #      endif
10566 #    endif
10567 #  endif
10568 #endif
10569
10570 #ifdef __cplusplus
10571 extern "C" void exit (int);
10572 #endif
10573
10574 void fnord() { int i=42;}
10575 int main ()
10576 {
10577   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578   int status = $lt_dlunknown;
10579
10580   if (self)
10581     {
10582       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10583       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584       /* dlclose (self); */
10585     }
10586   else
10587     puts (dlerror ());
10588
10589     exit (status);
10590 }
10591 EOF
10592   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593   (eval $ac_link) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10597     (./conftest; exit; ) >&5 2>/dev/null
10598     lt_status=$?
10599     case x$lt_status in
10600       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10601       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10602       x$lt_dlunknown|x*)  ;;
10603     esac
10604   else :
10605     # compilation failed
10606
10607   fi
10608 fi
10609 rm -fr conftest*
10610
10611           LIBS="$save_LIBS"
10612
10613 fi
10614 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10615 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10616   fi
10617 fi
10618
10619 if test x"$libltdl_cv_need_uscore" = xyes; then
10620
10621 cat >>confdefs.h <<\_ACEOF
10622 #define NEED_USCORE 1
10623 _ACEOF
10624
10625 fi
10626
10627
10628 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10629 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10630 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   # PORTME does your system automatically load deplibs for dlopen?
10634   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10635   # For now, we just catch OSes we know something about -- in the
10636   # future, we'll try test this programmatically.
10637   libltdl_cv_sys_dlopen_deplibs=unknown
10638   case "$host_os" in
10639   aix3*|aix4.1.*|aix4.2.*)
10640     # Unknown whether this is true for these versions of AIX, but
10641     # we want this `case' here to explicitly catch those versions.
10642     libltdl_cv_sys_dlopen_deplibs=unknown
10643     ;;
10644   aix[45]*)
10645     libltdl_cv_sys_dlopen_deplibs=yes
10646     ;;
10647   darwin*)
10648     # Assuming the user has installed a libdl from somewhere, this is true
10649     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10650     libltdl_cv_sys_dlopen_deplibs=yes
10651     ;;
10652   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10653     # GNU and its variants, using gnu ld.so (Glibc)
10654     libltdl_cv_sys_dlopen_deplibs=yes
10655     ;;
10656   hpux10*|hpux11*)
10657     libltdl_cv_sys_dlopen_deplibs=yes
10658     ;;
10659   interix*)
10660     libltdl_cv_sys_dlopen_deplibs=yes
10661     ;;
10662   irix[12345]*|irix6.[01]*)
10663     # Catch all versions of IRIX before 6.2, and indicate that we don't
10664     # know how it worked for any of those versions.
10665     libltdl_cv_sys_dlopen_deplibs=unknown
10666     ;;
10667   irix*)
10668     # The case above catches anything before 6.2, and it's known that
10669     # at 6.2 and later dlopen does load deplibs.
10670     libltdl_cv_sys_dlopen_deplibs=yes
10671     ;;
10672   netbsd*)
10673     libltdl_cv_sys_dlopen_deplibs=yes
10674     ;;
10675   openbsd*)
10676     libltdl_cv_sys_dlopen_deplibs=yes
10677     ;;
10678   osf[1234]*)
10679     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10680     # it did *not* use an RPATH in a shared library to find objects the
10681     # library depends on, so we explictly say `no'.
10682     libltdl_cv_sys_dlopen_deplibs=no
10683     ;;
10684   osf5.0|osf5.0a|osf5.1)
10685     # dlopen *does* load deplibs and with the right loader patch applied
10686     # it even uses RPATH in a shared library to search for shared objects
10687     # that the library depends on, but there's no easy way to know if that
10688     # patch is installed.  Since this is the case, all we can really
10689     # say is unknown -- it depends on the patch being installed.  If
10690     # it is, this changes to `yes'.  Without it, it would be `no'.
10691     libltdl_cv_sys_dlopen_deplibs=unknown
10692     ;;
10693   osf*)
10694     # the two cases above should catch all versions of osf <= 5.1.  Read
10695     # the comments above for what we know about them.
10696     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10697     # is used to find them so we can finally say `yes'.
10698     libltdl_cv_sys_dlopen_deplibs=yes
10699     ;;
10700   solaris*)
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10704     libltdl_cv_sys_dlopen_deplibs=yes
10705     ;;
10706   esac
10707
10708 fi
10709 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10710 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10711 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10712
10713 cat >>confdefs.h <<\_ACEOF
10714 #define LTDL_DLOPEN_DEPLIBS 1
10715 _ACEOF
10716
10717 fi
10718
10719
10720 for ac_header in argz.h
10721 do
10722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 fi
10729 ac_res=`eval echo '${'$as_ac_Header'}'`
10730                { echo "$as_me:$LINENO: result: $ac_res" >&5
10731 echo "${ECHO_T}$ac_res" >&6; }
10732 else
10733   # Is the header compilable?
10734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 $ac_includes_default
10743 #include <$ac_header>
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749   *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752   (eval "$ac_compile") 2>conftest.er1
10753   ac_status=$?
10754   grep -v '^ *+' conftest.er1 >conftest.err
10755   rm -f conftest.er1
10756   cat conftest.err >&5
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } &&
10759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760   { (case "(($ac_try" in
10761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762   *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765   (eval "$ac_try") 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; } &&
10769          { ac_try='test -s conftest.$ac_objext'
10770   { (case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_try") 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; }; then
10779   ac_header_compiler=yes
10780 else
10781   echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784         ac_header_compiler=no
10785 fi
10786
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10789 echo "${ECHO_T}$ac_header_compiler" >&6; }
10790
10791 # Is the header present?
10792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800 #include <$ac_header>
10801 _ACEOF
10802 if { (ac_try="$ac_cpp conftest.$ac_ext"
10803 case "(($ac_try" in
10804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805   *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } >/dev/null; then
10815   if test -s conftest.err; then
10816     ac_cpp_err=$ac_c_preproc_warn_flag
10817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10818   else
10819     ac_cpp_err=
10820   fi
10821 else
10822   ac_cpp_err=yes
10823 fi
10824 if test -z "$ac_cpp_err"; then
10825   ac_header_preproc=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830   ac_header_preproc=no
10831 fi
10832
10833 rm -f conftest.err conftest.$ac_ext
10834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835 echo "${ECHO_T}$ac_header_preproc" >&6; }
10836
10837 # So?  What about this header?
10838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10839   yes:no: )
10840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844     ac_header_preproc=yes
10845     ;;
10846   no:yes:* )
10847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10859     ( cat <<\_ASBOX
10860 ## ----------------------------------- ##
10861 ## Report this to llvmbugs@cs.uiuc.edu ##
10862 ## ----------------------------------- ##
10863 _ASBOX
10864      ) | sed "s/^/$as_me: WARNING:     /" >&2
10865     ;;
10866 esac
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   eval "$as_ac_Header=\$ac_header_preproc"
10873 fi
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875                { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10877
10878 fi
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880   cat >>confdefs.h <<_ACEOF
10881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882 _ACEOF
10883
10884 fi
10885
10886 done
10887
10888
10889 { echo "$as_me:$LINENO: checking for error_t" >&5
10890 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10891 if test "${ac_cv_type_error_t+set}" = set; then
10892   echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894   cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h.  */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h.  */
10900 #if HAVE_ARGZ_H
10901 #  include <argz.h>
10902 #endif
10903
10904 typedef error_t ac__type_new_;
10905 int
10906 main ()
10907 {
10908 if ((ac__type_new_ *) 0)
10909   return 0;
10910 if (sizeof (ac__type_new_))
10911   return 0;
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_compile") 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931   { (case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_try") 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; } &&
10940          { ac_try='test -s conftest.$ac_objext'
10941   { (case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_try") 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); }; }; then
10950   ac_cv_type_error_t=yes
10951 else
10952   echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955         ac_cv_type_error_t=no
10956 fi
10957
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 fi
10960 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10962 if test $ac_cv_type_error_t = yes; then
10963
10964 cat >>confdefs.h <<_ACEOF
10965 #define HAVE_ERROR_T 1
10966 _ACEOF
10967
10968
10969 else
10970
10971 cat >>confdefs.h <<\_ACEOF
10972 #define error_t int
10973 _ACEOF
10974
10975 fi
10976
10977
10978
10979
10980
10981
10982
10983 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10984 do
10985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10999 #define $ac_func innocuous_$ac_func
11000
11001 /* System header to define __stub macros and hopefully few prototypes,
11002     which can conflict with char $ac_func (); below.
11003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004     <limits.h> exists even on freestanding compilers.  */
11005
11006 #ifdef __STDC__
11007 # include <limits.h>
11008 #else
11009 # include <assert.h>
11010 #endif
11011
11012 #undef $ac_func
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015    Use char because int might match the return type of a GCC
11016    builtin and then its argument prototype would still apply.  */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char $ac_func ();
11021 /* The GNU C library defines this for functions which it implements
11022     to always fail with ENOSYS.  Some functions are actually named
11023     something starting with __ and the normal name is an alias.  */
11024 #if defined __stub_$ac_func || defined __stub___$ac_func
11025 choke me
11026 #endif
11027
11028 int
11029 main ()
11030 {
11031 return $ac_func ();
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043   (eval "$ac_link") 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } &&
11050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051   { (case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056   (eval "$ac_try") 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; } &&
11060          { ac_try='test -s conftest$ac_exeext'
11061   { (case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_try") 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; }; then
11070   eval "$as_ac_var=yes"
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075         eval "$as_ac_var=no"
11076 fi
11077
11078 rm -f core conftest.err conftest.$ac_objext \
11079       conftest$ac_exeext conftest.$ac_ext
11080 fi
11081 ac_res=`eval echo '${'$as_ac_var'}'`
11082                { echo "$as_me:$LINENO: result: $ac_res" >&5
11083 echo "${ECHO_T}$ac_res" >&6; }
11084 if test `eval echo '${'$as_ac_var'}'` = yes; then
11085   cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11087 _ACEOF
11088
11089 fi
11090 done
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11120                   stdio.h unistd.h
11121 do
11122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 fi
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130                { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11132 else
11133   # Is the header compilable?
11134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 $ac_includes_default
11143 #include <$ac_header>
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_compile") 2>conftest.er1
11153   ac_status=$?
11154   grep -v '^ *+' conftest.er1 >conftest.err
11155   rm -f conftest.er1
11156   cat conftest.err >&5
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160   { (case "(($ac_try" in
11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162   *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165   (eval "$ac_try") 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; } &&
11169          { ac_try='test -s conftest.$ac_objext'
11170   { (case "(($ac_try" in
11171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172   *) ac_try_echo=$ac_try;;
11173 esac
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175   (eval "$ac_try") 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; }; then
11179   ac_header_compiler=yes
11180 else
11181   echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11183
11184         ac_header_compiler=no
11185 fi
11186
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189 echo "${ECHO_T}$ac_header_compiler" >&6; }
11190
11191 # Is the header present?
11192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 #include <$ac_header>
11201 _ACEOF
11202 if { (ac_try="$ac_cpp conftest.$ac_ext"
11203 case "(($ac_try" in
11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205   *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } >/dev/null; then
11215   if test -s conftest.err; then
11216     ac_cpp_err=$ac_c_preproc_warn_flag
11217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218   else
11219     ac_cpp_err=
11220   fi
11221 else
11222   ac_cpp_err=yes
11223 fi
11224 if test -z "$ac_cpp_err"; then
11225   ac_header_preproc=yes
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11229
11230   ac_header_preproc=no
11231 fi
11232
11233 rm -f conftest.err conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235 echo "${ECHO_T}$ac_header_preproc" >&6; }
11236
11237 # So?  What about this header?
11238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11239   yes:no: )
11240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244     ac_header_preproc=yes
11245     ;;
11246   no:yes:* )
11247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11259     ( cat <<\_ASBOX
11260 ## ----------------------------------- ##
11261 ## Report this to llvmbugs@cs.uiuc.edu ##
11262 ## ----------------------------------- ##
11263 _ASBOX
11264      ) | sed "s/^/$as_me: WARNING:     /" >&2
11265     ;;
11266 esac
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272   eval "$as_ac_Header=\$ac_header_preproc"
11273 fi
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275                { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11277
11278 fi
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280   cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282 _ACEOF
11283
11284 fi
11285
11286 done
11287
11288
11289
11290
11291
11292 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11293 do
11294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 fi
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302                { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304 else
11305   # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h.  */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h.  */
11314 $ac_includes_default
11315 #include <$ac_header>
11316 _ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_compile") 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332   { (case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_try") 2>&5
11338   ac_status=$?
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); }; } &&
11341          { ac_try='test -s conftest.$ac_objext'
11342   { (case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_try") 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   ac_header_compiler=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356         ac_header_compiler=no
11357 fi
11358
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361 echo "${ECHO_T}$ac_header_compiler" >&6; }
11362
11363 # Is the header present?
11364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 #include <$ac_header>
11373 _ACEOF
11374 if { (ac_try="$ac_cpp conftest.$ac_ext"
11375 case "(($ac_try" in
11376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377   *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11381   ac_status=$?
11382   grep -v '^ *+' conftest.er1 >conftest.err
11383   rm -f conftest.er1
11384   cat conftest.err >&5
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); } >/dev/null; then
11387   if test -s conftest.err; then
11388     ac_cpp_err=$ac_c_preproc_warn_flag
11389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11390   else
11391     ac_cpp_err=
11392   fi
11393 else
11394   ac_cpp_err=yes
11395 fi
11396 if test -z "$ac_cpp_err"; then
11397   ac_header_preproc=yes
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402   ac_header_preproc=no
11403 fi
11404
11405 rm -f conftest.err conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407 echo "${ECHO_T}$ac_header_preproc" >&6; }
11408
11409 # So?  What about this header?
11410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411   yes:no: )
11412     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11416     ac_header_preproc=yes
11417     ;;
11418   no:yes:* )
11419     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11421     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11422 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11425     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11426 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11431     ( cat <<\_ASBOX
11432 ## ----------------------------------- ##
11433 ## Report this to llvmbugs@cs.uiuc.edu ##
11434 ## ----------------------------------- ##
11435 _ASBOX
11436      ) | sed "s/^/$as_me: WARNING:     /" >&2
11437     ;;
11438 esac
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   eval "$as_ac_Header=\$ac_header_preproc"
11445 fi
11446 ac_res=`eval echo '${'$as_ac_Header'}'`
11447                { echo "$as_me:$LINENO: result: $ac_res" >&5
11448 echo "${ECHO_T}$ac_res" >&6; }
11449
11450 fi
11451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11452   cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11454 _ACEOF
11455
11456 fi
11457
11458 done
11459
11460
11461
11462 for ac_header in string.h strings.h
11463 do
11464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469   echo $ECHO_N "(cached) $ECHO_C" >&6
11470 fi
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472                { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11474 else
11475   # Is the header compilable?
11476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11478 cat >conftest.$ac_ext <<_ACEOF
11479 /* confdefs.h.  */
11480 _ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h.  */
11484 $ac_includes_default
11485 #include <$ac_header>
11486 _ACEOF
11487 rm -f conftest.$ac_objext
11488 if { (ac_try="$ac_compile"
11489 case "(($ac_try" in
11490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491   *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494   (eval "$ac_compile") 2>conftest.er1
11495   ac_status=$?
11496   grep -v '^ *+' conftest.er1 >conftest.err
11497   rm -f conftest.er1
11498   cat conftest.err >&5
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); } &&
11501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502   { (case "(($ac_try" in
11503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504   *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507   (eval "$ac_try") 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; } &&
11511          { ac_try='test -s conftest.$ac_objext'
11512   { (case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_try") 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; }; then
11521   ac_header_compiler=yes
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526         ac_header_compiler=no
11527 fi
11528
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11532
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h.  */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h.  */
11542 #include <$ac_header>
11543 _ACEOF
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547   *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551   ac_status=$?
11552   grep -v '^ *+' conftest.er1 >conftest.err
11553   rm -f conftest.er1
11554   cat conftest.err >&5
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } >/dev/null; then
11557   if test -s conftest.err; then
11558     ac_cpp_err=$ac_c_preproc_warn_flag
11559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11560   else
11561     ac_cpp_err=
11562   fi
11563 else
11564   ac_cpp_err=yes
11565 fi
11566 if test -z "$ac_cpp_err"; then
11567   ac_header_preproc=yes
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572   ac_header_preproc=no
11573 fi
11574
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11578
11579 # So?  What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581   yes:no: )
11582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586     ac_header_preproc=yes
11587     ;;
11588   no:yes:* )
11589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601     ( cat <<\_ASBOX
11602 ## ----------------------------------- ##
11603 ## Report this to llvmbugs@cs.uiuc.edu ##
11604 ## ----------------------------------- ##
11605 _ASBOX
11606      ) | sed "s/^/$as_me: WARNING:     /" >&2
11607     ;;
11608 esac
11609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   eval "$as_ac_Header=\$ac_header_preproc"
11615 fi
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617                { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11619
11620 fi
11621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622   cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11624 _ACEOF
11625  break
11626 fi
11627
11628 done
11629
11630
11631
11632
11633 for ac_func in strchr index
11634 do
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11649 #define $ac_func innocuous_$ac_func
11650
11651 /* System header to define __stub macros and hopefully few prototypes,
11652     which can conflict with char $ac_func (); below.
11653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654     <limits.h> exists even on freestanding compilers.  */
11655
11656 #ifdef __STDC__
11657 # include <limits.h>
11658 #else
11659 # include <assert.h>
11660 #endif
11661
11662 #undef $ac_func
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665    Use char because int might match the return type of a GCC
11666    builtin and then its argument prototype would still apply.  */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char $ac_func ();
11671 /* The GNU C library defines this for functions which it implements
11672     to always fail with ENOSYS.  Some functions are actually named
11673     something starting with __ and the normal name is an alias.  */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11675 choke me
11676 #endif
11677
11678 int
11679 main ()
11680 {
11681 return $ac_func ();
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_link") 2>conftest.er1
11694   ac_status=$?
11695   grep -v '^ *+' conftest.er1 >conftest.err
11696   rm -f conftest.er1
11697   cat conftest.err >&5
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } &&
11700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701   { (case "(($ac_try" in
11702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703   *) ac_try_echo=$ac_try;;
11704 esac
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706   (eval "$ac_try") 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; } &&
11710          { ac_try='test -s conftest$ac_exeext'
11711   { (case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_try") 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   eval "$as_ac_var=yes"
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725         eval "$as_ac_var=no"
11726 fi
11727
11728 rm -f core conftest.err conftest.$ac_objext \
11729       conftest$ac_exeext conftest.$ac_ext
11730 fi
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732                { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735   cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737 _ACEOF
11738  break
11739 fi
11740 done
11741
11742
11743
11744 for ac_func in strrchr rindex
11745 do
11746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11760 #define $ac_func innocuous_$ac_func
11761
11762 /* System header to define __stub macros and hopefully few prototypes,
11763     which can conflict with char $ac_func (); below.
11764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765     <limits.h> exists even on freestanding compilers.  */
11766
11767 #ifdef __STDC__
11768 # include <limits.h>
11769 #else
11770 # include <assert.h>
11771 #endif
11772
11773 #undef $ac_func
11774
11775 /* Override any GCC internal prototype to avoid an error.
11776    Use char because int might match the return type of a GCC
11777    builtin and then its argument prototype would still apply.  */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 char $ac_func ();
11782 /* The GNU C library defines this for functions which it implements
11783     to always fail with ENOSYS.  Some functions are actually named
11784     something starting with __ and the normal name is an alias.  */
11785 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 choke me
11787 #endif
11788
11789 int
11790 main ()
11791 {
11792 return $ac_func ();
11793   ;
11794   return 0;
11795 }
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801   *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804   (eval "$ac_link") 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812   { (case "(($ac_try" in
11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814   *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817   (eval "$ac_try") 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; } &&
11821          { ac_try='test -s conftest$ac_exeext'
11822   { (case "(($ac_try" in
11823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824   *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827   (eval "$ac_try") 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; }; then
11831   eval "$as_ac_var=yes"
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836         eval "$as_ac_var=no"
11837 fi
11838
11839 rm -f core conftest.err conftest.$ac_objext \
11840       conftest$ac_exeext conftest.$ac_ext
11841 fi
11842 ac_res=`eval echo '${'$as_ac_var'}'`
11843                { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11845 if test `eval echo '${'$as_ac_var'}'` = yes; then
11846   cat >>confdefs.h <<_ACEOF
11847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848 _ACEOF
11849  break
11850 fi
11851 done
11852
11853
11854
11855 for ac_func in memcpy bcopy
11856 do
11857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861   echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863   cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h.  */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h.  */
11869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11871 #define $ac_func innocuous_$ac_func
11872
11873 /* System header to define __stub macros and hopefully few prototypes,
11874     which can conflict with char $ac_func (); below.
11875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876     <limits.h> exists even on freestanding compilers.  */
11877
11878 #ifdef __STDC__
11879 # include <limits.h>
11880 #else
11881 # include <assert.h>
11882 #endif
11883
11884 #undef $ac_func
11885
11886 /* Override any GCC internal prototype to avoid an error.
11887    Use char because int might match the return type of a GCC
11888    builtin and then its argument prototype would still apply.  */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char $ac_func ();
11893 /* The GNU C library defines this for functions which it implements
11894     to always fail with ENOSYS.  Some functions are actually named
11895     something starting with __ and the normal name is an alias.  */
11896 #if defined __stub_$ac_func || defined __stub___$ac_func
11897 choke me
11898 #endif
11899
11900 int
11901 main ()
11902 {
11903 return $ac_func ();
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_link") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } &&
11922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923   { (case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_try") 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; } &&
11932          { ac_try='test -s conftest$ac_exeext'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   eval "$as_ac_var=yes"
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947         eval "$as_ac_var=no"
11948 fi
11949
11950 rm -f core conftest.err conftest.$ac_objext \
11951       conftest$ac_exeext conftest.$ac_ext
11952 fi
11953 ac_res=`eval echo '${'$as_ac_var'}'`
11954                { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957   cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11959 _ACEOF
11960  break
11961 fi
11962 done
11963
11964
11965
11966 for ac_func in memmove strcmp
11967 do
11968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h.  */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h.  */
11980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11982 #define $ac_func innocuous_$ac_func
11983
11984 /* System header to define __stub macros and hopefully few prototypes,
11985     which can conflict with char $ac_func (); below.
11986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987     <limits.h> exists even on freestanding compilers.  */
11988
11989 #ifdef __STDC__
11990 # include <limits.h>
11991 #else
11992 # include <assert.h>
11993 #endif
11994
11995 #undef $ac_func
11996
11997 /* Override any GCC internal prototype to avoid an error.
11998    Use char because int might match the return type of a GCC
11999    builtin and then its argument prototype would still apply.  */
12000 #ifdef __cplusplus
12001 extern "C"
12002 #endif
12003 char $ac_func ();
12004 /* The GNU C library defines this for functions which it implements
12005     to always fail with ENOSYS.  Some functions are actually named
12006     something starting with __ and the normal name is an alias.  */
12007 #if defined __stub_$ac_func || defined __stub___$ac_func
12008 choke me
12009 #endif
12010
12011 int
12012 main ()
12013 {
12014 return $ac_func ();
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (ac_try="$ac_link"
12021 case "(($ac_try" in
12022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023   *) ac_try_echo=$ac_try;;
12024 esac
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026   (eval "$ac_link") 2>conftest.er1
12027   ac_status=$?
12028   grep -v '^ *+' conftest.er1 >conftest.err
12029   rm -f conftest.er1
12030   cat conftest.err >&5
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); } &&
12033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034   { (case "(($ac_try" in
12035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036   *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039   (eval "$ac_try") 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; } &&
12043          { ac_try='test -s conftest$ac_exeext'
12044   { (case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_try") 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; }; then
12053   eval "$as_ac_var=yes"
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058         eval "$as_ac_var=no"
12059 fi
12060
12061 rm -f core conftest.err conftest.$ac_objext \
12062       conftest$ac_exeext conftest.$ac_ext
12063 fi
12064 ac_res=`eval echo '${'$as_ac_var'}'`
12065                { echo "$as_me:$LINENO: result: $ac_res" >&5
12066 echo "${ECHO_T}$ac_res" >&6; }
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068   cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070 _ACEOF
12071
12072 fi
12073 done
12074
12075
12076
12077
12078 for ac_func in closedir opendir readdir
12079 do
12080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084   echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086   cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12094 #define $ac_func innocuous_$ac_func
12095
12096 /* System header to define __stub macros and hopefully few prototypes,
12097     which can conflict with char $ac_func (); below.
12098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099     <limits.h> exists even on freestanding compilers.  */
12100
12101 #ifdef __STDC__
12102 # include <limits.h>
12103 #else
12104 # include <assert.h>
12105 #endif
12106
12107 #undef $ac_func
12108
12109 /* Override any GCC internal prototype to avoid an error.
12110    Use char because int might match the return type of a GCC
12111    builtin and then its argument prototype would still apply.  */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 char $ac_func ();
12116 /* The GNU C library defines this for functions which it implements
12117     to always fail with ENOSYS.  Some functions are actually named
12118     something starting with __ and the normal name is an alias.  */
12119 #if defined __stub_$ac_func || defined __stub___$ac_func
12120 choke me
12121 #endif
12122
12123 int
12124 main ()
12125 {
12126 return $ac_func ();
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135   *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138   (eval "$ac_link") 2>conftest.er1
12139   ac_status=$?
12140   grep -v '^ *+' conftest.er1 >conftest.err
12141   rm -f conftest.er1
12142   cat conftest.err >&5
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); } &&
12145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12146   { (case "(($ac_try" in
12147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148   *) ac_try_echo=$ac_try;;
12149 esac
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151   (eval "$ac_try") 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; } &&
12155          { ac_try='test -s conftest$ac_exeext'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; }; then
12165   eval "$as_ac_var=yes"
12166 else
12167   echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170         eval "$as_ac_var=no"
12171 fi
12172
12173 rm -f core conftest.err conftest.$ac_objext \
12174       conftest$ac_exeext conftest.$ac_ext
12175 fi
12176 ac_res=`eval echo '${'$as_ac_var'}'`
12177                { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12179 if test `eval echo '${'$as_ac_var'}'` = yes; then
12180   cat >>confdefs.h <<_ACEOF
12181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12182 _ACEOF
12183
12184 fi
12185 done
12186
12187
12188 # Check whether --enable-shared was given.
12189 if test "${enable_shared+set}" = set; then
12190   enableval=$enable_shared; p=${PACKAGE-default}
12191     case $enableval in
12192     yes) enable_shared=yes ;;
12193     no) enable_shared=no ;;
12194     *)
12195       enable_shared=no
12196       # Look at the argument we got.  We use all the common list separators.
12197       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12198       for pkg in $enableval; do
12199         IFS="$lt_save_ifs"
12200         if test "X$pkg" = "X$p"; then
12201           enable_shared=yes
12202         fi
12203       done
12204       IFS="$lt_save_ifs"
12205       ;;
12206     esac
12207 else
12208   enable_shared=yes
12209 fi
12210
12211
12212 # Check whether --enable-static was given.
12213 if test "${enable_static+set}" = set; then
12214   enableval=$enable_static; p=${PACKAGE-default}
12215     case $enableval in
12216     yes) enable_static=yes ;;
12217     no) enable_static=no ;;
12218     *)
12219      enable_static=no
12220       # Look at the argument we got.  We use all the common list separators.
12221       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12222       for pkg in $enableval; do
12223         IFS="$lt_save_ifs"
12224         if test "X$pkg" = "X$p"; then
12225           enable_static=yes
12226         fi
12227       done
12228       IFS="$lt_save_ifs"
12229       ;;
12230     esac
12231 else
12232   enable_static=yes
12233 fi
12234
12235
12236 # Check whether --enable-fast-install was given.
12237 if test "${enable_fast_install+set}" = set; then
12238   enableval=$enable_fast_install; p=${PACKAGE-default}
12239     case $enableval in
12240     yes) enable_fast_install=yes ;;
12241     no) enable_fast_install=no ;;
12242     *)
12243       enable_fast_install=no
12244       # Look at the argument we got.  We use all the common list separators.
12245       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12246       for pkg in $enableval; do
12247         IFS="$lt_save_ifs"
12248         if test "X$pkg" = "X$p"; then
12249           enable_fast_install=yes
12250         fi
12251       done
12252       IFS="$lt_save_ifs"
12253       ;;
12254     esac
12255 else
12256   enable_fast_install=yes
12257 fi
12258
12259
12260 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12261 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12262 if test "${lt_cv_path_SED+set}" = set; then
12263   echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265   # Loop through the user's path and test for sed and gsed.
12266 # Then use that list of sed's as ones to test for truncation.
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12269 do
12270   IFS=$as_save_IFS
12271   test -z "$as_dir" && as_dir=.
12272   for lt_ac_prog in sed gsed; do
12273     for ac_exec_ext in '' $ac_executable_extensions; do
12274       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12275         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12276       fi
12277     done
12278   done
12279 done
12280 lt_ac_max=0
12281 lt_ac_count=0
12282 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12283 # along with /bin/sed that truncates output.
12284 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12285   test ! -f $lt_ac_sed && continue
12286   cat /dev/null > conftest.in
12287   lt_ac_count=0
12288   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12289   # Check for GNU sed and select it if it is found.
12290   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12291     lt_cv_path_SED=$lt_ac_sed
12292     break
12293   fi
12294   while true; do
12295     cat conftest.in conftest.in >conftest.tmp
12296     mv conftest.tmp conftest.in
12297     cp conftest.in conftest.nl
12298     echo >>conftest.nl
12299     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12300     cmp -s conftest.out conftest.nl || break
12301     # 10000 chars as input seems more than enough
12302     test $lt_ac_count -gt 10 && break
12303     lt_ac_count=`expr $lt_ac_count + 1`
12304     if test $lt_ac_count -gt $lt_ac_max; then
12305       lt_ac_max=$lt_ac_count
12306       lt_cv_path_SED=$lt_ac_sed
12307     fi
12308   done
12309 done
12310
12311 fi
12312
12313 SED=$lt_cv_path_SED
12314 { echo "$as_me:$LINENO: result: $SED" >&5
12315 echo "${ECHO_T}$SED" >&6; }
12316
12317
12318 # Check whether --with-gnu-ld was given.
12319 if test "${with_gnu_ld+set}" = set; then
12320   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12321 else
12322   with_gnu_ld=no
12323 fi
12324
12325 ac_prog=ld
12326 if test "$GCC" = yes; then
12327   # Check if gcc -print-prog-name=ld gives a path.
12328   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12329 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12330   case $host in
12331   *-*-mingw*)
12332     # gcc leaves a trailing carriage return which upsets mingw
12333     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12334   *)
12335     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12336   esac
12337   case $ac_prog in
12338     # Accept absolute paths.
12339     [\\/]* | ?:[\\/]*)
12340       re_direlt='/[^/][^/]*/\.\./'
12341       # Canonicalize the pathname of ld
12342       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12343       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12344         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12345       done
12346       test -z "$LD" && LD="$ac_prog"
12347       ;;
12348   "")
12349     # If it fails, then pretend we aren't using GCC.
12350     ac_prog=ld
12351     ;;
12352   *)
12353     # If it is relative, then search for the first ld in PATH.
12354     with_gnu_ld=unknown
12355     ;;
12356   esac
12357 elif test "$with_gnu_ld" = yes; then
12358   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12359 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12360 else
12361   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12362 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12363 fi
12364 if test "${lt_cv_path_LD+set}" = set; then
12365   echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367   if test -z "$LD"; then
12368   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12369   for ac_dir in $PATH; do
12370     IFS="$lt_save_ifs"
12371     test -z "$ac_dir" && ac_dir=.
12372     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12373       lt_cv_path_LD="$ac_dir/$ac_prog"
12374       # Check to see if the program is GNU ld.  I'd rather use --version,
12375       # but apparently some variants of GNU ld only accept -v.
12376       # Break only if it was the GNU/non-GNU ld that we prefer.
12377       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12378       *GNU* | *'with BFD'*)
12379         test "$with_gnu_ld" != no && break
12380         ;;
12381       *)
12382         test "$with_gnu_ld" != yes && break
12383         ;;
12384       esac
12385     fi
12386   done
12387   IFS="$lt_save_ifs"
12388 else
12389   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12390 fi
12391 fi
12392
12393 LD="$lt_cv_path_LD"
12394 if test -n "$LD"; then
12395   { echo "$as_me:$LINENO: result: $LD" >&5
12396 echo "${ECHO_T}$LD" >&6; }
12397 else
12398   { echo "$as_me:$LINENO: result: no" >&5
12399 echo "${ECHO_T}no" >&6; }
12400 fi
12401 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12402 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12403    { (exit 1); exit 1; }; }
12404 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12405 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12406 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12410 case `$LD -v 2>&1 </dev/null` in
12411 *GNU* | *'with BFD'*)
12412   lt_cv_prog_gnu_ld=yes
12413   ;;
12414 *)
12415   lt_cv_prog_gnu_ld=no
12416   ;;
12417 esac
12418 fi
12419 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12420 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12421 with_gnu_ld=$lt_cv_prog_gnu_ld
12422
12423
12424 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12425 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12426 if test "${lt_cv_ld_reload_flag+set}" = set; then
12427   echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429   lt_cv_ld_reload_flag='-r'
12430 fi
12431 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12432 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12433 reload_flag=$lt_cv_ld_reload_flag
12434 case $reload_flag in
12435 "" | " "*) ;;
12436 *) reload_flag=" $reload_flag" ;;
12437 esac
12438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12439 case $host_os in
12440   darwin*)
12441     if test "$GCC" = yes; then
12442       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12443     else
12444       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12445     fi
12446     ;;
12447 esac
12448
12449 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12450 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12451 if test "${lt_cv_deplibs_check_method+set}" = set; then
12452   echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454   lt_cv_file_magic_cmd='$MAGIC_CMD'
12455 lt_cv_file_magic_test_file=
12456 lt_cv_deplibs_check_method='unknown'
12457 # Need to set the preceding variable on all platforms that support
12458 # interlibrary dependencies.
12459 # 'none' -- dependencies not supported.
12460 # `unknown' -- same as none, but documents that we really don't know.
12461 # 'pass_all' -- all dependencies passed with no checks.
12462 # 'test_compile' -- check by making test program.
12463 # 'file_magic [[regex]]' -- check by looking for files in library path
12464 # which responds to the $file_magic_cmd with a given extended regex.
12465 # If you have `file' or equivalent on your system and you're not sure
12466 # whether `pass_all' will *always* work, you probably want this one.
12467
12468 case $host_os in
12469 aix4* | aix5*)
12470   lt_cv_deplibs_check_method=pass_all
12471   ;;
12472
12473 beos*)
12474   lt_cv_deplibs_check_method=pass_all
12475   ;;
12476
12477 bsdi[45]*)
12478   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12479   lt_cv_file_magic_cmd='/usr/bin/file -L'
12480   lt_cv_file_magic_test_file=/shlib/libc.so
12481   ;;
12482
12483 cygwin*)
12484   # func_win32_libid is a shell function defined in ltmain.sh
12485   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12486   lt_cv_file_magic_cmd='func_win32_libid'
12487   ;;
12488
12489 mingw* | pw32*)
12490   # Base MSYS/MinGW do not provide the 'file' command needed by
12491   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12492   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12493   lt_cv_file_magic_cmd='$OBJDUMP -f'
12494   ;;
12495
12496 darwin* | rhapsody*)
12497   lt_cv_deplibs_check_method=pass_all
12498   ;;
12499
12500 freebsd* | kfreebsd*-gnu | dragonfly*)
12501   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12502     case $host_cpu in
12503     i*86 )
12504       # Not sure whether the presence of OpenBSD here was a mistake.
12505       # Let's accept both of them until this is cleared up.
12506       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12507       lt_cv_file_magic_cmd=/usr/bin/file
12508       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12509       ;;
12510     esac
12511   else
12512     lt_cv_deplibs_check_method=pass_all
12513   fi
12514   ;;
12515
12516 gnu*)
12517   lt_cv_deplibs_check_method=pass_all
12518   ;;
12519
12520 hpux10.20* | hpux11*)
12521   lt_cv_file_magic_cmd=/usr/bin/file
12522   case $host_cpu in
12523   ia64*)
12524     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12525     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12526     ;;
12527   hppa*64*)
12528     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]'
12529     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12530     ;;
12531   *)
12532     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12533     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12534     ;;
12535   esac
12536   ;;
12537
12538 interix3*)
12539   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12540   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12541   ;;
12542
12543 irix5* | irix6* | nonstopux*)
12544   case $LD in
12545   *-32|*"-32 ") libmagic=32-bit;;
12546   *-n32|*"-n32 ") libmagic=N32;;
12547   *-64|*"-64 ") libmagic=64-bit;;
12548   *) libmagic=never-match;;
12549   esac
12550   lt_cv_deplibs_check_method=pass_all
12551   ;;
12552
12553 # This must be Linux ELF.
12554 linux*)
12555   lt_cv_deplibs_check_method=pass_all
12556   ;;
12557
12558 netbsd*)
12559   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12560     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12561   else
12562     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12563   fi
12564   ;;
12565
12566 newos6*)
12567   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12568   lt_cv_file_magic_cmd=/usr/bin/file
12569   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12570   ;;
12571
12572 nto-qnx*)
12573   lt_cv_deplibs_check_method=unknown
12574   ;;
12575
12576 openbsd*)
12577   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12579   else
12580     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12581   fi
12582   ;;
12583
12584 osf3* | osf4* | osf5*)
12585   lt_cv_deplibs_check_method=pass_all
12586   ;;
12587
12588 solaris*)
12589   lt_cv_deplibs_check_method=pass_all
12590   ;;
12591
12592 sysv4 | sysv4.3*)
12593   case $host_vendor in
12594   motorola)
12595     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]'
12596     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12597     ;;
12598   ncr)
12599     lt_cv_deplibs_check_method=pass_all
12600     ;;
12601   sequent)
12602     lt_cv_file_magic_cmd='/bin/file'
12603     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12604     ;;
12605   sni)
12606     lt_cv_file_magic_cmd='/bin/file'
12607     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12608     lt_cv_file_magic_test_file=/lib/libc.so
12609     ;;
12610   siemens)
12611     lt_cv_deplibs_check_method=pass_all
12612     ;;
12613   pc)
12614     lt_cv_deplibs_check_method=pass_all
12615     ;;
12616   esac
12617   ;;
12618
12619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12620   lt_cv_deplibs_check_method=pass_all
12621   ;;
12622 esac
12623
12624 fi
12625 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12626 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12627 file_magic_cmd=$lt_cv_file_magic_cmd
12628 deplibs_check_method=$lt_cv_deplibs_check_method
12629 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12630
12631
12632
12633 # If no C compiler was specified, use CC.
12634 LTCC=${LTCC-"$CC"}
12635
12636 # If no C compiler flags were specified, use CFLAGS.
12637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12638
12639 # Allow CC to be a program name with arguments.
12640 compiler=$CC
12641
12642 # Check whether --enable-libtool-lock was given.
12643 if test "${enable_libtool_lock+set}" = set; then
12644   enableval=$enable_libtool_lock;
12645 fi
12646
12647 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12648
12649 # Some flags need to be propagated to the compiler or linker for good
12650 # libtool support.
12651 case $host in
12652 ia64-*-hpux*)
12653   # Find out which ABI we are using.
12654   echo 'int i;' > conftest.$ac_ext
12655   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656   (eval $ac_compile) 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); }; then
12660     case `/usr/bin/file conftest.$ac_objext` in
12661     *ELF-32*)
12662       HPUX_IA64_MODE="32"
12663       ;;
12664     *ELF-64*)
12665       HPUX_IA64_MODE="64"
12666       ;;
12667     esac
12668   fi
12669   rm -rf conftest*
12670   ;;
12671 *-*-irix6*)
12672   # Find out which ABI we are using.
12673   echo '#line 12673 "configure"' > conftest.$ac_ext
12674   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675   (eval $ac_compile) 2>&5
12676   ac_status=$?
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); }; then
12679    if test "$lt_cv_prog_gnu_ld" = yes; then
12680     case `/usr/bin/file conftest.$ac_objext` in
12681     *32-bit*)
12682       LD="${LD-ld} -melf32bsmip"
12683       ;;
12684     *N32*)
12685       LD="${LD-ld} -melf32bmipn32"
12686       ;;
12687     *64-bit*)
12688       LD="${LD-ld} -melf64bmip"
12689       ;;
12690     esac
12691    else
12692     case `/usr/bin/file conftest.$ac_objext` in
12693     *32-bit*)
12694       LD="${LD-ld} -32"
12695       ;;
12696     *N32*)
12697       LD="${LD-ld} -n32"
12698       ;;
12699     *64-bit*)
12700       LD="${LD-ld} -64"
12701       ;;
12702     esac
12703    fi
12704   fi
12705   rm -rf conftest*
12706   ;;
12707
12708 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12709   # Find out which ABI we are using.
12710   echo 'int i;' > conftest.$ac_ext
12711   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712   (eval $ac_compile) 2>&5
12713   ac_status=$?
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); }; then
12716     case `/usr/bin/file conftest.o` in
12717     *32-bit*)
12718       case $host in
12719         x86_64-*linux*)
12720           LD="${LD-ld} -m elf_i386"
12721           ;;
12722         ppc64-*linux*|powerpc64-*linux*)
12723           LD="${LD-ld} -m elf32ppclinux"
12724           ;;
12725         s390x-*linux*)
12726           LD="${LD-ld} -m elf_s390"
12727           ;;
12728         sparc64-*linux*)
12729           LD="${LD-ld} -m elf32_sparc"
12730           ;;
12731       esac
12732       ;;
12733     *64-bit*)
12734       case $host in
12735         x86_64-*linux*)
12736           LD="${LD-ld} -m elf_x86_64"
12737           ;;
12738         ppc*-*linux*|powerpc*-*linux*)
12739           LD="${LD-ld} -m elf64ppc"
12740           ;;
12741         s390*-*linux*)
12742           LD="${LD-ld} -m elf64_s390"
12743           ;;
12744         sparc*-*linux*)
12745           LD="${LD-ld} -m elf64_sparc"
12746           ;;
12747       esac
12748       ;;
12749     esac
12750   fi
12751   rm -rf conftest*
12752   ;;
12753
12754 *-*-sco3.2v5*)
12755   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12756   SAVE_CFLAGS="$CFLAGS"
12757   CFLAGS="$CFLAGS -belf"
12758   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12759 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12760 if test "${lt_cv_cc_needs_belf+set}" = set; then
12761   echo $ECHO_N "(cached) $ECHO_C" >&6
12762 else
12763   ac_ext=c
12764 ac_cpp='$CPP $CPPFLAGS'
12765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12768
12769      cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h.  */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h.  */
12775
12776 int
12777 main ()
12778 {
12779
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (ac_try="$ac_link"
12786 case "(($ac_try" in
12787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788   *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791   (eval "$ac_link") 2>conftest.er1
12792   ac_status=$?
12793   grep -v '^ *+' conftest.er1 >conftest.err
12794   rm -f conftest.er1
12795   cat conftest.err >&5
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); } &&
12798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12799   { (case "(($ac_try" in
12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801   *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804   (eval "$ac_try") 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; } &&
12808          { ac_try='test -s conftest$ac_exeext'
12809   { (case "(($ac_try" in
12810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811   *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814   (eval "$ac_try") 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; }; then
12818   lt_cv_cc_needs_belf=yes
12819 else
12820   echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823         lt_cv_cc_needs_belf=no
12824 fi
12825
12826 rm -f core conftest.err conftest.$ac_objext \
12827       conftest$ac_exeext conftest.$ac_ext
12828      ac_ext=c
12829 ac_cpp='$CPP $CPPFLAGS'
12830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12833
12834 fi
12835 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12836 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12837   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12838     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12839     CFLAGS="$SAVE_CFLAGS"
12840   fi
12841   ;;
12842 sparc*-*solaris*)
12843   # Find out which ABI we are using.
12844   echo 'int i;' > conftest.$ac_ext
12845   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12846   (eval $ac_compile) 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); }; then
12850     case `/usr/bin/file conftest.o` in
12851     *64-bit*)
12852       case $lt_cv_prog_gnu_ld in
12853       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12854       *)    LD="${LD-ld} -64" ;;
12855       esac
12856       ;;
12857     esac
12858   fi
12859   rm -rf conftest*
12860   ;;
12861
12862
12863 esac
12864
12865 need_locks="$enable_libtool_lock"
12866
12867
12868
12869
12870 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12871     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12872     (test "X$CXX" != "Xg++"))) ; then
12873   ac_ext=cpp
12874 ac_cpp='$CXXCPP $CPPFLAGS'
12875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12878 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12879 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12880 if test -z "$CXXCPP"; then
12881   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12882   echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884       # Double quotes because CXXCPP needs to be expanded
12885     for CXXCPP in "$CXX -E" "/lib/cpp"
12886     do
12887       ac_preproc_ok=false
12888 for ac_cxx_preproc_warn_flag in '' yes
12889 do
12890   # Use a header file that comes with gcc, so configuring glibc
12891   # with a fresh cross-compiler works.
12892   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12893   # <limits.h> exists even on freestanding compilers.
12894   # On the NeXT, cc -E runs the code through the compiler's parser,
12895   # not just through cpp. "Syntax error" is here to catch this case.
12896   cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902 #ifdef __STDC__
12903 # include <limits.h>
12904 #else
12905 # include <assert.h>
12906 #endif
12907                      Syntax error
12908 _ACEOF
12909 if { (ac_try="$ac_cpp conftest.$ac_ext"
12910 case "(($ac_try" in
12911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912   *) ac_try_echo=$ac_try;;
12913 esac
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12916   ac_status=$?
12917   grep -v '^ *+' conftest.er1 >conftest.err
12918   rm -f conftest.er1
12919   cat conftest.err >&5
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); } >/dev/null; then
12922   if test -s conftest.err; then
12923     ac_cpp_err=$ac_cxx_preproc_warn_flag
12924     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12925   else
12926     ac_cpp_err=
12927   fi
12928 else
12929   ac_cpp_err=yes
12930 fi
12931 if test -z "$ac_cpp_err"; then
12932   :
12933 else
12934   echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12936
12937   # Broken: fails on valid input.
12938 continue
12939 fi
12940
12941 rm -f conftest.err conftest.$ac_ext
12942
12943   # OK, works on sane cases.  Now check whether nonexistent headers
12944   # can be detected and how.
12945   cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h.  */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h.  */
12951 #include <ac_nonexistent.h>
12952 _ACEOF
12953 if { (ac_try="$ac_cpp conftest.$ac_ext"
12954 case "(($ac_try" in
12955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956   *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12960   ac_status=$?
12961   grep -v '^ *+' conftest.er1 >conftest.err
12962   rm -f conftest.er1
12963   cat conftest.err >&5
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); } >/dev/null; then
12966   if test -s conftest.err; then
12967     ac_cpp_err=$ac_cxx_preproc_warn_flag
12968     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12969   else
12970     ac_cpp_err=
12971   fi
12972 else
12973   ac_cpp_err=yes
12974 fi
12975 if test -z "$ac_cpp_err"; then
12976   # Broken: success on invalid input.
12977 continue
12978 else
12979   echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982   # Passes both tests.
12983 ac_preproc_ok=:
12984 break
12985 fi
12986
12987 rm -f conftest.err conftest.$ac_ext
12988
12989 done
12990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12991 rm -f conftest.err conftest.$ac_ext
12992 if $ac_preproc_ok; then
12993   break
12994 fi
12995
12996     done
12997     ac_cv_prog_CXXCPP=$CXXCPP
12998
12999 fi
13000   CXXCPP=$ac_cv_prog_CXXCPP
13001 else
13002   ac_cv_prog_CXXCPP=$CXXCPP
13003 fi
13004 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13005 echo "${ECHO_T}$CXXCPP" >&6; }
13006 ac_preproc_ok=false
13007 for ac_cxx_preproc_warn_flag in '' yes
13008 do
13009   # Use a header file that comes with gcc, so configuring glibc
13010   # with a fresh cross-compiler works.
13011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13012   # <limits.h> exists even on freestanding compilers.
13013   # On the NeXT, cc -E runs the code through the compiler's parser,
13014   # not just through cpp. "Syntax error" is here to catch this case.
13015   cat >conftest.$ac_ext <<_ACEOF
13016 /* confdefs.h.  */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h.  */
13021 #ifdef __STDC__
13022 # include <limits.h>
13023 #else
13024 # include <assert.h>
13025 #endif
13026                      Syntax error
13027 _ACEOF
13028 if { (ac_try="$ac_cpp conftest.$ac_ext"
13029 case "(($ac_try" in
13030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031   *) ac_try_echo=$ac_try;;
13032 esac
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13035   ac_status=$?
13036   grep -v '^ *+' conftest.er1 >conftest.err
13037   rm -f conftest.er1
13038   cat conftest.err >&5
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); } >/dev/null; then
13041   if test -s conftest.err; then
13042     ac_cpp_err=$ac_cxx_preproc_warn_flag
13043     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13044   else
13045     ac_cpp_err=
13046   fi
13047 else
13048   ac_cpp_err=yes
13049 fi
13050 if test -z "$ac_cpp_err"; then
13051   :
13052 else
13053   echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056   # Broken: fails on valid input.
13057 continue
13058 fi
13059
13060 rm -f conftest.err conftest.$ac_ext
13061
13062   # OK, works on sane cases.  Now check whether nonexistent headers
13063   # can be detected and how.
13064   cat >conftest.$ac_ext <<_ACEOF
13065 /* confdefs.h.  */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h.  */
13070 #include <ac_nonexistent.h>
13071 _ACEOF
13072 if { (ac_try="$ac_cpp conftest.$ac_ext"
13073 case "(($ac_try" in
13074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075   *) ac_try_echo=$ac_try;;
13076 esac
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13079   ac_status=$?
13080   grep -v '^ *+' conftest.er1 >conftest.err
13081   rm -f conftest.er1
13082   cat conftest.err >&5
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); } >/dev/null; then
13085   if test -s conftest.err; then
13086     ac_cpp_err=$ac_cxx_preproc_warn_flag
13087     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13088   else
13089     ac_cpp_err=
13090   fi
13091 else
13092   ac_cpp_err=yes
13093 fi
13094 if test -z "$ac_cpp_err"; then
13095   # Broken: success on invalid input.
13096 continue
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101   # Passes both tests.
13102 ac_preproc_ok=:
13103 break
13104 fi
13105
13106 rm -f conftest.err conftest.$ac_ext
13107
13108 done
13109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13110 rm -f conftest.err conftest.$ac_ext
13111 if $ac_preproc_ok; then
13112   :
13113 else
13114   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13115 See \`config.log' for more details." >&5
13116 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13117 See \`config.log' for more details." >&2;}
13118    { (exit 1); exit 1; }; }
13119 fi
13120
13121 ac_ext=cpp
13122 ac_cpp='$CXXCPP $CPPFLAGS'
13123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13126
13127 fi
13128
13129
13130 ac_ext=f
13131 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13132 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13134 if test -n "$ac_tool_prefix"; then
13135   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
13136   do
13137     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13141 if test "${ac_cv_prog_F77+set}" = set; then
13142   echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144   if test -n "$F77"; then
13145   ac_cv_prog_F77="$F77" # Let the user override the test.
13146 else
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13149 do
13150   IFS=$as_save_IFS
13151   test -z "$as_dir" && as_dir=.
13152   for ac_exec_ext in '' $ac_executable_extensions; do
13153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13154     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13156     break 2
13157   fi
13158 done
13159 done
13160 IFS=$as_save_IFS
13161
13162 fi
13163 fi
13164 F77=$ac_cv_prog_F77
13165 if test -n "$F77"; then
13166   { echo "$as_me:$LINENO: result: $F77" >&5
13167 echo "${ECHO_T}$F77" >&6; }
13168 else
13169   { echo "$as_me:$LINENO: result: no" >&5
13170 echo "${ECHO_T}no" >&6; }
13171 fi
13172
13173
13174     test -n "$F77" && break
13175   done
13176 fi
13177 if test -z "$F77"; then
13178   ac_ct_F77=$F77
13179   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13180 do
13181   # Extract the first word of "$ac_prog", so it can be a program name with args.
13182 set dummy $ac_prog; ac_word=$2
13183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13185 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13186   echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188   if test -n "$ac_ct_F77"; then
13189   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13190 else
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13193 do
13194   IFS=$as_save_IFS
13195   test -z "$as_dir" && as_dir=.
13196   for ac_exec_ext in '' $ac_executable_extensions; do
13197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13198     ac_cv_prog_ac_ct_F77="$ac_prog"
13199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13200     break 2
13201   fi
13202 done
13203 done
13204 IFS=$as_save_IFS
13205
13206 fi
13207 fi
13208 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13209 if test -n "$ac_ct_F77"; then
13210   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13211 echo "${ECHO_T}$ac_ct_F77" >&6; }
13212 else
13213   { echo "$as_me:$LINENO: result: no" >&5
13214 echo "${ECHO_T}no" >&6; }
13215 fi
13216
13217
13218   test -n "$ac_ct_F77" && break
13219 done
13220
13221   if test "x$ac_ct_F77" = x; then
13222     F77=""
13223   else
13224     case $cross_compiling:$ac_tool_warned in
13225 yes:)
13226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13227 whose name does not start with the host triplet.  If you think this
13228 configuration is useful to you, please write to autoconf@gnu.org." >&5
13229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13230 whose name does not start with the host triplet.  If you think this
13231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13232 ac_tool_warned=yes ;;
13233 esac
13234     F77=$ac_ct_F77
13235   fi
13236 fi
13237
13238
13239 # Provide some information about the compiler.
13240 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13241 ac_compiler=`set X $ac_compile; echo $2`
13242 { (ac_try="$ac_compiler --version >&5"
13243 case "(($ac_try" in
13244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245   *) ac_try_echo=$ac_try;;
13246 esac
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248   (eval "$ac_compiler --version >&5") 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }
13252 { (ac_try="$ac_compiler -v >&5"
13253 case "(($ac_try" in
13254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255   *) ac_try_echo=$ac_try;;
13256 esac
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258   (eval "$ac_compiler -v >&5") 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }
13262 { (ac_try="$ac_compiler -V >&5"
13263 case "(($ac_try" in
13264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265   *) ac_try_echo=$ac_try;;
13266 esac
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268   (eval "$ac_compiler -V >&5") 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }
13272 rm -f a.out
13273
13274 # If we don't use `.F' as extension, the preprocessor is not run on the
13275 # input file.  (Note that this only needs to work for GNU compilers.)
13276 ac_save_ext=$ac_ext
13277 ac_ext=F
13278 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13279 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13280 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13281   echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283   cat >conftest.$ac_ext <<_ACEOF
13284       program main
13285 #ifndef __GNUC__
13286        choke me
13287 #endif
13288
13289       end
13290 _ACEOF
13291 rm -f conftest.$ac_objext
13292 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } &&
13305          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13306   { (case "(($ac_try" in
13307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308   *) ac_try_echo=$ac_try;;
13309 esac
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311   (eval "$ac_try") 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; } &&
13315          { ac_try='test -s conftest.$ac_objext'
13316   { (case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_try") 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   ac_compiler_gnu=yes
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330         ac_compiler_gnu=no
13331 fi
13332
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13335
13336 fi
13337 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13338 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13339 ac_ext=$ac_save_ext
13340 ac_test_FFLAGS=${FFLAGS+set}
13341 ac_save_FFLAGS=$FFLAGS
13342 FFLAGS=
13343 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13344 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13345 if test "${ac_cv_prog_f77_g+set}" = set; then
13346   echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348   FFLAGS=-g
13349 cat >conftest.$ac_ext <<_ACEOF
13350       program main
13351
13352       end
13353 _ACEOF
13354 rm -f conftest.$ac_objext
13355 if { (ac_try="$ac_compile"
13356 case "(($ac_try" in
13357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358   *) ac_try_echo=$ac_try;;
13359 esac
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361   (eval "$ac_compile") 2>conftest.er1
13362   ac_status=$?
13363   grep -v '^ *+' conftest.er1 >conftest.err
13364   rm -f conftest.er1
13365   cat conftest.err >&5
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); } &&
13368          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13369   { (case "(($ac_try" in
13370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371   *) ac_try_echo=$ac_try;;
13372 esac
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374   (eval "$ac_try") 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; } &&
13378          { ac_try='test -s conftest.$ac_objext'
13379   { (case "(($ac_try" in
13380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381   *) ac_try_echo=$ac_try;;
13382 esac
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384   (eval "$ac_try") 2>&5
13385   ac_status=$?
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); }; }; then
13388   ac_cv_prog_f77_g=yes
13389 else
13390   echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13392
13393         ac_cv_prog_f77_g=no
13394 fi
13395
13396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397
13398 fi
13399 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13400 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13401 if test "$ac_test_FFLAGS" = set; then
13402   FFLAGS=$ac_save_FFLAGS
13403 elif test $ac_cv_prog_f77_g = yes; then
13404   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13405     FFLAGS="-g -O2"
13406   else
13407     FFLAGS="-g"
13408   fi
13409 else
13410   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13411     FFLAGS="-O2"
13412   else
13413     FFLAGS=
13414   fi
13415 fi
13416
13417 G77=`test $ac_compiler_gnu = yes && echo yes`
13418 ac_ext=c
13419 ac_cpp='$CPP $CPPFLAGS'
13420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13423
13424
13425
13426 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13427
13428 # find the maximum length of command line arguments
13429 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13430 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13431 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13432   echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434     i=0
13435   teststring="ABCD"
13436
13437   case $build_os in
13438   msdosdjgpp*)
13439     # On DJGPP, this test can blow up pretty badly due to problems in libc
13440     # (any single argument exceeding 2000 bytes causes a buffer overrun
13441     # during glob expansion).  Even if it were fixed, the result of this
13442     # check would be larger than it should be.
13443     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13444     ;;
13445
13446   gnu*)
13447     # Under GNU Hurd, this test is not required because there is
13448     # no limit to the length of command line arguments.
13449     # Libtool will interpret -1 as no limit whatsoever
13450     lt_cv_sys_max_cmd_len=-1;
13451     ;;
13452
13453   cygwin* | mingw*)
13454     # On Win9x/ME, this test blows up -- it succeeds, but takes
13455     # about 5 minutes as the teststring grows exponentially.
13456     # Worse, since 9x/ME are not pre-emptively multitasking,
13457     # you end up with a "frozen" computer, even though with patience
13458     # the test eventually succeeds (with a max line length of 256k).
13459     # Instead, let's just punt: use the minimum linelength reported by
13460     # all of the supported platforms: 8192 (on NT/2K/XP).
13461     lt_cv_sys_max_cmd_len=8192;
13462     ;;
13463
13464   amigaos*)
13465     # On AmigaOS with pdksh, this test takes hours, literally.
13466     # So we just punt and use a minimum line length of 8192.
13467     lt_cv_sys_max_cmd_len=8192;
13468     ;;
13469
13470   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13471     # This has been around since 386BSD, at least.  Likely further.
13472     if test -x /sbin/sysctl; then
13473       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13474     elif test -x /usr/sbin/sysctl; then
13475       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13476     else
13477       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13478     fi
13479     # And add a safety zone
13480     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13481     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13482     ;;
13483
13484   interix*)
13485     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13486     lt_cv_sys_max_cmd_len=196608
13487     ;;
13488
13489   osf*)
13490     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13491     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13492     # nice to cause kernel panics so lets avoid the loop below.
13493     # First set a reasonable default.
13494     lt_cv_sys_max_cmd_len=16384
13495     #
13496     if test -x /sbin/sysconfig; then
13497       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13498         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13499       esac
13500     fi
13501     ;;
13502   sco3.2v5*)
13503     lt_cv_sys_max_cmd_len=102400
13504     ;;
13505   sysv5* | sco5v6* | sysv4.2uw2*)
13506     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13507     if test -n "$kargmax"; then
13508       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13509     else
13510       lt_cv_sys_max_cmd_len=32768
13511     fi
13512     ;;
13513   *)
13514     # If test is not a shell built-in, we'll probably end up computing a
13515     # maximum length that is only half of the actual maximum length, but
13516     # we can't tell.
13517     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13518     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13519                = "XX$teststring") >/dev/null 2>&1 &&
13520             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13521             lt_cv_sys_max_cmd_len=$new_result &&
13522             test $i != 17 # 1/2 MB should be enough
13523     do
13524       i=`expr $i + 1`
13525       teststring=$teststring$teststring
13526     done
13527     teststring=
13528     # Add a significant safety factor because C++ compilers can tack on massive
13529     # amounts of additional arguments before passing them to the linker.
13530     # It appears as though 1/2 is a usable value.
13531     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13532     ;;
13533   esac
13534
13535 fi
13536
13537 if test -n $lt_cv_sys_max_cmd_len ; then
13538   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13539 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13540 else
13541   { echo "$as_me:$LINENO: result: none" >&5
13542 echo "${ECHO_T}none" >&6; }
13543 fi
13544
13545
13546
13547
13548 # Check for command to grab the raw symbol name followed by C symbol from nm.
13549 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13550 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13551 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13552   echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554
13555 # These are sane defaults that work on at least a few old systems.
13556 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13557
13558 # Character class describing NM global symbol codes.
13559 symcode='[BCDEGRST]'
13560
13561 # Regexp to match symbols that can be accessed directly from C.
13562 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13563
13564 # Transform an extracted symbol line into a proper C declaration
13565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13566
13567 # Transform an extracted symbol line into symbol name and symbol address
13568 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'"
13569
13570 # Define system-specific variables.
13571 case $host_os in
13572 aix*)
13573   symcode='[BCDT]'
13574   ;;
13575 cygwin* | mingw* | pw32*)
13576   symcode='[ABCDGISTW]'
13577   ;;
13578 hpux*) # Its linker distinguishes data from code symbols
13579   if test "$host_cpu" = ia64; then
13580     symcode='[ABCDEGRST]'
13581   fi
13582   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13583   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'"
13584   ;;
13585 linux*)
13586   if test "$host_cpu" = ia64; then
13587     symcode='[ABCDGIRSTW]'
13588     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13589     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'"
13590   fi
13591   ;;
13592 irix* | nonstopux*)
13593   symcode='[BCDEGRST]'
13594   ;;
13595 osf*)
13596   symcode='[BCDEGQRST]'
13597   ;;
13598 solaris*)
13599   symcode='[BDRT]'
13600   ;;
13601 sco3.2v5*)
13602   symcode='[DT]'
13603   ;;
13604 sysv4.2uw2*)
13605   symcode='[DT]'
13606   ;;
13607 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13608   symcode='[ABDT]'
13609   ;;
13610 sysv4)
13611   symcode='[DFNSTU]'
13612   ;;
13613 esac
13614
13615 # Handle CRLF in mingw tool chain
13616 opt_cr=
13617 case $build_os in
13618 mingw*)
13619   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13620   ;;
13621 esac
13622
13623 # If we're using GNU nm, then use its standard symbol codes.
13624 case `$NM -V 2>&1` in
13625 *GNU* | *'with BFD'*)
13626   symcode='[ABCDGIRSTW]' ;;
13627 esac
13628
13629 # Try without a prefix undercore, then with it.
13630 for ac_symprfx in "" "_"; do
13631
13632   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13633   symxfrm="\\1 $ac_symprfx\\2 \\2"
13634
13635   # Write the raw and C identifiers.
13636   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13637
13638   # Check to see that the pipe works correctly.
13639   pipe_works=no
13640
13641   rm -f conftest*
13642   cat > conftest.$ac_ext <<EOF
13643 #ifdef __cplusplus
13644 extern "C" {
13645 #endif
13646 char nm_test_var;
13647 void nm_test_func(){}
13648 #ifdef __cplusplus
13649 }
13650 #endif
13651 int main(){nm_test_var='a';nm_test_func();return(0);}
13652 EOF
13653
13654   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655   (eval $ac_compile) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }; then
13659     # Now try to grab the symbols.
13660     nlist=conftest.nm
13661     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13662   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); } && test -s "$nlist"; then
13666       # Try sorting and uniquifying the output.
13667       if sort "$nlist" | uniq > "$nlist"T; then
13668         mv -f "$nlist"T "$nlist"
13669       else
13670         rm -f "$nlist"T
13671       fi
13672
13673       # Make sure that we snagged all the symbols we need.
13674       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13675         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13676           cat <<EOF > conftest.$ac_ext
13677 #ifdef __cplusplus
13678 extern "C" {
13679 #endif
13680
13681 EOF
13682           # Now generate the symbol file.
13683           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13684
13685           cat <<EOF >> conftest.$ac_ext
13686 #if defined (__STDC__) && __STDC__
13687 # define lt_ptr_t void *
13688 #else
13689 # define lt_ptr_t char *
13690 # define const
13691 #endif
13692
13693 /* The mapping between symbol names and symbols. */
13694 const struct {
13695   const char *name;
13696   lt_ptr_t address;
13697 }
13698 lt_preloaded_symbols[] =
13699 {
13700 EOF
13701           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13702           cat <<\EOF >> conftest.$ac_ext
13703   {0, (lt_ptr_t) 0}
13704 };
13705
13706 #ifdef __cplusplus
13707 }
13708 #endif
13709 EOF
13710           # Now try linking the two files.
13711           mv conftest.$ac_objext conftstm.$ac_objext
13712           lt_save_LIBS="$LIBS"
13713           lt_save_CFLAGS="$CFLAGS"
13714           LIBS="conftstm.$ac_objext"
13715           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13716           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13717   (eval $ac_link) 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13721             pipe_works=yes
13722           fi
13723           LIBS="$lt_save_LIBS"
13724           CFLAGS="$lt_save_CFLAGS"
13725         else
13726           echo "cannot find nm_test_func in $nlist" >&5
13727         fi
13728       else
13729         echo "cannot find nm_test_var in $nlist" >&5
13730       fi
13731     else
13732       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13733     fi
13734   else
13735     echo "$progname: failed program was:" >&5
13736     cat conftest.$ac_ext >&5
13737   fi
13738   rm -f conftest* conftst*
13739
13740   # Do not use the global_symbol_pipe unless it works.
13741   if test "$pipe_works" = yes; then
13742     break
13743   else
13744     lt_cv_sys_global_symbol_pipe=
13745   fi
13746 done
13747
13748 fi
13749
13750 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13751   lt_cv_sys_global_symbol_to_cdecl=
13752 fi
13753 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13754   { echo "$as_me:$LINENO: result: failed" >&5
13755 echo "${ECHO_T}failed" >&6; }
13756 else
13757   { echo "$as_me:$LINENO: result: ok" >&5
13758 echo "${ECHO_T}ok" >&6; }
13759 fi
13760
13761 { echo "$as_me:$LINENO: checking for objdir" >&5
13762 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13763 if test "${lt_cv_objdir+set}" = set; then
13764   echo $ECHO_N "(cached) $ECHO_C" >&6
13765 else
13766   rm -f .libs 2>/dev/null
13767 mkdir .libs 2>/dev/null
13768 if test -d .libs; then
13769   lt_cv_objdir=.libs
13770 else
13771   # MS-DOS does not allow filenames that begin with a dot.
13772   lt_cv_objdir=_libs
13773 fi
13774 rmdir .libs 2>/dev/null
13775 fi
13776 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13777 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13778 objdir=$lt_cv_objdir
13779
13780
13781
13782
13783
13784 case $host_os in
13785 aix3*)
13786   # AIX sometimes has problems with the GCC collect2 program.  For some
13787   # reason, if we set the COLLECT_NAMES environment variable, the problems
13788   # vanish in a puff of smoke.
13789   if test "X${COLLECT_NAMES+set}" != Xset; then
13790     COLLECT_NAMES=
13791     export COLLECT_NAMES
13792   fi
13793   ;;
13794 esac
13795
13796 # Sed substitution that helps us do robust quoting.  It backslashifies
13797 # metacharacters that are still active within double-quoted strings.
13798 Xsed='sed -e 1s/^X//'
13799 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13800
13801 # Same as above, but do not quote variable references.
13802 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13803
13804 # Sed substitution to delay expansion of an escaped shell variable in a
13805 # double_quote_subst'ed string.
13806 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13807
13808 # Sed substitution to avoid accidental globbing in evaled expressions
13809 no_glob_subst='s/\*/\\\*/g'
13810
13811 # Constants:
13812 rm="rm -f"
13813
13814 # Global variables:
13815 default_ofile=mklib
13816 can_build_shared=yes
13817
13818 # All known linkers require a `.a' archive for static linking (except MSVC,
13819 # which needs '.lib').
13820 libext=a
13821 ltmain="$ac_aux_dir/ltmain.sh"
13822 ofile="$default_ofile"
13823 with_gnu_ld="$lt_cv_prog_gnu_ld"
13824
13825 if test -n "$ac_tool_prefix"; then
13826   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13827 set dummy ${ac_tool_prefix}ar; ac_word=$2
13828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13830 if test "${ac_cv_prog_AR+set}" = set; then
13831   echo $ECHO_N "(cached) $ECHO_C" >&6
13832 else
13833   if test -n "$AR"; then
13834   ac_cv_prog_AR="$AR" # Let the user override the test.
13835 else
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13838 do
13839   IFS=$as_save_IFS
13840   test -z "$as_dir" && as_dir=.
13841   for ac_exec_ext in '' $ac_executable_extensions; do
13842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13843     ac_cv_prog_AR="${ac_tool_prefix}ar"
13844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13845     break 2
13846   fi
13847 done
13848 done
13849 IFS=$as_save_IFS
13850
13851 fi
13852 fi
13853 AR=$ac_cv_prog_AR
13854 if test -n "$AR"; then
13855   { echo "$as_me:$LINENO: result: $AR" >&5
13856 echo "${ECHO_T}$AR" >&6; }
13857 else
13858   { echo "$as_me:$LINENO: result: no" >&5
13859 echo "${ECHO_T}no" >&6; }
13860 fi
13861
13862
13863 fi
13864 if test -z "$ac_cv_prog_AR"; then
13865   ac_ct_AR=$AR
13866   # Extract the first word of "ar", so it can be a program name with args.
13867 set dummy ar; ac_word=$2
13868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13870 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13871   echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873   if test -n "$ac_ct_AR"; then
13874   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13875 else
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877 for as_dir in $PATH
13878 do
13879   IFS=$as_save_IFS
13880   test -z "$as_dir" && as_dir=.
13881   for ac_exec_ext in '' $ac_executable_extensions; do
13882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13883     ac_cv_prog_ac_ct_AR="ar"
13884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885     break 2
13886   fi
13887 done
13888 done
13889 IFS=$as_save_IFS
13890
13891 fi
13892 fi
13893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13894 if test -n "$ac_ct_AR"; then
13895   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13896 echo "${ECHO_T}$ac_ct_AR" >&6; }
13897 else
13898   { echo "$as_me:$LINENO: result: no" >&5
13899 echo "${ECHO_T}no" >&6; }
13900 fi
13901
13902   if test "x$ac_ct_AR" = x; then
13903     AR="false"
13904   else
13905     case $cross_compiling:$ac_tool_warned in
13906 yes:)
13907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13908 whose name does not start with the host triplet.  If you think this
13909 configuration is useful to you, please write to autoconf@gnu.org." >&5
13910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13911 whose name does not start with the host triplet.  If you think this
13912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13913 ac_tool_warned=yes ;;
13914 esac
13915     AR=$ac_ct_AR
13916   fi
13917 else
13918   AR="$ac_cv_prog_AR"
13919 fi
13920
13921 if test -n "$ac_tool_prefix"; then
13922   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13926 if test "${ac_cv_prog_RANLIB+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929   if test -n "$RANLIB"; then
13930   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13931 else
13932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933 for as_dir in $PATH
13934 do
13935   IFS=$as_save_IFS
13936   test -z "$as_dir" && as_dir=.
13937   for ac_exec_ext in '' $ac_executable_extensions; do
13938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13939     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13941     break 2
13942   fi
13943 done
13944 done
13945 IFS=$as_save_IFS
13946
13947 fi
13948 fi
13949 RANLIB=$ac_cv_prog_RANLIB
13950 if test -n "$RANLIB"; then
13951   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13952 echo "${ECHO_T}$RANLIB" >&6; }
13953 else
13954   { echo "$as_me:$LINENO: result: no" >&5
13955 echo "${ECHO_T}no" >&6; }
13956 fi
13957
13958
13959 fi
13960 if test -z "$ac_cv_prog_RANLIB"; then
13961   ac_ct_RANLIB=$RANLIB
13962   # Extract the first word of "ranlib", so it can be a program name with args.
13963 set dummy ranlib; ac_word=$2
13964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13967   echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969   if test -n "$ac_ct_RANLIB"; then
13970   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13971 else
13972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13973 for as_dir in $PATH
13974 do
13975   IFS=$as_save_IFS
13976   test -z "$as_dir" && as_dir=.
13977   for ac_exec_ext in '' $ac_executable_extensions; do
13978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13979     ac_cv_prog_ac_ct_RANLIB="ranlib"
13980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13981     break 2
13982   fi
13983 done
13984 done
13985 IFS=$as_save_IFS
13986
13987 fi
13988 fi
13989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13990 if test -n "$ac_ct_RANLIB"; then
13991   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13992 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13993 else
13994   { echo "$as_me:$LINENO: result: no" >&5
13995 echo "${ECHO_T}no" >&6; }
13996 fi
13997
13998   if test "x$ac_ct_RANLIB" = x; then
13999     RANLIB=":"
14000   else
14001     case $cross_compiling:$ac_tool_warned in
14002 yes:)
14003 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14004 whose name does not start with the host triplet.  If you think this
14005 configuration is useful to you, please write to autoconf@gnu.org." >&5
14006 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14007 whose name does not start with the host triplet.  If you think this
14008 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14009 ac_tool_warned=yes ;;
14010 esac
14011     RANLIB=$ac_ct_RANLIB
14012   fi
14013 else
14014   RANLIB="$ac_cv_prog_RANLIB"
14015 fi
14016
14017 if test -n "$ac_tool_prefix"; then
14018   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14019 set dummy ${ac_tool_prefix}strip; ac_word=$2
14020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14022 if test "${ac_cv_prog_STRIP+set}" = set; then
14023   echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025   if test -n "$STRIP"; then
14026   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14027 else
14028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029 for as_dir in $PATH
14030 do
14031   IFS=$as_save_IFS
14032   test -z "$as_dir" && as_dir=.
14033   for ac_exec_ext in '' $ac_executable_extensions; do
14034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14035     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14037     break 2
14038   fi
14039 done
14040 done
14041 IFS=$as_save_IFS
14042
14043 fi
14044 fi
14045 STRIP=$ac_cv_prog_STRIP
14046 if test -n "$STRIP"; then
14047   { echo "$as_me:$LINENO: result: $STRIP" >&5
14048 echo "${ECHO_T}$STRIP" >&6; }
14049 else
14050   { echo "$as_me:$LINENO: result: no" >&5
14051 echo "${ECHO_T}no" >&6; }
14052 fi
14053
14054
14055 fi
14056 if test -z "$ac_cv_prog_STRIP"; then
14057   ac_ct_STRIP=$STRIP
14058   # Extract the first word of "strip", so it can be a program name with args.
14059 set dummy strip; ac_word=$2
14060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14062 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14063   echo $ECHO_N "(cached) $ECHO_C" >&6
14064 else
14065   if test -n "$ac_ct_STRIP"; then
14066   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14067 else
14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069 for as_dir in $PATH
14070 do
14071   IFS=$as_save_IFS
14072   test -z "$as_dir" && as_dir=.
14073   for ac_exec_ext in '' $ac_executable_extensions; do
14074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14075     ac_cv_prog_ac_ct_STRIP="strip"
14076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14077     break 2
14078   fi
14079 done
14080 done
14081 IFS=$as_save_IFS
14082
14083 fi
14084 fi
14085 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14086 if test -n "$ac_ct_STRIP"; then
14087   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14088 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14089 else
14090   { echo "$as_me:$LINENO: result: no" >&5
14091 echo "${ECHO_T}no" >&6; }
14092 fi
14093
14094   if test "x$ac_ct_STRIP" = x; then
14095     STRIP=":"
14096   else
14097     case $cross_compiling:$ac_tool_warned in
14098 yes:)
14099 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14100 whose name does not start with the host triplet.  If you think this
14101 configuration is useful to you, please write to autoconf@gnu.org." >&5
14102 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14103 whose name does not start with the host triplet.  If you think this
14104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14105 ac_tool_warned=yes ;;
14106 esac
14107     STRIP=$ac_ct_STRIP
14108   fi
14109 else
14110   STRIP="$ac_cv_prog_STRIP"
14111 fi
14112
14113
14114 old_CC="$CC"
14115 old_CFLAGS="$CFLAGS"
14116
14117 # Set sane defaults for various variables
14118 test -z "$AR" && AR=ar
14119 test -z "$AR_FLAGS" && AR_FLAGS=cru
14120 test -z "$AS" && AS=as
14121 test -z "$CC" && CC=cc
14122 test -z "$LTCC" && LTCC=$CC
14123 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14124 test -z "$DLLTOOL" && DLLTOOL=dlltool
14125 test -z "$LD" && LD=ld
14126 test -z "$LN_S" && LN_S="ln -s"
14127 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14128 test -z "$NM" && NM=nm
14129 test -z "$SED" && SED=sed
14130 test -z "$OBJDUMP" && OBJDUMP=objdump
14131 test -z "$RANLIB" && RANLIB=:
14132 test -z "$STRIP" && STRIP=:
14133 test -z "$ac_objext" && ac_objext=o
14134
14135 # Determine commands to create old-style static archives.
14136 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14137 old_postinstall_cmds='chmod 644 $oldlib'
14138 old_postuninstall_cmds=
14139
14140 if test -n "$RANLIB"; then
14141   case $host_os in
14142   openbsd*)
14143     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14144     ;;
14145   *)
14146     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14147     ;;
14148   esac
14149   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14150 fi
14151
14152 for cc_temp in $compiler""; do
14153   case $cc_temp in
14154     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14155     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14156     \-*) ;;
14157     *) break;;
14158   esac
14159 done
14160 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14161
14162
14163 # Only perform the check for file, if the check method requires it
14164 case $deplibs_check_method in
14165 file_magic*)
14166   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14167     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14168 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14169 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14170   echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172   case $MAGIC_CMD in
14173 [\\/*] |  ?:[\\/]*)
14174   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14175   ;;
14176 *)
14177   lt_save_MAGIC_CMD="$MAGIC_CMD"
14178   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14179   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14180   for ac_dir in $ac_dummy; do
14181     IFS="$lt_save_ifs"
14182     test -z "$ac_dir" && ac_dir=.
14183     if test -f $ac_dir/${ac_tool_prefix}file; then
14184       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14185       if test -n "$file_magic_test_file"; then
14186         case $deplibs_check_method in
14187         "file_magic "*)
14188           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14189           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14190           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14191             $EGREP "$file_magic_regex" > /dev/null; then
14192             :
14193           else
14194             cat <<EOF 1>&2
14195
14196 *** Warning: the command libtool uses to detect shared libraries,
14197 *** $file_magic_cmd, produces output that libtool cannot recognize.
14198 *** The result is that libtool may fail to recognize shared libraries
14199 *** as such.  This will affect the creation of libtool libraries that
14200 *** depend on shared libraries, but programs linked with such libtool
14201 *** libraries will work regardless of this problem.  Nevertheless, you
14202 *** may want to report the problem to your system manager and/or to
14203 *** bug-libtool@gnu.org
14204
14205 EOF
14206           fi ;;
14207         esac
14208       fi
14209       break
14210     fi
14211   done
14212   IFS="$lt_save_ifs"
14213   MAGIC_CMD="$lt_save_MAGIC_CMD"
14214   ;;
14215 esac
14216 fi
14217
14218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14219 if test -n "$MAGIC_CMD"; then
14220   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14221 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14222 else
14223   { echo "$as_me:$LINENO: result: no" >&5
14224 echo "${ECHO_T}no" >&6; }
14225 fi
14226
14227 if test -z "$lt_cv_path_MAGIC_CMD"; then
14228   if test -n "$ac_tool_prefix"; then
14229     { echo "$as_me:$LINENO: checking for file" >&5
14230 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14232   echo $ECHO_N "(cached) $ECHO_C" >&6
14233 else
14234   case $MAGIC_CMD in
14235 [\\/*] |  ?:[\\/]*)
14236   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14237   ;;
14238 *)
14239   lt_save_MAGIC_CMD="$MAGIC_CMD"
14240   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14241   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14242   for ac_dir in $ac_dummy; do
14243     IFS="$lt_save_ifs"
14244     test -z "$ac_dir" && ac_dir=.
14245     if test -f $ac_dir/file; then
14246       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14247       if test -n "$file_magic_test_file"; then
14248         case $deplibs_check_method in
14249         "file_magic "*)
14250           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14251           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14252           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14253             $EGREP "$file_magic_regex" > /dev/null; then
14254             :
14255           else
14256             cat <<EOF 1>&2
14257
14258 *** Warning: the command libtool uses to detect shared libraries,
14259 *** $file_magic_cmd, produces output that libtool cannot recognize.
14260 *** The result is that libtool may fail to recognize shared libraries
14261 *** as such.  This will affect the creation of libtool libraries that
14262 *** depend on shared libraries, but programs linked with such libtool
14263 *** libraries will work regardless of this problem.  Nevertheless, you
14264 *** may want to report the problem to your system manager and/or to
14265 *** bug-libtool@gnu.org
14266
14267 EOF
14268           fi ;;
14269         esac
14270       fi
14271       break
14272     fi
14273   done
14274   IFS="$lt_save_ifs"
14275   MAGIC_CMD="$lt_save_MAGIC_CMD"
14276   ;;
14277 esac
14278 fi
14279
14280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14281 if test -n "$MAGIC_CMD"; then
14282   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14283 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14284 else
14285   { echo "$as_me:$LINENO: result: no" >&5
14286 echo "${ECHO_T}no" >&6; }
14287 fi
14288
14289   else
14290     MAGIC_CMD=:
14291   fi
14292 fi
14293
14294   fi
14295   ;;
14296 esac
14297
14298 enable_dlopen=yes
14299 enable_win32_dll=no
14300
14301 # Check whether --enable-libtool-lock was given.
14302 if test "${enable_libtool_lock+set}" = set; then
14303   enableval=$enable_libtool_lock;
14304 fi
14305
14306 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14307
14308
14309 # Check whether --with-pic was given.
14310 if test "${with_pic+set}" = set; then
14311   withval=$with_pic; pic_mode="$withval"
14312 else
14313   pic_mode=default
14314 fi
14315
14316 test -z "$pic_mode" && pic_mode=default
14317
14318 # Use C for the default configuration in the libtool script
14319 tagname=
14320 lt_save_CC="$CC"
14321 ac_ext=c
14322 ac_cpp='$CPP $CPPFLAGS'
14323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14326
14327
14328 # Source file extension for C test sources.
14329 ac_ext=c
14330
14331 # Object file extension for compiled C test sources.
14332 objext=o
14333 objext=$objext
14334
14335 # Code to be used in simple compile tests
14336 lt_simple_compile_test_code="int some_variable = 0;\n"
14337
14338 # Code to be used in simple link tests
14339 lt_simple_link_test_code='int main(){return(0);}\n'
14340
14341
14342 # If no C compiler was specified, use CC.
14343 LTCC=${LTCC-"$CC"}
14344
14345 # If no C compiler flags were specified, use CFLAGS.
14346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14347
14348 # Allow CC to be a program name with arguments.
14349 compiler=$CC
14350
14351
14352 # save warnings/boilerplate of simple test code
14353 ac_outfile=conftest.$ac_objext
14354 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14356 _lt_compiler_boilerplate=`cat conftest.err`
14357 $rm conftest*
14358
14359 ac_outfile=conftest.$ac_objext
14360 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14362 _lt_linker_boilerplate=`cat conftest.err`
14363 $rm conftest*
14364
14365
14366
14367 lt_prog_compiler_no_builtin_flag=
14368
14369 if test "$GCC" = yes; then
14370   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14371
14372
14373 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14374 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14375 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14376   echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378   lt_cv_prog_compiler_rtti_exceptions=no
14379   ac_outfile=conftest.$ac_objext
14380    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14381    lt_compiler_flag="-fno-rtti -fno-exceptions"
14382    # Insert the option either (1) after the last *FLAGS variable, or
14383    # (2) before a word containing "conftest.", or (3) at the end.
14384    # Note that $ac_compile itself does not contain backslashes and begins
14385    # with a dollar sign (not a hyphen), so the echo should work correctly.
14386    # The option is referenced via a variable to avoid confusing sed.
14387    lt_compile=`echo "$ac_compile" | $SED \
14388    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390    -e 's:$: $lt_compiler_flag:'`
14391    (eval echo "\"\$as_me:14391: $lt_compile\"" >&5)
14392    (eval "$lt_compile" 2>conftest.err)
14393    ac_status=$?
14394    cat conftest.err >&5
14395    echo "$as_me:14395: \$? = $ac_status" >&5
14396    if (exit $ac_status) && test -s "$ac_outfile"; then
14397      # The compiler can only warn and ignore the option if not recognized
14398      # So say no if there are warnings other than the usual output.
14399      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14400      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14401      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14402        lt_cv_prog_compiler_rtti_exceptions=yes
14403      fi
14404    fi
14405    $rm conftest*
14406
14407 fi
14408 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14409 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14410
14411 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14412     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14413 else
14414     :
14415 fi
14416
14417 fi
14418
14419 lt_prog_compiler_wl=
14420 lt_prog_compiler_pic=
14421 lt_prog_compiler_static=
14422
14423 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14424 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14425
14426   if test "$GCC" = yes; then
14427     lt_prog_compiler_wl='-Wl,'
14428     lt_prog_compiler_static='-static'
14429
14430     case $host_os in
14431       aix*)
14432       # All AIX code is PIC.
14433       if test "$host_cpu" = ia64; then
14434         # AIX 5 now supports IA64 processor
14435         lt_prog_compiler_static='-Bstatic'
14436       fi
14437       ;;
14438
14439     amigaos*)
14440       # FIXME: we need at least 68020 code to build shared libraries, but
14441       # adding the `-m68020' flag to GCC prevents building anything better,
14442       # like `-m68040'.
14443       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14444       ;;
14445
14446     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14447       # PIC is the default for these OSes.
14448       ;;
14449
14450     mingw* | pw32* | os2*)
14451       # This hack is so that the source file can tell whether it is being
14452       # built for inclusion in a dll (and should export symbols for example).
14453       lt_prog_compiler_pic='-DDLL_EXPORT'
14454       ;;
14455
14456     darwin* | rhapsody*)
14457       # PIC is the default on this platform
14458       # Common symbols not allowed in MH_DYLIB files
14459       lt_prog_compiler_pic='-fno-common'
14460       ;;
14461
14462     interix3*)
14463       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14464       # Instead, we relocate shared libraries at runtime.
14465       ;;
14466
14467     msdosdjgpp*)
14468       # Just because we use GCC doesn't mean we suddenly get shared libraries
14469       # on systems that don't support them.
14470       lt_prog_compiler_can_build_shared=no
14471       enable_shared=no
14472       ;;
14473
14474     sysv4*MP*)
14475       if test -d /usr/nec; then
14476         lt_prog_compiler_pic=-Kconform_pic
14477       fi
14478       ;;
14479
14480     hpux*)
14481       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14482       # not for PA HP-UX.
14483       case $host_cpu in
14484       hppa*64*|ia64*)
14485         # +Z the default
14486         ;;
14487       *)
14488         lt_prog_compiler_pic='-fPIC'
14489         ;;
14490       esac
14491       ;;
14492
14493     *)
14494       lt_prog_compiler_pic='-fPIC'
14495       ;;
14496     esac
14497   else
14498     # PORTME Check for flag to pass linker flags through the system compiler.
14499     case $host_os in
14500     aix*)
14501       lt_prog_compiler_wl='-Wl,'
14502       if test "$host_cpu" = ia64; then
14503         # AIX 5 now supports IA64 processor
14504         lt_prog_compiler_static='-Bstatic'
14505       else
14506         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14507       fi
14508       ;;
14509       darwin*)
14510         # PIC is the default on this platform
14511         # Common symbols not allowed in MH_DYLIB files
14512        case $cc_basename in
14513          xlc*)
14514          lt_prog_compiler_pic='-qnocommon'
14515          lt_prog_compiler_wl='-Wl,'
14516          ;;
14517        esac
14518        ;;
14519
14520     mingw* | pw32* | os2*)
14521       # This hack is so that the source file can tell whether it is being
14522       # built for inclusion in a dll (and should export symbols for example).
14523       lt_prog_compiler_pic='-DDLL_EXPORT'
14524       ;;
14525
14526     hpux9* | hpux10* | hpux11*)
14527       lt_prog_compiler_wl='-Wl,'
14528       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14529       # not for PA HP-UX.
14530       case $host_cpu in
14531       hppa*64*|ia64*)
14532         # +Z the default
14533         ;;
14534       *)
14535         lt_prog_compiler_pic='+Z'
14536         ;;
14537       esac
14538       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14539       lt_prog_compiler_static='${wl}-a ${wl}archive'
14540       ;;
14541
14542     irix5* | irix6* | nonstopux*)
14543       lt_prog_compiler_wl='-Wl,'
14544       # PIC (with -KPIC) is the default.
14545       lt_prog_compiler_static='-non_shared'
14546       ;;
14547
14548     newsos6)
14549       lt_prog_compiler_pic='-KPIC'
14550       lt_prog_compiler_static='-Bstatic'
14551       ;;
14552
14553     linux*)
14554       case $cc_basename in
14555       icc* | ecc*)
14556         lt_prog_compiler_wl='-Wl,'
14557         lt_prog_compiler_pic='-KPIC'
14558         lt_prog_compiler_static='-static'
14559         ;;
14560       pgcc* | pgf77* | pgf90* | pgf95*)
14561         # Portland Group compilers (*not* the Pentium gcc compiler,
14562         # which looks to be a dead project)
14563         lt_prog_compiler_wl='-Wl,'
14564         lt_prog_compiler_pic='-fpic'
14565         lt_prog_compiler_static='-Bstatic'
14566         ;;
14567       ccc*)
14568         lt_prog_compiler_wl='-Wl,'
14569         # All Alpha code is PIC.
14570         lt_prog_compiler_static='-non_shared'
14571         ;;
14572       esac
14573       ;;
14574
14575     osf3* | osf4* | osf5*)
14576       lt_prog_compiler_wl='-Wl,'
14577       # All OSF/1 code is PIC.
14578       lt_prog_compiler_static='-non_shared'
14579       ;;
14580
14581     solaris*)
14582       lt_prog_compiler_pic='-KPIC'
14583       lt_prog_compiler_static='-Bstatic'
14584       case $cc_basename in
14585       f77* | f90* | f95*)
14586         lt_prog_compiler_wl='-Qoption ld ';;
14587       *)
14588         lt_prog_compiler_wl='-Wl,';;
14589       esac
14590       ;;
14591
14592     sunos4*)
14593       lt_prog_compiler_wl='-Qoption ld '
14594       lt_prog_compiler_pic='-PIC'
14595       lt_prog_compiler_static='-Bstatic'
14596       ;;
14597
14598     sysv4 | sysv4.2uw2* | sysv4.3*)
14599       lt_prog_compiler_wl='-Wl,'
14600       lt_prog_compiler_pic='-KPIC'
14601       lt_prog_compiler_static='-Bstatic'
14602       ;;
14603
14604     sysv4*MP*)
14605       if test -d /usr/nec ;then
14606         lt_prog_compiler_pic='-Kconform_pic'
14607         lt_prog_compiler_static='-Bstatic'
14608       fi
14609       ;;
14610
14611     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14612       lt_prog_compiler_wl='-Wl,'
14613       lt_prog_compiler_pic='-KPIC'
14614       lt_prog_compiler_static='-Bstatic'
14615       ;;
14616
14617     unicos*)
14618       lt_prog_compiler_wl='-Wl,'
14619       lt_prog_compiler_can_build_shared=no
14620       ;;
14621
14622     uts4*)
14623       lt_prog_compiler_pic='-pic'
14624       lt_prog_compiler_static='-Bstatic'
14625       ;;
14626
14627     *)
14628       lt_prog_compiler_can_build_shared=no
14629       ;;
14630     esac
14631   fi
14632
14633 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14634 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14635
14636 #
14637 # Check to make sure the PIC flag actually works.
14638 #
14639 if test -n "$lt_prog_compiler_pic"; then
14640
14641 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14642 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14643 if test "${lt_prog_compiler_pic_works+set}" = set; then
14644   echo $ECHO_N "(cached) $ECHO_C" >&6
14645 else
14646   lt_prog_compiler_pic_works=no
14647   ac_outfile=conftest.$ac_objext
14648    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14649    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14650    # Insert the option either (1) after the last *FLAGS variable, or
14651    # (2) before a word containing "conftest.", or (3) at the end.
14652    # Note that $ac_compile itself does not contain backslashes and begins
14653    # with a dollar sign (not a hyphen), so the echo should work correctly.
14654    # The option is referenced via a variable to avoid confusing sed.
14655    lt_compile=`echo "$ac_compile" | $SED \
14656    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14657    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14658    -e 's:$: $lt_compiler_flag:'`
14659    (eval echo "\"\$as_me:14659: $lt_compile\"" >&5)
14660    (eval "$lt_compile" 2>conftest.err)
14661    ac_status=$?
14662    cat conftest.err >&5
14663    echo "$as_me:14663: \$? = $ac_status" >&5
14664    if (exit $ac_status) && test -s "$ac_outfile"; then
14665      # The compiler can only warn and ignore the option if not recognized
14666      # So say no if there are warnings other than the usual output.
14667      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14668      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14669      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14670        lt_prog_compiler_pic_works=yes
14671      fi
14672    fi
14673    $rm conftest*
14674
14675 fi
14676 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14677 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14678
14679 if test x"$lt_prog_compiler_pic_works" = xyes; then
14680     case $lt_prog_compiler_pic in
14681      "" | " "*) ;;
14682      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14683      esac
14684 else
14685     lt_prog_compiler_pic=
14686      lt_prog_compiler_can_build_shared=no
14687 fi
14688
14689 fi
14690 case $host_os in
14691   # For platforms which do not support PIC, -DPIC is meaningless:
14692   *djgpp*)
14693     lt_prog_compiler_pic=
14694     ;;
14695   *)
14696     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14697     ;;
14698 esac
14699
14700 #
14701 # Check to make sure the static flag actually works.
14702 #
14703 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14704 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14705 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14706 if test "${lt_prog_compiler_static_works+set}" = set; then
14707   echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709   lt_prog_compiler_static_works=no
14710    save_LDFLAGS="$LDFLAGS"
14711    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14712    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14713    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14714      # The linker can only warn and ignore the option if not recognized
14715      # So say no if there are warnings
14716      if test -s conftest.err; then
14717        # Append any errors to the config.log.
14718        cat conftest.err 1>&5
14719        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14720        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14721        if diff conftest.exp conftest.er2 >/dev/null; then
14722          lt_prog_compiler_static_works=yes
14723        fi
14724      else
14725        lt_prog_compiler_static_works=yes
14726      fi
14727    fi
14728    $rm conftest*
14729    LDFLAGS="$save_LDFLAGS"
14730
14731 fi
14732 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14733 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14734
14735 if test x"$lt_prog_compiler_static_works" = xyes; then
14736     :
14737 else
14738     lt_prog_compiler_static=
14739 fi
14740
14741
14742 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14743 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14744 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   lt_cv_prog_compiler_c_o=no
14748    $rm -r conftest 2>/dev/null
14749    mkdir conftest
14750    cd conftest
14751    mkdir out
14752    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14753
14754    lt_compiler_flag="-o out/conftest2.$ac_objext"
14755    # Insert the option either (1) after the last *FLAGS variable, or
14756    # (2) before a word containing "conftest.", or (3) at the end.
14757    # Note that $ac_compile itself does not contain backslashes and begins
14758    # with a dollar sign (not a hyphen), so the echo should work correctly.
14759    lt_compile=`echo "$ac_compile" | $SED \
14760    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14761    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14762    -e 's:$: $lt_compiler_flag:'`
14763    (eval echo "\"\$as_me:14763: $lt_compile\"" >&5)
14764    (eval "$lt_compile" 2>out/conftest.err)
14765    ac_status=$?
14766    cat out/conftest.err >&5
14767    echo "$as_me:14767: \$? = $ac_status" >&5
14768    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14769    then
14770      # The compiler can only warn and ignore the option if not recognized
14771      # So say no if there are warnings
14772      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14773      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14774      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14775        lt_cv_prog_compiler_c_o=yes
14776      fi
14777    fi
14778    chmod u+w . 2>&5
14779    $rm conftest*
14780    # SGI C++ compiler will create directory out/ii_files/ for
14781    # template instantiation
14782    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14783    $rm out/* && rmdir out
14784    cd ..
14785    rmdir conftest
14786    $rm conftest*
14787
14788 fi
14789 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14790 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14791
14792
14793 hard_links="nottested"
14794 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14795   # do not overwrite the value of need_locks provided by the user
14796   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14797 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14798   hard_links=yes
14799   $rm conftest*
14800   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14801   touch conftest.a
14802   ln conftest.a conftest.b 2>&5 || hard_links=no
14803   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14804   { echo "$as_me:$LINENO: result: $hard_links" >&5
14805 echo "${ECHO_T}$hard_links" >&6; }
14806   if test "$hard_links" = no; then
14807     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14808 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14809     need_locks=warn
14810   fi
14811 else
14812   need_locks=no
14813 fi
14814
14815 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14816 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14817
14818   runpath_var=
14819   allow_undefined_flag=
14820   enable_shared_with_static_runtimes=no
14821   archive_cmds=
14822   archive_expsym_cmds=
14823   old_archive_From_new_cmds=
14824   old_archive_from_expsyms_cmds=
14825   export_dynamic_flag_spec=
14826   whole_archive_flag_spec=
14827   thread_safe_flag_spec=
14828   hardcode_libdir_flag_spec=
14829   hardcode_libdir_flag_spec_ld=
14830   hardcode_libdir_separator=
14831   hardcode_direct=no
14832   hardcode_minus_L=no
14833   hardcode_shlibpath_var=unsupported
14834   link_all_deplibs=unknown
14835   hardcode_automatic=no
14836   module_cmds=
14837   module_expsym_cmds=
14838   always_export_symbols=no
14839   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14840   # include_expsyms should be a list of space-separated symbols to be *always*
14841   # included in the symbol list
14842   include_expsyms=
14843   # exclude_expsyms can be an extended regexp of symbols to exclude
14844   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14845   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14846   # as well as any symbol that contains `d'.
14847   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14848   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14849   # platforms (ab)use it in PIC code, but their linkers get confused if
14850   # the symbol is explicitly referenced.  Since portable code cannot
14851   # rely on this symbol name, it's probably fine to never include it in
14852   # preloaded symbol tables.
14853   extract_expsyms_cmds=
14854   # Just being paranoid about ensuring that cc_basename is set.
14855   for cc_temp in $compiler""; do
14856   case $cc_temp in
14857     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14858     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14859     \-*) ;;
14860     *) break;;
14861   esac
14862 done
14863 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14864
14865   case $host_os in
14866   cygwin* | mingw* | pw32*)
14867     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14868     # When not using gcc, we currently assume that we are using
14869     # Microsoft Visual C++.
14870     if test "$GCC" != yes; then
14871       with_gnu_ld=no
14872     fi
14873     ;;
14874   interix*)
14875     # we just hope/assume this is gcc and not c89 (= MSVC++)
14876     with_gnu_ld=yes
14877     ;;
14878   openbsd*)
14879     with_gnu_ld=no
14880     ;;
14881   esac
14882
14883   ld_shlibs=yes
14884   if test "$with_gnu_ld" = yes; then
14885     # If archive_cmds runs LD, not CC, wlarc should be empty
14886     wlarc='${wl}'
14887
14888     # Set some defaults for GNU ld with shared library support. These
14889     # are reset later if shared libraries are not supported. Putting them
14890     # here allows them to be overridden if necessary.
14891     runpath_var=LD_RUN_PATH
14892     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14893     export_dynamic_flag_spec='${wl}--export-dynamic'
14894     # ancient GNU ld didn't support --whole-archive et. al.
14895     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14896         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14897       else
14898         whole_archive_flag_spec=
14899     fi
14900     supports_anon_versioning=no
14901     case `$LD -v 2>/dev/null` in
14902       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14903       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14904       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14905       *\ 2.11.*) ;; # other 2.11 versions
14906       *) supports_anon_versioning=yes ;;
14907     esac
14908
14909     # See if GNU ld supports shared libraries.
14910     case $host_os in
14911     aix3* | aix4* | aix5*)
14912       # On AIX/PPC, the GNU linker is very broken
14913       if test "$host_cpu" != ia64; then
14914         ld_shlibs=no
14915         cat <<EOF 1>&2
14916
14917 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14918 *** to be unable to reliably create shared libraries on AIX.
14919 *** Therefore, libtool is disabling shared libraries support.  If you
14920 *** really care for shared libraries, you may want to modify your PATH
14921 *** so that a non-GNU linker is found, and then restart.
14922
14923 EOF
14924       fi
14925       ;;
14926
14927     amigaos*)
14928       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)'
14929       hardcode_libdir_flag_spec='-L$libdir'
14930       hardcode_minus_L=yes
14931
14932       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14933       # that the semantics of dynamic libraries on AmigaOS, at least up
14934       # to version 4, is to share data among multiple programs linked
14935       # with the same dynamic library.  Since this doesn't match the
14936       # behavior of shared libraries on other platforms, we can't use
14937       # them.
14938       ld_shlibs=no
14939       ;;
14940
14941     beos*)
14942       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14943         allow_undefined_flag=unsupported
14944         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14945         # support --undefined.  This deserves some investigation.  FIXME
14946         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14947       else
14948         ld_shlibs=no
14949       fi
14950       ;;
14951
14952     cygwin* | mingw* | pw32*)
14953       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14954       # as there is no search path for DLLs.
14955       hardcode_libdir_flag_spec='-L$libdir'
14956       allow_undefined_flag=unsupported
14957       always_export_symbols=no
14958       enable_shared_with_static_runtimes=yes
14959       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14960
14961       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14962         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14963         # If the export-symbols file already is a .def file (1st line
14964         # is EXPORTS), use it as is; otherwise, prepend...
14965         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14966           cp $export_symbols $output_objdir/$soname.def;
14967         else
14968           echo EXPORTS > $output_objdir/$soname.def;
14969           cat $export_symbols >> $output_objdir/$soname.def;
14970         fi~
14971         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14972       else
14973         ld_shlibs=no
14974       fi
14975       ;;
14976
14977     interix3*)
14978       hardcode_direct=no
14979       hardcode_shlibpath_var=no
14980       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14981       export_dynamic_flag_spec='${wl}-E'
14982       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14983       # Instead, shared libraries are loaded at an image base (0x10000000 by
14984       # default) and relocated if they conflict, which is a slow very memory
14985       # consuming and fragmenting process.  To avoid this, we pick a random,
14986       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14987       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14988       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14989       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'
14990       ;;
14991
14992     linux*)
14993       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14994         tmp_addflag=
14995         case $cc_basename,$host_cpu in
14996         pgcc*)                          # Portland Group C compiler
14997           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'
14998           tmp_addflag=' $pic_flag'
14999           ;;
15000         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15001           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'
15002           tmp_addflag=' $pic_flag -Mnomain' ;;
15003         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15004           tmp_addflag=' -i_dynamic' ;;
15005         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15006           tmp_addflag=' -i_dynamic -nofor_main' ;;
15007         ifc* | ifort*)                  # Intel Fortran compiler
15008           tmp_addflag=' -nofor_main' ;;
15009         esac
15010         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011
15012         if test $supports_anon_versioning = yes; then
15013           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15014   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15015   $echo "local: *; };" >> $output_objdir/$libname.ver~
15016           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15017         fi
15018       else
15019         ld_shlibs=no
15020       fi
15021       ;;
15022
15023     netbsd*)
15024       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15025         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15026         wlarc=
15027       else
15028         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15030       fi
15031       ;;
15032
15033     solaris*)
15034       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15035         ld_shlibs=no
15036         cat <<EOF 1>&2
15037
15038 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15039 *** create shared libraries on Solaris systems.  Therefore, libtool
15040 *** is disabling shared libraries support.  We urge you to upgrade GNU
15041 *** binutils to release 2.9.1 or newer.  Another option is to modify
15042 *** your PATH or compiler configuration so that the native linker is
15043 *** used, and then restart.
15044
15045 EOF
15046       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15047         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15049       else
15050         ld_shlibs=no
15051       fi
15052       ;;
15053
15054     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15055       case `$LD -v 2>&1` in
15056         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15057         ld_shlibs=no
15058         cat <<_LT_EOF 1>&2
15059
15060 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15061 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15062 *** is disabling shared libraries support.  We urge you to upgrade GNU
15063 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15064 *** your PATH or compiler configuration so that the native linker is
15065 *** used, and then restart.
15066
15067 _LT_EOF
15068         ;;
15069         *)
15070           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15071             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15072             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15073             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15074           else
15075             ld_shlibs=no
15076           fi
15077         ;;
15078       esac
15079       ;;
15080
15081     sunos4*)
15082       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15083       wlarc=
15084       hardcode_direct=yes
15085       hardcode_shlibpath_var=no
15086       ;;
15087
15088     *)
15089       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15092       else
15093         ld_shlibs=no
15094       fi
15095       ;;
15096     esac
15097
15098     if test "$ld_shlibs" = no; then
15099       runpath_var=
15100       hardcode_libdir_flag_spec=
15101       export_dynamic_flag_spec=
15102       whole_archive_flag_spec=
15103     fi
15104   else
15105     # PORTME fill in a description of your system's linker (not GNU ld)
15106     case $host_os in
15107     aix3*)
15108       allow_undefined_flag=unsupported
15109       always_export_symbols=yes
15110       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'
15111       # Note: this linker hardcodes the directories in LIBPATH if there
15112       # are no directories specified by -L.
15113       hardcode_minus_L=yes
15114       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15115         # Neither direct hardcoding nor static linking is supported with a
15116         # broken collect2.
15117         hardcode_direct=unsupported
15118       fi
15119       ;;
15120
15121     aix4* | aix5*)
15122       if test "$host_cpu" = ia64; then
15123         # On IA64, the linker does run time linking by default, so we don't
15124         # have to do anything special.
15125         aix_use_runtimelinking=no
15126         exp_sym_flag='-Bexport'
15127         no_entry_flag=""
15128       else
15129         # If we're using GNU nm, then we don't want the "-C" option.
15130         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15131         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15132           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'
15133         else
15134           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'
15135         fi
15136         aix_use_runtimelinking=no
15137
15138         # Test if we are trying to use run time linking or normal
15139         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15140         # need to do runtime linking.
15141         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15142           for ld_flag in $LDFLAGS; do
15143           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15144             aix_use_runtimelinking=yes
15145             break
15146           fi
15147           done
15148           ;;
15149         esac
15150
15151         exp_sym_flag='-bexport'
15152         no_entry_flag='-bnoentry'
15153       fi
15154
15155       # When large executables or shared objects are built, AIX ld can
15156       # have problems creating the table of contents.  If linking a library
15157       # or program results in "error TOC overflow" add -mminimal-toc to
15158       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15159       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15160
15161       archive_cmds=''
15162       hardcode_direct=yes
15163       hardcode_libdir_separator=':'
15164       link_all_deplibs=yes
15165
15166       if test "$GCC" = yes; then
15167         case $host_os in aix4.[012]|aix4.[012].*)
15168         # We only want to do this on AIX 4.2 and lower, the check
15169         # below for broken collect2 doesn't work under 4.3+
15170           collect2name=`${CC} -print-prog-name=collect2`
15171           if test -f "$collect2name" && \
15172            strings "$collect2name" | grep resolve_lib_name >/dev/null
15173           then
15174           # We have reworked collect2
15175           hardcode_direct=yes
15176           else
15177           # We have old collect2
15178           hardcode_direct=unsupported
15179           # It fails to find uninstalled libraries when the uninstalled
15180           # path is not listed in the libpath.  Setting hardcode_minus_L
15181           # to unsupported forces relinking
15182           hardcode_minus_L=yes
15183           hardcode_libdir_flag_spec='-L$libdir'
15184           hardcode_libdir_separator=
15185           fi
15186           ;;
15187         esac
15188         shared_flag='-shared'
15189         if test "$aix_use_runtimelinking" = yes; then
15190           shared_flag="$shared_flag "'${wl}-G'
15191         fi
15192       else
15193         # not using gcc
15194         if test "$host_cpu" = ia64; then
15195         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15196         # chokes on -Wl,-G. The following line is correct:
15197           shared_flag='-G'
15198         else
15199           if test "$aix_use_runtimelinking" = yes; then
15200             shared_flag='${wl}-G'
15201           else
15202             shared_flag='${wl}-bM:SRE'
15203           fi
15204         fi
15205       fi
15206
15207       # It seems that -bexpall does not export symbols beginning with
15208       # underscore (_), so it is better to generate a list of symbols to export.
15209       always_export_symbols=yes
15210       if test "$aix_use_runtimelinking" = yes; then
15211         # Warning - without using the other runtime loading flags (-brtl),
15212         # -berok will link without error, but may produce a broken library.
15213         allow_undefined_flag='-berok'
15214        # Determine the default libpath from the value encoded in an empty executable.
15215        cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h.  */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h.  */
15221
15222 int
15223 main ()
15224 {
15225
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_link") 2>conftest.er1
15238   ac_status=$?
15239   grep -v '^ *+' conftest.er1 >conftest.err
15240   rm -f conftest.er1
15241   cat conftest.err >&5
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); } &&
15244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245   { (case "(($ac_try" in
15246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247   *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250   (eval "$ac_try") 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); }; } &&
15254          { ac_try='test -s conftest$ac_exeext'
15255   { (case "(($ac_try" in
15256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257   *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260   (eval "$ac_try") 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; }; then
15264
15265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15266 }'`
15267 # Check for a 64-bit object if we didn't find anything.
15268 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; }
15269 }'`; fi
15270 else
15271   echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274
15275 fi
15276
15277 rm -f core conftest.err conftest.$ac_objext \
15278       conftest$ac_exeext conftest.$ac_ext
15279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15280
15281        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15282         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"
15283        else
15284         if test "$host_cpu" = ia64; then
15285           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15286           allow_undefined_flag="-z nodefs"
15287           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"
15288         else
15289          # Determine the default libpath from the value encoded in an empty executable.
15290          cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296
15297 int
15298 main ()
15299 {
15300
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext conftest$ac_exeext
15306 if { (ac_try="$ac_link"
15307 case "(($ac_try" in
15308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309   *) ac_try_echo=$ac_try;;
15310 esac
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312   (eval "$ac_link") 2>conftest.er1
15313   ac_status=$?
15314   grep -v '^ *+' conftest.er1 >conftest.err
15315   rm -f conftest.er1
15316   cat conftest.err >&5
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } &&
15319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320   { (case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_try") 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; } &&
15329          { ac_try='test -s conftest$ac_exeext'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339
15340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15341 }'`
15342 # Check for a 64-bit object if we didn't find anything.
15343 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; }
15344 }'`; fi
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349
15350 fi
15351
15352 rm -f core conftest.err conftest.$ac_objext \
15353       conftest$ac_exeext conftest.$ac_ext
15354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15355
15356          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15357           # Warning - without using the other run time loading flags,
15358           # -berok will link without error, but may produce a broken library.
15359           no_undefined_flag=' ${wl}-bernotok'
15360           allow_undefined_flag=' ${wl}-berok'
15361           # Exported symbols can be pulled into shared objects from archives
15362           whole_archive_flag_spec='$convenience'
15363           archive_cmds_need_lc=yes
15364           # This is similar to how AIX traditionally builds its shared libraries.
15365           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'
15366         fi
15367       fi
15368       ;;
15369
15370     amigaos*)
15371       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)'
15372       hardcode_libdir_flag_spec='-L$libdir'
15373       hardcode_minus_L=yes
15374       # see comment about different semantics on the GNU ld section
15375       ld_shlibs=no
15376       ;;
15377
15378     bsdi[45]*)
15379       export_dynamic_flag_spec=-rdynamic
15380       ;;
15381
15382     cygwin* | mingw* | pw32*)
15383       # When not using gcc, we currently assume that we are using
15384       # Microsoft Visual C++.
15385       # hardcode_libdir_flag_spec is actually meaningless, as there is
15386       # no search path for DLLs.
15387       hardcode_libdir_flag_spec=' '
15388       allow_undefined_flag=unsupported
15389       # Tell ltmain to make .lib files, not .a files.
15390       libext=lib
15391       # Tell ltmain to make .dll files, not .so files.
15392       shrext_cmds=".dll"
15393       # FIXME: Setting linknames here is a bad hack.
15394       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15395       # The linker will automatically build a .lib file if we build a DLL.
15396       old_archive_From_new_cmds='true'
15397       # FIXME: Should let the user specify the lib program.
15398       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15399       fix_srcfile_path='`cygpath -w "$srcfile"`'
15400       enable_shared_with_static_runtimes=yes
15401       ;;
15402
15403     darwin* | rhapsody*)
15404       case $host_os in
15405         rhapsody* | darwin1.[012])
15406          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15407          ;;
15408        *) # Darwin 1.3 on
15409          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15410            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15411          else
15412            case ${MACOSX_DEPLOYMENT_TARGET} in
15413              10.[012])
15414                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15415                ;;
15416              10.*)
15417                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15418                ;;
15419            esac
15420          fi
15421          ;;
15422       esac
15423       archive_cmds_need_lc=no
15424       hardcode_direct=no
15425       hardcode_automatic=yes
15426       hardcode_shlibpath_var=unsupported
15427       whole_archive_flag_spec=''
15428       link_all_deplibs=yes
15429     if test "$GCC" = yes ; then
15430         output_verbose_link_cmd='echo'
15431         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15432       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15433       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15434       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}'
15435       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}'
15436     else
15437       case $cc_basename in
15438         xlc*)
15439          output_verbose_link_cmd='echo'
15440          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15441          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15442           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15443          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}'
15444           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}'
15445           ;;
15446        *)
15447          ld_shlibs=no
15448           ;;
15449       esac
15450     fi
15451       ;;
15452
15453     dgux*)
15454       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455       hardcode_libdir_flag_spec='-L$libdir'
15456       hardcode_shlibpath_var=no
15457       ;;
15458
15459     freebsd1*)
15460       ld_shlibs=no
15461       ;;
15462
15463     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15464     # support.  Future versions do this automatically, but an explicit c++rt0.o
15465     # does not break anything, and helps significantly (at the cost of a little
15466     # extra space).
15467     freebsd2.2*)
15468       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15469       hardcode_libdir_flag_spec='-R$libdir'
15470       hardcode_direct=yes
15471       hardcode_shlibpath_var=no
15472       ;;
15473
15474     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15475     freebsd2*)
15476       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15477       hardcode_direct=yes
15478       hardcode_minus_L=yes
15479       hardcode_shlibpath_var=no
15480       ;;
15481
15482     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15483     freebsd* | kfreebsd*-gnu | dragonfly*)
15484       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15485       hardcode_libdir_flag_spec='-R$libdir'
15486       hardcode_direct=yes
15487       hardcode_shlibpath_var=no
15488       ;;
15489
15490     hpux9*)
15491       if test "$GCC" = yes; then
15492         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'
15493       else
15494         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'
15495       fi
15496       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15497       hardcode_libdir_separator=:
15498       hardcode_direct=yes
15499
15500       # hardcode_minus_L: Not really in the search PATH,
15501       # but as the default location of the library.
15502       hardcode_minus_L=yes
15503       export_dynamic_flag_spec='${wl}-E'
15504       ;;
15505
15506     hpux10*)
15507       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15508         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15509       else
15510         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15511       fi
15512       if test "$with_gnu_ld" = no; then
15513         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15514         hardcode_libdir_separator=:
15515
15516         hardcode_direct=yes
15517         export_dynamic_flag_spec='${wl}-E'
15518
15519         # hardcode_minus_L: Not really in the search PATH,
15520         # but as the default location of the library.
15521         hardcode_minus_L=yes
15522       fi
15523       ;;
15524
15525     hpux11*)
15526       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15527         case $host_cpu in
15528         hppa*64*)
15529           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15530           ;;
15531         ia64*)
15532           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15533           ;;
15534         *)
15535           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15536           ;;
15537         esac
15538       else
15539         case $host_cpu in
15540         hppa*64*)
15541           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15542           ;;
15543         ia64*)
15544           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15545           ;;
15546         *)
15547           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15548           ;;
15549         esac
15550       fi
15551       if test "$with_gnu_ld" = no; then
15552         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15553         hardcode_libdir_separator=:
15554
15555         case $host_cpu in
15556         hppa*64*|ia64*)
15557           hardcode_libdir_flag_spec_ld='+b $libdir'
15558           hardcode_direct=no
15559           hardcode_shlibpath_var=no
15560           ;;
15561         *)
15562           hardcode_direct=yes
15563           export_dynamic_flag_spec='${wl}-E'
15564
15565           # hardcode_minus_L: Not really in the search PATH,
15566           # but as the default location of the library.
15567           hardcode_minus_L=yes
15568           ;;
15569         esac
15570       fi
15571       ;;
15572
15573     irix5* | irix6* | nonstopux*)
15574       if test "$GCC" = yes; then
15575         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'
15576       else
15577         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'
15578         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15579       fi
15580       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15581       hardcode_libdir_separator=:
15582       link_all_deplibs=yes
15583       ;;
15584
15585     netbsd*)
15586       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15587         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15588       else
15589         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15590       fi
15591       hardcode_libdir_flag_spec='-R$libdir'
15592       hardcode_direct=yes
15593       hardcode_shlibpath_var=no
15594       ;;
15595
15596     newsos6)
15597       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598       hardcode_direct=yes
15599       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15600       hardcode_libdir_separator=:
15601       hardcode_shlibpath_var=no
15602       ;;
15603
15604     openbsd*)
15605       hardcode_direct=yes
15606       hardcode_shlibpath_var=no
15607       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15608         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15609         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15610         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15611         export_dynamic_flag_spec='${wl}-E'
15612       else
15613        case $host_os in
15614          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15615            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15616            hardcode_libdir_flag_spec='-R$libdir'
15617            ;;
15618          *)
15619            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15620            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15621            ;;
15622        esac
15623       fi
15624       ;;
15625
15626     os2*)
15627       hardcode_libdir_flag_spec='-L$libdir'
15628       hardcode_minus_L=yes
15629       allow_undefined_flag=unsupported
15630       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'
15631       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15632       ;;
15633
15634     osf3*)
15635       if test "$GCC" = yes; then
15636         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15637         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'
15638       else
15639         allow_undefined_flag=' -expect_unresolved \*'
15640         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'
15641       fi
15642       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15643       hardcode_libdir_separator=:
15644       ;;
15645
15646     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15647       if test "$GCC" = yes; then
15648         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15649         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'
15650         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15651       else
15652         allow_undefined_flag=' -expect_unresolved \*'
15653         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'
15654         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15655         $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'
15656
15657         # Both c and cxx compiler support -rpath directly
15658         hardcode_libdir_flag_spec='-rpath $libdir'
15659       fi
15660       hardcode_libdir_separator=:
15661       ;;
15662
15663     solaris*)
15664       no_undefined_flag=' -z text'
15665       if test "$GCC" = yes; then
15666         wlarc='${wl}'
15667         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15668         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15669           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15670       else
15671         wlarc=''
15672         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15674         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15675       fi
15676       hardcode_libdir_flag_spec='-R$libdir'
15677       hardcode_shlibpath_var=no
15678       case $host_os in
15679       solaris2.[0-5] | solaris2.[0-5].*) ;;
15680       *)
15681         # The compiler driver will combine linker options so we
15682         # cannot just pass the convience library names through
15683         # without $wl, iff we do not link with $LD.
15684         # Luckily, gcc supports the same syntax we need for Sun Studio.
15685         # Supported since Solaris 2.6 (maybe 2.5.1?)
15686         case $wlarc in
15687         '')
15688           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15689         *)
15690           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' ;;
15691         esac ;;
15692       esac
15693       link_all_deplibs=yes
15694       ;;
15695
15696     sunos4*)
15697       if test "x$host_vendor" = xsequent; then
15698         # Use $CC to link under sequent, because it throws in some extra .o
15699         # files that make .init and .fini sections work.
15700         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15701       else
15702         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15703       fi
15704       hardcode_libdir_flag_spec='-L$libdir'
15705       hardcode_direct=yes
15706       hardcode_minus_L=yes
15707       hardcode_shlibpath_var=no
15708       ;;
15709
15710     sysv4)
15711       case $host_vendor in
15712         sni)
15713           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714           hardcode_direct=yes # is this really true???
15715         ;;
15716         siemens)
15717           ## LD is ld it makes a PLAMLIB
15718           ## CC just makes a GrossModule.
15719           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15720           reload_cmds='$CC -r -o $output$reload_objs'
15721           hardcode_direct=no
15722         ;;
15723         motorola)
15724           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15726         ;;
15727       esac
15728       runpath_var='LD_RUN_PATH'
15729       hardcode_shlibpath_var=no
15730       ;;
15731
15732     sysv4.3*)
15733       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734       hardcode_shlibpath_var=no
15735       export_dynamic_flag_spec='-Bexport'
15736       ;;
15737
15738     sysv4*MP*)
15739       if test -d /usr/nec; then
15740         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741         hardcode_shlibpath_var=no
15742         runpath_var=LD_RUN_PATH
15743         hardcode_runpath_var=yes
15744         ld_shlibs=yes
15745       fi
15746       ;;
15747
15748     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15749       no_undefined_flag='${wl}-z,text'
15750       archive_cmds_need_lc=no
15751       hardcode_shlibpath_var=no
15752       runpath_var='LD_RUN_PATH'
15753
15754       if test "$GCC" = yes; then
15755         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15756         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15757       else
15758         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15759         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15760       fi
15761       ;;
15762
15763     sysv5* | sco3.2v5* | sco5v6*)
15764       # Note: We can NOT use -z defs as we might desire, because we do not
15765       # link with -lc, and that would cause any symbols used from libc to
15766       # always be unresolved, which means just about no library would
15767       # ever link correctly.  If we're not using GNU ld we use -z text
15768       # though, which does catch some bad symbols but isn't as heavy-handed
15769       # as -z defs.
15770       no_undefined_flag='${wl}-z,text'
15771       allow_undefined_flag='${wl}-z,nodefs'
15772       archive_cmds_need_lc=no
15773       hardcode_shlibpath_var=no
15774       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15775       hardcode_libdir_separator=':'
15776       link_all_deplibs=yes
15777       export_dynamic_flag_spec='${wl}-Bexport'
15778       runpath_var='LD_RUN_PATH'
15779
15780       if test "$GCC" = yes; then
15781         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15782         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15783       else
15784         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15786       fi
15787       ;;
15788
15789     uts4*)
15790       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791       hardcode_libdir_flag_spec='-L$libdir'
15792       hardcode_shlibpath_var=no
15793       ;;
15794
15795     *)
15796       ld_shlibs=no
15797       ;;
15798     esac
15799   fi
15800
15801 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15802 echo "${ECHO_T}$ld_shlibs" >&6; }
15803 test "$ld_shlibs" = no && can_build_shared=no
15804
15805 #
15806 # Do we need to explicitly link libc?
15807 #
15808 case "x$archive_cmds_need_lc" in
15809 x|xyes)
15810   # Assume -lc should be added
15811   archive_cmds_need_lc=yes
15812
15813   if test "$enable_shared" = yes && test "$GCC" = yes; then
15814     case $archive_cmds in
15815     *'~'*)
15816       # FIXME: we may have to deal with multi-command sequences.
15817       ;;
15818     '$CC '*)
15819       # Test whether the compiler implicitly links with -lc since on some
15820       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15821       # to ld, don't add -lc before -lgcc.
15822       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15823 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15824       $rm conftest*
15825       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15826
15827       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828   (eval $ac_compile) 2>&5
15829   ac_status=$?
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); } 2>conftest.err; then
15832         soname=conftest
15833         lib=conftest
15834         libobjs=conftest.$ac_objext
15835         deplibs=
15836         wl=$lt_prog_compiler_wl
15837         pic_flag=$lt_prog_compiler_pic
15838         compiler_flags=-v
15839         linker_flags=-v
15840         verstring=
15841         output_objdir=.
15842         libname=conftest
15843         lt_save_allow_undefined_flag=$allow_undefined_flag
15844         allow_undefined_flag=
15845         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15846   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15847   ac_status=$?
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); }
15850         then
15851           archive_cmds_need_lc=no
15852         else
15853           archive_cmds_need_lc=yes
15854         fi
15855         allow_undefined_flag=$lt_save_allow_undefined_flag
15856       else
15857         cat conftest.err 1>&5
15858       fi
15859       $rm conftest*
15860       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15861 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15862       ;;
15863     esac
15864   fi
15865   ;;
15866 esac
15867
15868 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15869 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15870 library_names_spec=
15871 libname_spec='lib$name'
15872 soname_spec=
15873 shrext_cmds=".so"
15874 postinstall_cmds=
15875 postuninstall_cmds=
15876 finish_cmds=
15877 finish_eval=
15878 shlibpath_var=
15879 shlibpath_overrides_runpath=unknown
15880 version_type=none
15881 dynamic_linker="$host_os ld.so"
15882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15883 if test "$GCC" = yes; then
15884   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15885   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15886     # if the path contains ";" then we assume it to be the separator
15887     # otherwise default to the standard path separator (i.e. ":") - it is
15888     # assumed that no part of a normal pathname contains ";" but that should
15889     # okay in the real world where ";" in dirpaths is itself problematic.
15890     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15891   else
15892     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15893   fi
15894 else
15895   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15896 fi
15897 need_lib_prefix=unknown
15898 hardcode_into_libs=no
15899
15900 # when you set need_version to no, make sure it does not cause -set_version
15901 # flags to be left without arguments
15902 need_version=unknown
15903
15904 case $host_os in
15905 aix3*)
15906   version_type=linux
15907   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15908   shlibpath_var=LIBPATH
15909
15910   # AIX 3 has no versioning support, so we append a major version to the name.
15911   soname_spec='${libname}${release}${shared_ext}$major'
15912   ;;
15913
15914 aix4* | aix5*)
15915   version_type=linux
15916   need_lib_prefix=no
15917   need_version=no
15918   hardcode_into_libs=yes
15919   if test "$host_cpu" = ia64; then
15920     # AIX 5 supports IA64
15921     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15922     shlibpath_var=LD_LIBRARY_PATH
15923   else
15924     # With GCC up to 2.95.x, collect2 would create an import file
15925     # for dependence libraries.  The import file would start with
15926     # the line `#! .'.  This would cause the generated library to
15927     # depend on `.', always an invalid library.  This was fixed in
15928     # development snapshots of GCC prior to 3.0.
15929     case $host_os in
15930       aix4 | aix4.[01] | aix4.[01].*)
15931       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15932            echo ' yes '
15933            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15934         :
15935       else
15936         can_build_shared=no
15937       fi
15938       ;;
15939     esac
15940     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15941     # soname into executable. Probably we can add versioning support to
15942     # collect2, so additional links can be useful in future.
15943     if test "$aix_use_runtimelinking" = yes; then
15944       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15945       # instead of lib<name>.a to let people know that these are not
15946       # typical AIX shared libraries.
15947       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948     else
15949       # We preserve .a as extension for shared libraries through AIX4.2
15950       # and later when we are not doing run time linking.
15951       library_names_spec='${libname}${release}.a $libname.a'
15952       soname_spec='${libname}${release}${shared_ext}$major'
15953     fi
15954     shlibpath_var=LIBPATH
15955   fi
15956   ;;
15957
15958 amigaos*)
15959   library_names_spec='$libname.ixlibrary $libname.a'
15960   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15961   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'
15962   ;;
15963
15964 beos*)
15965   library_names_spec='${libname}${shared_ext}'
15966   dynamic_linker="$host_os ld.so"
15967   shlibpath_var=LIBRARY_PATH
15968   ;;
15969
15970 bsdi[45]*)
15971   version_type=linux
15972   need_version=no
15973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974   soname_spec='${libname}${release}${shared_ext}$major'
15975   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15976   shlibpath_var=LD_LIBRARY_PATH
15977   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15978   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15979   # the default ld.so.conf also contains /usr/contrib/lib and
15980   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15981   # libtool to hard-code these into programs
15982   ;;
15983
15984 cygwin* | mingw* | pw32*)
15985   version_type=windows
15986   shrext_cmds=".dll"
15987   need_version=no
15988   need_lib_prefix=no
15989
15990   case $GCC,$host_os in
15991   yes,cygwin* | yes,mingw* | yes,pw32*)
15992     library_names_spec='$libname.dll.a'
15993     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15994     postinstall_cmds='base_file=`basename \${file}`~
15995       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15996       dldir=$destdir/`dirname \$dlpath`~
15997       test -d \$dldir || mkdir -p \$dldir~
15998       $install_prog $dir/$dlname \$dldir/$dlname~
15999       chmod a+x \$dldir/$dlname'
16000     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16001       dlpath=$dir/\$dldll~
16002        $rm \$dlpath'
16003     shlibpath_overrides_runpath=yes
16004
16005     case $host_os in
16006     cygwin*)
16007       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16008       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16009       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16010       ;;
16011     mingw*)
16012       # MinGW DLLs use traditional 'lib' prefix
16013       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16014       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16015       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16016         # It is most probably a Windows format PATH printed by
16017         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16018         # path with ; separators, and with drive letters. We can handle the
16019         # drive letters (cygwin fileutils understands them), so leave them,
16020         # especially as we might pass files found there to a mingw objdump,
16021         # which wouldn't understand a cygwinified path. Ahh.
16022         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16023       else
16024         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16025       fi
16026       ;;
16027     pw32*)
16028       # pw32 DLLs use 'pw' prefix rather than 'lib'
16029       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16030       ;;
16031     esac
16032     ;;
16033
16034   *)
16035     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16036     ;;
16037   esac
16038   dynamic_linker='Win32 ld.exe'
16039   # FIXME: first we should search . and the directory the executable is in
16040   shlibpath_var=PATH
16041   ;;
16042
16043 darwin* | rhapsody*)
16044   dynamic_linker="$host_os dyld"
16045   version_type=darwin
16046   need_lib_prefix=no
16047   need_version=no
16048   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16049   soname_spec='${libname}${release}${major}$shared_ext'
16050   shlibpath_overrides_runpath=yes
16051   shlibpath_var=DYLD_LIBRARY_PATH
16052   shrext_cmds='.dylib'
16053   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16054   if test "$GCC" = yes; then
16055     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"`
16056   else
16057     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16058   fi
16059   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16060   ;;
16061
16062 dgux*)
16063   version_type=linux
16064   need_lib_prefix=no
16065   need_version=no
16066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16067   soname_spec='${libname}${release}${shared_ext}$major'
16068   shlibpath_var=LD_LIBRARY_PATH
16069   ;;
16070
16071 freebsd1*)
16072   dynamic_linker=no
16073   ;;
16074
16075 kfreebsd*-gnu)
16076   version_type=linux
16077   need_lib_prefix=no
16078   need_version=no
16079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16080   soname_spec='${libname}${release}${shared_ext}$major'
16081   shlibpath_var=LD_LIBRARY_PATH
16082   shlibpath_overrides_runpath=no
16083   hardcode_into_libs=yes
16084   dynamic_linker='GNU ld.so'
16085   ;;
16086
16087 freebsd* | dragonfly*)
16088   # DragonFly does not have aout.  When/if they implement a new
16089   # versioning mechanism, adjust this.
16090   if test -x /usr/bin/objformat; then
16091     objformat=`/usr/bin/objformat`
16092   else
16093     case $host_os in
16094     freebsd[123]*) objformat=aout ;;
16095     *) objformat=elf ;;
16096     esac
16097   fi
16098   version_type=freebsd-$objformat
16099   case $version_type in
16100     freebsd-elf*)
16101       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16102       need_version=no
16103       need_lib_prefix=no
16104       ;;
16105     freebsd-*)
16106       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16107       need_version=yes
16108       ;;
16109   esac
16110   shlibpath_var=LD_LIBRARY_PATH
16111   case $host_os in
16112   freebsd2*)
16113     shlibpath_overrides_runpath=yes
16114     ;;
16115   freebsd3.[01]* | freebsdelf3.[01]*)
16116     shlibpath_overrides_runpath=yes
16117     hardcode_into_libs=yes
16118     ;;
16119   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16120   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16121     shlibpath_overrides_runpath=no
16122     hardcode_into_libs=yes
16123     ;;
16124   freebsd*) # from 4.6 on
16125     shlibpath_overrides_runpath=yes
16126     hardcode_into_libs=yes
16127     ;;
16128   esac
16129   ;;
16130
16131 gnu*)
16132   version_type=linux
16133   need_lib_prefix=no
16134   need_version=no
16135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16136   soname_spec='${libname}${release}${shared_ext}$major'
16137   shlibpath_var=LD_LIBRARY_PATH
16138   hardcode_into_libs=yes
16139   ;;
16140
16141 hpux9* | hpux10* | hpux11*)
16142   # Give a soname corresponding to the major version so that dld.sl refuses to
16143   # link against other versions.
16144   version_type=sunos
16145   need_lib_prefix=no
16146   need_version=no
16147   case $host_cpu in
16148   ia64*)
16149     shrext_cmds='.so'
16150     hardcode_into_libs=yes
16151     dynamic_linker="$host_os dld.so"
16152     shlibpath_var=LD_LIBRARY_PATH
16153     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155     soname_spec='${libname}${release}${shared_ext}$major'
16156     if test "X$HPUX_IA64_MODE" = X32; then
16157       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16158     else
16159       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16160     fi
16161     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16162     ;;
16163    hppa*64*)
16164      shrext_cmds='.sl'
16165      hardcode_into_libs=yes
16166      dynamic_linker="$host_os dld.sl"
16167      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16168      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16169      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170      soname_spec='${libname}${release}${shared_ext}$major'
16171      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16172      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16173      ;;
16174    *)
16175     shrext_cmds='.sl'
16176     dynamic_linker="$host_os dld.sl"
16177     shlibpath_var=SHLIB_PATH
16178     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180     soname_spec='${libname}${release}${shared_ext}$major'
16181     ;;
16182   esac
16183   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16184   postinstall_cmds='chmod 555 $lib'
16185   ;;
16186
16187 interix3*)
16188   version_type=linux
16189   need_lib_prefix=no
16190   need_version=no
16191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16192   soname_spec='${libname}${release}${shared_ext}$major'
16193   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16194   shlibpath_var=LD_LIBRARY_PATH
16195   shlibpath_overrides_runpath=no
16196   hardcode_into_libs=yes
16197   ;;
16198
16199 irix5* | irix6* | nonstopux*)
16200   case $host_os in
16201     nonstopux*) version_type=nonstopux ;;
16202     *)
16203         if test "$lt_cv_prog_gnu_ld" = yes; then
16204                 version_type=linux
16205         else
16206                 version_type=irix
16207         fi ;;
16208   esac
16209   need_lib_prefix=no
16210   need_version=no
16211   soname_spec='${libname}${release}${shared_ext}$major'
16212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16213   case $host_os in
16214   irix5* | nonstopux*)
16215     libsuff= shlibsuff=
16216     ;;
16217   *)
16218     case $LD in # libtool.m4 will add one of these switches to LD
16219     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16220       libsuff= shlibsuff= libmagic=32-bit;;
16221     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16222       libsuff=32 shlibsuff=N32 libmagic=N32;;
16223     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16224       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16225     *) libsuff= shlibsuff= libmagic=never-match;;
16226     esac
16227     ;;
16228   esac
16229   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16230   shlibpath_overrides_runpath=no
16231   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16232   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16233   hardcode_into_libs=yes
16234   ;;
16235
16236 # No shared lib support for Linux oldld, aout, or coff.
16237 linux*oldld* | linux*aout* | linux*coff*)
16238   dynamic_linker=no
16239   ;;
16240
16241 # This must be Linux ELF.
16242 linux*)
16243   version_type=linux
16244   need_lib_prefix=no
16245   need_version=no
16246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247   soname_spec='${libname}${release}${shared_ext}$major'
16248   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16249   shlibpath_var=LD_LIBRARY_PATH
16250   shlibpath_overrides_runpath=no
16251   # This implies no fast_install, which is unacceptable.
16252   # Some rework will be needed to allow for fast_install
16253   # before this can be enabled.
16254   hardcode_into_libs=yes
16255
16256   # Append ld.so.conf contents to the search path
16257   if test -f /etc/ld.so.conf; then
16258     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' ' '`
16259     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16260   fi
16261
16262   # We used to test for /lib/ld.so.1 and disable shared libraries on
16263   # powerpc, because MkLinux only supported shared libraries with the
16264   # GNU dynamic linker.  Since this was broken with cross compilers,
16265   # most powerpc-linux boxes support dynamic linking these days and
16266   # people can always --disable-shared, the test was removed, and we
16267   # assume the GNU/Linux dynamic linker is in use.
16268   dynamic_linker='GNU/Linux ld.so'
16269   ;;
16270
16271 knetbsd*-gnu)
16272   version_type=linux
16273   need_lib_prefix=no
16274   need_version=no
16275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16276   soname_spec='${libname}${release}${shared_ext}$major'
16277   shlibpath_var=LD_LIBRARY_PATH
16278   shlibpath_overrides_runpath=no
16279   hardcode_into_libs=yes
16280   dynamic_linker='GNU ld.so'
16281   ;;
16282
16283 netbsd*)
16284   version_type=sunos
16285   need_lib_prefix=no
16286   need_version=no
16287   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16289     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16290     dynamic_linker='NetBSD (a.out) ld.so'
16291   else
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     dynamic_linker='NetBSD ld.elf_so'
16295   fi
16296   shlibpath_var=LD_LIBRARY_PATH
16297   shlibpath_overrides_runpath=yes
16298   hardcode_into_libs=yes
16299   ;;
16300
16301 newsos6)
16302   version_type=linux
16303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16304   shlibpath_var=LD_LIBRARY_PATH
16305   shlibpath_overrides_runpath=yes
16306   ;;
16307
16308 nto-qnx*)
16309   version_type=linux
16310   need_lib_prefix=no
16311   need_version=no
16312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313   soname_spec='${libname}${release}${shared_ext}$major'
16314   shlibpath_var=LD_LIBRARY_PATH
16315   shlibpath_overrides_runpath=yes
16316   ;;
16317
16318 openbsd*)
16319   version_type=sunos
16320   sys_lib_dlsearch_path_spec="/usr/lib"
16321   need_lib_prefix=no
16322   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16323   case $host_os in
16324     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16325     *)                         need_version=no  ;;
16326   esac
16327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16329   shlibpath_var=LD_LIBRARY_PATH
16330   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16331     case $host_os in
16332       openbsd2.[89] | openbsd2.[89].*)
16333         shlibpath_overrides_runpath=no
16334         ;;
16335       *)
16336         shlibpath_overrides_runpath=yes
16337         ;;
16338       esac
16339   else
16340     shlibpath_overrides_runpath=yes
16341   fi
16342   ;;
16343
16344 os2*)
16345   libname_spec='$name'
16346   shrext_cmds=".dll"
16347   need_lib_prefix=no
16348   library_names_spec='$libname${shared_ext} $libname.a'
16349   dynamic_linker='OS/2 ld.exe'
16350   shlibpath_var=LIBPATH
16351   ;;
16352
16353 osf3* | osf4* | osf5*)
16354   version_type=osf
16355   need_lib_prefix=no
16356   need_version=no
16357   soname_spec='${libname}${release}${shared_ext}$major'
16358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359   shlibpath_var=LD_LIBRARY_PATH
16360   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16361   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16362   ;;
16363
16364 solaris*)
16365   version_type=linux
16366   need_lib_prefix=no
16367   need_version=no
16368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16369   soname_spec='${libname}${release}${shared_ext}$major'
16370   shlibpath_var=LD_LIBRARY_PATH
16371   shlibpath_overrides_runpath=yes
16372   hardcode_into_libs=yes
16373   # ldd complains unless libraries are executable
16374   postinstall_cmds='chmod +x $lib'
16375   ;;
16376
16377 sunos4*)
16378   version_type=sunos
16379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16380   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16381   shlibpath_var=LD_LIBRARY_PATH
16382   shlibpath_overrides_runpath=yes
16383   if test "$with_gnu_ld" = yes; then
16384     need_lib_prefix=no
16385   fi
16386   need_version=yes
16387   ;;
16388
16389 sysv4 | sysv4.3*)
16390   version_type=linux
16391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392   soname_spec='${libname}${release}${shared_ext}$major'
16393   shlibpath_var=LD_LIBRARY_PATH
16394   case $host_vendor in
16395     sni)
16396       shlibpath_overrides_runpath=no
16397       need_lib_prefix=no
16398       export_dynamic_flag_spec='${wl}-Blargedynsym'
16399       runpath_var=LD_RUN_PATH
16400       ;;
16401     siemens)
16402       need_lib_prefix=no
16403       ;;
16404     motorola)
16405       need_lib_prefix=no
16406       need_version=no
16407       shlibpath_overrides_runpath=no
16408       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16409       ;;
16410   esac
16411   ;;
16412
16413 sysv4*MP*)
16414   if test -d /usr/nec ;then
16415     version_type=linux
16416     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16417     soname_spec='$libname${shared_ext}.$major'
16418     shlibpath_var=LD_LIBRARY_PATH
16419   fi
16420   ;;
16421
16422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16423   version_type=freebsd-elf
16424   need_lib_prefix=no
16425   need_version=no
16426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16427   soname_spec='${libname}${release}${shared_ext}$major'
16428   shlibpath_var=LD_LIBRARY_PATH
16429   hardcode_into_libs=yes
16430   if test "$with_gnu_ld" = yes; then
16431     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16432     shlibpath_overrides_runpath=no
16433   else
16434     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16435     shlibpath_overrides_runpath=yes
16436     case $host_os in
16437       sco3.2v5*)
16438         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16439         ;;
16440     esac
16441   fi
16442   sys_lib_dlsearch_path_spec='/usr/lib'
16443   ;;
16444
16445 uts4*)
16446   version_type=linux
16447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448   soname_spec='${libname}${release}${shared_ext}$major'
16449   shlibpath_var=LD_LIBRARY_PATH
16450   ;;
16451
16452 *)
16453   dynamic_linker=no
16454   ;;
16455 esac
16456 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16457 echo "${ECHO_T}$dynamic_linker" >&6; }
16458 test "$dynamic_linker" = no && can_build_shared=no
16459
16460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16461 if test "$GCC" = yes; then
16462   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16463 fi
16464
16465 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16466 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16467 hardcode_action=
16468 if test -n "$hardcode_libdir_flag_spec" || \
16469    test -n "$runpath_var" || \
16470    test "X$hardcode_automatic" = "Xyes" ; then
16471
16472   # We can hardcode non-existant directories.
16473   if test "$hardcode_direct" != no &&
16474      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16475      # have to relink, otherwise we might link with an installed library
16476      # when we should be linking with a yet-to-be-installed one
16477      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16478      test "$hardcode_minus_L" != no; then
16479     # Linking always hardcodes the temporary library directory.
16480     hardcode_action=relink
16481   else
16482     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16483     hardcode_action=immediate
16484   fi
16485 else
16486   # We cannot hardcode anything, or else we can only hardcode existing
16487   # directories.
16488   hardcode_action=unsupported
16489 fi
16490 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16491 echo "${ECHO_T}$hardcode_action" >&6; }
16492
16493 if test "$hardcode_action" = relink; then
16494   # Fast installation is not supported
16495   enable_fast_install=no
16496 elif test "$shlibpath_overrides_runpath" = yes ||
16497      test "$enable_shared" = no; then
16498   # Fast installation is not necessary
16499   enable_fast_install=needless
16500 fi
16501
16502 striplib=
16503 old_striplib=
16504 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16505 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16506 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16507   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16508   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16509   { echo "$as_me:$LINENO: result: yes" >&5
16510 echo "${ECHO_T}yes" >&6; }
16511 else
16512 # FIXME - insert some real tests, host_os isn't really good enough
16513   case $host_os in
16514    darwin*)
16515        if test -n "$STRIP" ; then
16516          striplib="$STRIP -x"
16517          { echo "$as_me:$LINENO: result: yes" >&5
16518 echo "${ECHO_T}yes" >&6; }
16519        else
16520   { echo "$as_me:$LINENO: result: no" >&5
16521 echo "${ECHO_T}no" >&6; }
16522 fi
16523        ;;
16524    *)
16525   { echo "$as_me:$LINENO: result: no" >&5
16526 echo "${ECHO_T}no" >&6; }
16527     ;;
16528   esac
16529 fi
16530
16531 if test "x$enable_dlopen" != xyes; then
16532   enable_dlopen=unknown
16533   enable_dlopen_self=unknown
16534   enable_dlopen_self_static=unknown
16535 else
16536   lt_cv_dlopen=no
16537   lt_cv_dlopen_libs=
16538
16539   case $host_os in
16540   beos*)
16541     lt_cv_dlopen="load_add_on"
16542     lt_cv_dlopen_libs=
16543     lt_cv_dlopen_self=yes
16544     ;;
16545
16546   mingw* | pw32*)
16547     lt_cv_dlopen="LoadLibrary"
16548     lt_cv_dlopen_libs=
16549    ;;
16550
16551   cygwin*)
16552     lt_cv_dlopen="dlopen"
16553     lt_cv_dlopen_libs=
16554    ;;
16555
16556   darwin*)
16557   # if libdl is installed we need to link against it
16558     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16559 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16560 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16561   echo $ECHO_N "(cached) $ECHO_C" >&6
16562 else
16563   ac_check_lib_save_LIBS=$LIBS
16564 LIBS="-ldl  $LIBS"
16565 cat >conftest.$ac_ext <<_ACEOF
16566 /* confdefs.h.  */
16567 _ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h.  */
16571
16572 /* Override any GCC internal prototype to avoid an error.
16573    Use char because int might match the return type of a GCC
16574    builtin and then its argument prototype would still apply.  */
16575 #ifdef __cplusplus
16576 extern "C"
16577 #endif
16578 char dlopen ();
16579 int
16580 main ()
16581 {
16582 return dlopen ();
16583   ;
16584   return 0;
16585 }
16586 _ACEOF
16587 rm -f conftest.$ac_objext conftest$ac_exeext
16588 if { (ac_try="$ac_link"
16589 case "(($ac_try" in
16590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591   *) ac_try_echo=$ac_try;;
16592 esac
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594   (eval "$ac_link") 2>conftest.er1
16595   ac_status=$?
16596   grep -v '^ *+' conftest.er1 >conftest.err
16597   rm -f conftest.er1
16598   cat conftest.err >&5
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } &&
16601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16602   { (case "(($ac_try" in
16603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604   *) ac_try_echo=$ac_try;;
16605 esac
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607   (eval "$ac_try") 2>&5
16608   ac_status=$?
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); }; } &&
16611          { ac_try='test -s conftest$ac_exeext'
16612   { (case "(($ac_try" in
16613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614   *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617   (eval "$ac_try") 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); }; }; then
16621   ac_cv_lib_dl_dlopen=yes
16622 else
16623   echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16625
16626         ac_cv_lib_dl_dlopen=no
16627 fi
16628
16629 rm -f core conftest.err conftest.$ac_objext \
16630       conftest$ac_exeext conftest.$ac_ext
16631 LIBS=$ac_check_lib_save_LIBS
16632 fi
16633 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16634 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16635 if test $ac_cv_lib_dl_dlopen = yes; then
16636   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16637 else
16638
16639     lt_cv_dlopen="dyld"
16640     lt_cv_dlopen_libs=
16641     lt_cv_dlopen_self=yes
16642
16643 fi
16644
16645    ;;
16646
16647   *)
16648     { echo "$as_me:$LINENO: checking for shl_load" >&5
16649 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16650 if test "${ac_cv_func_shl_load+set}" = set; then
16651   echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653   cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h.  */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h.  */
16659 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16661 #define shl_load innocuous_shl_load
16662
16663 /* System header to define __stub macros and hopefully few prototypes,
16664     which can conflict with char shl_load (); below.
16665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16666     <limits.h> exists even on freestanding compilers.  */
16667
16668 #ifdef __STDC__
16669 # include <limits.h>
16670 #else
16671 # include <assert.h>
16672 #endif
16673
16674 #undef shl_load
16675
16676 /* Override any GCC internal prototype to avoid an error.
16677    Use char because int might match the return type of a GCC
16678    builtin and then its argument prototype would still apply.  */
16679 #ifdef __cplusplus
16680 extern "C"
16681 #endif
16682 char shl_load ();
16683 /* The GNU C library defines this for functions which it implements
16684     to always fail with ENOSYS.  Some functions are actually named
16685     something starting with __ and the normal name is an alias.  */
16686 #if defined __stub_shl_load || defined __stub___shl_load
16687 choke me
16688 #endif
16689
16690 int
16691 main ()
16692 {
16693 return shl_load ();
16694   ;
16695   return 0;
16696 }
16697 _ACEOF
16698 rm -f conftest.$ac_objext conftest$ac_exeext
16699 if { (ac_try="$ac_link"
16700 case "(($ac_try" in
16701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702   *) ac_try_echo=$ac_try;;
16703 esac
16704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705   (eval "$ac_link") 2>conftest.er1
16706   ac_status=$?
16707   grep -v '^ *+' conftest.er1 >conftest.err
16708   rm -f conftest.er1
16709   cat conftest.err >&5
16710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711   (exit $ac_status); } &&
16712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16713   { (case "(($ac_try" in
16714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715   *) ac_try_echo=$ac_try;;
16716 esac
16717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718   (eval "$ac_try") 2>&5
16719   ac_status=$?
16720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); }; } &&
16722          { ac_try='test -s conftest$ac_exeext'
16723   { (case "(($ac_try" in
16724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725   *) ac_try_echo=$ac_try;;
16726 esac
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728   (eval "$ac_try") 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); }; }; then
16732   ac_cv_func_shl_load=yes
16733 else
16734   echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16736
16737         ac_cv_func_shl_load=no
16738 fi
16739
16740 rm -f core conftest.err conftest.$ac_objext \
16741       conftest$ac_exeext conftest.$ac_ext
16742 fi
16743 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16744 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16745 if test $ac_cv_func_shl_load = yes; then
16746   lt_cv_dlopen="shl_load"
16747 else
16748   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16749 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16750 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753   ac_check_lib_save_LIBS=$LIBS
16754 LIBS="-ldld  $LIBS"
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h.  */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h.  */
16761
16762 /* Override any GCC internal prototype to avoid an error.
16763    Use char because int might match the return type of a GCC
16764    builtin and then its argument prototype would still apply.  */
16765 #ifdef __cplusplus
16766 extern "C"
16767 #endif
16768 char shl_load ();
16769 int
16770 main ()
16771 {
16772 return shl_load ();
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781   *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784   (eval "$ac_link") 2>conftest.er1
16785   ac_status=$?
16786   grep -v '^ *+' conftest.er1 >conftest.err
16787   rm -f conftest.er1
16788   cat conftest.err >&5
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); } &&
16791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16792   { (case "(($ac_try" in
16793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794   *) ac_try_echo=$ac_try;;
16795 esac
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797   (eval "$ac_try") 2>&5
16798   ac_status=$?
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); }; } &&
16801          { ac_try='test -s conftest$ac_exeext'
16802   { (case "(($ac_try" in
16803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804   *) ac_try_echo=$ac_try;;
16805 esac
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807   (eval "$ac_try") 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; }; then
16811   ac_cv_lib_dld_shl_load=yes
16812 else
16813   echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16815
16816         ac_cv_lib_dld_shl_load=no
16817 fi
16818
16819 rm -f core conftest.err conftest.$ac_objext \
16820       conftest$ac_exeext conftest.$ac_ext
16821 LIBS=$ac_check_lib_save_LIBS
16822 fi
16823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16824 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16825 if test $ac_cv_lib_dld_shl_load = yes; then
16826   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16827 else
16828   { echo "$as_me:$LINENO: checking for dlopen" >&5
16829 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16830 if test "${ac_cv_func_dlopen+set}" = set; then
16831   echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833   cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h.  */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h.  */
16839 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16841 #define dlopen innocuous_dlopen
16842
16843 /* System header to define __stub macros and hopefully few prototypes,
16844     which can conflict with char dlopen (); below.
16845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846     <limits.h> exists even on freestanding compilers.  */
16847
16848 #ifdef __STDC__
16849 # include <limits.h>
16850 #else
16851 # include <assert.h>
16852 #endif
16853
16854 #undef dlopen
16855
16856 /* Override any GCC internal prototype to avoid an error.
16857    Use char because int might match the return type of a GCC
16858    builtin and then its argument prototype would still apply.  */
16859 #ifdef __cplusplus
16860 extern "C"
16861 #endif
16862 char dlopen ();
16863 /* The GNU C library defines this for functions which it implements
16864     to always fail with ENOSYS.  Some functions are actually named
16865     something starting with __ and the normal name is an alias.  */
16866 #if defined __stub_dlopen || defined __stub___dlopen
16867 choke me
16868 #endif
16869
16870 int
16871 main ()
16872 {
16873 return dlopen ();
16874   ;
16875   return 0;
16876 }
16877 _ACEOF
16878 rm -f conftest.$ac_objext conftest$ac_exeext
16879 if { (ac_try="$ac_link"
16880 case "(($ac_try" in
16881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882   *) ac_try_echo=$ac_try;;
16883 esac
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885   (eval "$ac_link") 2>conftest.er1
16886   ac_status=$?
16887   grep -v '^ *+' conftest.er1 >conftest.err
16888   rm -f conftest.er1
16889   cat conftest.err >&5
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); } &&
16892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16893   { (case "(($ac_try" in
16894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895   *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898   (eval "$ac_try") 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; } &&
16902          { ac_try='test -s conftest$ac_exeext'
16903   { (case "(($ac_try" in
16904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905   *) ac_try_echo=$ac_try;;
16906 esac
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908   (eval "$ac_try") 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); }; }; then
16912   ac_cv_func_dlopen=yes
16913 else
16914   echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16916
16917         ac_cv_func_dlopen=no
16918 fi
16919
16920 rm -f core conftest.err conftest.$ac_objext \
16921       conftest$ac_exeext conftest.$ac_ext
16922 fi
16923 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16924 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16925 if test $ac_cv_func_dlopen = yes; then
16926   lt_cv_dlopen="dlopen"
16927 else
16928   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16929 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16930 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16931   echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933   ac_check_lib_save_LIBS=$LIBS
16934 LIBS="-ldl  $LIBS"
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h.  */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h.  */
16941
16942 /* Override any GCC internal prototype to avoid an error.
16943    Use char because int might match the return type of a GCC
16944    builtin and then its argument prototype would still apply.  */
16945 #ifdef __cplusplus
16946 extern "C"
16947 #endif
16948 char dlopen ();
16949 int
16950 main ()
16951 {
16952 return dlopen ();
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961   *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964   (eval "$ac_link") 2>conftest.er1
16965   ac_status=$?
16966   grep -v '^ *+' conftest.er1 >conftest.err
16967   rm -f conftest.er1
16968   cat conftest.err >&5
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); } &&
16971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972   { (case "(($ac_try" in
16973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974   *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977   (eval "$ac_try") 2>&5
16978   ac_status=$?
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); }; } &&
16981          { ac_try='test -s conftest$ac_exeext'
16982   { (case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_try") 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); }; }; then
16991   ac_cv_lib_dl_dlopen=yes
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996         ac_cv_lib_dl_dlopen=no
16997 fi
16998
16999 rm -f core conftest.err conftest.$ac_objext \
17000       conftest$ac_exeext conftest.$ac_ext
17001 LIBS=$ac_check_lib_save_LIBS
17002 fi
17003 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17004 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17005 if test $ac_cv_lib_dl_dlopen = yes; then
17006   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17007 else
17008   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17009 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17011   echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013   ac_check_lib_save_LIBS=$LIBS
17014 LIBS="-lsvld  $LIBS"
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h.  */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h.  */
17021
17022 /* Override any GCC internal prototype to avoid an error.
17023    Use char because int might match the return type of a GCC
17024    builtin and then its argument prototype would still apply.  */
17025 #ifdef __cplusplus
17026 extern "C"
17027 #endif
17028 char dlopen ();
17029 int
17030 main ()
17031 {
17032 return dlopen ();
17033   ;
17034   return 0;
17035 }
17036 _ACEOF
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041   *) ac_try_echo=$ac_try;;
17042 esac
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044   (eval "$ac_link") 2>conftest.er1
17045   ac_status=$?
17046   grep -v '^ *+' conftest.er1 >conftest.err
17047   rm -f conftest.er1
17048   cat conftest.err >&5
17049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050   (exit $ac_status); } &&
17051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052   { (case "(($ac_try" in
17053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054   *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057   (eval "$ac_try") 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); }; } &&
17061          { ac_try='test -s conftest$ac_exeext'
17062   { (case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_try") 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071   ac_cv_lib_svld_dlopen=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076         ac_cv_lib_svld_dlopen=no
17077 fi
17078
17079 rm -f core conftest.err conftest.$ac_objext \
17080       conftest$ac_exeext conftest.$ac_ext
17081 LIBS=$ac_check_lib_save_LIBS
17082 fi
17083 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17084 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17085 if test $ac_cv_lib_svld_dlopen = yes; then
17086   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17087 else
17088   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17089 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17090 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17091   echo $ECHO_N "(cached) $ECHO_C" >&6
17092 else
17093   ac_check_lib_save_LIBS=$LIBS
17094 LIBS="-ldld  $LIBS"
17095 cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h.  */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h.  */
17101
17102 /* Override any GCC internal prototype to avoid an error.
17103    Use char because int might match the return type of a GCC
17104    builtin and then its argument prototype would still apply.  */
17105 #ifdef __cplusplus
17106 extern "C"
17107 #endif
17108 char dld_link ();
17109 int
17110 main ()
17111 {
17112 return dld_link ();
17113   ;
17114   return 0;
17115 }
17116 _ACEOF
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (ac_try="$ac_link"
17119 case "(($ac_try" in
17120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121   *) ac_try_echo=$ac_try;;
17122 esac
17123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124   (eval "$ac_link") 2>conftest.er1
17125   ac_status=$?
17126   grep -v '^ *+' conftest.er1 >conftest.err
17127   rm -f conftest.er1
17128   cat conftest.err >&5
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); } &&
17131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17132   { (case "(($ac_try" in
17133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134   *) ac_try_echo=$ac_try;;
17135 esac
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137   (eval "$ac_try") 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; } &&
17141          { ac_try='test -s conftest$ac_exeext'
17142   { (case "(($ac_try" in
17143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144   *) ac_try_echo=$ac_try;;
17145 esac
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147   (eval "$ac_try") 2>&5
17148   ac_status=$?
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); }; }; then
17151   ac_cv_lib_dld_dld_link=yes
17152 else
17153   echo "$as_me: failed program was:" >&5
17154 sed 's/^/| /' conftest.$ac_ext >&5
17155
17156         ac_cv_lib_dld_dld_link=no
17157 fi
17158
17159 rm -f core conftest.err conftest.$ac_objext \
17160       conftest$ac_exeext conftest.$ac_ext
17161 LIBS=$ac_check_lib_save_LIBS
17162 fi
17163 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17164 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17165 if test $ac_cv_lib_dld_dld_link = yes; then
17166   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17167 fi
17168
17169
17170 fi
17171
17172
17173 fi
17174
17175
17176 fi
17177
17178
17179 fi
17180
17181
17182 fi
17183
17184     ;;
17185   esac
17186
17187   if test "x$lt_cv_dlopen" != xno; then
17188     enable_dlopen=yes
17189   else
17190     enable_dlopen=no
17191   fi
17192
17193   case $lt_cv_dlopen in
17194   dlopen)
17195     save_CPPFLAGS="$CPPFLAGS"
17196     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17197
17198     save_LDFLAGS="$LDFLAGS"
17199     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17200
17201     save_LIBS="$LIBS"
17202     LIBS="$lt_cv_dlopen_libs $LIBS"
17203
17204     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17205 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17206 if test "${lt_cv_dlopen_self+set}" = set; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209           if test "$cross_compiling" = yes; then :
17210   lt_cv_dlopen_self=cross
17211 else
17212   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17213   lt_status=$lt_dlunknown
17214   cat > conftest.$ac_ext <<EOF
17215 #line 17215 "configure"
17216 #include "confdefs.h"
17217
17218 #if HAVE_DLFCN_H
17219 #include <dlfcn.h>
17220 #endif
17221
17222 #include <stdio.h>
17223
17224 #ifdef RTLD_GLOBAL
17225 #  define LT_DLGLOBAL           RTLD_GLOBAL
17226 #else
17227 #  ifdef DL_GLOBAL
17228 #    define LT_DLGLOBAL         DL_GLOBAL
17229 #  else
17230 #    define LT_DLGLOBAL         0
17231 #  endif
17232 #endif
17233
17234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17235    find out it does not work in some platform. */
17236 #ifndef LT_DLLAZY_OR_NOW
17237 #  ifdef RTLD_LAZY
17238 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17239 #  else
17240 #    ifdef DL_LAZY
17241 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17242 #    else
17243 #      ifdef RTLD_NOW
17244 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17245 #      else
17246 #        ifdef DL_NOW
17247 #          define LT_DLLAZY_OR_NOW      DL_NOW
17248 #        else
17249 #          define LT_DLLAZY_OR_NOW      0
17250 #        endif
17251 #      endif
17252 #    endif
17253 #  endif
17254 #endif
17255
17256 #ifdef __cplusplus
17257 extern "C" void exit (int);
17258 #endif
17259
17260 void fnord() { int i=42;}
17261 int main ()
17262 {
17263   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17264   int status = $lt_dlunknown;
17265
17266   if (self)
17267     {
17268       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17269       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17270       /* dlclose (self); */
17271     }
17272   else
17273     puts (dlerror ());
17274
17275     exit (status);
17276 }
17277 EOF
17278   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279   (eval $ac_link) 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17283     (./conftest; exit; ) >&5 2>/dev/null
17284     lt_status=$?
17285     case x$lt_status in
17286       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17287       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17288       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17289     esac
17290   else :
17291     # compilation failed
17292     lt_cv_dlopen_self=no
17293   fi
17294 fi
17295 rm -fr conftest*
17296
17297
17298 fi
17299 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17300 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17301
17302     if test "x$lt_cv_dlopen_self" = xyes; then
17303       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17304       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17305 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17306 if test "${lt_cv_dlopen_self_static+set}" = set; then
17307   echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309           if test "$cross_compiling" = yes; then :
17310   lt_cv_dlopen_self_static=cross
17311 else
17312   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17313   lt_status=$lt_dlunknown
17314   cat > conftest.$ac_ext <<EOF
17315 #line 17315 "configure"
17316 #include "confdefs.h"
17317
17318 #if HAVE_DLFCN_H
17319 #include <dlfcn.h>
17320 #endif
17321
17322 #include <stdio.h>
17323
17324 #ifdef RTLD_GLOBAL
17325 #  define LT_DLGLOBAL           RTLD_GLOBAL
17326 #else
17327 #  ifdef DL_GLOBAL
17328 #    define LT_DLGLOBAL         DL_GLOBAL
17329 #  else
17330 #    define LT_DLGLOBAL         0
17331 #  endif
17332 #endif
17333
17334 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17335    find out it does not work in some platform. */
17336 #ifndef LT_DLLAZY_OR_NOW
17337 #  ifdef RTLD_LAZY
17338 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17339 #  else
17340 #    ifdef DL_LAZY
17341 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17342 #    else
17343 #      ifdef RTLD_NOW
17344 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17345 #      else
17346 #        ifdef DL_NOW
17347 #          define LT_DLLAZY_OR_NOW      DL_NOW
17348 #        else
17349 #          define LT_DLLAZY_OR_NOW      0
17350 #        endif
17351 #      endif
17352 #    endif
17353 #  endif
17354 #endif
17355
17356 #ifdef __cplusplus
17357 extern "C" void exit (int);
17358 #endif
17359
17360 void fnord() { int i=42;}
17361 int main ()
17362 {
17363   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17364   int status = $lt_dlunknown;
17365
17366   if (self)
17367     {
17368       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17369       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17370       /* dlclose (self); */
17371     }
17372   else
17373     puts (dlerror ());
17374
17375     exit (status);
17376 }
17377 EOF
17378   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17379   (eval $ac_link) 2>&5
17380   ac_status=$?
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17383     (./conftest; exit; ) >&5 2>/dev/null
17384     lt_status=$?
17385     case x$lt_status in
17386       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17387       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17388       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17389     esac
17390   else :
17391     # compilation failed
17392     lt_cv_dlopen_self_static=no
17393   fi
17394 fi
17395 rm -fr conftest*
17396
17397
17398 fi
17399 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17400 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17401     fi
17402
17403     CPPFLAGS="$save_CPPFLAGS"
17404     LDFLAGS="$save_LDFLAGS"
17405     LIBS="$save_LIBS"
17406     ;;
17407   esac
17408
17409   case $lt_cv_dlopen_self in
17410   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17411   *) enable_dlopen_self=unknown ;;
17412   esac
17413
17414   case $lt_cv_dlopen_self_static in
17415   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17416   *) enable_dlopen_self_static=unknown ;;
17417   esac
17418 fi
17419
17420
17421 # Report which library types will actually be built
17422 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17423 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17424 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17425 echo "${ECHO_T}$can_build_shared" >&6; }
17426
17427 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17428 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17429 test "$can_build_shared" = "no" && enable_shared=no
17430
17431 # On AIX, shared libraries and static libraries use the same namespace, and
17432 # are all built from PIC.
17433 case $host_os in
17434 aix3*)
17435   test "$enable_shared" = yes && enable_static=no
17436   if test -n "$RANLIB"; then
17437     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17438     postinstall_cmds='$RANLIB $lib'
17439   fi
17440   ;;
17441
17442 aix4* | aix5*)
17443   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17444     test "$enable_shared" = yes && enable_static=no
17445   fi
17446     ;;
17447 esac
17448 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17449 echo "${ECHO_T}$enable_shared" >&6; }
17450
17451 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17452 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17453 # Make sure either enable_shared or enable_static is yes.
17454 test "$enable_shared" = yes || enable_static=yes
17455 { echo "$as_me:$LINENO: result: $enable_static" >&5
17456 echo "${ECHO_T}$enable_static" >&6; }
17457
17458 # The else clause should only fire when bootstrapping the
17459 # libtool distribution, otherwise you forgot to ship ltmain.sh
17460 # with your package, and you will get complaints that there are
17461 # no rules to generate ltmain.sh.
17462 if test -f "$ltmain"; then
17463   # See if we are running on zsh, and set the options which allow our commands through
17464   # without removal of \ escapes.
17465   if test -n "${ZSH_VERSION+set}" ; then
17466     setopt NO_GLOB_SUBST
17467   fi
17468   # Now quote all the things that may contain metacharacters while being
17469   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17470   # variables and quote the copies for generation of the libtool script.
17471   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17472     SED SHELL STRIP \
17473     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17474     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17475     deplibs_check_method reload_flag reload_cmds need_locks \
17476     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17477     lt_cv_sys_global_symbol_to_c_name_address \
17478     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17479     old_postinstall_cmds old_postuninstall_cmds \
17480     compiler \
17481     CC \
17482     LD \
17483     lt_prog_compiler_wl \
17484     lt_prog_compiler_pic \
17485     lt_prog_compiler_static \
17486     lt_prog_compiler_no_builtin_flag \
17487     export_dynamic_flag_spec \
17488     thread_safe_flag_spec \
17489     whole_archive_flag_spec \
17490     enable_shared_with_static_runtimes \
17491     old_archive_cmds \
17492     old_archive_from_new_cmds \
17493     predep_objects \
17494     postdep_objects \
17495     predeps \
17496     postdeps \
17497     compiler_lib_search_path \
17498     archive_cmds \
17499     archive_expsym_cmds \
17500     postinstall_cmds \
17501     postuninstall_cmds \
17502     old_archive_from_expsyms_cmds \
17503     allow_undefined_flag \
17504     no_undefined_flag \
17505     export_symbols_cmds \
17506     hardcode_libdir_flag_spec \
17507     hardcode_libdir_flag_spec_ld \
17508     hardcode_libdir_separator \
17509     hardcode_automatic \
17510     module_cmds \
17511     module_expsym_cmds \
17512     lt_cv_prog_compiler_c_o \
17513     exclude_expsyms \
17514     include_expsyms; do
17515
17516     case $var in
17517     old_archive_cmds | \
17518     old_archive_from_new_cmds | \
17519     archive_cmds | \
17520     archive_expsym_cmds | \
17521     module_cmds | \
17522     module_expsym_cmds | \
17523     old_archive_from_expsyms_cmds | \
17524     export_symbols_cmds | \
17525     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17526     postinstall_cmds | postuninstall_cmds | \
17527     old_postinstall_cmds | old_postuninstall_cmds | \
17528     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17529       # Double-quote double-evaled strings.
17530       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17531       ;;
17532     *)
17533       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17534       ;;
17535     esac
17536   done
17537
17538   case $lt_echo in
17539   *'\$0 --fallback-echo"')
17540     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17541     ;;
17542   esac
17543
17544 cfgfile="${ofile}T"
17545   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17546   $rm -f "$cfgfile"
17547   { echo "$as_me:$LINENO: creating $ofile" >&5
17548 echo "$as_me: creating $ofile" >&6;}
17549
17550   cat <<__EOF__ >> "$cfgfile"
17551 #! $SHELL
17552
17553 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17554 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17555 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17556 #
17557 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17558 # Free Software Foundation, Inc.
17559 #
17560 # This file is part of GNU Libtool:
17561 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17562 #
17563 # This program is free software; you can redistribute it and/or modify
17564 # it under the terms of the GNU General Public License as published by
17565 # the Free Software Foundation; either version 2 of the License, or
17566 # (at your option) any later version.
17567 #
17568 # This program is distributed in the hope that it will be useful, but
17569 # WITHOUT ANY WARRANTY; without even the implied warranty of
17570 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17571 # General Public License for more details.
17572 #
17573 # You should have received a copy of the GNU General Public License
17574 # along with this program; if not, write to the Free Software
17575 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17576 #
17577 # As a special exception to the GNU General Public License, if you
17578 # distribute this file as part of a program that contains a
17579 # configuration script generated by Autoconf, you may include it under
17580 # the same distribution terms that you use for the rest of that program.
17581
17582 # A sed program that does not truncate output.
17583 SED=$lt_SED
17584
17585 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17586 Xsed="$SED -e 1s/^X//"
17587
17588 # The HP-UX ksh and POSIX shell print the target directory to stdout
17589 # if CDPATH is set.
17590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17591
17592 # The names of the tagged configurations supported by this script.
17593 available_tags=
17594
17595 # ### BEGIN LIBTOOL CONFIG
17596
17597 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17598
17599 # Shell to use when invoking shell scripts.
17600 SHELL=$lt_SHELL
17601
17602 # Whether or not to build shared libraries.
17603 build_libtool_libs=$enable_shared
17604
17605 # Whether or not to build static libraries.
17606 build_old_libs=$enable_static
17607
17608 # Whether or not to add -lc for building shared libraries.
17609 build_libtool_need_lc=$archive_cmds_need_lc
17610
17611 # Whether or not to disallow shared libs when runtime libs are static
17612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17613
17614 # Whether or not to optimize for fast installation.
17615 fast_install=$enable_fast_install
17616
17617 # The host system.
17618 host_alias=$host_alias
17619 host=$host
17620 host_os=$host_os
17621
17622 # The build system.
17623 build_alias=$build_alias
17624 build=$build
17625 build_os=$build_os
17626
17627 # An echo program that does not interpret backslashes.
17628 echo=$lt_echo
17629
17630 # The archiver.
17631 AR=$lt_AR
17632 AR_FLAGS=$lt_AR_FLAGS
17633
17634 # A C compiler.
17635 LTCC=$lt_LTCC
17636
17637 # LTCC compiler flags.
17638 LTCFLAGS=$lt_LTCFLAGS
17639
17640 # A language-specific compiler.
17641 CC=$lt_compiler
17642
17643 # Is the compiler the GNU C compiler?
17644 with_gcc=$GCC
17645
17646 # An ERE matcher.
17647 EGREP=$lt_EGREP
17648
17649 # The linker used to build libraries.
17650 LD=$lt_LD
17651
17652 # Whether we need hard or soft links.
17653 LN_S=$lt_LN_S
17654
17655 # A BSD-compatible nm program.
17656 NM=$lt_NM
17657
17658 # A symbol stripping program
17659 STRIP=$lt_STRIP
17660
17661 # Used to examine libraries when file_magic_cmd begins "file"
17662 MAGIC_CMD=$MAGIC_CMD
17663
17664 # Used on cygwin: DLL creation program.
17665 DLLTOOL="$DLLTOOL"
17666
17667 # Used on cygwin: object dumper.
17668 OBJDUMP="$OBJDUMP"
17669
17670 # Used on cygwin: assembler.
17671 AS="$AS"
17672
17673 # The name of the directory that contains temporary libtool files.
17674 objdir=$objdir
17675
17676 # How to create reloadable object files.
17677 reload_flag=$lt_reload_flag
17678 reload_cmds=$lt_reload_cmds
17679
17680 # How to pass a linker flag through the compiler.
17681 wl=$lt_lt_prog_compiler_wl
17682
17683 # Object file suffix (normally "o").
17684 objext="$ac_objext"
17685
17686 # Old archive suffix (normally "a").
17687 libext="$libext"
17688
17689 # Shared library suffix (normally ".so").
17690 shrext_cmds='$shrext_cmds'
17691
17692 # Executable file suffix (normally "").
17693 exeext="$exeext"
17694
17695 # Additional compiler flags for building library objects.
17696 pic_flag=$lt_lt_prog_compiler_pic
17697 pic_mode=$pic_mode
17698
17699 # What is the maximum length of a command?
17700 max_cmd_len=$lt_cv_sys_max_cmd_len
17701
17702 # Does compiler simultaneously support -c and -o options?
17703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17704
17705 # Must we lock files when doing compilation?
17706 need_locks=$lt_need_locks
17707
17708 # Do we need the lib prefix for modules?
17709 need_lib_prefix=$need_lib_prefix
17710
17711 # Do we need a version for libraries?
17712 need_version=$need_version
17713
17714 # Whether dlopen is supported.
17715 dlopen_support=$enable_dlopen
17716
17717 # Whether dlopen of programs is supported.
17718 dlopen_self=$enable_dlopen_self
17719
17720 # Whether dlopen of statically linked programs is supported.
17721 dlopen_self_static=$enable_dlopen_self_static
17722
17723 # Compiler flag to prevent dynamic linking.
17724 link_static_flag=$lt_lt_prog_compiler_static
17725
17726 # Compiler flag to turn off builtin functions.
17727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17728
17729 # Compiler flag to allow reflexive dlopens.
17730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17731
17732 # Compiler flag to generate shared objects directly from archives.
17733 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17734
17735 # Compiler flag to generate thread-safe objects.
17736 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17737
17738 # Library versioning type.
17739 version_type=$version_type
17740
17741 # Format of library name prefix.
17742 libname_spec=$lt_libname_spec
17743
17744 # List of archive names.  First name is the real one, the rest are links.
17745 # The last name is the one that the linker finds with -lNAME.
17746 library_names_spec=$lt_library_names_spec
17747
17748 # The coded name of the library, if different from the real name.
17749 soname_spec=$lt_soname_spec
17750
17751 # Commands used to build and install an old-style archive.
17752 RANLIB=$lt_RANLIB
17753 old_archive_cmds=$lt_old_archive_cmds
17754 old_postinstall_cmds=$lt_old_postinstall_cmds
17755 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17756
17757 # Create an old-style archive from a shared archive.
17758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17759
17760 # Create a temporary old-style archive to link instead of a shared archive.
17761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17762
17763 # Commands used to build and install a shared archive.
17764 archive_cmds=$lt_archive_cmds
17765 archive_expsym_cmds=$lt_archive_expsym_cmds
17766 postinstall_cmds=$lt_postinstall_cmds
17767 postuninstall_cmds=$lt_postuninstall_cmds
17768
17769 # Commands used to build a loadable module (assumed same as above if empty)
17770 module_cmds=$lt_module_cmds
17771 module_expsym_cmds=$lt_module_expsym_cmds
17772
17773 # Commands to strip libraries.
17774 old_striplib=$lt_old_striplib
17775 striplib=$lt_striplib
17776
17777 # Dependencies to place before the objects being linked to create a
17778 # shared library.
17779 predep_objects=$lt_predep_objects
17780
17781 # Dependencies to place after the objects being linked to create a
17782 # shared library.
17783 postdep_objects=$lt_postdep_objects
17784
17785 # Dependencies to place before the objects being linked to create a
17786 # shared library.
17787 predeps=$lt_predeps
17788
17789 # Dependencies to place after the objects being linked to create a
17790 # shared library.
17791 postdeps=$lt_postdeps
17792
17793 # The library search path used internally by the compiler when linking
17794 # a shared library.
17795 compiler_lib_search_path=$lt_compiler_lib_search_path
17796
17797 # Method to check whether dependent libraries are shared objects.
17798 deplibs_check_method=$lt_deplibs_check_method
17799
17800 # Command to use when deplibs_check_method == file_magic.
17801 file_magic_cmd=$lt_file_magic_cmd
17802
17803 # Flag that allows shared libraries with undefined symbols to be built.
17804 allow_undefined_flag=$lt_allow_undefined_flag
17805
17806 # Flag that forces no undefined symbols.
17807 no_undefined_flag=$lt_no_undefined_flag
17808
17809 # Commands used to finish a libtool library installation in a directory.
17810 finish_cmds=$lt_finish_cmds
17811
17812 # Same as above, but a single script fragment to be evaled but not shown.
17813 finish_eval=$lt_finish_eval
17814
17815 # Take the output of nm and produce a listing of raw symbols and C names.
17816 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17817
17818 # Transform the output of nm in a proper C declaration
17819 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17820
17821 # Transform the output of nm in a C name address pair
17822 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17823
17824 # This is the shared library runtime path variable.
17825 runpath_var=$runpath_var
17826
17827 # This is the shared library path variable.
17828 shlibpath_var=$shlibpath_var
17829
17830 # Is shlibpath searched before the hard-coded library search path?
17831 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17832
17833 # How to hardcode a shared library path into an executable.
17834 hardcode_action=$hardcode_action
17835
17836 # Whether we should hardcode library paths into libraries.
17837 hardcode_into_libs=$hardcode_into_libs
17838
17839 # Flag to hardcode \$libdir into a binary during linking.
17840 # This must work even if \$libdir does not exist.
17841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17842
17843 # If ld is used when linking, flag to hardcode \$libdir into
17844 # a binary during linking. This must work even if \$libdir does
17845 # not exist.
17846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17847
17848 # Whether we need a single -rpath flag with a separated argument.
17849 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17850
17851 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17852 # resulting binary.
17853 hardcode_direct=$hardcode_direct
17854
17855 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17856 # resulting binary.
17857 hardcode_minus_L=$hardcode_minus_L
17858
17859 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17860 # the resulting binary.
17861 hardcode_shlibpath_var=$hardcode_shlibpath_var
17862
17863 # Set to yes if building a shared library automatically hardcodes DIR into the library
17864 # and all subsequent libraries and executables linked against it.
17865 hardcode_automatic=$hardcode_automatic
17866
17867 # Variables whose values should be saved in libtool wrapper scripts and
17868 # restored at relink time.
17869 variables_saved_for_relink="$variables_saved_for_relink"
17870
17871 # Whether libtool must link a program against all its dependency libraries.
17872 link_all_deplibs=$link_all_deplibs
17873
17874 # Compile-time system search path for libraries
17875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17876
17877 # Run-time system search path for libraries
17878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17879
17880 # Fix the shell variable \$srcfile for the compiler.
17881 fix_srcfile_path="$fix_srcfile_path"
17882
17883 # Set to yes if exported symbols are required.
17884 always_export_symbols=$always_export_symbols
17885
17886 # The commands to list exported symbols.
17887 export_symbols_cmds=$lt_export_symbols_cmds
17888
17889 # The commands to extract the exported symbol list from a shared archive.
17890 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17891
17892 # Symbols that should not be listed in the preloaded symbols.
17893 exclude_expsyms=$lt_exclude_expsyms
17894
17895 # Symbols that must always be exported.
17896 include_expsyms=$lt_include_expsyms
17897
17898 # ### END LIBTOOL CONFIG
17899
17900 __EOF__
17901
17902
17903   case $host_os in
17904   aix3*)
17905     cat <<\EOF >> "$cfgfile"
17906
17907 # AIX sometimes has problems with the GCC collect2 program.  For some
17908 # reason, if we set the COLLECT_NAMES environment variable, the problems
17909 # vanish in a puff of smoke.
17910 if test "X${COLLECT_NAMES+set}" != Xset; then
17911   COLLECT_NAMES=
17912   export COLLECT_NAMES
17913 fi
17914 EOF
17915     ;;
17916   esac
17917
17918   # We use sed instead of cat because bash on DJGPP gets confused if
17919   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17920   # text mode, it properly converts lines to CR/LF.  This bash problem
17921   # is reportedly fixed, but why not run on old versions too?
17922   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17923
17924   mv -f "$cfgfile" "$ofile" || \
17925     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17926   chmod +x "$ofile"
17927
17928 else
17929   # If there is no Makefile yet, we rely on a make rule to execute
17930   # `config.status --recheck' to rerun these tests and create the
17931   # libtool script then.
17932   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17933   if test -f "$ltmain_in"; then
17934     test -f Makefile && make "$ltmain"
17935   fi
17936 fi
17937
17938
17939 ac_ext=c
17940 ac_cpp='$CPP $CPPFLAGS'
17941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17944
17945 CC="$lt_save_CC"
17946
17947
17948 # Check whether --with-tags was given.
17949 if test "${with_tags+set}" = set; then
17950   withval=$with_tags; tagnames="$withval"
17951 fi
17952
17953
17954 if test -f "$ltmain" && test -n "$tagnames"; then
17955   if test ! -f "${ofile}"; then
17956     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17957 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17958   fi
17959
17960   if test -z "$LTCC"; then
17961     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17962     if test -z "$LTCC"; then
17963       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17964 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17965     else
17966       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17967 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17968     fi
17969   fi
17970   if test -z "$LTCFLAGS"; then
17971     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17972   fi
17973
17974   # Extract list of available tagged configurations in $ofile.
17975   # Note that this assumes the entire list is on one line.
17976   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17977
17978   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17979   for tagname in $tagnames; do
17980     IFS="$lt_save_ifs"
17981     # Check whether tagname contains only valid characters
17982     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17983     "") ;;
17984     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17985 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17986    { (exit 1); exit 1; }; }
17987         ;;
17988     esac
17989
17990     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17991     then
17992       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17993 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17994    { (exit 1); exit 1; }; }
17995     fi
17996
17997     # Update the list of available tags.
17998     if test -n "$tagname"; then
17999       echo appending configuration tag \"$tagname\" to $ofile
18000
18001       case $tagname in
18002       CXX)
18003         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18004             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18005             (test "X$CXX" != "Xg++"))) ; then
18006           ac_ext=cpp
18007 ac_cpp='$CXXCPP $CPPFLAGS'
18008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18011
18012
18013
18014
18015 archive_cmds_need_lc_CXX=no
18016 allow_undefined_flag_CXX=
18017 always_export_symbols_CXX=no
18018 archive_expsym_cmds_CXX=
18019 export_dynamic_flag_spec_CXX=
18020 hardcode_direct_CXX=no
18021 hardcode_libdir_flag_spec_CXX=
18022 hardcode_libdir_flag_spec_ld_CXX=
18023 hardcode_libdir_separator_CXX=
18024 hardcode_minus_L_CXX=no
18025 hardcode_shlibpath_var_CXX=unsupported
18026 hardcode_automatic_CXX=no
18027 module_cmds_CXX=
18028 module_expsym_cmds_CXX=
18029 link_all_deplibs_CXX=unknown
18030 old_archive_cmds_CXX=$old_archive_cmds
18031 no_undefined_flag_CXX=
18032 whole_archive_flag_spec_CXX=
18033 enable_shared_with_static_runtimes_CXX=no
18034
18035 # Dependencies to place before and after the object being linked:
18036 predep_objects_CXX=
18037 postdep_objects_CXX=
18038 predeps_CXX=
18039 postdeps_CXX=
18040 compiler_lib_search_path_CXX=
18041
18042 # Source file extension for C++ test sources.
18043 ac_ext=cpp
18044
18045 # Object file extension for compiled C++ test sources.
18046 objext=o
18047 objext_CXX=$objext
18048
18049 # Code to be used in simple compile tests
18050 lt_simple_compile_test_code="int some_variable = 0;\n"
18051
18052 # Code to be used in simple link tests
18053 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18054
18055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18056
18057 # If no C compiler was specified, use CC.
18058 LTCC=${LTCC-"$CC"}
18059
18060 # If no C compiler flags were specified, use CFLAGS.
18061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18062
18063 # Allow CC to be a program name with arguments.
18064 compiler=$CC
18065
18066
18067 # save warnings/boilerplate of simple test code
18068 ac_outfile=conftest.$ac_objext
18069 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18071 _lt_compiler_boilerplate=`cat conftest.err`
18072 $rm conftest*
18073
18074 ac_outfile=conftest.$ac_objext
18075 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18077 _lt_linker_boilerplate=`cat conftest.err`
18078 $rm conftest*
18079
18080
18081 # Allow CC to be a program name with arguments.
18082 lt_save_CC=$CC
18083 lt_save_LD=$LD
18084 lt_save_GCC=$GCC
18085 GCC=$GXX
18086 lt_save_with_gnu_ld=$with_gnu_ld
18087 lt_save_path_LD=$lt_cv_path_LD
18088 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18089   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18090 else
18091   $as_unset lt_cv_prog_gnu_ld
18092 fi
18093 if test -n "${lt_cv_path_LDCXX+set}"; then
18094   lt_cv_path_LD=$lt_cv_path_LDCXX
18095 else
18096   $as_unset lt_cv_path_LD
18097 fi
18098 test -z "${LDCXX+set}" || LD=$LDCXX
18099 CC=${CXX-"c++"}
18100 compiler=$CC
18101 compiler_CXX=$CC
18102 for cc_temp in $compiler""; do
18103   case $cc_temp in
18104     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18105     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18106     \-*) ;;
18107     *) break;;
18108   esac
18109 done
18110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18111
18112
18113 # We don't want -fno-exception wen compiling C++ code, so set the
18114 # no_builtin_flag separately
18115 if test "$GXX" = yes; then
18116   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18117 else
18118   lt_prog_compiler_no_builtin_flag_CXX=
18119 fi
18120
18121 if test "$GXX" = yes; then
18122   # Set up default GNU C++ configuration
18123
18124
18125 # Check whether --with-gnu-ld was given.
18126 if test "${with_gnu_ld+set}" = set; then
18127   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18128 else
18129   with_gnu_ld=no
18130 fi
18131
18132 ac_prog=ld
18133 if test "$GCC" = yes; then
18134   # Check if gcc -print-prog-name=ld gives a path.
18135   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18136 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18137   case $host in
18138   *-*-mingw*)
18139     # gcc leaves a trailing carriage return which upsets mingw
18140     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18141   *)
18142     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18143   esac
18144   case $ac_prog in
18145     # Accept absolute paths.
18146     [\\/]* | ?:[\\/]*)
18147       re_direlt='/[^/][^/]*/\.\./'
18148       # Canonicalize the pathname of ld
18149       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18150       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18151         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18152       done
18153       test -z "$LD" && LD="$ac_prog"
18154       ;;
18155   "")
18156     # If it fails, then pretend we aren't using GCC.
18157     ac_prog=ld
18158     ;;
18159   *)
18160     # If it is relative, then search for the first ld in PATH.
18161     with_gnu_ld=unknown
18162     ;;
18163   esac
18164 elif test "$with_gnu_ld" = yes; then
18165   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18166 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18167 else
18168   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18169 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18170 fi
18171 if test "${lt_cv_path_LD+set}" = set; then
18172   echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174   if test -z "$LD"; then
18175   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18176   for ac_dir in $PATH; do
18177     IFS="$lt_save_ifs"
18178     test -z "$ac_dir" && ac_dir=.
18179     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18180       lt_cv_path_LD="$ac_dir/$ac_prog"
18181       # Check to see if the program is GNU ld.  I'd rather use --version,
18182       # but apparently some variants of GNU ld only accept -v.
18183       # Break only if it was the GNU/non-GNU ld that we prefer.
18184       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18185       *GNU* | *'with BFD'*)
18186         test "$with_gnu_ld" != no && break
18187         ;;
18188       *)
18189         test "$with_gnu_ld" != yes && break
18190         ;;
18191       esac
18192     fi
18193   done
18194   IFS="$lt_save_ifs"
18195 else
18196   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18197 fi
18198 fi
18199
18200 LD="$lt_cv_path_LD"
18201 if test -n "$LD"; then
18202   { echo "$as_me:$LINENO: result: $LD" >&5
18203 echo "${ECHO_T}$LD" >&6; }
18204 else
18205   { echo "$as_me:$LINENO: result: no" >&5
18206 echo "${ECHO_T}no" >&6; }
18207 fi
18208 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18209 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18210    { (exit 1); exit 1; }; }
18211 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18212 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18213 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18214   echo $ECHO_N "(cached) $ECHO_C" >&6
18215 else
18216   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18217 case `$LD -v 2>&1 </dev/null` in
18218 *GNU* | *'with BFD'*)
18219   lt_cv_prog_gnu_ld=yes
18220   ;;
18221 *)
18222   lt_cv_prog_gnu_ld=no
18223   ;;
18224 esac
18225 fi
18226 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18227 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18228 with_gnu_ld=$lt_cv_prog_gnu_ld
18229
18230
18231
18232   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18233   # archiving commands below assume that GNU ld is being used.
18234   if test "$with_gnu_ld" = yes; then
18235     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18236     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'
18237
18238     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18239     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18240
18241     # If archive_cmds runs LD, not CC, wlarc should be empty
18242     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18243     #     investigate it a little bit more. (MM)
18244     wlarc='${wl}'
18245
18246     # ancient GNU ld didn't support --whole-archive et. al.
18247     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18248         grep 'no-whole-archive' > /dev/null; then
18249       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18250     else
18251       whole_archive_flag_spec_CXX=
18252     fi
18253   else
18254     with_gnu_ld=no
18255     wlarc=
18256
18257     # A generic and very simple default shared library creation
18258     # command for GNU C++ for the case where it uses the native
18259     # linker, instead of GNU ld.  If possible, this setting should
18260     # overridden to take advantage of the native linker features on
18261     # the platform it is being used on.
18262     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18263   fi
18264
18265   # Commands to make compiler produce verbose output that lists
18266   # what "hidden" libraries, object files and flags are used when
18267   # linking a shared library.
18268   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18269
18270 else
18271   GXX=no
18272   with_gnu_ld=no
18273   wlarc=
18274 fi
18275
18276 # PORTME: fill in a description of your system's C++ link characteristics
18277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18279 ld_shlibs_CXX=yes
18280 case $host_os in
18281   aix3*)
18282     # FIXME: insert proper C++ library support
18283     ld_shlibs_CXX=no
18284     ;;
18285   aix4* | aix5*)
18286     if test "$host_cpu" = ia64; then
18287       # On IA64, the linker does run time linking by default, so we don't
18288       # have to do anything special.
18289       aix_use_runtimelinking=no
18290       exp_sym_flag='-Bexport'
18291       no_entry_flag=""
18292     else
18293       aix_use_runtimelinking=no
18294
18295       # Test if we are trying to use run time linking or normal
18296       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18297       # need to do runtime linking.
18298       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18299         for ld_flag in $LDFLAGS; do
18300           case $ld_flag in
18301           *-brtl*)
18302             aix_use_runtimelinking=yes
18303             break
18304             ;;
18305           esac
18306         done
18307         ;;
18308       esac
18309
18310       exp_sym_flag='-bexport'
18311       no_entry_flag='-bnoentry'
18312     fi
18313
18314     # When large executables or shared objects are built, AIX ld can
18315     # have problems creating the table of contents.  If linking a library
18316     # or program results in "error TOC overflow" add -mminimal-toc to
18317     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18318     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18319
18320     archive_cmds_CXX=''
18321     hardcode_direct_CXX=yes
18322     hardcode_libdir_separator_CXX=':'
18323     link_all_deplibs_CXX=yes
18324
18325     if test "$GXX" = yes; then
18326       case $host_os in aix4.[012]|aix4.[012].*)
18327       # We only want to do this on AIX 4.2 and lower, the check
18328       # below for broken collect2 doesn't work under 4.3+
18329         collect2name=`${CC} -print-prog-name=collect2`
18330         if test -f "$collect2name" && \
18331            strings "$collect2name" | grep resolve_lib_name >/dev/null
18332         then
18333           # We have reworked collect2
18334           hardcode_direct_CXX=yes
18335         else
18336           # We have old collect2
18337           hardcode_direct_CXX=unsupported
18338           # It fails to find uninstalled libraries when the uninstalled
18339           # path is not listed in the libpath.  Setting hardcode_minus_L
18340           # to unsupported forces relinking
18341           hardcode_minus_L_CXX=yes
18342           hardcode_libdir_flag_spec_CXX='-L$libdir'
18343           hardcode_libdir_separator_CXX=
18344         fi
18345         ;;
18346       esac
18347       shared_flag='-shared'
18348       if test "$aix_use_runtimelinking" = yes; then
18349         shared_flag="$shared_flag "'${wl}-G'
18350       fi
18351     else
18352       # not using gcc
18353       if test "$host_cpu" = ia64; then
18354         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18355         # chokes on -Wl,-G. The following line is correct:
18356         shared_flag='-G'
18357       else
18358         if test "$aix_use_runtimelinking" = yes; then
18359           shared_flag='${wl}-G'
18360         else
18361           shared_flag='${wl}-bM:SRE'
18362         fi
18363       fi
18364     fi
18365
18366     # It seems that -bexpall does not export symbols beginning with
18367     # underscore (_), so it is better to generate a list of symbols to export.
18368     always_export_symbols_CXX=yes
18369     if test "$aix_use_runtimelinking" = yes; then
18370       # Warning - without using the other runtime loading flags (-brtl),
18371       # -berok will link without error, but may produce a broken library.
18372       allow_undefined_flag_CXX='-berok'
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
18442       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"
18443      else
18444       if test "$host_cpu" = ia64; then
18445         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18446         allow_undefined_flag_CXX="-z nodefs"
18447         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"
18448       else
18449         # Determine the default libpath from the value encoded in an empty executable.
18450         cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h.  */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h.  */
18456
18457 int
18458 main ()
18459 {
18460
18461   ;
18462   return 0;
18463 }
18464 _ACEOF
18465 rm -f conftest.$ac_objext conftest$ac_exeext
18466 if { (ac_try="$ac_link"
18467 case "(($ac_try" in
18468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469   *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472   (eval "$ac_link") 2>conftest.er1
18473   ac_status=$?
18474   grep -v '^ *+' conftest.er1 >conftest.err
18475   rm -f conftest.er1
18476   cat conftest.err >&5
18477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478   (exit $ac_status); } &&
18479          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18480   { (case "(($ac_try" in
18481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482   *) ac_try_echo=$ac_try;;
18483 esac
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485   (eval "$ac_try") 2>&5
18486   ac_status=$?
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); }; } &&
18489          { ac_try='test -s conftest$ac_exeext'
18490   { (case "(($ac_try" in
18491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492   *) ac_try_echo=$ac_try;;
18493 esac
18494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495   (eval "$ac_try") 2>&5
18496   ac_status=$?
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); }; }; then
18499
18500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18501 }'`
18502 # Check for a 64-bit object if we didn't find anything.
18503 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; }
18504 }'`; fi
18505 else
18506   echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18508
18509
18510 fi
18511
18512 rm -f core conftest.err conftest.$ac_objext \
18513       conftest$ac_exeext conftest.$ac_ext
18514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18515
18516         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18517         # Warning - without using the other run time loading flags,
18518         # -berok will link without error, but may produce a broken library.
18519         no_undefined_flag_CXX=' ${wl}-bernotok'
18520         allow_undefined_flag_CXX=' ${wl}-berok'
18521         # Exported symbols can be pulled into shared objects from archives
18522         whole_archive_flag_spec_CXX='$convenience'
18523         archive_cmds_need_lc_CXX=yes
18524         # This is similar to how AIX traditionally builds its shared libraries.
18525         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'
18526       fi
18527     fi
18528     ;;
18529
18530   beos*)
18531     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18532       allow_undefined_flag_CXX=unsupported
18533       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18534       # support --undefined.  This deserves some investigation.  FIXME
18535       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18536     else
18537       ld_shlibs_CXX=no
18538     fi
18539     ;;
18540
18541   chorus*)
18542     case $cc_basename in
18543       *)
18544         # FIXME: insert proper C++ library support
18545         ld_shlibs_CXX=no
18546         ;;
18547     esac
18548     ;;
18549
18550   cygwin* | mingw* | pw32*)
18551     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18552     # as there is no search path for DLLs.
18553     hardcode_libdir_flag_spec_CXX='-L$libdir'
18554     allow_undefined_flag_CXX=unsupported
18555     always_export_symbols_CXX=no
18556     enable_shared_with_static_runtimes_CXX=yes
18557
18558     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18559       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'
18560       # If the export-symbols file already is a .def file (1st line
18561       # is EXPORTS), use it as is; otherwise, prepend...
18562       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18563         cp $export_symbols $output_objdir/$soname.def;
18564       else
18565         echo EXPORTS > $output_objdir/$soname.def;
18566         cat $export_symbols >> $output_objdir/$soname.def;
18567       fi~
18568       $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'
18569     else
18570       ld_shlibs_CXX=no
18571     fi
18572   ;;
18573       darwin* | rhapsody*)
18574         case $host_os in
18575         rhapsody* | darwin1.[012])
18576          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18577          ;;
18578        *) # Darwin 1.3 on
18579          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18580            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18581          else
18582            case ${MACOSX_DEPLOYMENT_TARGET} in
18583              10.[012])
18584                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18585                ;;
18586              10.*)
18587                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18588                ;;
18589            esac
18590          fi
18591          ;;
18592         esac
18593       archive_cmds_need_lc_CXX=no
18594       hardcode_direct_CXX=no
18595       hardcode_automatic_CXX=yes
18596       hardcode_shlibpath_var_CXX=unsupported
18597       whole_archive_flag_spec_CXX=''
18598       link_all_deplibs_CXX=yes
18599
18600     if test "$GXX" = yes ; then
18601       lt_int_apple_cc_single_mod=no
18602       output_verbose_link_cmd='echo'
18603       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18604        lt_int_apple_cc_single_mod=yes
18605       fi
18606       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18607        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18608       else
18609           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'
18610         fi
18611         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18612         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18613           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18614             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}'
18615           else
18616             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}'
18617           fi
18618             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}'
18619       else
18620       case $cc_basename in
18621         xlc*)
18622          output_verbose_link_cmd='echo'
18623           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'
18624           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18625           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18626           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}'
18627           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}'
18628           ;;
18629        *)
18630          ld_shlibs_CXX=no
18631           ;;
18632       esac
18633       fi
18634         ;;
18635
18636   dgux*)
18637     case $cc_basename in
18638       ec++*)
18639         # FIXME: insert proper C++ library support
18640         ld_shlibs_CXX=no
18641         ;;
18642       ghcx*)
18643         # Green Hills C++ Compiler
18644         # FIXME: insert proper C++ library support
18645         ld_shlibs_CXX=no
18646         ;;
18647       *)
18648         # FIXME: insert proper C++ library support
18649         ld_shlibs_CXX=no
18650         ;;
18651     esac
18652     ;;
18653   freebsd[12]*)
18654     # C++ shared libraries reported to be fairly broken before switch to ELF
18655     ld_shlibs_CXX=no
18656     ;;
18657   freebsd-elf*)
18658     archive_cmds_need_lc_CXX=no
18659     ;;
18660   freebsd* | kfreebsd*-gnu | dragonfly*)
18661     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18662     # conventions
18663     ld_shlibs_CXX=yes
18664     ;;
18665   gnu*)
18666     ;;
18667   hpux9*)
18668     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18669     hardcode_libdir_separator_CXX=:
18670     export_dynamic_flag_spec_CXX='${wl}-E'
18671     hardcode_direct_CXX=yes
18672     hardcode_minus_L_CXX=yes # Not in the search PATH,
18673                                 # but as the default
18674                                 # location of the library.
18675
18676     case $cc_basename in
18677     CC*)
18678       # FIXME: insert proper C++ library support
18679       ld_shlibs_CXX=no
18680       ;;
18681     aCC*)
18682       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'
18683       # Commands to make compiler produce verbose output that lists
18684       # what "hidden" libraries, object files and flags are used when
18685       # linking a shared library.
18686       #
18687       # There doesn't appear to be a way to prevent this compiler from
18688       # explicitly linking system object files so we need to strip them
18689       # from the output so that they don't get included in the library
18690       # dependencies.
18691       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'
18692       ;;
18693     *)
18694       if test "$GXX" = yes; then
18695         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'
18696       else
18697         # FIXME: insert proper C++ library support
18698         ld_shlibs_CXX=no
18699       fi
18700       ;;
18701     esac
18702     ;;
18703   hpux10*|hpux11*)
18704     if test $with_gnu_ld = no; then
18705       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18706       hardcode_libdir_separator_CXX=:
18707
18708       case $host_cpu in
18709       hppa*64*|ia64*)
18710         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18711         ;;
18712       *)
18713         export_dynamic_flag_spec_CXX='${wl}-E'
18714         ;;
18715       esac
18716     fi
18717     case $host_cpu in
18718     hppa*64*|ia64*)
18719       hardcode_direct_CXX=no
18720       hardcode_shlibpath_var_CXX=no
18721       ;;
18722     *)
18723       hardcode_direct_CXX=yes
18724       hardcode_minus_L_CXX=yes # Not in the search PATH,
18725                                               # but as the default
18726                                               # location of the library.
18727       ;;
18728     esac
18729
18730     case $cc_basename in
18731       CC*)
18732         # FIXME: insert proper C++ library support
18733         ld_shlibs_CXX=no
18734         ;;
18735       aCC*)
18736         case $host_cpu in
18737         hppa*64*)
18738           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18739           ;;
18740         ia64*)
18741           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18742           ;;
18743         *)
18744           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18745           ;;
18746         esac
18747         # Commands to make compiler produce verbose output that lists
18748         # what "hidden" libraries, object files and flags are used when
18749         # linking a shared library.
18750         #
18751         # There doesn't appear to be a way to prevent this compiler from
18752         # explicitly linking system object files so we need to strip them
18753         # from the output so that they don't get included in the library
18754         # dependencies.
18755         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'
18756         ;;
18757       *)
18758         if test "$GXX" = yes; then
18759           if test $with_gnu_ld = no; then
18760             case $host_cpu in
18761             hppa*64*)
18762               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18763               ;;
18764             ia64*)
18765               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18766               ;;
18767             *)
18768               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'
18769               ;;
18770             esac
18771           fi
18772         else
18773           # FIXME: insert proper C++ library support
18774           ld_shlibs_CXX=no
18775         fi
18776         ;;
18777     esac
18778     ;;
18779   interix3*)
18780     hardcode_direct_CXX=no
18781     hardcode_shlibpath_var_CXX=no
18782     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18783     export_dynamic_flag_spec_CXX='${wl}-E'
18784     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18785     # Instead, shared libraries are loaded at an image base (0x10000000 by
18786     # default) and relocated if they conflict, which is a slow very memory
18787     # consuming and fragmenting process.  To avoid this, we pick a random,
18788     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18789     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18790     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'
18791     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'
18792     ;;
18793   irix5* | irix6*)
18794     case $cc_basename in
18795       CC*)
18796         # SGI C++
18797         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'
18798
18799         # Archives containing C++ object files must be created using
18800         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18801         # necessary to make sure instantiated templates are included
18802         # in the archive.
18803         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18804         ;;
18805       *)
18806         if test "$GXX" = yes; then
18807           if test "$with_gnu_ld" = no; then
18808             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'
18809           else
18810             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'
18811           fi
18812         fi
18813         link_all_deplibs_CXX=yes
18814         ;;
18815     esac
18816     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18817     hardcode_libdir_separator_CXX=:
18818     ;;
18819   linux*)
18820     case $cc_basename in
18821       KCC*)
18822         # Kuck and Associates, Inc. (KAI) C++ Compiler
18823
18824         # KCC will only create a shared library if the output file
18825         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18826         # to its proper name (with version) after linking.
18827         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'
18828         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'
18829         # Commands to make compiler produce verbose output that lists
18830         # what "hidden" libraries, object files and flags are used when
18831         # linking a shared library.
18832         #
18833         # There doesn't appear to be a way to prevent this compiler from
18834         # explicitly linking system object files so we need to strip them
18835         # from the output so that they don't get included in the library
18836         # dependencies.
18837         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'
18838
18839         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18840         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18841
18842         # Archives containing C++ object files must be created using
18843         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18844         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18845         ;;
18846       icpc*)
18847         # Intel C++
18848         with_gnu_ld=yes
18849         # version 8.0 and above of icpc choke on multiply defined symbols
18850         # if we add $predep_objects and $postdep_objects, however 7.1 and
18851         # earlier do not add the objects themselves.
18852         case `$CC -V 2>&1` in
18853         *"Version 7."*)
18854           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18855           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'
18856           ;;
18857         *)  # Version 8.0 or newer
18858           tmp_idyn=
18859           case $host_cpu in
18860             ia64*) tmp_idyn=' -i_dynamic';;
18861           esac
18862           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18863           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'
18864           ;;
18865         esac
18866         archive_cmds_need_lc_CXX=no
18867         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18868         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18869         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18870         ;;
18871       pgCC*)
18872         # Portland Group C++ compiler
18873         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18874         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'
18875
18876         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18877         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18878         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'
18879         ;;
18880       cxx*)
18881         # Compaq C++
18882         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18883         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'
18884
18885         runpath_var=LD_RUN_PATH
18886         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18887         hardcode_libdir_separator_CXX=:
18888
18889         # Commands to make compiler produce verbose output that lists
18890         # what "hidden" libraries, object files and flags are used when
18891         # linking a shared library.
18892         #
18893         # There doesn't appear to be a way to prevent this compiler from
18894         # explicitly linking system object files so we need to strip them
18895         # from the output so that they don't get included in the library
18896         # dependencies.
18897         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'
18898         ;;
18899     esac
18900     ;;
18901   lynxos*)
18902     # FIXME: insert proper C++ library support
18903     ld_shlibs_CXX=no
18904     ;;
18905   m88k*)
18906     # FIXME: insert proper C++ library support
18907     ld_shlibs_CXX=no
18908     ;;
18909   mvs*)
18910     case $cc_basename in
18911       cxx*)
18912         # FIXME: insert proper C++ library support
18913         ld_shlibs_CXX=no
18914         ;;
18915       *)
18916         # FIXME: insert proper C++ library support
18917         ld_shlibs_CXX=no
18918         ;;
18919     esac
18920     ;;
18921   netbsd*)
18922     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18923       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18924       wlarc=
18925       hardcode_libdir_flag_spec_CXX='-R$libdir'
18926       hardcode_direct_CXX=yes
18927       hardcode_shlibpath_var_CXX=no
18928     fi
18929     # Workaround some broken pre-1.5 toolchains
18930     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18931     ;;
18932   openbsd2*)
18933     # C++ shared libraries are fairly broken
18934     ld_shlibs_CXX=no
18935     ;;
18936   openbsd*)
18937     hardcode_direct_CXX=yes
18938     hardcode_shlibpath_var_CXX=no
18939     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18940     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18941     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18942       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18943       export_dynamic_flag_spec_CXX='${wl}-E'
18944       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18945     fi
18946     output_verbose_link_cmd='echo'
18947     ;;
18948   osf3*)
18949     case $cc_basename in
18950       KCC*)
18951         # Kuck and Associates, Inc. (KAI) C++ Compiler
18952
18953         # KCC will only create a shared library if the output file
18954         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18955         # to its proper name (with version) after linking.
18956         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'
18957
18958         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18959         hardcode_libdir_separator_CXX=:
18960
18961         # Archives containing C++ object files must be created using
18962         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18963         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18964
18965         ;;
18966       RCC*)
18967         # Rational C++ 2.4.1
18968         # FIXME: insert proper C++ library support
18969         ld_shlibs_CXX=no
18970         ;;
18971       cxx*)
18972         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18973         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'
18974
18975         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18976         hardcode_libdir_separator_CXX=:
18977
18978         # Commands to make compiler produce verbose output that lists
18979         # what "hidden" libraries, object files and flags are used when
18980         # linking a shared library.
18981         #
18982         # There doesn't appear to be a way to prevent this compiler from
18983         # explicitly linking system object files so we need to strip them
18984         # from the output so that they don't get included in the library
18985         # dependencies.
18986         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'
18987         ;;
18988       *)
18989         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18990           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18991           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'
18992
18993           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18994           hardcode_libdir_separator_CXX=:
18995
18996           # Commands to make compiler produce verbose output that lists
18997           # what "hidden" libraries, object files and flags are used when
18998           # linking a shared library.
18999           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19000
19001         else
19002           # FIXME: insert proper C++ library support
19003           ld_shlibs_CXX=no
19004         fi
19005         ;;
19006     esac
19007     ;;
19008   osf4* | osf5*)
19009     case $cc_basename in
19010       KCC*)
19011         # Kuck and Associates, Inc. (KAI) C++ Compiler
19012
19013         # KCC will only create a shared library if the output file
19014         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19015         # to its proper name (with version) after linking.
19016         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'
19017
19018         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19019         hardcode_libdir_separator_CXX=:
19020
19021         # Archives containing C++ object files must be created using
19022         # the KAI C++ compiler.
19023         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19024         ;;
19025       RCC*)
19026         # Rational C++ 2.4.1
19027         # FIXME: insert proper C++ library support
19028         ld_shlibs_CXX=no
19029         ;;
19030       cxx*)
19031         allow_undefined_flag_CXX=' -expect_unresolved \*'
19032         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'
19033         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19034           echo "-hidden">> $lib.exp~
19035           $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~
19036           $rm $lib.exp'
19037
19038         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19039         hardcode_libdir_separator_CXX=:
19040
19041         # Commands to make compiler produce verbose output that lists
19042         # what "hidden" libraries, object files and flags are used when
19043         # linking a shared library.
19044         #
19045         # There doesn't appear to be a way to prevent this compiler from
19046         # explicitly linking system object files so we need to strip them
19047         # from the output so that they don't get included in the library
19048         # dependencies.
19049         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'
19050         ;;
19051       *)
19052         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19053           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19054          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'
19055
19056           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19057           hardcode_libdir_separator_CXX=:
19058
19059           # Commands to make compiler produce verbose output that lists
19060           # what "hidden" libraries, object files and flags are used when
19061           # linking a shared library.
19062           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19063
19064         else
19065           # FIXME: insert proper C++ library support
19066           ld_shlibs_CXX=no
19067         fi
19068         ;;
19069     esac
19070     ;;
19071   psos*)
19072     # FIXME: insert proper C++ library support
19073     ld_shlibs_CXX=no
19074     ;;
19075   sunos4*)
19076     case $cc_basename in
19077       CC*)
19078         # Sun C++ 4.x
19079         # FIXME: insert proper C++ library support
19080         ld_shlibs_CXX=no
19081         ;;
19082       lcc*)
19083         # Lucid
19084         # FIXME: insert proper C++ library support
19085         ld_shlibs_CXX=no
19086         ;;
19087       *)
19088         # FIXME: insert proper C++ library support
19089         ld_shlibs_CXX=no
19090         ;;
19091     esac
19092     ;;
19093   solaris*)
19094     case $cc_basename in
19095       CC*)
19096         # Sun C++ 4.2, 5.x and Centerline C++
19097         archive_cmds_need_lc_CXX=yes
19098         no_undefined_flag_CXX=' -zdefs'
19099         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19100         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19101         $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'
19102
19103         hardcode_libdir_flag_spec_CXX='-R$libdir'
19104         hardcode_shlibpath_var_CXX=no
19105         case $host_os in
19106           solaris2.[0-5] | solaris2.[0-5].*) ;;
19107           *)
19108             # The C++ compiler is used as linker so we must use $wl
19109             # flag to pass the commands to the underlying system
19110             # linker. We must also pass each convience library through
19111             # to the system linker between allextract/defaultextract.
19112             # The C++ compiler will combine linker options so we
19113             # cannot just pass the convience library names through
19114             # without $wl.
19115             # Supported since Solaris 2.6 (maybe 2.5.1?)
19116             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'
19117             ;;
19118         esac
19119         link_all_deplibs_CXX=yes
19120
19121         output_verbose_link_cmd='echo'
19122
19123         # Archives containing C++ object files must be created using
19124         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19125         # necessary to make sure instantiated templates are included
19126         # in the archive.
19127         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19128         ;;
19129       gcx*)
19130         # Green Hills C++ Compiler
19131         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19132
19133         # The C++ compiler must be used to create the archive.
19134         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19135         ;;
19136       *)
19137         # GNU C++ compiler with Solaris linker
19138         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19139           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19140           if $CC --version | grep -v '^2\.7' > /dev/null; then
19141             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19142             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19143                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19144
19145             # Commands to make compiler produce verbose output that lists
19146             # what "hidden" libraries, object files and flags are used when
19147             # linking a shared library.
19148             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19149           else
19150             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19151             # platform.
19152             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19153             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19154                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19155
19156             # Commands to make compiler produce verbose output that lists
19157             # what "hidden" libraries, object files and flags are used when
19158             # linking a shared library.
19159             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19160           fi
19161
19162           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19163         fi
19164         ;;
19165     esac
19166     ;;
19167   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19168     no_undefined_flag_CXX='${wl}-z,text'
19169     archive_cmds_need_lc_CXX=no
19170     hardcode_shlibpath_var_CXX=no
19171     runpath_var='LD_RUN_PATH'
19172
19173     case $cc_basename in
19174       CC*)
19175         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19176         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19177         ;;
19178       *)
19179         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19180         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19181         ;;
19182     esac
19183     ;;
19184   sysv5* | sco3.2v5* | sco5v6*)
19185     # Note: We can NOT use -z defs as we might desire, because we do not
19186     # link with -lc, and that would cause any symbols used from libc to
19187     # always be unresolved, which means just about no library would
19188     # ever link correctly.  If we're not using GNU ld we use -z text
19189     # though, which does catch some bad symbols but isn't as heavy-handed
19190     # as -z defs.
19191     # For security reasons, it is highly recommended that you always
19192     # use absolute paths for naming shared libraries, and exclude the
19193     # DT_RUNPATH tag from executables and libraries.  But doing so
19194     # requires that you compile everything twice, which is a pain.
19195     # So that behaviour is only enabled if SCOABSPATH is set to a
19196     # non-empty value in the environment.  Most likely only useful for
19197     # creating official distributions of packages.
19198     # This is a hack until libtool officially supports absolute path
19199     # names for shared libraries.
19200     no_undefined_flag_CXX='${wl}-z,text'
19201     allow_undefined_flag_CXX='${wl}-z,nodefs'
19202     archive_cmds_need_lc_CXX=no
19203     hardcode_shlibpath_var_CXX=no
19204     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19205     hardcode_libdir_separator_CXX=':'
19206     link_all_deplibs_CXX=yes
19207     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19208     runpath_var='LD_RUN_PATH'
19209
19210     case $cc_basename in
19211       CC*)
19212         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19213         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19214         ;;
19215       *)
19216         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19217         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19218         ;;
19219     esac
19220     ;;
19221   tandem*)
19222     case $cc_basename in
19223       NCC*)
19224         # NonStop-UX NCC 3.20
19225         # FIXME: insert proper C++ library support
19226         ld_shlibs_CXX=no
19227         ;;
19228       *)
19229         # FIXME: insert proper C++ library support
19230         ld_shlibs_CXX=no
19231         ;;
19232     esac
19233     ;;
19234   vxworks*)
19235     # FIXME: insert proper C++ library support
19236     ld_shlibs_CXX=no
19237     ;;
19238   *)
19239     # FIXME: insert proper C++ library support
19240     ld_shlibs_CXX=no
19241     ;;
19242 esac
19243 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19244 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19245 test "$ld_shlibs_CXX" = no && can_build_shared=no
19246
19247 GCC_CXX="$GXX"
19248 LD_CXX="$LD"
19249
19250
19251 cat > conftest.$ac_ext <<EOF
19252 class Foo
19253 {
19254 public:
19255   Foo (void) { a = 0; }
19256 private:
19257   int a;
19258 };
19259 EOF
19260
19261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19262   (eval $ac_compile) 2>&5
19263   ac_status=$?
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); }; then
19266   # Parse the compiler output and extract the necessary
19267   # objects, libraries and library flags.
19268
19269   # Sentinel used to keep track of whether or not we are before
19270   # the conftest object file.
19271   pre_test_object_deps_done=no
19272
19273   # The `*' in the case matches for architectures that use `case' in
19274   # $output_verbose_cmd can trigger glob expansion during the loop
19275   # eval without this substitution.
19276   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19277
19278   for p in `eval $output_verbose_link_cmd`; do
19279     case $p in
19280
19281     -L* | -R* | -l*)
19282        # Some compilers place space between "-{L,R}" and the path.
19283        # Remove the space.
19284        if test $p = "-L" \
19285           || test $p = "-R"; then
19286          prev=$p
19287          continue
19288        else
19289          prev=
19290        fi
19291
19292        if test "$pre_test_object_deps_done" = no; then
19293          case $p in
19294          -L* | -R*)
19295            # Internal compiler library paths should come after those
19296            # provided the user.  The postdeps already come after the
19297            # user supplied libs so there is no need to process them.
19298            if test -z "$compiler_lib_search_path_CXX"; then
19299              compiler_lib_search_path_CXX="${prev}${p}"
19300            else
19301              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19302            fi
19303            ;;
19304          # The "-l" case would never come before the object being
19305          # linked, so don't bother handling this case.
19306          esac
19307        else
19308          if test -z "$postdeps_CXX"; then
19309            postdeps_CXX="${prev}${p}"
19310          else
19311            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19312          fi
19313        fi
19314        ;;
19315
19316     *.$objext)
19317        # This assumes that the test object file only shows up
19318        # once in the compiler output.
19319        if test "$p" = "conftest.$objext"; then
19320          pre_test_object_deps_done=yes
19321          continue
19322        fi
19323
19324        if test "$pre_test_object_deps_done" = no; then
19325          if test -z "$predep_objects_CXX"; then
19326            predep_objects_CXX="$p"
19327          else
19328            predep_objects_CXX="$predep_objects_CXX $p"
19329          fi
19330        else
19331          if test -z "$postdep_objects_CXX"; then
19332            postdep_objects_CXX="$p"
19333          else
19334            postdep_objects_CXX="$postdep_objects_CXX $p"
19335          fi
19336        fi
19337        ;;
19338
19339     *) ;; # Ignore the rest.
19340
19341     esac
19342   done
19343
19344   # Clean up.
19345   rm -f a.out a.exe
19346 else
19347   echo "libtool.m4: error: problem compiling CXX test program"
19348 fi
19349
19350 $rm -f confest.$objext
19351
19352 # PORTME: override above test on systems where it is broken
19353 case $host_os in
19354 interix3*)
19355   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19356   # hack all around it, let's just trust "g++" to DTRT.
19357   predep_objects_CXX=
19358   postdep_objects_CXX=
19359   postdeps_CXX=
19360   ;;
19361
19362 solaris*)
19363   case $cc_basename in
19364   CC*)
19365     # Adding this requires a known-good setup of shared libraries for
19366     # Sun compiler versions before 5.6, else PIC objects from an old
19367     # archive will be linked into the output, leading to subtle bugs.
19368     postdeps_CXX='-lCstd -lCrun'
19369     ;;
19370   esac
19371   ;;
19372 esac
19373
19374
19375 case " $postdeps_CXX " in
19376 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19377 esac
19378
19379 lt_prog_compiler_wl_CXX=
19380 lt_prog_compiler_pic_CXX=
19381 lt_prog_compiler_static_CXX=
19382
19383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19385
19386   # C++ specific cases for pic, static, wl, etc.
19387   if test "$GXX" = yes; then
19388     lt_prog_compiler_wl_CXX='-Wl,'
19389     lt_prog_compiler_static_CXX='-static'
19390
19391     case $host_os in
19392     aix*)
19393       # All AIX code is PIC.
19394       if test "$host_cpu" = ia64; then
19395         # AIX 5 now supports IA64 processor
19396         lt_prog_compiler_static_CXX='-Bstatic'
19397       fi
19398       ;;
19399     amigaos*)
19400       # FIXME: we need at least 68020 code to build shared libraries, but
19401       # adding the `-m68020' flag to GCC prevents building anything better,
19402       # like `-m68040'.
19403       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19404       ;;
19405     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19406       # PIC is the default for these OSes.
19407       ;;
19408     mingw* | os2* | pw32*)
19409       # This hack is so that the source file can tell whether it is being
19410       # built for inclusion in a dll (and should export symbols for example).
19411       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19412       ;;
19413     darwin* | rhapsody*)
19414       # PIC is the default on this platform
19415       # Common symbols not allowed in MH_DYLIB files
19416       lt_prog_compiler_pic_CXX='-fno-common'
19417       ;;
19418     *djgpp*)
19419       # DJGPP does not support shared libraries at all
19420       lt_prog_compiler_pic_CXX=
19421       ;;
19422     interix3*)
19423       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19424       # Instead, we relocate shared libraries at runtime.
19425       ;;
19426     sysv4*MP*)
19427       if test -d /usr/nec; then
19428         lt_prog_compiler_pic_CXX=-Kconform_pic
19429       fi
19430       ;;
19431     hpux*)
19432       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19433       # not for PA HP-UX.
19434       case $host_cpu in
19435       hppa*64*|ia64*)
19436         ;;
19437       *)
19438         lt_prog_compiler_pic_CXX='-fPIC'
19439         ;;
19440       esac
19441       ;;
19442     *)
19443       lt_prog_compiler_pic_CXX='-fPIC'
19444       ;;
19445     esac
19446   else
19447     case $host_os in
19448       aix4* | aix5*)
19449         # All AIX code is PIC.
19450         if test "$host_cpu" = ia64; then
19451           # AIX 5 now supports IA64 processor
19452           lt_prog_compiler_static_CXX='-Bstatic'
19453         else
19454           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19455         fi
19456         ;;
19457       chorus*)
19458         case $cc_basename in
19459         cxch68*)
19460           # Green Hills C++ Compiler
19461           # _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"
19462           ;;
19463         esac
19464         ;;
19465        darwin*)
19466          # PIC is the default on this platform
19467          # Common symbols not allowed in MH_DYLIB files
19468          case $cc_basename in
19469            xlc*)
19470            lt_prog_compiler_pic_CXX='-qnocommon'
19471            lt_prog_compiler_wl_CXX='-Wl,'
19472            ;;
19473          esac
19474        ;;
19475       dgux*)
19476         case $cc_basename in
19477           ec++*)
19478             lt_prog_compiler_pic_CXX='-KPIC'
19479             ;;
19480           ghcx*)
19481             # Green Hills C++ Compiler
19482             lt_prog_compiler_pic_CXX='-pic'
19483             ;;
19484           *)
19485             ;;
19486         esac
19487         ;;
19488       freebsd* | kfreebsd*-gnu | dragonfly*)
19489         # FreeBSD uses GNU C++
19490         ;;
19491       hpux9* | hpux10* | hpux11*)
19492         case $cc_basename in
19493           CC*)
19494             lt_prog_compiler_wl_CXX='-Wl,'
19495             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19496             if test "$host_cpu" != ia64; then
19497               lt_prog_compiler_pic_CXX='+Z'
19498             fi
19499             ;;
19500           aCC*)
19501             lt_prog_compiler_wl_CXX='-Wl,'
19502             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19503             case $host_cpu in
19504             hppa*64*|ia64*)
19505               # +Z the default
19506               ;;
19507             *)
19508               lt_prog_compiler_pic_CXX='+Z'
19509               ;;
19510             esac
19511             ;;
19512           *)
19513             ;;
19514         esac
19515         ;;
19516       interix*)
19517         # This is c89, which is MS Visual C++ (no shared libs)
19518         # Anyone wants to do a port?
19519         ;;
19520       irix5* | irix6* | nonstopux*)
19521         case $cc_basename in
19522           CC*)
19523             lt_prog_compiler_wl_CXX='-Wl,'
19524             lt_prog_compiler_static_CXX='-non_shared'
19525             # CC pic flag -KPIC is the default.
19526             ;;
19527           *)
19528             ;;
19529         esac
19530         ;;
19531       linux*)
19532         case $cc_basename in
19533           KCC*)
19534             # KAI C++ Compiler
19535             lt_prog_compiler_wl_CXX='--backend -Wl,'
19536             lt_prog_compiler_pic_CXX='-fPIC'
19537             ;;
19538           icpc* | ecpc*)
19539             # Intel C++
19540             lt_prog_compiler_wl_CXX='-Wl,'
19541             lt_prog_compiler_pic_CXX='-KPIC'
19542             lt_prog_compiler_static_CXX='-static'
19543             ;;
19544           pgCC*)
19545             # Portland Group C++ compiler.
19546             lt_prog_compiler_wl_CXX='-Wl,'
19547             lt_prog_compiler_pic_CXX='-fpic'
19548             lt_prog_compiler_static_CXX='-Bstatic'
19549             ;;
19550           cxx*)
19551             # Compaq C++
19552             # Make sure the PIC flag is empty.  It appears that all Alpha
19553             # Linux and Compaq Tru64 Unix objects are PIC.
19554             lt_prog_compiler_pic_CXX=
19555             lt_prog_compiler_static_CXX='-non_shared'
19556             ;;
19557           *)
19558             ;;
19559         esac
19560         ;;
19561       lynxos*)
19562         ;;
19563       m88k*)
19564         ;;
19565       mvs*)
19566         case $cc_basename in
19567           cxx*)
19568             lt_prog_compiler_pic_CXX='-W c,exportall'
19569             ;;
19570           *)
19571             ;;
19572         esac
19573         ;;
19574       netbsd*)
19575         ;;
19576       osf3* | osf4* | osf5*)
19577         case $cc_basename in
19578           KCC*)
19579             lt_prog_compiler_wl_CXX='--backend -Wl,'
19580             ;;
19581           RCC*)
19582             # Rational C++ 2.4.1
19583             lt_prog_compiler_pic_CXX='-pic'
19584             ;;
19585           cxx*)
19586             # Digital/Compaq C++
19587             lt_prog_compiler_wl_CXX='-Wl,'
19588             # Make sure the PIC flag is empty.  It appears that all Alpha
19589             # Linux and Compaq Tru64 Unix objects are PIC.
19590             lt_prog_compiler_pic_CXX=
19591             lt_prog_compiler_static_CXX='-non_shared'
19592             ;;
19593           *)
19594             ;;
19595         esac
19596         ;;
19597       psos*)
19598         ;;
19599       solaris*)
19600         case $cc_basename in
19601           CC*)
19602             # Sun C++ 4.2, 5.x and Centerline C++
19603             lt_prog_compiler_pic_CXX='-KPIC'
19604             lt_prog_compiler_static_CXX='-Bstatic'
19605             lt_prog_compiler_wl_CXX='-Qoption ld '
19606             ;;
19607           gcx*)
19608             # Green Hills C++ Compiler
19609             lt_prog_compiler_pic_CXX='-PIC'
19610             ;;
19611           *)
19612             ;;
19613         esac
19614         ;;
19615       sunos4*)
19616         case $cc_basename in
19617           CC*)
19618             # Sun C++ 4.x
19619             lt_prog_compiler_pic_CXX='-pic'
19620             lt_prog_compiler_static_CXX='-Bstatic'
19621             ;;
19622           lcc*)
19623             # Lucid
19624             lt_prog_compiler_pic_CXX='-pic'
19625             ;;
19626           *)
19627             ;;
19628         esac
19629         ;;
19630       tandem*)
19631         case $cc_basename in
19632           NCC*)
19633             # NonStop-UX NCC 3.20
19634             lt_prog_compiler_pic_CXX='-KPIC'
19635             ;;
19636           *)
19637             ;;
19638         esac
19639         ;;
19640       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19641         case $cc_basename in
19642           CC*)
19643             lt_prog_compiler_wl_CXX='-Wl,'
19644             lt_prog_compiler_pic_CXX='-KPIC'
19645             lt_prog_compiler_static_CXX='-Bstatic'
19646             ;;
19647         esac
19648         ;;
19649       vxworks*)
19650         ;;
19651       *)
19652         lt_prog_compiler_can_build_shared_CXX=no
19653         ;;
19654     esac
19655   fi
19656
19657 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19658 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19659
19660 #
19661 # Check to make sure the PIC flag actually works.
19662 #
19663 if test -n "$lt_prog_compiler_pic_CXX"; then
19664
19665 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19666 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19667 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19668   echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670   lt_prog_compiler_pic_works_CXX=no
19671   ac_outfile=conftest.$ac_objext
19672    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19673    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19674    # Insert the option either (1) after the last *FLAGS variable, or
19675    # (2) before a word containing "conftest.", or (3) at the end.
19676    # Note that $ac_compile itself does not contain backslashes and begins
19677    # with a dollar sign (not a hyphen), so the echo should work correctly.
19678    # The option is referenced via a variable to avoid confusing sed.
19679    lt_compile=`echo "$ac_compile" | $SED \
19680    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19682    -e 's:$: $lt_compiler_flag:'`
19683    (eval echo "\"\$as_me:19683: $lt_compile\"" >&5)
19684    (eval "$lt_compile" 2>conftest.err)
19685    ac_status=$?
19686    cat conftest.err >&5
19687    echo "$as_me:19687: \$? = $ac_status" >&5
19688    if (exit $ac_status) && test -s "$ac_outfile"; then
19689      # The compiler can only warn and ignore the option if not recognized
19690      # So say no if there are warnings other than the usual output.
19691      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19692      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19693      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19694        lt_prog_compiler_pic_works_CXX=yes
19695      fi
19696    fi
19697    $rm conftest*
19698
19699 fi
19700 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19701 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19702
19703 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19704     case $lt_prog_compiler_pic_CXX in
19705      "" | " "*) ;;
19706      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19707      esac
19708 else
19709     lt_prog_compiler_pic_CXX=
19710      lt_prog_compiler_can_build_shared_CXX=no
19711 fi
19712
19713 fi
19714 case $host_os in
19715   # For platforms which do not support PIC, -DPIC is meaningless:
19716   *djgpp*)
19717     lt_prog_compiler_pic_CXX=
19718     ;;
19719   *)
19720     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19721     ;;
19722 esac
19723
19724 #
19725 # Check to make sure the static flag actually works.
19726 #
19727 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19728 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19729 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19730 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19731   echo $ECHO_N "(cached) $ECHO_C" >&6
19732 else
19733   lt_prog_compiler_static_works_CXX=no
19734    save_LDFLAGS="$LDFLAGS"
19735    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19736    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19737    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19738      # The linker can only warn and ignore the option if not recognized
19739      # So say no if there are warnings
19740      if test -s conftest.err; then
19741        # Append any errors to the config.log.
19742        cat conftest.err 1>&5
19743        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19744        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19745        if diff conftest.exp conftest.er2 >/dev/null; then
19746          lt_prog_compiler_static_works_CXX=yes
19747        fi
19748      else
19749        lt_prog_compiler_static_works_CXX=yes
19750      fi
19751    fi
19752    $rm conftest*
19753    LDFLAGS="$save_LDFLAGS"
19754
19755 fi
19756 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19757 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19758
19759 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19760     :
19761 else
19762     lt_prog_compiler_static_CXX=
19763 fi
19764
19765
19766 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19767 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19768 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19769   echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771   lt_cv_prog_compiler_c_o_CXX=no
19772    $rm -r conftest 2>/dev/null
19773    mkdir conftest
19774    cd conftest
19775    mkdir out
19776    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19777
19778    lt_compiler_flag="-o out/conftest2.$ac_objext"
19779    # Insert the option either (1) after the last *FLAGS variable, or
19780    # (2) before a word containing "conftest.", or (3) at the end.
19781    # Note that $ac_compile itself does not contain backslashes and begins
19782    # with a dollar sign (not a hyphen), so the echo should work correctly.
19783    lt_compile=`echo "$ac_compile" | $SED \
19784    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19785    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19786    -e 's:$: $lt_compiler_flag:'`
19787    (eval echo "\"\$as_me:19787: $lt_compile\"" >&5)
19788    (eval "$lt_compile" 2>out/conftest.err)
19789    ac_status=$?
19790    cat out/conftest.err >&5
19791    echo "$as_me:19791: \$? = $ac_status" >&5
19792    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19793    then
19794      # The compiler can only warn and ignore the option if not recognized
19795      # So say no if there are warnings
19796      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19797      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19798      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19799        lt_cv_prog_compiler_c_o_CXX=yes
19800      fi
19801    fi
19802    chmod u+w . 2>&5
19803    $rm conftest*
19804    # SGI C++ compiler will create directory out/ii_files/ for
19805    # template instantiation
19806    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19807    $rm out/* && rmdir out
19808    cd ..
19809    rmdir conftest
19810    $rm conftest*
19811
19812 fi
19813 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19814 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19815
19816
19817 hard_links="nottested"
19818 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19819   # do not overwrite the value of need_locks provided by the user
19820   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19821 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19822   hard_links=yes
19823   $rm conftest*
19824   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19825   touch conftest.a
19826   ln conftest.a conftest.b 2>&5 || hard_links=no
19827   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19828   { echo "$as_me:$LINENO: result: $hard_links" >&5
19829 echo "${ECHO_T}$hard_links" >&6; }
19830   if test "$hard_links" = no; then
19831     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19832 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19833     need_locks=warn
19834   fi
19835 else
19836   need_locks=no
19837 fi
19838
19839 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19840 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19841
19842   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19843   case $host_os in
19844   aix4* | aix5*)
19845     # If we're using GNU nm, then we don't want the "-C" option.
19846     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19847     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19848       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'
19849     else
19850       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'
19851     fi
19852     ;;
19853   pw32*)
19854     export_symbols_cmds_CXX="$ltdll_cmds"
19855   ;;
19856   cygwin* | mingw*)
19857     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'
19858   ;;
19859   *)
19860     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19861   ;;
19862   esac
19863
19864 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19865 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19866 test "$ld_shlibs_CXX" = no && can_build_shared=no
19867
19868 #
19869 # Do we need to explicitly link libc?
19870 #
19871 case "x$archive_cmds_need_lc_CXX" in
19872 x|xyes)
19873   # Assume -lc should be added
19874   archive_cmds_need_lc_CXX=yes
19875
19876   if test "$enable_shared" = yes && test "$GCC" = yes; then
19877     case $archive_cmds_CXX in
19878     *'~'*)
19879       # FIXME: we may have to deal with multi-command sequences.
19880       ;;
19881     '$CC '*)
19882       # Test whether the compiler implicitly links with -lc since on some
19883       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19884       # to ld, don't add -lc before -lgcc.
19885       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19886 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19887       $rm conftest*
19888       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19889
19890       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891   (eval $ac_compile) 2>&5
19892   ac_status=$?
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } 2>conftest.err; then
19895         soname=conftest
19896         lib=conftest
19897         libobjs=conftest.$ac_objext
19898         deplibs=
19899         wl=$lt_prog_compiler_wl_CXX
19900         pic_flag=$lt_prog_compiler_pic_CXX
19901         compiler_flags=-v
19902         linker_flags=-v
19903         verstring=
19904         output_objdir=.
19905         libname=conftest
19906         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19907         allow_undefined_flag_CXX=
19908         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19909   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19910   ac_status=$?
19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); }
19913         then
19914           archive_cmds_need_lc_CXX=no
19915         else
19916           archive_cmds_need_lc_CXX=yes
19917         fi
19918         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19919       else
19920         cat conftest.err 1>&5
19921       fi
19922       $rm conftest*
19923       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19924 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19925       ;;
19926     esac
19927   fi
19928   ;;
19929 esac
19930
19931 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19932 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19933 library_names_spec=
19934 libname_spec='lib$name'
19935 soname_spec=
19936 shrext_cmds=".so"
19937 postinstall_cmds=
19938 postuninstall_cmds=
19939 finish_cmds=
19940 finish_eval=
19941 shlibpath_var=
19942 shlibpath_overrides_runpath=unknown
19943 version_type=none
19944 dynamic_linker="$host_os ld.so"
19945 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19946 if test "$GCC" = yes; then
19947   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19948   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19949     # if the path contains ";" then we assume it to be the separator
19950     # otherwise default to the standard path separator (i.e. ":") - it is
19951     # assumed that no part of a normal pathname contains ";" but that should
19952     # okay in the real world where ";" in dirpaths is itself problematic.
19953     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19954   else
19955     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19956   fi
19957 else
19958   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19959 fi
19960 need_lib_prefix=unknown
19961 hardcode_into_libs=no
19962
19963 # when you set need_version to no, make sure it does not cause -set_version
19964 # flags to be left without arguments
19965 need_version=unknown
19966
19967 case $host_os in
19968 aix3*)
19969   version_type=linux
19970   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19971   shlibpath_var=LIBPATH
19972
19973   # AIX 3 has no versioning support, so we append a major version to the name.
19974   soname_spec='${libname}${release}${shared_ext}$major'
19975   ;;
19976
19977 aix4* | aix5*)
19978   version_type=linux
19979   need_lib_prefix=no
19980   need_version=no
19981   hardcode_into_libs=yes
19982   if test "$host_cpu" = ia64; then
19983     # AIX 5 supports IA64
19984     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19985     shlibpath_var=LD_LIBRARY_PATH
19986   else
19987     # With GCC up to 2.95.x, collect2 would create an import file
19988     # for dependence libraries.  The import file would start with
19989     # the line `#! .'.  This would cause the generated library to
19990     # depend on `.', always an invalid library.  This was fixed in
19991     # development snapshots of GCC prior to 3.0.
19992     case $host_os in
19993       aix4 | aix4.[01] | aix4.[01].*)
19994       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19995            echo ' yes '
19996            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19997         :
19998       else
19999         can_build_shared=no
20000       fi
20001       ;;
20002     esac
20003     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20004     # soname into executable. Probably we can add versioning support to
20005     # collect2, so additional links can be useful in future.
20006     if test "$aix_use_runtimelinking" = yes; then
20007       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20008       # instead of lib<name>.a to let people know that these are not
20009       # typical AIX shared libraries.
20010       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20011     else
20012       # We preserve .a as extension for shared libraries through AIX4.2
20013       # and later when we are not doing run time linking.
20014       library_names_spec='${libname}${release}.a $libname.a'
20015       soname_spec='${libname}${release}${shared_ext}$major'
20016     fi
20017     shlibpath_var=LIBPATH
20018   fi
20019   ;;
20020
20021 amigaos*)
20022   library_names_spec='$libname.ixlibrary $libname.a'
20023   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20024   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'
20025   ;;
20026
20027 beos*)
20028   library_names_spec='${libname}${shared_ext}'
20029   dynamic_linker="$host_os ld.so"
20030   shlibpath_var=LIBRARY_PATH
20031   ;;
20032
20033 bsdi[45]*)
20034   version_type=linux
20035   need_version=no
20036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20037   soname_spec='${libname}${release}${shared_ext}$major'
20038   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20039   shlibpath_var=LD_LIBRARY_PATH
20040   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20041   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20042   # the default ld.so.conf also contains /usr/contrib/lib and
20043   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20044   # libtool to hard-code these into programs
20045   ;;
20046
20047 cygwin* | mingw* | pw32*)
20048   version_type=windows
20049   shrext_cmds=".dll"
20050   need_version=no
20051   need_lib_prefix=no
20052
20053   case $GCC,$host_os in
20054   yes,cygwin* | yes,mingw* | yes,pw32*)
20055     library_names_spec='$libname.dll.a'
20056     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20057     postinstall_cmds='base_file=`basename \${file}`~
20058       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20059       dldir=$destdir/`dirname \$dlpath`~
20060       test -d \$dldir || mkdir -p \$dldir~
20061       $install_prog $dir/$dlname \$dldir/$dlname~
20062       chmod a+x \$dldir/$dlname'
20063     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20064       dlpath=$dir/\$dldll~
20065        $rm \$dlpath'
20066     shlibpath_overrides_runpath=yes
20067
20068     case $host_os in
20069     cygwin*)
20070       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20071       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20072       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20073       ;;
20074     mingw*)
20075       # MinGW DLLs use traditional 'lib' prefix
20076       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20077       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20078       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20079         # It is most probably a Windows format PATH printed by
20080         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20081         # path with ; separators, and with drive letters. We can handle the
20082         # drive letters (cygwin fileutils understands them), so leave them,
20083         # especially as we might pass files found there to a mingw objdump,
20084         # which wouldn't understand a cygwinified path. Ahh.
20085         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20086       else
20087         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20088       fi
20089       ;;
20090     pw32*)
20091       # pw32 DLLs use 'pw' prefix rather than 'lib'
20092       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20093       ;;
20094     esac
20095     ;;
20096
20097   *)
20098     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20099     ;;
20100   esac
20101   dynamic_linker='Win32 ld.exe'
20102   # FIXME: first we should search . and the directory the executable is in
20103   shlibpath_var=PATH
20104   ;;
20105
20106 darwin* | rhapsody*)
20107   dynamic_linker="$host_os dyld"
20108   version_type=darwin
20109   need_lib_prefix=no
20110   need_version=no
20111   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20112   soname_spec='${libname}${release}${major}$shared_ext'
20113   shlibpath_overrides_runpath=yes
20114   shlibpath_var=DYLD_LIBRARY_PATH
20115   shrext_cmds='.dylib'
20116   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20117   if test "$GCC" = yes; then
20118     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"`
20119   else
20120     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20121   fi
20122   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20123   ;;
20124
20125 dgux*)
20126   version_type=linux
20127   need_lib_prefix=no
20128   need_version=no
20129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20130   soname_spec='${libname}${release}${shared_ext}$major'
20131   shlibpath_var=LD_LIBRARY_PATH
20132   ;;
20133
20134 freebsd1*)
20135   dynamic_linker=no
20136   ;;
20137
20138 kfreebsd*-gnu)
20139   version_type=linux
20140   need_lib_prefix=no
20141   need_version=no
20142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20143   soname_spec='${libname}${release}${shared_ext}$major'
20144   shlibpath_var=LD_LIBRARY_PATH
20145   shlibpath_overrides_runpath=no
20146   hardcode_into_libs=yes
20147   dynamic_linker='GNU ld.so'
20148   ;;
20149
20150 freebsd* | dragonfly*)
20151   # DragonFly does not have aout.  When/if they implement a new
20152   # versioning mechanism, adjust this.
20153   if test -x /usr/bin/objformat; then
20154     objformat=`/usr/bin/objformat`
20155   else
20156     case $host_os in
20157     freebsd[123]*) objformat=aout ;;
20158     *) objformat=elf ;;
20159     esac
20160   fi
20161   version_type=freebsd-$objformat
20162   case $version_type in
20163     freebsd-elf*)
20164       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20165       need_version=no
20166       need_lib_prefix=no
20167       ;;
20168     freebsd-*)
20169       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20170       need_version=yes
20171       ;;
20172   esac
20173   shlibpath_var=LD_LIBRARY_PATH
20174   case $host_os in
20175   freebsd2*)
20176     shlibpath_overrides_runpath=yes
20177     ;;
20178   freebsd3.[01]* | freebsdelf3.[01]*)
20179     shlibpath_overrides_runpath=yes
20180     hardcode_into_libs=yes
20181     ;;
20182   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20183   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20184     shlibpath_overrides_runpath=no
20185     hardcode_into_libs=yes
20186     ;;
20187   freebsd*) # from 4.6 on
20188     shlibpath_overrides_runpath=yes
20189     hardcode_into_libs=yes
20190     ;;
20191   esac
20192   ;;
20193
20194 gnu*)
20195   version_type=linux
20196   need_lib_prefix=no
20197   need_version=no
20198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20199   soname_spec='${libname}${release}${shared_ext}$major'
20200   shlibpath_var=LD_LIBRARY_PATH
20201   hardcode_into_libs=yes
20202   ;;
20203
20204 hpux9* | hpux10* | hpux11*)
20205   # Give a soname corresponding to the major version so that dld.sl refuses to
20206   # link against other versions.
20207   version_type=sunos
20208   need_lib_prefix=no
20209   need_version=no
20210   case $host_cpu in
20211   ia64*)
20212     shrext_cmds='.so'
20213     hardcode_into_libs=yes
20214     dynamic_linker="$host_os dld.so"
20215     shlibpath_var=LD_LIBRARY_PATH
20216     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20218     soname_spec='${libname}${release}${shared_ext}$major'
20219     if test "X$HPUX_IA64_MODE" = X32; then
20220       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20221     else
20222       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20223     fi
20224     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20225     ;;
20226    hppa*64*)
20227      shrext_cmds='.sl'
20228      hardcode_into_libs=yes
20229      dynamic_linker="$host_os dld.sl"
20230      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20231      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20232      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20233      soname_spec='${libname}${release}${shared_ext}$major'
20234      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20235      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20236      ;;
20237    *)
20238     shrext_cmds='.sl'
20239     dynamic_linker="$host_os dld.sl"
20240     shlibpath_var=SHLIB_PATH
20241     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20242     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20243     soname_spec='${libname}${release}${shared_ext}$major'
20244     ;;
20245   esac
20246   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20247   postinstall_cmds='chmod 555 $lib'
20248   ;;
20249
20250 interix3*)
20251   version_type=linux
20252   need_lib_prefix=no
20253   need_version=no
20254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20255   soname_spec='${libname}${release}${shared_ext}$major'
20256   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20257   shlibpath_var=LD_LIBRARY_PATH
20258   shlibpath_overrides_runpath=no
20259   hardcode_into_libs=yes
20260   ;;
20261
20262 irix5* | irix6* | nonstopux*)
20263   case $host_os in
20264     nonstopux*) version_type=nonstopux ;;
20265     *)
20266         if test "$lt_cv_prog_gnu_ld" = yes; then
20267                 version_type=linux
20268         else
20269                 version_type=irix
20270         fi ;;
20271   esac
20272   need_lib_prefix=no
20273   need_version=no
20274   soname_spec='${libname}${release}${shared_ext}$major'
20275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20276   case $host_os in
20277   irix5* | nonstopux*)
20278     libsuff= shlibsuff=
20279     ;;
20280   *)
20281     case $LD in # libtool.m4 will add one of these switches to LD
20282     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20283       libsuff= shlibsuff= libmagic=32-bit;;
20284     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20285       libsuff=32 shlibsuff=N32 libmagic=N32;;
20286     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20287       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20288     *) libsuff= shlibsuff= libmagic=never-match;;
20289     esac
20290     ;;
20291   esac
20292   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20293   shlibpath_overrides_runpath=no
20294   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20295   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20296   hardcode_into_libs=yes
20297   ;;
20298
20299 # No shared lib support for Linux oldld, aout, or coff.
20300 linux*oldld* | linux*aout* | linux*coff*)
20301   dynamic_linker=no
20302   ;;
20303
20304 # This must be Linux ELF.
20305 linux*)
20306   version_type=linux
20307   need_lib_prefix=no
20308   need_version=no
20309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20310   soname_spec='${libname}${release}${shared_ext}$major'
20311   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20312   shlibpath_var=LD_LIBRARY_PATH
20313   shlibpath_overrides_runpath=no
20314   # This implies no fast_install, which is unacceptable.
20315   # Some rework will be needed to allow for fast_install
20316   # before this can be enabled.
20317   hardcode_into_libs=yes
20318
20319   # Append ld.so.conf contents to the search path
20320   if test -f /etc/ld.so.conf; then
20321     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' ' '`
20322     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20323   fi
20324
20325   # We used to test for /lib/ld.so.1 and disable shared libraries on
20326   # powerpc, because MkLinux only supported shared libraries with the
20327   # GNU dynamic linker.  Since this was broken with cross compilers,
20328   # most powerpc-linux boxes support dynamic linking these days and
20329   # people can always --disable-shared, the test was removed, and we
20330   # assume the GNU/Linux dynamic linker is in use.
20331   dynamic_linker='GNU/Linux ld.so'
20332   ;;
20333
20334 knetbsd*-gnu)
20335   version_type=linux
20336   need_lib_prefix=no
20337   need_version=no
20338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20339   soname_spec='${libname}${release}${shared_ext}$major'
20340   shlibpath_var=LD_LIBRARY_PATH
20341   shlibpath_overrides_runpath=no
20342   hardcode_into_libs=yes
20343   dynamic_linker='GNU ld.so'
20344   ;;
20345
20346 netbsd*)
20347   version_type=sunos
20348   need_lib_prefix=no
20349   need_version=no
20350   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20352     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20353     dynamic_linker='NetBSD (a.out) ld.so'
20354   else
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     dynamic_linker='NetBSD ld.elf_so'
20358   fi
20359   shlibpath_var=LD_LIBRARY_PATH
20360   shlibpath_overrides_runpath=yes
20361   hardcode_into_libs=yes
20362   ;;
20363
20364 newsos6)
20365   version_type=linux
20366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367   shlibpath_var=LD_LIBRARY_PATH
20368   shlibpath_overrides_runpath=yes
20369   ;;
20370
20371 nto-qnx*)
20372   version_type=linux
20373   need_lib_prefix=no
20374   need_version=no
20375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20376   soname_spec='${libname}${release}${shared_ext}$major'
20377   shlibpath_var=LD_LIBRARY_PATH
20378   shlibpath_overrides_runpath=yes
20379   ;;
20380
20381 openbsd*)
20382   version_type=sunos
20383   sys_lib_dlsearch_path_spec="/usr/lib"
20384   need_lib_prefix=no
20385   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20386   case $host_os in
20387     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20388     *)                         need_version=no  ;;
20389   esac
20390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20391   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20392   shlibpath_var=LD_LIBRARY_PATH
20393   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20394     case $host_os in
20395       openbsd2.[89] | openbsd2.[89].*)
20396         shlibpath_overrides_runpath=no
20397         ;;
20398       *)
20399         shlibpath_overrides_runpath=yes
20400         ;;
20401       esac
20402   else
20403     shlibpath_overrides_runpath=yes
20404   fi
20405   ;;
20406
20407 os2*)
20408   libname_spec='$name'
20409   shrext_cmds=".dll"
20410   need_lib_prefix=no
20411   library_names_spec='$libname${shared_ext} $libname.a'
20412   dynamic_linker='OS/2 ld.exe'
20413   shlibpath_var=LIBPATH
20414   ;;
20415
20416 osf3* | osf4* | osf5*)
20417   version_type=osf
20418   need_lib_prefix=no
20419   need_version=no
20420   soname_spec='${libname}${release}${shared_ext}$major'
20421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20422   shlibpath_var=LD_LIBRARY_PATH
20423   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20424   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20425   ;;
20426
20427 solaris*)
20428   version_type=linux
20429   need_lib_prefix=no
20430   need_version=no
20431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432   soname_spec='${libname}${release}${shared_ext}$major'
20433   shlibpath_var=LD_LIBRARY_PATH
20434   shlibpath_overrides_runpath=yes
20435   hardcode_into_libs=yes
20436   # ldd complains unless libraries are executable
20437   postinstall_cmds='chmod +x $lib'
20438   ;;
20439
20440 sunos4*)
20441   version_type=sunos
20442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20443   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20444   shlibpath_var=LD_LIBRARY_PATH
20445   shlibpath_overrides_runpath=yes
20446   if test "$with_gnu_ld" = yes; then
20447     need_lib_prefix=no
20448   fi
20449   need_version=yes
20450   ;;
20451
20452 sysv4 | sysv4.3*)
20453   version_type=linux
20454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455   soname_spec='${libname}${release}${shared_ext}$major'
20456   shlibpath_var=LD_LIBRARY_PATH
20457   case $host_vendor in
20458     sni)
20459       shlibpath_overrides_runpath=no
20460       need_lib_prefix=no
20461       export_dynamic_flag_spec='${wl}-Blargedynsym'
20462       runpath_var=LD_RUN_PATH
20463       ;;
20464     siemens)
20465       need_lib_prefix=no
20466       ;;
20467     motorola)
20468       need_lib_prefix=no
20469       need_version=no
20470       shlibpath_overrides_runpath=no
20471       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20472       ;;
20473   esac
20474   ;;
20475
20476 sysv4*MP*)
20477   if test -d /usr/nec ;then
20478     version_type=linux
20479     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20480     soname_spec='$libname${shared_ext}.$major'
20481     shlibpath_var=LD_LIBRARY_PATH
20482   fi
20483   ;;
20484
20485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20486   version_type=freebsd-elf
20487   need_lib_prefix=no
20488   need_version=no
20489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20490   soname_spec='${libname}${release}${shared_ext}$major'
20491   shlibpath_var=LD_LIBRARY_PATH
20492   hardcode_into_libs=yes
20493   if test "$with_gnu_ld" = yes; then
20494     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20495     shlibpath_overrides_runpath=no
20496   else
20497     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20498     shlibpath_overrides_runpath=yes
20499     case $host_os in
20500       sco3.2v5*)
20501         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20502         ;;
20503     esac
20504   fi
20505   sys_lib_dlsearch_path_spec='/usr/lib'
20506   ;;
20507
20508 uts4*)
20509   version_type=linux
20510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20511   soname_spec='${libname}${release}${shared_ext}$major'
20512   shlibpath_var=LD_LIBRARY_PATH
20513   ;;
20514
20515 *)
20516   dynamic_linker=no
20517   ;;
20518 esac
20519 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20520 echo "${ECHO_T}$dynamic_linker" >&6; }
20521 test "$dynamic_linker" = no && can_build_shared=no
20522
20523 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20524 if test "$GCC" = yes; then
20525   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20526 fi
20527
20528 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20529 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20530 hardcode_action_CXX=
20531 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20532    test -n "$runpath_var_CXX" || \
20533    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20534
20535   # We can hardcode non-existant directories.
20536   if test "$hardcode_direct_CXX" != no &&
20537      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20538      # have to relink, otherwise we might link with an installed library
20539      # when we should be linking with a yet-to-be-installed one
20540      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20541      test "$hardcode_minus_L_CXX" != no; then
20542     # Linking always hardcodes the temporary library directory.
20543     hardcode_action_CXX=relink
20544   else
20545     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20546     hardcode_action_CXX=immediate
20547   fi
20548 else
20549   # We cannot hardcode anything, or else we can only hardcode existing
20550   # directories.
20551   hardcode_action_CXX=unsupported
20552 fi
20553 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20554 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20555
20556 if test "$hardcode_action_CXX" = relink; then
20557   # Fast installation is not supported
20558   enable_fast_install=no
20559 elif test "$shlibpath_overrides_runpath" = yes ||
20560      test "$enable_shared" = no; then
20561   # Fast installation is not necessary
20562   enable_fast_install=needless
20563 fi
20564
20565
20566 # The else clause should only fire when bootstrapping the
20567 # libtool distribution, otherwise you forgot to ship ltmain.sh
20568 # with your package, and you will get complaints that there are
20569 # no rules to generate ltmain.sh.
20570 if test -f "$ltmain"; then
20571   # See if we are running on zsh, and set the options which allow our commands through
20572   # without removal of \ escapes.
20573   if test -n "${ZSH_VERSION+set}" ; then
20574     setopt NO_GLOB_SUBST
20575   fi
20576   # Now quote all the things that may contain metacharacters while being
20577   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20578   # variables and quote the copies for generation of the libtool script.
20579   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20580     SED SHELL STRIP \
20581     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20582     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20583     deplibs_check_method reload_flag reload_cmds need_locks \
20584     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20585     lt_cv_sys_global_symbol_to_c_name_address \
20586     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20587     old_postinstall_cmds old_postuninstall_cmds \
20588     compiler_CXX \
20589     CC_CXX \
20590     LD_CXX \
20591     lt_prog_compiler_wl_CXX \
20592     lt_prog_compiler_pic_CXX \
20593     lt_prog_compiler_static_CXX \
20594     lt_prog_compiler_no_builtin_flag_CXX \
20595     export_dynamic_flag_spec_CXX \
20596     thread_safe_flag_spec_CXX \
20597     whole_archive_flag_spec_CXX \
20598     enable_shared_with_static_runtimes_CXX \
20599     old_archive_cmds_CXX \
20600     old_archive_from_new_cmds_CXX \
20601     predep_objects_CXX \
20602     postdep_objects_CXX \
20603     predeps_CXX \
20604     postdeps_CXX \
20605     compiler_lib_search_path_CXX \
20606     archive_cmds_CXX \
20607     archive_expsym_cmds_CXX \
20608     postinstall_cmds_CXX \
20609     postuninstall_cmds_CXX \
20610     old_archive_from_expsyms_cmds_CXX \
20611     allow_undefined_flag_CXX \
20612     no_undefined_flag_CXX \
20613     export_symbols_cmds_CXX \
20614     hardcode_libdir_flag_spec_CXX \
20615     hardcode_libdir_flag_spec_ld_CXX \
20616     hardcode_libdir_separator_CXX \
20617     hardcode_automatic_CXX \
20618     module_cmds_CXX \
20619     module_expsym_cmds_CXX \
20620     lt_cv_prog_compiler_c_o_CXX \
20621     exclude_expsyms_CXX \
20622     include_expsyms_CXX; do
20623
20624     case $var in
20625     old_archive_cmds_CXX | \
20626     old_archive_from_new_cmds_CXX | \
20627     archive_cmds_CXX | \
20628     archive_expsym_cmds_CXX | \
20629     module_cmds_CXX | \
20630     module_expsym_cmds_CXX | \
20631     old_archive_from_expsyms_cmds_CXX | \
20632     export_symbols_cmds_CXX | \
20633     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20634     postinstall_cmds | postuninstall_cmds | \
20635     old_postinstall_cmds | old_postuninstall_cmds | \
20636     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20637       # Double-quote double-evaled strings.
20638       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20639       ;;
20640     *)
20641       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20642       ;;
20643     esac
20644   done
20645
20646   case $lt_echo in
20647   *'\$0 --fallback-echo"')
20648     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20649     ;;
20650   esac
20651
20652 cfgfile="$ofile"
20653
20654   cat <<__EOF__ >> "$cfgfile"
20655 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20656
20657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20658
20659 # Shell to use when invoking shell scripts.
20660 SHELL=$lt_SHELL
20661
20662 # Whether or not to build shared libraries.
20663 build_libtool_libs=$enable_shared
20664
20665 # Whether or not to build static libraries.
20666 build_old_libs=$enable_static
20667
20668 # Whether or not to add -lc for building shared libraries.
20669 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20670
20671 # Whether or not to disallow shared libs when runtime libs are static
20672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20673
20674 # Whether or not to optimize for fast installation.
20675 fast_install=$enable_fast_install
20676
20677 # The host system.
20678 host_alias=$host_alias
20679 host=$host
20680 host_os=$host_os
20681
20682 # The build system.
20683 build_alias=$build_alias
20684 build=$build
20685 build_os=$build_os
20686
20687 # An echo program that does not interpret backslashes.
20688 echo=$lt_echo
20689
20690 # The archiver.
20691 AR=$lt_AR
20692 AR_FLAGS=$lt_AR_FLAGS
20693
20694 # A C compiler.
20695 LTCC=$lt_LTCC
20696
20697 # LTCC compiler flags.
20698 LTCFLAGS=$lt_LTCFLAGS
20699
20700 # A language-specific compiler.
20701 CC=$lt_compiler_CXX
20702
20703 # Is the compiler the GNU C compiler?
20704 with_gcc=$GCC_CXX
20705
20706 # An ERE matcher.
20707 EGREP=$lt_EGREP
20708
20709 # The linker used to build libraries.
20710 LD=$lt_LD_CXX
20711
20712 # Whether we need hard or soft links.
20713 LN_S=$lt_LN_S
20714
20715 # A BSD-compatible nm program.
20716 NM=$lt_NM
20717
20718 # A symbol stripping program
20719 STRIP=$lt_STRIP
20720
20721 # Used to examine libraries when file_magic_cmd begins "file"
20722 MAGIC_CMD=$MAGIC_CMD
20723
20724 # Used on cygwin: DLL creation program.
20725 DLLTOOL="$DLLTOOL"
20726
20727 # Used on cygwin: object dumper.
20728 OBJDUMP="$OBJDUMP"
20729
20730 # Used on cygwin: assembler.
20731 AS="$AS"
20732
20733 # The name of the directory that contains temporary libtool files.
20734 objdir=$objdir
20735
20736 # How to create reloadable object files.
20737 reload_flag=$lt_reload_flag
20738 reload_cmds=$lt_reload_cmds
20739
20740 # How to pass a linker flag through the compiler.
20741 wl=$lt_lt_prog_compiler_wl_CXX
20742
20743 # Object file suffix (normally "o").
20744 objext="$ac_objext"
20745
20746 # Old archive suffix (normally "a").
20747 libext="$libext"
20748
20749 # Shared library suffix (normally ".so").
20750 shrext_cmds='$shrext_cmds'
20751
20752 # Executable file suffix (normally "").
20753 exeext="$exeext"
20754
20755 # Additional compiler flags for building library objects.
20756 pic_flag=$lt_lt_prog_compiler_pic_CXX
20757 pic_mode=$pic_mode
20758
20759 # What is the maximum length of a command?
20760 max_cmd_len=$lt_cv_sys_max_cmd_len
20761
20762 # Does compiler simultaneously support -c and -o options?
20763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20764
20765 # Must we lock files when doing compilation?
20766 need_locks=$lt_need_locks
20767
20768 # Do we need the lib prefix for modules?
20769 need_lib_prefix=$need_lib_prefix
20770
20771 # Do we need a version for libraries?
20772 need_version=$need_version
20773
20774 # Whether dlopen is supported.
20775 dlopen_support=$enable_dlopen
20776
20777 # Whether dlopen of programs is supported.
20778 dlopen_self=$enable_dlopen_self
20779
20780 # Whether dlopen of statically linked programs is supported.
20781 dlopen_self_static=$enable_dlopen_self_static
20782
20783 # Compiler flag to prevent dynamic linking.
20784 link_static_flag=$lt_lt_prog_compiler_static_CXX
20785
20786 # Compiler flag to turn off builtin functions.
20787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20788
20789 # Compiler flag to allow reflexive dlopens.
20790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20791
20792 # Compiler flag to generate shared objects directly from archives.
20793 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20794
20795 # Compiler flag to generate thread-safe objects.
20796 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20797
20798 # Library versioning type.
20799 version_type=$version_type
20800
20801 # Format of library name prefix.
20802 libname_spec=$lt_libname_spec
20803
20804 # List of archive names.  First name is the real one, the rest are links.
20805 # The last name is the one that the linker finds with -lNAME.
20806 library_names_spec=$lt_library_names_spec
20807
20808 # The coded name of the library, if different from the real name.
20809 soname_spec=$lt_soname_spec
20810
20811 # Commands used to build and install an old-style archive.
20812 RANLIB=$lt_RANLIB
20813 old_archive_cmds=$lt_old_archive_cmds_CXX
20814 old_postinstall_cmds=$lt_old_postinstall_cmds
20815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20816
20817 # Create an old-style archive from a shared archive.
20818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20819
20820 # Create a temporary old-style archive to link instead of a shared archive.
20821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20822
20823 # Commands used to build and install a shared archive.
20824 archive_cmds=$lt_archive_cmds_CXX
20825 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20826 postinstall_cmds=$lt_postinstall_cmds
20827 postuninstall_cmds=$lt_postuninstall_cmds
20828
20829 # Commands used to build a loadable module (assumed same as above if empty)
20830 module_cmds=$lt_module_cmds_CXX
20831 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20832
20833 # Commands to strip libraries.
20834 old_striplib=$lt_old_striplib
20835 striplib=$lt_striplib
20836
20837 # Dependencies to place before the objects being linked to create a
20838 # shared library.
20839 predep_objects=$lt_predep_objects_CXX
20840
20841 # Dependencies to place after the objects being linked to create a
20842 # shared library.
20843 postdep_objects=$lt_postdep_objects_CXX
20844
20845 # Dependencies to place before the objects being linked to create a
20846 # shared library.
20847 predeps=$lt_predeps_CXX
20848
20849 # Dependencies to place after the objects being linked to create a
20850 # shared library.
20851 postdeps=$lt_postdeps_CXX
20852
20853 # The library search path used internally by the compiler when linking
20854 # a shared library.
20855 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20856
20857 # Method to check whether dependent libraries are shared objects.
20858 deplibs_check_method=$lt_deplibs_check_method
20859
20860 # Command to use when deplibs_check_method == file_magic.
20861 file_magic_cmd=$lt_file_magic_cmd
20862
20863 # Flag that allows shared libraries with undefined symbols to be built.
20864 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20865
20866 # Flag that forces no undefined symbols.
20867 no_undefined_flag=$lt_no_undefined_flag_CXX
20868
20869 # Commands used to finish a libtool library installation in a directory.
20870 finish_cmds=$lt_finish_cmds
20871
20872 # Same as above, but a single script fragment to be evaled but not shown.
20873 finish_eval=$lt_finish_eval
20874
20875 # Take the output of nm and produce a listing of raw symbols and C names.
20876 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20877
20878 # Transform the output of nm in a proper C declaration
20879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20880
20881 # Transform the output of nm in a C name address pair
20882 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20883
20884 # This is the shared library runtime path variable.
20885 runpath_var=$runpath_var
20886
20887 # This is the shared library path variable.
20888 shlibpath_var=$shlibpath_var
20889
20890 # Is shlibpath searched before the hard-coded library search path?
20891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20892
20893 # How to hardcode a shared library path into an executable.
20894 hardcode_action=$hardcode_action_CXX
20895
20896 # Whether we should hardcode library paths into libraries.
20897 hardcode_into_libs=$hardcode_into_libs
20898
20899 # Flag to hardcode \$libdir into a binary during linking.
20900 # This must work even if \$libdir does not exist.
20901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20902
20903 # If ld is used when linking, flag to hardcode \$libdir into
20904 # a binary during linking. This must work even if \$libdir does
20905 # not exist.
20906 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20907
20908 # Whether we need a single -rpath flag with a separated argument.
20909 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20910
20911 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20912 # resulting binary.
20913 hardcode_direct=$hardcode_direct_CXX
20914
20915 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20916 # resulting binary.
20917 hardcode_minus_L=$hardcode_minus_L_CXX
20918
20919 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20920 # the resulting binary.
20921 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20922
20923 # Set to yes if building a shared library automatically hardcodes DIR into the library
20924 # and all subsequent libraries and executables linked against it.
20925 hardcode_automatic=$hardcode_automatic_CXX
20926
20927 # Variables whose values should be saved in libtool wrapper scripts and
20928 # restored at relink time.
20929 variables_saved_for_relink="$variables_saved_for_relink"
20930
20931 # Whether libtool must link a program against all its dependency libraries.
20932 link_all_deplibs=$link_all_deplibs_CXX
20933
20934 # Compile-time system search path for libraries
20935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20936
20937 # Run-time system search path for libraries
20938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20939
20940 # Fix the shell variable \$srcfile for the compiler.
20941 fix_srcfile_path="$fix_srcfile_path_CXX"
20942
20943 # Set to yes if exported symbols are required.
20944 always_export_symbols=$always_export_symbols_CXX
20945
20946 # The commands to list exported symbols.
20947 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20948
20949 # The commands to extract the exported symbol list from a shared archive.
20950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20951
20952 # Symbols that should not be listed in the preloaded symbols.
20953 exclude_expsyms=$lt_exclude_expsyms_CXX
20954
20955 # Symbols that must always be exported.
20956 include_expsyms=$lt_include_expsyms_CXX
20957
20958 # ### END LIBTOOL TAG CONFIG: $tagname
20959
20960 __EOF__
20961
20962
20963 else
20964   # If there is no Makefile yet, we rely on a make rule to execute
20965   # `config.status --recheck' to rerun these tests and create the
20966   # libtool script then.
20967   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20968   if test -f "$ltmain_in"; then
20969     test -f Makefile && make "$ltmain"
20970   fi
20971 fi
20972
20973
20974 ac_ext=c
20975 ac_cpp='$CPP $CPPFLAGS'
20976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20979
20980 CC=$lt_save_CC
20981 LDCXX=$LD
20982 LD=$lt_save_LD
20983 GCC=$lt_save_GCC
20984 with_gnu_ldcxx=$with_gnu_ld
20985 with_gnu_ld=$lt_save_with_gnu_ld
20986 lt_cv_path_LDCXX=$lt_cv_path_LD
20987 lt_cv_path_LD=$lt_save_path_LD
20988 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20989 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20990
20991         else
20992           tagname=""
20993         fi
20994         ;;
20995
20996       F77)
20997         if test -n "$F77" && test "X$F77" != "Xno"; then
20998
20999 ac_ext=f
21000 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21001 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21003
21004
21005 archive_cmds_need_lc_F77=no
21006 allow_undefined_flag_F77=
21007 always_export_symbols_F77=no
21008 archive_expsym_cmds_F77=
21009 export_dynamic_flag_spec_F77=
21010 hardcode_direct_F77=no
21011 hardcode_libdir_flag_spec_F77=
21012 hardcode_libdir_flag_spec_ld_F77=
21013 hardcode_libdir_separator_F77=
21014 hardcode_minus_L_F77=no
21015 hardcode_automatic_F77=no
21016 module_cmds_F77=
21017 module_expsym_cmds_F77=
21018 link_all_deplibs_F77=unknown
21019 old_archive_cmds_F77=$old_archive_cmds
21020 no_undefined_flag_F77=
21021 whole_archive_flag_spec_F77=
21022 enable_shared_with_static_runtimes_F77=no
21023
21024 # Source file extension for f77 test sources.
21025 ac_ext=f
21026
21027 # Object file extension for compiled f77 test sources.
21028 objext=o
21029 objext_F77=$objext
21030
21031 # Code to be used in simple compile tests
21032 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21033
21034 # Code to be used in simple link tests
21035 lt_simple_link_test_code="      program t\n      end\n"
21036
21037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21038
21039 # If no C compiler was specified, use CC.
21040 LTCC=${LTCC-"$CC"}
21041
21042 # If no C compiler flags were specified, use CFLAGS.
21043 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21044
21045 # Allow CC to be a program name with arguments.
21046 compiler=$CC
21047
21048
21049 # save warnings/boilerplate of simple test code
21050 ac_outfile=conftest.$ac_objext
21051 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21053 _lt_compiler_boilerplate=`cat conftest.err`
21054 $rm conftest*
21055
21056 ac_outfile=conftest.$ac_objext
21057 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21058 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21059 _lt_linker_boilerplate=`cat conftest.err`
21060 $rm conftest*
21061
21062
21063 # Allow CC to be a program name with arguments.
21064 lt_save_CC="$CC"
21065 CC=${F77-"f77"}
21066 compiler=$CC
21067 compiler_F77=$CC
21068 for cc_temp in $compiler""; do
21069   case $cc_temp in
21070     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21071     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21072     \-*) ;;
21073     *) break;;
21074   esac
21075 done
21076 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21077
21078
21079 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21080 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21081 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21082 echo "${ECHO_T}$can_build_shared" >&6; }
21083
21084 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21085 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21086 test "$can_build_shared" = "no" && enable_shared=no
21087
21088 # On AIX, shared libraries and static libraries use the same namespace, and
21089 # are all built from PIC.
21090 case $host_os in
21091 aix3*)
21092   test "$enable_shared" = yes && enable_static=no
21093   if test -n "$RANLIB"; then
21094     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21095     postinstall_cmds='$RANLIB $lib'
21096   fi
21097   ;;
21098 aix4* | aix5*)
21099   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21100     test "$enable_shared" = yes && enable_static=no
21101   fi
21102   ;;
21103 esac
21104 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21105 echo "${ECHO_T}$enable_shared" >&6; }
21106
21107 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21108 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21109 # Make sure either enable_shared or enable_static is yes.
21110 test "$enable_shared" = yes || enable_static=yes
21111 { echo "$as_me:$LINENO: result: $enable_static" >&5
21112 echo "${ECHO_T}$enable_static" >&6; }
21113
21114 GCC_F77="$G77"
21115 LD_F77="$LD"
21116
21117 lt_prog_compiler_wl_F77=
21118 lt_prog_compiler_pic_F77=
21119 lt_prog_compiler_static_F77=
21120
21121 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21122 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21123
21124   if test "$GCC" = yes; then
21125     lt_prog_compiler_wl_F77='-Wl,'
21126     lt_prog_compiler_static_F77='-static'
21127
21128     case $host_os in
21129       aix*)
21130       # All AIX code is PIC.
21131       if test "$host_cpu" = ia64; then
21132         # AIX 5 now supports IA64 processor
21133         lt_prog_compiler_static_F77='-Bstatic'
21134       fi
21135       ;;
21136
21137     amigaos*)
21138       # FIXME: we need at least 68020 code to build shared libraries, but
21139       # adding the `-m68020' flag to GCC prevents building anything better,
21140       # like `-m68040'.
21141       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21142       ;;
21143
21144     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21145       # PIC is the default for these OSes.
21146       ;;
21147
21148     mingw* | pw32* | os2*)
21149       # This hack is so that the source file can tell whether it is being
21150       # built for inclusion in a dll (and should export symbols for example).
21151       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21152       ;;
21153
21154     darwin* | rhapsody*)
21155       # PIC is the default on this platform
21156       # Common symbols not allowed in MH_DYLIB files
21157       lt_prog_compiler_pic_F77='-fno-common'
21158       ;;
21159
21160     interix3*)
21161       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21162       # Instead, we relocate shared libraries at runtime.
21163       ;;
21164
21165     msdosdjgpp*)
21166       # Just because we use GCC doesn't mean we suddenly get shared libraries
21167       # on systems that don't support them.
21168       lt_prog_compiler_can_build_shared_F77=no
21169       enable_shared=no
21170       ;;
21171
21172     sysv4*MP*)
21173       if test -d /usr/nec; then
21174         lt_prog_compiler_pic_F77=-Kconform_pic
21175       fi
21176       ;;
21177
21178     hpux*)
21179       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21180       # not for PA HP-UX.
21181       case $host_cpu in
21182       hppa*64*|ia64*)
21183         # +Z the default
21184         ;;
21185       *)
21186         lt_prog_compiler_pic_F77='-fPIC'
21187         ;;
21188       esac
21189       ;;
21190
21191     *)
21192       lt_prog_compiler_pic_F77='-fPIC'
21193       ;;
21194     esac
21195   else
21196     # PORTME Check for flag to pass linker flags through the system compiler.
21197     case $host_os in
21198     aix*)
21199       lt_prog_compiler_wl_F77='-Wl,'
21200       if test "$host_cpu" = ia64; then
21201         # AIX 5 now supports IA64 processor
21202         lt_prog_compiler_static_F77='-Bstatic'
21203       else
21204         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21205       fi
21206       ;;
21207       darwin*)
21208         # PIC is the default on this platform
21209         # Common symbols not allowed in MH_DYLIB files
21210        case $cc_basename in
21211          xlc*)
21212          lt_prog_compiler_pic_F77='-qnocommon'
21213          lt_prog_compiler_wl_F77='-Wl,'
21214          ;;
21215        esac
21216        ;;
21217
21218     mingw* | pw32* | os2*)
21219       # This hack is so that the source file can tell whether it is being
21220       # built for inclusion in a dll (and should export symbols for example).
21221       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21222       ;;
21223
21224     hpux9* | hpux10* | hpux11*)
21225       lt_prog_compiler_wl_F77='-Wl,'
21226       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21227       # not for PA HP-UX.
21228       case $host_cpu in
21229       hppa*64*|ia64*)
21230         # +Z the default
21231         ;;
21232       *)
21233         lt_prog_compiler_pic_F77='+Z'
21234         ;;
21235       esac
21236       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21237       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21238       ;;
21239
21240     irix5* | irix6* | nonstopux*)
21241       lt_prog_compiler_wl_F77='-Wl,'
21242       # PIC (with -KPIC) is the default.
21243       lt_prog_compiler_static_F77='-non_shared'
21244       ;;
21245
21246     newsos6)
21247       lt_prog_compiler_pic_F77='-KPIC'
21248       lt_prog_compiler_static_F77='-Bstatic'
21249       ;;
21250
21251     linux*)
21252       case $cc_basename in
21253       icc* | ecc*)
21254         lt_prog_compiler_wl_F77='-Wl,'
21255         lt_prog_compiler_pic_F77='-KPIC'
21256         lt_prog_compiler_static_F77='-static'
21257         ;;
21258       pgcc* | pgf77* | pgf90* | pgf95*)
21259         # Portland Group compilers (*not* the Pentium gcc compiler,
21260         # which looks to be a dead project)
21261         lt_prog_compiler_wl_F77='-Wl,'
21262         lt_prog_compiler_pic_F77='-fpic'
21263         lt_prog_compiler_static_F77='-Bstatic'
21264         ;;
21265       ccc*)
21266         lt_prog_compiler_wl_F77='-Wl,'
21267         # All Alpha code is PIC.
21268         lt_prog_compiler_static_F77='-non_shared'
21269         ;;
21270       esac
21271       ;;
21272
21273     osf3* | osf4* | osf5*)
21274       lt_prog_compiler_wl_F77='-Wl,'
21275       # All OSF/1 code is PIC.
21276       lt_prog_compiler_static_F77='-non_shared'
21277       ;;
21278
21279     solaris*)
21280       lt_prog_compiler_pic_F77='-KPIC'
21281       lt_prog_compiler_static_F77='-Bstatic'
21282       case $cc_basename in
21283       f77* | f90* | f95*)
21284         lt_prog_compiler_wl_F77='-Qoption ld ';;
21285       *)
21286         lt_prog_compiler_wl_F77='-Wl,';;
21287       esac
21288       ;;
21289
21290     sunos4*)
21291       lt_prog_compiler_wl_F77='-Qoption ld '
21292       lt_prog_compiler_pic_F77='-PIC'
21293       lt_prog_compiler_static_F77='-Bstatic'
21294       ;;
21295
21296     sysv4 | sysv4.2uw2* | sysv4.3*)
21297       lt_prog_compiler_wl_F77='-Wl,'
21298       lt_prog_compiler_pic_F77='-KPIC'
21299       lt_prog_compiler_static_F77='-Bstatic'
21300       ;;
21301
21302     sysv4*MP*)
21303       if test -d /usr/nec ;then
21304         lt_prog_compiler_pic_F77='-Kconform_pic'
21305         lt_prog_compiler_static_F77='-Bstatic'
21306       fi
21307       ;;
21308
21309     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21310       lt_prog_compiler_wl_F77='-Wl,'
21311       lt_prog_compiler_pic_F77='-KPIC'
21312       lt_prog_compiler_static_F77='-Bstatic'
21313       ;;
21314
21315     unicos*)
21316       lt_prog_compiler_wl_F77='-Wl,'
21317       lt_prog_compiler_can_build_shared_F77=no
21318       ;;
21319
21320     uts4*)
21321       lt_prog_compiler_pic_F77='-pic'
21322       lt_prog_compiler_static_F77='-Bstatic'
21323       ;;
21324
21325     *)
21326       lt_prog_compiler_can_build_shared_F77=no
21327       ;;
21328     esac
21329   fi
21330
21331 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21332 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21333
21334 #
21335 # Check to make sure the PIC flag actually works.
21336 #
21337 if test -n "$lt_prog_compiler_pic_F77"; then
21338
21339 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21340 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21341 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21342   echo $ECHO_N "(cached) $ECHO_C" >&6
21343 else
21344   lt_prog_compiler_pic_works_F77=no
21345   ac_outfile=conftest.$ac_objext
21346    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21347    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21348    # Insert the option either (1) after the last *FLAGS variable, or
21349    # (2) before a word containing "conftest.", or (3) at the end.
21350    # Note that $ac_compile itself does not contain backslashes and begins
21351    # with a dollar sign (not a hyphen), so the echo should work correctly.
21352    # The option is referenced via a variable to avoid confusing sed.
21353    lt_compile=`echo "$ac_compile" | $SED \
21354    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21356    -e 's:$: $lt_compiler_flag:'`
21357    (eval echo "\"\$as_me:21357: $lt_compile\"" >&5)
21358    (eval "$lt_compile" 2>conftest.err)
21359    ac_status=$?
21360    cat conftest.err >&5
21361    echo "$as_me:21361: \$? = $ac_status" >&5
21362    if (exit $ac_status) && test -s "$ac_outfile"; then
21363      # The compiler can only warn and ignore the option if not recognized
21364      # So say no if there are warnings other than the usual output.
21365      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21366      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21367      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21368        lt_prog_compiler_pic_works_F77=yes
21369      fi
21370    fi
21371    $rm conftest*
21372
21373 fi
21374 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21375 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21376
21377 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21378     case $lt_prog_compiler_pic_F77 in
21379      "" | " "*) ;;
21380      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21381      esac
21382 else
21383     lt_prog_compiler_pic_F77=
21384      lt_prog_compiler_can_build_shared_F77=no
21385 fi
21386
21387 fi
21388 case $host_os in
21389   # For platforms which do not support PIC, -DPIC is meaningless:
21390   *djgpp*)
21391     lt_prog_compiler_pic_F77=
21392     ;;
21393   *)
21394     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21395     ;;
21396 esac
21397
21398 #
21399 # Check to make sure the static flag actually works.
21400 #
21401 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21402 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21403 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21404 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21405   echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407   lt_prog_compiler_static_works_F77=no
21408    save_LDFLAGS="$LDFLAGS"
21409    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21410    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21411    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21412      # The linker can only warn and ignore the option if not recognized
21413      # So say no if there are warnings
21414      if test -s conftest.err; then
21415        # Append any errors to the config.log.
21416        cat conftest.err 1>&5
21417        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21418        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21419        if diff conftest.exp conftest.er2 >/dev/null; then
21420          lt_prog_compiler_static_works_F77=yes
21421        fi
21422      else
21423        lt_prog_compiler_static_works_F77=yes
21424      fi
21425    fi
21426    $rm conftest*
21427    LDFLAGS="$save_LDFLAGS"
21428
21429 fi
21430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21431 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21432
21433 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21434     :
21435 else
21436     lt_prog_compiler_static_F77=
21437 fi
21438
21439
21440 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21441 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21442 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21443   echo $ECHO_N "(cached) $ECHO_C" >&6
21444 else
21445   lt_cv_prog_compiler_c_o_F77=no
21446    $rm -r conftest 2>/dev/null
21447    mkdir conftest
21448    cd conftest
21449    mkdir out
21450    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21451
21452    lt_compiler_flag="-o out/conftest2.$ac_objext"
21453    # Insert the option either (1) after the last *FLAGS variable, or
21454    # (2) before a word containing "conftest.", or (3) at the end.
21455    # Note that $ac_compile itself does not contain backslashes and begins
21456    # with a dollar sign (not a hyphen), so the echo should work correctly.
21457    lt_compile=`echo "$ac_compile" | $SED \
21458    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21459    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21460    -e 's:$: $lt_compiler_flag:'`
21461    (eval echo "\"\$as_me:21461: $lt_compile\"" >&5)
21462    (eval "$lt_compile" 2>out/conftest.err)
21463    ac_status=$?
21464    cat out/conftest.err >&5
21465    echo "$as_me:21465: \$? = $ac_status" >&5
21466    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21467    then
21468      # The compiler can only warn and ignore the option if not recognized
21469      # So say no if there are warnings
21470      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21471      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21472      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21473        lt_cv_prog_compiler_c_o_F77=yes
21474      fi
21475    fi
21476    chmod u+w . 2>&5
21477    $rm conftest*
21478    # SGI C++ compiler will create directory out/ii_files/ for
21479    # template instantiation
21480    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21481    $rm out/* && rmdir out
21482    cd ..
21483    rmdir conftest
21484    $rm conftest*
21485
21486 fi
21487 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21488 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21489
21490
21491 hard_links="nottested"
21492 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21493   # do not overwrite the value of need_locks provided by the user
21494   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21495 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21496   hard_links=yes
21497   $rm conftest*
21498   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21499   touch conftest.a
21500   ln conftest.a conftest.b 2>&5 || hard_links=no
21501   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21502   { echo "$as_me:$LINENO: result: $hard_links" >&5
21503 echo "${ECHO_T}$hard_links" >&6; }
21504   if test "$hard_links" = no; then
21505     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21506 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21507     need_locks=warn
21508   fi
21509 else
21510   need_locks=no
21511 fi
21512
21513 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21514 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21515
21516   runpath_var=
21517   allow_undefined_flag_F77=
21518   enable_shared_with_static_runtimes_F77=no
21519   archive_cmds_F77=
21520   archive_expsym_cmds_F77=
21521   old_archive_From_new_cmds_F77=
21522   old_archive_from_expsyms_cmds_F77=
21523   export_dynamic_flag_spec_F77=
21524   whole_archive_flag_spec_F77=
21525   thread_safe_flag_spec_F77=
21526   hardcode_libdir_flag_spec_F77=
21527   hardcode_libdir_flag_spec_ld_F77=
21528   hardcode_libdir_separator_F77=
21529   hardcode_direct_F77=no
21530   hardcode_minus_L_F77=no
21531   hardcode_shlibpath_var_F77=unsupported
21532   link_all_deplibs_F77=unknown
21533   hardcode_automatic_F77=no
21534   module_cmds_F77=
21535   module_expsym_cmds_F77=
21536   always_export_symbols_F77=no
21537   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21538   # include_expsyms should be a list of space-separated symbols to be *always*
21539   # included in the symbol list
21540   include_expsyms_F77=
21541   # exclude_expsyms can be an extended regexp of symbols to exclude
21542   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21543   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21544   # as well as any symbol that contains `d'.
21545   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21546   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21547   # platforms (ab)use it in PIC code, but their linkers get confused if
21548   # the symbol is explicitly referenced.  Since portable code cannot
21549   # rely on this symbol name, it's probably fine to never include it in
21550   # preloaded symbol tables.
21551   extract_expsyms_cmds=
21552   # Just being paranoid about ensuring that cc_basename is set.
21553   for cc_temp in $compiler""; do
21554   case $cc_temp in
21555     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21556     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21557     \-*) ;;
21558     *) break;;
21559   esac
21560 done
21561 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21562
21563   case $host_os in
21564   cygwin* | mingw* | pw32*)
21565     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21566     # When not using gcc, we currently assume that we are using
21567     # Microsoft Visual C++.
21568     if test "$GCC" != yes; then
21569       with_gnu_ld=no
21570     fi
21571     ;;
21572   interix*)
21573     # we just hope/assume this is gcc and not c89 (= MSVC++)
21574     with_gnu_ld=yes
21575     ;;
21576   openbsd*)
21577     with_gnu_ld=no
21578     ;;
21579   esac
21580
21581   ld_shlibs_F77=yes
21582   if test "$with_gnu_ld" = yes; then
21583     # If archive_cmds runs LD, not CC, wlarc should be empty
21584     wlarc='${wl}'
21585
21586     # Set some defaults for GNU ld with shared library support. These
21587     # are reset later if shared libraries are not supported. Putting them
21588     # here allows them to be overridden if necessary.
21589     runpath_var=LD_RUN_PATH
21590     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21591     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21592     # ancient GNU ld didn't support --whole-archive et. al.
21593     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21594         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21595       else
21596         whole_archive_flag_spec_F77=
21597     fi
21598     supports_anon_versioning=no
21599     case `$LD -v 2>/dev/null` in
21600       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21601       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21602       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21603       *\ 2.11.*) ;; # other 2.11 versions
21604       *) supports_anon_versioning=yes ;;
21605     esac
21606
21607     # See if GNU ld supports shared libraries.
21608     case $host_os in
21609     aix3* | aix4* | aix5*)
21610       # On AIX/PPC, the GNU linker is very broken
21611       if test "$host_cpu" != ia64; then
21612         ld_shlibs_F77=no
21613         cat <<EOF 1>&2
21614
21615 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21616 *** to be unable to reliably create shared libraries on AIX.
21617 *** Therefore, libtool is disabling shared libraries support.  If you
21618 *** really care for shared libraries, you may want to modify your PATH
21619 *** so that a non-GNU linker is found, and then restart.
21620
21621 EOF
21622       fi
21623       ;;
21624
21625     amigaos*)
21626       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)'
21627       hardcode_libdir_flag_spec_F77='-L$libdir'
21628       hardcode_minus_L_F77=yes
21629
21630       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21631       # that the semantics of dynamic libraries on AmigaOS, at least up
21632       # to version 4, is to share data among multiple programs linked
21633       # with the same dynamic library.  Since this doesn't match the
21634       # behavior of shared libraries on other platforms, we can't use
21635       # them.
21636       ld_shlibs_F77=no
21637       ;;
21638
21639     beos*)
21640       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21641         allow_undefined_flag_F77=unsupported
21642         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21643         # support --undefined.  This deserves some investigation.  FIXME
21644         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21645       else
21646         ld_shlibs_F77=no
21647       fi
21648       ;;
21649
21650     cygwin* | mingw* | pw32*)
21651       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21652       # as there is no search path for DLLs.
21653       hardcode_libdir_flag_spec_F77='-L$libdir'
21654       allow_undefined_flag_F77=unsupported
21655       always_export_symbols_F77=no
21656       enable_shared_with_static_runtimes_F77=yes
21657       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21658
21659       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21660         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21661         # If the export-symbols file already is a .def file (1st line
21662         # is EXPORTS), use it as is; otherwise, prepend...
21663         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21664           cp $export_symbols $output_objdir/$soname.def;
21665         else
21666           echo EXPORTS > $output_objdir/$soname.def;
21667           cat $export_symbols >> $output_objdir/$soname.def;
21668         fi~
21669         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21670       else
21671         ld_shlibs_F77=no
21672       fi
21673       ;;
21674
21675     interix3*)
21676       hardcode_direct_F77=no
21677       hardcode_shlibpath_var_F77=no
21678       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21679       export_dynamic_flag_spec_F77='${wl}-E'
21680       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21681       # Instead, shared libraries are loaded at an image base (0x10000000 by
21682       # default) and relocated if they conflict, which is a slow very memory
21683       # consuming and fragmenting process.  To avoid this, we pick a random,
21684       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21685       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21686       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'
21687       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'
21688       ;;
21689
21690     linux*)
21691       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21692         tmp_addflag=
21693         case $cc_basename,$host_cpu in
21694         pgcc*)                          # Portland Group C compiler
21695           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'
21696           tmp_addflag=' $pic_flag'
21697           ;;
21698         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21699           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'
21700           tmp_addflag=' $pic_flag -Mnomain' ;;
21701         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21702           tmp_addflag=' -i_dynamic' ;;
21703         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21704           tmp_addflag=' -i_dynamic -nofor_main' ;;
21705         ifc* | ifort*)                  # Intel Fortran compiler
21706           tmp_addflag=' -nofor_main' ;;
21707         esac
21708         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21709
21710         if test $supports_anon_versioning = yes; then
21711           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21712   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21713   $echo "local: *; };" >> $output_objdir/$libname.ver~
21714           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21715         fi
21716       else
21717         ld_shlibs_F77=no
21718       fi
21719       ;;
21720
21721     netbsd*)
21722       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21723         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21724         wlarc=
21725       else
21726         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21727         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21728       fi
21729       ;;
21730
21731     solaris*)
21732       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21733         ld_shlibs_F77=no
21734         cat <<EOF 1>&2
21735
21736 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21737 *** create shared libraries on Solaris systems.  Therefore, libtool
21738 *** is disabling shared libraries support.  We urge you to upgrade GNU
21739 *** binutils to release 2.9.1 or newer.  Another option is to modify
21740 *** your PATH or compiler configuration so that the native linker is
21741 *** used, and then restart.
21742
21743 EOF
21744       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21745         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21746         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21747       else
21748         ld_shlibs_F77=no
21749       fi
21750       ;;
21751
21752     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21753       case `$LD -v 2>&1` in
21754         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21755         ld_shlibs_F77=no
21756         cat <<_LT_EOF 1>&2
21757
21758 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21759 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21760 *** is disabling shared libraries support.  We urge you to upgrade GNU
21761 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21762 *** your PATH or compiler configuration so that the native linker is
21763 *** used, and then restart.
21764
21765 _LT_EOF
21766         ;;
21767         *)
21768           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21769             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21770             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21771             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21772           else
21773             ld_shlibs_F77=no
21774           fi
21775         ;;
21776       esac
21777       ;;
21778
21779     sunos4*)
21780       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21781       wlarc=
21782       hardcode_direct_F77=yes
21783       hardcode_shlibpath_var_F77=no
21784       ;;
21785
21786     *)
21787       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21788         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21789         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21790       else
21791         ld_shlibs_F77=no
21792       fi
21793       ;;
21794     esac
21795
21796     if test "$ld_shlibs_F77" = no; then
21797       runpath_var=
21798       hardcode_libdir_flag_spec_F77=
21799       export_dynamic_flag_spec_F77=
21800       whole_archive_flag_spec_F77=
21801     fi
21802   else
21803     # PORTME fill in a description of your system's linker (not GNU ld)
21804     case $host_os in
21805     aix3*)
21806       allow_undefined_flag_F77=unsupported
21807       always_export_symbols_F77=yes
21808       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'
21809       # Note: this linker hardcodes the directories in LIBPATH if there
21810       # are no directories specified by -L.
21811       hardcode_minus_L_F77=yes
21812       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21813         # Neither direct hardcoding nor static linking is supported with a
21814         # broken collect2.
21815         hardcode_direct_F77=unsupported
21816       fi
21817       ;;
21818
21819     aix4* | aix5*)
21820       if test "$host_cpu" = ia64; then
21821         # On IA64, the linker does run time linking by default, so we don't
21822         # have to do anything special.
21823         aix_use_runtimelinking=no
21824         exp_sym_flag='-Bexport'
21825         no_entry_flag=""
21826       else
21827         # If we're using GNU nm, then we don't want the "-C" option.
21828         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21829         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21830           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'
21831         else
21832           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'
21833         fi
21834         aix_use_runtimelinking=no
21835
21836         # Test if we are trying to use run time linking or normal
21837         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21838         # need to do runtime linking.
21839         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21840           for ld_flag in $LDFLAGS; do
21841           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21842             aix_use_runtimelinking=yes
21843             break
21844           fi
21845           done
21846           ;;
21847         esac
21848
21849         exp_sym_flag='-bexport'
21850         no_entry_flag='-bnoentry'
21851       fi
21852
21853       # When large executables or shared objects are built, AIX ld can
21854       # have problems creating the table of contents.  If linking a library
21855       # or program results in "error TOC overflow" add -mminimal-toc to
21856       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21857       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21858
21859       archive_cmds_F77=''
21860       hardcode_direct_F77=yes
21861       hardcode_libdir_separator_F77=':'
21862       link_all_deplibs_F77=yes
21863
21864       if test "$GCC" = yes; then
21865         case $host_os in aix4.[012]|aix4.[012].*)
21866         # We only want to do this on AIX 4.2 and lower, the check
21867         # below for broken collect2 doesn't work under 4.3+
21868           collect2name=`${CC} -print-prog-name=collect2`
21869           if test -f "$collect2name" && \
21870            strings "$collect2name" | grep resolve_lib_name >/dev/null
21871           then
21872           # We have reworked collect2
21873           hardcode_direct_F77=yes
21874           else
21875           # We have old collect2
21876           hardcode_direct_F77=unsupported
21877           # It fails to find uninstalled libraries when the uninstalled
21878           # path is not listed in the libpath.  Setting hardcode_minus_L
21879           # to unsupported forces relinking
21880           hardcode_minus_L_F77=yes
21881           hardcode_libdir_flag_spec_F77='-L$libdir'
21882           hardcode_libdir_separator_F77=
21883           fi
21884           ;;
21885         esac
21886         shared_flag='-shared'
21887         if test "$aix_use_runtimelinking" = yes; then
21888           shared_flag="$shared_flag "'${wl}-G'
21889         fi
21890       else
21891         # not using gcc
21892         if test "$host_cpu" = ia64; then
21893         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21894         # chokes on -Wl,-G. The following line is correct:
21895           shared_flag='-G'
21896         else
21897           if test "$aix_use_runtimelinking" = yes; then
21898             shared_flag='${wl}-G'
21899           else
21900             shared_flag='${wl}-bM:SRE'
21901           fi
21902         fi
21903       fi
21904
21905       # It seems that -bexpall does not export symbols beginning with
21906       # underscore (_), so it is better to generate a list of symbols to export.
21907       always_export_symbols_F77=yes
21908       if test "$aix_use_runtimelinking" = yes; then
21909         # Warning - without using the other runtime loading flags (-brtl),
21910         # -berok will link without error, but may produce a broken library.
21911         allow_undefined_flag_F77='-berok'
21912        # Determine the default libpath from the value encoded in an empty executable.
21913        cat >conftest.$ac_ext <<_ACEOF
21914       program main
21915
21916       end
21917 _ACEOF
21918 rm -f conftest.$ac_objext conftest$ac_exeext
21919 if { (ac_try="$ac_link"
21920 case "(($ac_try" in
21921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922   *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925   (eval "$ac_link") 2>conftest.er1
21926   ac_status=$?
21927   grep -v '^ *+' conftest.er1 >conftest.err
21928   rm -f conftest.er1
21929   cat conftest.err >&5
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); } &&
21932          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21933   { (case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938   (eval "$ac_try") 2>&5
21939   ac_status=$?
21940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941   (exit $ac_status); }; } &&
21942          { ac_try='test -s conftest$ac_exeext'
21943   { (case "(($ac_try" in
21944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945   *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948   (eval "$ac_try") 2>&5
21949   ac_status=$?
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); }; }; then
21952
21953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21954 }'`
21955 # Check for a 64-bit object if we didn't find anything.
21956 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; }
21957 }'`; fi
21958 else
21959   echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962
21963 fi
21964
21965 rm -f core conftest.err conftest.$ac_objext \
21966       conftest$ac_exeext conftest.$ac_ext
21967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21968
21969        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21970         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"
21971        else
21972         if test "$host_cpu" = ia64; then
21973           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21974           allow_undefined_flag_F77="-z nodefs"
21975           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"
21976         else
21977          # Determine the default libpath from the value encoded in an empty executable.
21978          cat >conftest.$ac_ext <<_ACEOF
21979       program main
21980
21981       end
21982 _ACEOF
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (ac_try="$ac_link"
21985 case "(($ac_try" in
21986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987   *) ac_try_echo=$ac_try;;
21988 esac
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990   (eval "$ac_link") 2>conftest.er1
21991   ac_status=$?
21992   grep -v '^ *+' conftest.er1 >conftest.err
21993   rm -f conftest.er1
21994   cat conftest.err >&5
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); } &&
21997          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21998   { (case "(($ac_try" in
21999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000   *) ac_try_echo=$ac_try;;
22001 esac
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003   (eval "$ac_try") 2>&5
22004   ac_status=$?
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); }; } &&
22007          { ac_try='test -s conftest$ac_exeext'
22008   { (case "(($ac_try" in
22009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010   *) ac_try_echo=$ac_try;;
22011 esac
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013   (eval "$ac_try") 2>&5
22014   ac_status=$?
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); }; }; then
22017
22018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22019 }'`
22020 # Check for a 64-bit object if we didn't find anything.
22021 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; }
22022 }'`; fi
22023 else
22024   echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22026
22027
22028 fi
22029
22030 rm -f core conftest.err conftest.$ac_objext \
22031       conftest$ac_exeext conftest.$ac_ext
22032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22033
22034          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22035           # Warning - without using the other run time loading flags,
22036           # -berok will link without error, but may produce a broken library.
22037           no_undefined_flag_F77=' ${wl}-bernotok'
22038           allow_undefined_flag_F77=' ${wl}-berok'
22039           # Exported symbols can be pulled into shared objects from archives
22040           whole_archive_flag_spec_F77='$convenience'
22041           archive_cmds_need_lc_F77=yes
22042           # This is similar to how AIX traditionally builds its shared libraries.
22043           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'
22044         fi
22045       fi
22046       ;;
22047
22048     amigaos*)
22049       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)'
22050       hardcode_libdir_flag_spec_F77='-L$libdir'
22051       hardcode_minus_L_F77=yes
22052       # see comment about different semantics on the GNU ld section
22053       ld_shlibs_F77=no
22054       ;;
22055
22056     bsdi[45]*)
22057       export_dynamic_flag_spec_F77=-rdynamic
22058       ;;
22059
22060     cygwin* | mingw* | pw32*)
22061       # When not using gcc, we currently assume that we are using
22062       # Microsoft Visual C++.
22063       # hardcode_libdir_flag_spec is actually meaningless, as there is
22064       # no search path for DLLs.
22065       hardcode_libdir_flag_spec_F77=' '
22066       allow_undefined_flag_F77=unsupported
22067       # Tell ltmain to make .lib files, not .a files.
22068       libext=lib
22069       # Tell ltmain to make .dll files, not .so files.
22070       shrext_cmds=".dll"
22071       # FIXME: Setting linknames here is a bad hack.
22072       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22073       # The linker will automatically build a .lib file if we build a DLL.
22074       old_archive_From_new_cmds_F77='true'
22075       # FIXME: Should let the user specify the lib program.
22076       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22077       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22078       enable_shared_with_static_runtimes_F77=yes
22079       ;;
22080
22081     darwin* | rhapsody*)
22082       case $host_os in
22083         rhapsody* | darwin1.[012])
22084          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22085          ;;
22086        *) # Darwin 1.3 on
22087          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22088            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22089          else
22090            case ${MACOSX_DEPLOYMENT_TARGET} in
22091              10.[012])
22092                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22093                ;;
22094              10.*)
22095                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22096                ;;
22097            esac
22098          fi
22099          ;;
22100       esac
22101       archive_cmds_need_lc_F77=no
22102       hardcode_direct_F77=no
22103       hardcode_automatic_F77=yes
22104       hardcode_shlibpath_var_F77=unsupported
22105       whole_archive_flag_spec_F77=''
22106       link_all_deplibs_F77=yes
22107     if test "$GCC" = yes ; then
22108         output_verbose_link_cmd='echo'
22109         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22110       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22111       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22112       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}'
22113       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}'
22114     else
22115       case $cc_basename in
22116         xlc*)
22117          output_verbose_link_cmd='echo'
22118          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22119          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22120           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22121          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}'
22122           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}'
22123           ;;
22124        *)
22125          ld_shlibs_F77=no
22126           ;;
22127       esac
22128     fi
22129       ;;
22130
22131     dgux*)
22132       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22133       hardcode_libdir_flag_spec_F77='-L$libdir'
22134       hardcode_shlibpath_var_F77=no
22135       ;;
22136
22137     freebsd1*)
22138       ld_shlibs_F77=no
22139       ;;
22140
22141     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22142     # support.  Future versions do this automatically, but an explicit c++rt0.o
22143     # does not break anything, and helps significantly (at the cost of a little
22144     # extra space).
22145     freebsd2.2*)
22146       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22147       hardcode_libdir_flag_spec_F77='-R$libdir'
22148       hardcode_direct_F77=yes
22149       hardcode_shlibpath_var_F77=no
22150       ;;
22151
22152     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22153     freebsd2*)
22154       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22155       hardcode_direct_F77=yes
22156       hardcode_minus_L_F77=yes
22157       hardcode_shlibpath_var_F77=no
22158       ;;
22159
22160     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22161     freebsd* | kfreebsd*-gnu | dragonfly*)
22162       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22163       hardcode_libdir_flag_spec_F77='-R$libdir'
22164       hardcode_direct_F77=yes
22165       hardcode_shlibpath_var_F77=no
22166       ;;
22167
22168     hpux9*)
22169       if test "$GCC" = yes; then
22170         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'
22171       else
22172         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'
22173       fi
22174       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22175       hardcode_libdir_separator_F77=:
22176       hardcode_direct_F77=yes
22177
22178       # hardcode_minus_L: Not really in the search PATH,
22179       # but as the default location of the library.
22180       hardcode_minus_L_F77=yes
22181       export_dynamic_flag_spec_F77='${wl}-E'
22182       ;;
22183
22184     hpux10*)
22185       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22186         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22187       else
22188         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22189       fi
22190       if test "$with_gnu_ld" = no; then
22191         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22192         hardcode_libdir_separator_F77=:
22193
22194         hardcode_direct_F77=yes
22195         export_dynamic_flag_spec_F77='${wl}-E'
22196
22197         # hardcode_minus_L: Not really in the search PATH,
22198         # but as the default location of the library.
22199         hardcode_minus_L_F77=yes
22200       fi
22201       ;;
22202
22203     hpux11*)
22204       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22205         case $host_cpu in
22206         hppa*64*)
22207           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22208           ;;
22209         ia64*)
22210           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22211           ;;
22212         *)
22213           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22214           ;;
22215         esac
22216       else
22217         case $host_cpu in
22218         hppa*64*)
22219           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22220           ;;
22221         ia64*)
22222           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22223           ;;
22224         *)
22225           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22226           ;;
22227         esac
22228       fi
22229       if test "$with_gnu_ld" = no; then
22230         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22231         hardcode_libdir_separator_F77=:
22232
22233         case $host_cpu in
22234         hppa*64*|ia64*)
22235           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22236           hardcode_direct_F77=no
22237           hardcode_shlibpath_var_F77=no
22238           ;;
22239         *)
22240           hardcode_direct_F77=yes
22241           export_dynamic_flag_spec_F77='${wl}-E'
22242
22243           # hardcode_minus_L: Not really in the search PATH,
22244           # but as the default location of the library.
22245           hardcode_minus_L_F77=yes
22246           ;;
22247         esac
22248       fi
22249       ;;
22250
22251     irix5* | irix6* | nonstopux*)
22252       if test "$GCC" = yes; then
22253         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'
22254       else
22255         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'
22256         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22257       fi
22258       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22259       hardcode_libdir_separator_F77=:
22260       link_all_deplibs_F77=yes
22261       ;;
22262
22263     netbsd*)
22264       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22265         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22266       else
22267         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22268       fi
22269       hardcode_libdir_flag_spec_F77='-R$libdir'
22270       hardcode_direct_F77=yes
22271       hardcode_shlibpath_var_F77=no
22272       ;;
22273
22274     newsos6)
22275       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22276       hardcode_direct_F77=yes
22277       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22278       hardcode_libdir_separator_F77=:
22279       hardcode_shlibpath_var_F77=no
22280       ;;
22281
22282     openbsd*)
22283       hardcode_direct_F77=yes
22284       hardcode_shlibpath_var_F77=no
22285       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22286         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22287         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22288         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22289         export_dynamic_flag_spec_F77='${wl}-E'
22290       else
22291        case $host_os in
22292          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22293            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22294            hardcode_libdir_flag_spec_F77='-R$libdir'
22295            ;;
22296          *)
22297            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22298            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22299            ;;
22300        esac
22301       fi
22302       ;;
22303
22304     os2*)
22305       hardcode_libdir_flag_spec_F77='-L$libdir'
22306       hardcode_minus_L_F77=yes
22307       allow_undefined_flag_F77=unsupported
22308       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'
22309       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22310       ;;
22311
22312     osf3*)
22313       if test "$GCC" = yes; then
22314         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22315         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'
22316       else
22317         allow_undefined_flag_F77=' -expect_unresolved \*'
22318         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'
22319       fi
22320       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22321       hardcode_libdir_separator_F77=:
22322       ;;
22323
22324     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22325       if test "$GCC" = yes; then
22326         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22327         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'
22328         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22329       else
22330         allow_undefined_flag_F77=' -expect_unresolved \*'
22331         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'
22332         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~
22333         $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'
22334
22335         # Both c and cxx compiler support -rpath directly
22336         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22337       fi
22338       hardcode_libdir_separator_F77=:
22339       ;;
22340
22341     solaris*)
22342       no_undefined_flag_F77=' -z text'
22343       if test "$GCC" = yes; then
22344         wlarc='${wl}'
22345         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22346         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22347           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22348       else
22349         wlarc=''
22350         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22351         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22352         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22353       fi
22354       hardcode_libdir_flag_spec_F77='-R$libdir'
22355       hardcode_shlibpath_var_F77=no
22356       case $host_os in
22357       solaris2.[0-5] | solaris2.[0-5].*) ;;
22358       *)
22359         # The compiler driver will combine linker options so we
22360         # cannot just pass the convience library names through
22361         # without $wl, iff we do not link with $LD.
22362         # Luckily, gcc supports the same syntax we need for Sun Studio.
22363         # Supported since Solaris 2.6 (maybe 2.5.1?)
22364         case $wlarc in
22365         '')
22366           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22367         *)
22368           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' ;;
22369         esac ;;
22370       esac
22371       link_all_deplibs_F77=yes
22372       ;;
22373
22374     sunos4*)
22375       if test "x$host_vendor" = xsequent; then
22376         # Use $CC to link under sequent, because it throws in some extra .o
22377         # files that make .init and .fini sections work.
22378         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22379       else
22380         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22381       fi
22382       hardcode_libdir_flag_spec_F77='-L$libdir'
22383       hardcode_direct_F77=yes
22384       hardcode_minus_L_F77=yes
22385       hardcode_shlibpath_var_F77=no
22386       ;;
22387
22388     sysv4)
22389       case $host_vendor in
22390         sni)
22391           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22392           hardcode_direct_F77=yes # is this really true???
22393         ;;
22394         siemens)
22395           ## LD is ld it makes a PLAMLIB
22396           ## CC just makes a GrossModule.
22397           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22398           reload_cmds_F77='$CC -r -o $output$reload_objs'
22399           hardcode_direct_F77=no
22400         ;;
22401         motorola)
22402           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22403           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22404         ;;
22405       esac
22406       runpath_var='LD_RUN_PATH'
22407       hardcode_shlibpath_var_F77=no
22408       ;;
22409
22410     sysv4.3*)
22411       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22412       hardcode_shlibpath_var_F77=no
22413       export_dynamic_flag_spec_F77='-Bexport'
22414       ;;
22415
22416     sysv4*MP*)
22417       if test -d /usr/nec; then
22418         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22419         hardcode_shlibpath_var_F77=no
22420         runpath_var=LD_RUN_PATH
22421         hardcode_runpath_var=yes
22422         ld_shlibs_F77=yes
22423       fi
22424       ;;
22425
22426     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22427       no_undefined_flag_F77='${wl}-z,text'
22428       archive_cmds_need_lc_F77=no
22429       hardcode_shlibpath_var_F77=no
22430       runpath_var='LD_RUN_PATH'
22431
22432       if test "$GCC" = yes; then
22433         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22434         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22435       else
22436         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22437         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22438       fi
22439       ;;
22440
22441     sysv5* | sco3.2v5* | sco5v6*)
22442       # Note: We can NOT use -z defs as we might desire, because we do not
22443       # link with -lc, and that would cause any symbols used from libc to
22444       # always be unresolved, which means just about no library would
22445       # ever link correctly.  If we're not using GNU ld we use -z text
22446       # though, which does catch some bad symbols but isn't as heavy-handed
22447       # as -z defs.
22448       no_undefined_flag_F77='${wl}-z,text'
22449       allow_undefined_flag_F77='${wl}-z,nodefs'
22450       archive_cmds_need_lc_F77=no
22451       hardcode_shlibpath_var_F77=no
22452       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22453       hardcode_libdir_separator_F77=':'
22454       link_all_deplibs_F77=yes
22455       export_dynamic_flag_spec_F77='${wl}-Bexport'
22456       runpath_var='LD_RUN_PATH'
22457
22458       if test "$GCC" = yes; then
22459         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22460         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22461       else
22462         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22463         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22464       fi
22465       ;;
22466
22467     uts4*)
22468       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22469       hardcode_libdir_flag_spec_F77='-L$libdir'
22470       hardcode_shlibpath_var_F77=no
22471       ;;
22472
22473     *)
22474       ld_shlibs_F77=no
22475       ;;
22476     esac
22477   fi
22478
22479 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22480 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22481 test "$ld_shlibs_F77" = no && can_build_shared=no
22482
22483 #
22484 # Do we need to explicitly link libc?
22485 #
22486 case "x$archive_cmds_need_lc_F77" in
22487 x|xyes)
22488   # Assume -lc should be added
22489   archive_cmds_need_lc_F77=yes
22490
22491   if test "$enable_shared" = yes && test "$GCC" = yes; then
22492     case $archive_cmds_F77 in
22493     *'~'*)
22494       # FIXME: we may have to deal with multi-command sequences.
22495       ;;
22496     '$CC '*)
22497       # Test whether the compiler implicitly links with -lc since on some
22498       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22499       # to ld, don't add -lc before -lgcc.
22500       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22501 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22502       $rm conftest*
22503       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22504
22505       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506   (eval $ac_compile) 2>&5
22507   ac_status=$?
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); } 2>conftest.err; then
22510         soname=conftest
22511         lib=conftest
22512         libobjs=conftest.$ac_objext
22513         deplibs=
22514         wl=$lt_prog_compiler_wl_F77
22515         pic_flag=$lt_prog_compiler_pic_F77
22516         compiler_flags=-v
22517         linker_flags=-v
22518         verstring=
22519         output_objdir=.
22520         libname=conftest
22521         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22522         allow_undefined_flag_F77=
22523         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22524   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22525   ac_status=$?
22526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527   (exit $ac_status); }
22528         then
22529           archive_cmds_need_lc_F77=no
22530         else
22531           archive_cmds_need_lc_F77=yes
22532         fi
22533         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22534       else
22535         cat conftest.err 1>&5
22536       fi
22537       $rm conftest*
22538       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22539 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22540       ;;
22541     esac
22542   fi
22543   ;;
22544 esac
22545
22546 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22548 library_names_spec=
22549 libname_spec='lib$name'
22550 soname_spec=
22551 shrext_cmds=".so"
22552 postinstall_cmds=
22553 postuninstall_cmds=
22554 finish_cmds=
22555 finish_eval=
22556 shlibpath_var=
22557 shlibpath_overrides_runpath=unknown
22558 version_type=none
22559 dynamic_linker="$host_os ld.so"
22560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22561 if test "$GCC" = yes; then
22562   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22563   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22564     # if the path contains ";" then we assume it to be the separator
22565     # otherwise default to the standard path separator (i.e. ":") - it is
22566     # assumed that no part of a normal pathname contains ";" but that should
22567     # okay in the real world where ";" in dirpaths is itself problematic.
22568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22569   else
22570     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22571   fi
22572 else
22573   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22574 fi
22575 need_lib_prefix=unknown
22576 hardcode_into_libs=no
22577
22578 # when you set need_version to no, make sure it does not cause -set_version
22579 # flags to be left without arguments
22580 need_version=unknown
22581
22582 case $host_os in
22583 aix3*)
22584   version_type=linux
22585   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22586   shlibpath_var=LIBPATH
22587
22588   # AIX 3 has no versioning support, so we append a major version to the name.
22589   soname_spec='${libname}${release}${shared_ext}$major'
22590   ;;
22591
22592 aix4* | aix5*)
22593   version_type=linux
22594   need_lib_prefix=no
22595   need_version=no
22596   hardcode_into_libs=yes
22597   if test "$host_cpu" = ia64; then
22598     # AIX 5 supports IA64
22599     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22600     shlibpath_var=LD_LIBRARY_PATH
22601   else
22602     # With GCC up to 2.95.x, collect2 would create an import file
22603     # for dependence libraries.  The import file would start with
22604     # the line `#! .'.  This would cause the generated library to
22605     # depend on `.', always an invalid library.  This was fixed in
22606     # development snapshots of GCC prior to 3.0.
22607     case $host_os in
22608       aix4 | aix4.[01] | aix4.[01].*)
22609       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22610            echo ' yes '
22611            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22612         :
22613       else
22614         can_build_shared=no
22615       fi
22616       ;;
22617     esac
22618     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22619     # soname into executable. Probably we can add versioning support to
22620     # collect2, so additional links can be useful in future.
22621     if test "$aix_use_runtimelinking" = yes; then
22622       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22623       # instead of lib<name>.a to let people know that these are not
22624       # typical AIX shared libraries.
22625       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22626     else
22627       # We preserve .a as extension for shared libraries through AIX4.2
22628       # and later when we are not doing run time linking.
22629       library_names_spec='${libname}${release}.a $libname.a'
22630       soname_spec='${libname}${release}${shared_ext}$major'
22631     fi
22632     shlibpath_var=LIBPATH
22633   fi
22634   ;;
22635
22636 amigaos*)
22637   library_names_spec='$libname.ixlibrary $libname.a'
22638   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22639   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'
22640   ;;
22641
22642 beos*)
22643   library_names_spec='${libname}${shared_ext}'
22644   dynamic_linker="$host_os ld.so"
22645   shlibpath_var=LIBRARY_PATH
22646   ;;
22647
22648 bsdi[45]*)
22649   version_type=linux
22650   need_version=no
22651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22652   soname_spec='${libname}${release}${shared_ext}$major'
22653   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22654   shlibpath_var=LD_LIBRARY_PATH
22655   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22656   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22657   # the default ld.so.conf also contains /usr/contrib/lib and
22658   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22659   # libtool to hard-code these into programs
22660   ;;
22661
22662 cygwin* | mingw* | pw32*)
22663   version_type=windows
22664   shrext_cmds=".dll"
22665   need_version=no
22666   need_lib_prefix=no
22667
22668   case $GCC,$host_os in
22669   yes,cygwin* | yes,mingw* | yes,pw32*)
22670     library_names_spec='$libname.dll.a'
22671     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22672     postinstall_cmds='base_file=`basename \${file}`~
22673       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22674       dldir=$destdir/`dirname \$dlpath`~
22675       test -d \$dldir || mkdir -p \$dldir~
22676       $install_prog $dir/$dlname \$dldir/$dlname~
22677       chmod a+x \$dldir/$dlname'
22678     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22679       dlpath=$dir/\$dldll~
22680        $rm \$dlpath'
22681     shlibpath_overrides_runpath=yes
22682
22683     case $host_os in
22684     cygwin*)
22685       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22686       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22687       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22688       ;;
22689     mingw*)
22690       # MinGW DLLs use traditional 'lib' prefix
22691       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22692       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22693       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22694         # It is most probably a Windows format PATH printed by
22695         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22696         # path with ; separators, and with drive letters. We can handle the
22697         # drive letters (cygwin fileutils understands them), so leave them,
22698         # especially as we might pass files found there to a mingw objdump,
22699         # which wouldn't understand a cygwinified path. Ahh.
22700         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22701       else
22702         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22703       fi
22704       ;;
22705     pw32*)
22706       # pw32 DLLs use 'pw' prefix rather than 'lib'
22707       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22708       ;;
22709     esac
22710     ;;
22711
22712   *)
22713     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22714     ;;
22715   esac
22716   dynamic_linker='Win32 ld.exe'
22717   # FIXME: first we should search . and the directory the executable is in
22718   shlibpath_var=PATH
22719   ;;
22720
22721 darwin* | rhapsody*)
22722   dynamic_linker="$host_os dyld"
22723   version_type=darwin
22724   need_lib_prefix=no
22725   need_version=no
22726   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22727   soname_spec='${libname}${release}${major}$shared_ext'
22728   shlibpath_overrides_runpath=yes
22729   shlibpath_var=DYLD_LIBRARY_PATH
22730   shrext_cmds='.dylib'
22731   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22732   if test "$GCC" = yes; then
22733     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"`
22734   else
22735     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22736   fi
22737   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22738   ;;
22739
22740 dgux*)
22741   version_type=linux
22742   need_lib_prefix=no
22743   need_version=no
22744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22745   soname_spec='${libname}${release}${shared_ext}$major'
22746   shlibpath_var=LD_LIBRARY_PATH
22747   ;;
22748
22749 freebsd1*)
22750   dynamic_linker=no
22751   ;;
22752
22753 kfreebsd*-gnu)
22754   version_type=linux
22755   need_lib_prefix=no
22756   need_version=no
22757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22758   soname_spec='${libname}${release}${shared_ext}$major'
22759   shlibpath_var=LD_LIBRARY_PATH
22760   shlibpath_overrides_runpath=no
22761   hardcode_into_libs=yes
22762   dynamic_linker='GNU ld.so'
22763   ;;
22764
22765 freebsd* | dragonfly*)
22766   # DragonFly does not have aout.  When/if they implement a new
22767   # versioning mechanism, adjust this.
22768   if test -x /usr/bin/objformat; then
22769     objformat=`/usr/bin/objformat`
22770   else
22771     case $host_os in
22772     freebsd[123]*) objformat=aout ;;
22773     *) objformat=elf ;;
22774     esac
22775   fi
22776   version_type=freebsd-$objformat
22777   case $version_type in
22778     freebsd-elf*)
22779       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22780       need_version=no
22781       need_lib_prefix=no
22782       ;;
22783     freebsd-*)
22784       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22785       need_version=yes
22786       ;;
22787   esac
22788   shlibpath_var=LD_LIBRARY_PATH
22789   case $host_os in
22790   freebsd2*)
22791     shlibpath_overrides_runpath=yes
22792     ;;
22793   freebsd3.[01]* | freebsdelf3.[01]*)
22794     shlibpath_overrides_runpath=yes
22795     hardcode_into_libs=yes
22796     ;;
22797   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22798   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22799     shlibpath_overrides_runpath=no
22800     hardcode_into_libs=yes
22801     ;;
22802   freebsd*) # from 4.6 on
22803     shlibpath_overrides_runpath=yes
22804     hardcode_into_libs=yes
22805     ;;
22806   esac
22807   ;;
22808
22809 gnu*)
22810   version_type=linux
22811   need_lib_prefix=no
22812   need_version=no
22813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22814   soname_spec='${libname}${release}${shared_ext}$major'
22815   shlibpath_var=LD_LIBRARY_PATH
22816   hardcode_into_libs=yes
22817   ;;
22818
22819 hpux9* | hpux10* | hpux11*)
22820   # Give a soname corresponding to the major version so that dld.sl refuses to
22821   # link against other versions.
22822   version_type=sunos
22823   need_lib_prefix=no
22824   need_version=no
22825   case $host_cpu in
22826   ia64*)
22827     shrext_cmds='.so'
22828     hardcode_into_libs=yes
22829     dynamic_linker="$host_os dld.so"
22830     shlibpath_var=LD_LIBRARY_PATH
22831     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22833     soname_spec='${libname}${release}${shared_ext}$major'
22834     if test "X$HPUX_IA64_MODE" = X32; then
22835       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22836     else
22837       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22838     fi
22839     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22840     ;;
22841    hppa*64*)
22842      shrext_cmds='.sl'
22843      hardcode_into_libs=yes
22844      dynamic_linker="$host_os dld.sl"
22845      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22846      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22847      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22848      soname_spec='${libname}${release}${shared_ext}$major'
22849      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22850      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22851      ;;
22852    *)
22853     shrext_cmds='.sl'
22854     dynamic_linker="$host_os dld.sl"
22855     shlibpath_var=SHLIB_PATH
22856     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22858     soname_spec='${libname}${release}${shared_ext}$major'
22859     ;;
22860   esac
22861   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22862   postinstall_cmds='chmod 555 $lib'
22863   ;;
22864
22865 interix3*)
22866   version_type=linux
22867   need_lib_prefix=no
22868   need_version=no
22869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22870   soname_spec='${libname}${release}${shared_ext}$major'
22871   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22872   shlibpath_var=LD_LIBRARY_PATH
22873   shlibpath_overrides_runpath=no
22874   hardcode_into_libs=yes
22875   ;;
22876
22877 irix5* | irix6* | nonstopux*)
22878   case $host_os in
22879     nonstopux*) version_type=nonstopux ;;
22880     *)
22881         if test "$lt_cv_prog_gnu_ld" = yes; then
22882                 version_type=linux
22883         else
22884                 version_type=irix
22885         fi ;;
22886   esac
22887   need_lib_prefix=no
22888   need_version=no
22889   soname_spec='${libname}${release}${shared_ext}$major'
22890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22891   case $host_os in
22892   irix5* | nonstopux*)
22893     libsuff= shlibsuff=
22894     ;;
22895   *)
22896     case $LD in # libtool.m4 will add one of these switches to LD
22897     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22898       libsuff= shlibsuff= libmagic=32-bit;;
22899     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22900       libsuff=32 shlibsuff=N32 libmagic=N32;;
22901     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22902       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22903     *) libsuff= shlibsuff= libmagic=never-match;;
22904     esac
22905     ;;
22906   esac
22907   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22908   shlibpath_overrides_runpath=no
22909   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22910   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22911   hardcode_into_libs=yes
22912   ;;
22913
22914 # No shared lib support for Linux oldld, aout, or coff.
22915 linux*oldld* | linux*aout* | linux*coff*)
22916   dynamic_linker=no
22917   ;;
22918
22919 # This must be Linux ELF.
22920 linux*)
22921   version_type=linux
22922   need_lib_prefix=no
22923   need_version=no
22924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22925   soname_spec='${libname}${release}${shared_ext}$major'
22926   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22927   shlibpath_var=LD_LIBRARY_PATH
22928   shlibpath_overrides_runpath=no
22929   # This implies no fast_install, which is unacceptable.
22930   # Some rework will be needed to allow for fast_install
22931   # before this can be enabled.
22932   hardcode_into_libs=yes
22933
22934   # Append ld.so.conf contents to the search path
22935   if test -f /etc/ld.so.conf; then
22936     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' ' '`
22937     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22938   fi
22939
22940   # We used to test for /lib/ld.so.1 and disable shared libraries on
22941   # powerpc, because MkLinux only supported shared libraries with the
22942   # GNU dynamic linker.  Since this was broken with cross compilers,
22943   # most powerpc-linux boxes support dynamic linking these days and
22944   # people can always --disable-shared, the test was removed, and we
22945   # assume the GNU/Linux dynamic linker is in use.
22946   dynamic_linker='GNU/Linux ld.so'
22947   ;;
22948
22949 knetbsd*-gnu)
22950   version_type=linux
22951   need_lib_prefix=no
22952   need_version=no
22953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22954   soname_spec='${libname}${release}${shared_ext}$major'
22955   shlibpath_var=LD_LIBRARY_PATH
22956   shlibpath_overrides_runpath=no
22957   hardcode_into_libs=yes
22958   dynamic_linker='GNU ld.so'
22959   ;;
22960
22961 netbsd*)
22962   version_type=sunos
22963   need_lib_prefix=no
22964   need_version=no
22965   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22967     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22968     dynamic_linker='NetBSD (a.out) ld.so'
22969   else
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     dynamic_linker='NetBSD ld.elf_so'
22973   fi
22974   shlibpath_var=LD_LIBRARY_PATH
22975   shlibpath_overrides_runpath=yes
22976   hardcode_into_libs=yes
22977   ;;
22978
22979 newsos6)
22980   version_type=linux
22981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22982   shlibpath_var=LD_LIBRARY_PATH
22983   shlibpath_overrides_runpath=yes
22984   ;;
22985
22986 nto-qnx*)
22987   version_type=linux
22988   need_lib_prefix=no
22989   need_version=no
22990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22991   soname_spec='${libname}${release}${shared_ext}$major'
22992   shlibpath_var=LD_LIBRARY_PATH
22993   shlibpath_overrides_runpath=yes
22994   ;;
22995
22996 openbsd*)
22997   version_type=sunos
22998   sys_lib_dlsearch_path_spec="/usr/lib"
22999   need_lib_prefix=no
23000   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23001   case $host_os in
23002     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23003     *)                         need_version=no  ;;
23004   esac
23005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23006   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23007   shlibpath_var=LD_LIBRARY_PATH
23008   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23009     case $host_os in
23010       openbsd2.[89] | openbsd2.[89].*)
23011         shlibpath_overrides_runpath=no
23012         ;;
23013       *)
23014         shlibpath_overrides_runpath=yes
23015         ;;
23016       esac
23017   else
23018     shlibpath_overrides_runpath=yes
23019   fi
23020   ;;
23021
23022 os2*)
23023   libname_spec='$name'
23024   shrext_cmds=".dll"
23025   need_lib_prefix=no
23026   library_names_spec='$libname${shared_ext} $libname.a'
23027   dynamic_linker='OS/2 ld.exe'
23028   shlibpath_var=LIBPATH
23029   ;;
23030
23031 osf3* | osf4* | osf5*)
23032   version_type=osf
23033   need_lib_prefix=no
23034   need_version=no
23035   soname_spec='${libname}${release}${shared_ext}$major'
23036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23037   shlibpath_var=LD_LIBRARY_PATH
23038   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23039   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23040   ;;
23041
23042 solaris*)
23043   version_type=linux
23044   need_lib_prefix=no
23045   need_version=no
23046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23047   soname_spec='${libname}${release}${shared_ext}$major'
23048   shlibpath_var=LD_LIBRARY_PATH
23049   shlibpath_overrides_runpath=yes
23050   hardcode_into_libs=yes
23051   # ldd complains unless libraries are executable
23052   postinstall_cmds='chmod +x $lib'
23053   ;;
23054
23055 sunos4*)
23056   version_type=sunos
23057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23058   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23059   shlibpath_var=LD_LIBRARY_PATH
23060   shlibpath_overrides_runpath=yes
23061   if test "$with_gnu_ld" = yes; then
23062     need_lib_prefix=no
23063   fi
23064   need_version=yes
23065   ;;
23066
23067 sysv4 | sysv4.3*)
23068   version_type=linux
23069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23070   soname_spec='${libname}${release}${shared_ext}$major'
23071   shlibpath_var=LD_LIBRARY_PATH
23072   case $host_vendor in
23073     sni)
23074       shlibpath_overrides_runpath=no
23075       need_lib_prefix=no
23076       export_dynamic_flag_spec='${wl}-Blargedynsym'
23077       runpath_var=LD_RUN_PATH
23078       ;;
23079     siemens)
23080       need_lib_prefix=no
23081       ;;
23082     motorola)
23083       need_lib_prefix=no
23084       need_version=no
23085       shlibpath_overrides_runpath=no
23086       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23087       ;;
23088   esac
23089   ;;
23090
23091 sysv4*MP*)
23092   if test -d /usr/nec ;then
23093     version_type=linux
23094     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23095     soname_spec='$libname${shared_ext}.$major'
23096     shlibpath_var=LD_LIBRARY_PATH
23097   fi
23098   ;;
23099
23100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23101   version_type=freebsd-elf
23102   need_lib_prefix=no
23103   need_version=no
23104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23105   soname_spec='${libname}${release}${shared_ext}$major'
23106   shlibpath_var=LD_LIBRARY_PATH
23107   hardcode_into_libs=yes
23108   if test "$with_gnu_ld" = yes; then
23109     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23110     shlibpath_overrides_runpath=no
23111   else
23112     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23113     shlibpath_overrides_runpath=yes
23114     case $host_os in
23115       sco3.2v5*)
23116         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23117         ;;
23118     esac
23119   fi
23120   sys_lib_dlsearch_path_spec='/usr/lib'
23121   ;;
23122
23123 uts4*)
23124   version_type=linux
23125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23126   soname_spec='${libname}${release}${shared_ext}$major'
23127   shlibpath_var=LD_LIBRARY_PATH
23128   ;;
23129
23130 *)
23131   dynamic_linker=no
23132   ;;
23133 esac
23134 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23135 echo "${ECHO_T}$dynamic_linker" >&6; }
23136 test "$dynamic_linker" = no && can_build_shared=no
23137
23138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23139 if test "$GCC" = yes; then
23140   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23141 fi
23142
23143 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23144 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23145 hardcode_action_F77=
23146 if test -n "$hardcode_libdir_flag_spec_F77" || \
23147    test -n "$runpath_var_F77" || \
23148    test "X$hardcode_automatic_F77" = "Xyes" ; then
23149
23150   # We can hardcode non-existant directories.
23151   if test "$hardcode_direct_F77" != no &&
23152      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23153      # have to relink, otherwise we might link with an installed library
23154      # when we should be linking with a yet-to-be-installed one
23155      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23156      test "$hardcode_minus_L_F77" != no; then
23157     # Linking always hardcodes the temporary library directory.
23158     hardcode_action_F77=relink
23159   else
23160     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23161     hardcode_action_F77=immediate
23162   fi
23163 else
23164   # We cannot hardcode anything, or else we can only hardcode existing
23165   # directories.
23166   hardcode_action_F77=unsupported
23167 fi
23168 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23169 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23170
23171 if test "$hardcode_action_F77" = relink; then
23172   # Fast installation is not supported
23173   enable_fast_install=no
23174 elif test "$shlibpath_overrides_runpath" = yes ||
23175      test "$enable_shared" = no; then
23176   # Fast installation is not necessary
23177   enable_fast_install=needless
23178 fi
23179
23180
23181 # The else clause should only fire when bootstrapping the
23182 # libtool distribution, otherwise you forgot to ship ltmain.sh
23183 # with your package, and you will get complaints that there are
23184 # no rules to generate ltmain.sh.
23185 if test -f "$ltmain"; then
23186   # See if we are running on zsh, and set the options which allow our commands through
23187   # without removal of \ escapes.
23188   if test -n "${ZSH_VERSION+set}" ; then
23189     setopt NO_GLOB_SUBST
23190   fi
23191   # Now quote all the things that may contain metacharacters while being
23192   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23193   # variables and quote the copies for generation of the libtool script.
23194   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23195     SED SHELL STRIP \
23196     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23197     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23198     deplibs_check_method reload_flag reload_cmds need_locks \
23199     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23200     lt_cv_sys_global_symbol_to_c_name_address \
23201     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23202     old_postinstall_cmds old_postuninstall_cmds \
23203     compiler_F77 \
23204     CC_F77 \
23205     LD_F77 \
23206     lt_prog_compiler_wl_F77 \
23207     lt_prog_compiler_pic_F77 \
23208     lt_prog_compiler_static_F77 \
23209     lt_prog_compiler_no_builtin_flag_F77 \
23210     export_dynamic_flag_spec_F77 \
23211     thread_safe_flag_spec_F77 \
23212     whole_archive_flag_spec_F77 \
23213     enable_shared_with_static_runtimes_F77 \
23214     old_archive_cmds_F77 \
23215     old_archive_from_new_cmds_F77 \
23216     predep_objects_F77 \
23217     postdep_objects_F77 \
23218     predeps_F77 \
23219     postdeps_F77 \
23220     compiler_lib_search_path_F77 \
23221     archive_cmds_F77 \
23222     archive_expsym_cmds_F77 \
23223     postinstall_cmds_F77 \
23224     postuninstall_cmds_F77 \
23225     old_archive_from_expsyms_cmds_F77 \
23226     allow_undefined_flag_F77 \
23227     no_undefined_flag_F77 \
23228     export_symbols_cmds_F77 \
23229     hardcode_libdir_flag_spec_F77 \
23230     hardcode_libdir_flag_spec_ld_F77 \
23231     hardcode_libdir_separator_F77 \
23232     hardcode_automatic_F77 \
23233     module_cmds_F77 \
23234     module_expsym_cmds_F77 \
23235     lt_cv_prog_compiler_c_o_F77 \
23236     exclude_expsyms_F77 \
23237     include_expsyms_F77; do
23238
23239     case $var in
23240     old_archive_cmds_F77 | \
23241     old_archive_from_new_cmds_F77 | \
23242     archive_cmds_F77 | \
23243     archive_expsym_cmds_F77 | \
23244     module_cmds_F77 | \
23245     module_expsym_cmds_F77 | \
23246     old_archive_from_expsyms_cmds_F77 | \
23247     export_symbols_cmds_F77 | \
23248     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23249     postinstall_cmds | postuninstall_cmds | \
23250     old_postinstall_cmds | old_postuninstall_cmds | \
23251     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23252       # Double-quote double-evaled strings.
23253       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23254       ;;
23255     *)
23256       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23257       ;;
23258     esac
23259   done
23260
23261   case $lt_echo in
23262   *'\$0 --fallback-echo"')
23263     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23264     ;;
23265   esac
23266
23267 cfgfile="$ofile"
23268
23269   cat <<__EOF__ >> "$cfgfile"
23270 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23271
23272 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23273
23274 # Shell to use when invoking shell scripts.
23275 SHELL=$lt_SHELL
23276
23277 # Whether or not to build shared libraries.
23278 build_libtool_libs=$enable_shared
23279
23280 # Whether or not to build static libraries.
23281 build_old_libs=$enable_static
23282
23283 # Whether or not to add -lc for building shared libraries.
23284 build_libtool_need_lc=$archive_cmds_need_lc_F77
23285
23286 # Whether or not to disallow shared libs when runtime libs are static
23287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23288
23289 # Whether or not to optimize for fast installation.
23290 fast_install=$enable_fast_install
23291
23292 # The host system.
23293 host_alias=$host_alias
23294 host=$host
23295 host_os=$host_os
23296
23297 # The build system.
23298 build_alias=$build_alias
23299 build=$build
23300 build_os=$build_os
23301
23302 # An echo program that does not interpret backslashes.
23303 echo=$lt_echo
23304
23305 # The archiver.
23306 AR=$lt_AR
23307 AR_FLAGS=$lt_AR_FLAGS
23308
23309 # A C compiler.
23310 LTCC=$lt_LTCC
23311
23312 # LTCC compiler flags.
23313 LTCFLAGS=$lt_LTCFLAGS
23314
23315 # A language-specific compiler.
23316 CC=$lt_compiler_F77
23317
23318 # Is the compiler the GNU C compiler?
23319 with_gcc=$GCC_F77
23320
23321 # An ERE matcher.
23322 EGREP=$lt_EGREP
23323
23324 # The linker used to build libraries.
23325 LD=$lt_LD_F77
23326
23327 # Whether we need hard or soft links.
23328 LN_S=$lt_LN_S
23329
23330 # A BSD-compatible nm program.
23331 NM=$lt_NM
23332
23333 # A symbol stripping program
23334 STRIP=$lt_STRIP
23335
23336 # Used to examine libraries when file_magic_cmd begins "file"
23337 MAGIC_CMD=$MAGIC_CMD
23338
23339 # Used on cygwin: DLL creation program.
23340 DLLTOOL="$DLLTOOL"
23341
23342 # Used on cygwin: object dumper.
23343 OBJDUMP="$OBJDUMP"
23344
23345 # Used on cygwin: assembler.
23346 AS="$AS"
23347
23348 # The name of the directory that contains temporary libtool files.
23349 objdir=$objdir
23350
23351 # How to create reloadable object files.
23352 reload_flag=$lt_reload_flag
23353 reload_cmds=$lt_reload_cmds
23354
23355 # How to pass a linker flag through the compiler.
23356 wl=$lt_lt_prog_compiler_wl_F77
23357
23358 # Object file suffix (normally "o").
23359 objext="$ac_objext"
23360
23361 # Old archive suffix (normally "a").
23362 libext="$libext"
23363
23364 # Shared library suffix (normally ".so").
23365 shrext_cmds='$shrext_cmds'
23366
23367 # Executable file suffix (normally "").
23368 exeext="$exeext"
23369
23370 # Additional compiler flags for building library objects.
23371 pic_flag=$lt_lt_prog_compiler_pic_F77
23372 pic_mode=$pic_mode
23373
23374 # What is the maximum length of a command?
23375 max_cmd_len=$lt_cv_sys_max_cmd_len
23376
23377 # Does compiler simultaneously support -c and -o options?
23378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23379
23380 # Must we lock files when doing compilation?
23381 need_locks=$lt_need_locks
23382
23383 # Do we need the lib prefix for modules?
23384 need_lib_prefix=$need_lib_prefix
23385
23386 # Do we need a version for libraries?
23387 need_version=$need_version
23388
23389 # Whether dlopen is supported.
23390 dlopen_support=$enable_dlopen
23391
23392 # Whether dlopen of programs is supported.
23393 dlopen_self=$enable_dlopen_self
23394
23395 # Whether dlopen of statically linked programs is supported.
23396 dlopen_self_static=$enable_dlopen_self_static
23397
23398 # Compiler flag to prevent dynamic linking.
23399 link_static_flag=$lt_lt_prog_compiler_static_F77
23400
23401 # Compiler flag to turn off builtin functions.
23402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23403
23404 # Compiler flag to allow reflexive dlopens.
23405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23406
23407 # Compiler flag to generate shared objects directly from archives.
23408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23409
23410 # Compiler flag to generate thread-safe objects.
23411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23412
23413 # Library versioning type.
23414 version_type=$version_type
23415
23416 # Format of library name prefix.
23417 libname_spec=$lt_libname_spec
23418
23419 # List of archive names.  First name is the real one, the rest are links.
23420 # The last name is the one that the linker finds with -lNAME.
23421 library_names_spec=$lt_library_names_spec
23422
23423 # The coded name of the library, if different from the real name.
23424 soname_spec=$lt_soname_spec
23425
23426 # Commands used to build and install an old-style archive.
23427 RANLIB=$lt_RANLIB
23428 old_archive_cmds=$lt_old_archive_cmds_F77
23429 old_postinstall_cmds=$lt_old_postinstall_cmds
23430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23431
23432 # Create an old-style archive from a shared archive.
23433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23434
23435 # Create a temporary old-style archive to link instead of a shared archive.
23436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23437
23438 # Commands used to build and install a shared archive.
23439 archive_cmds=$lt_archive_cmds_F77
23440 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23441 postinstall_cmds=$lt_postinstall_cmds
23442 postuninstall_cmds=$lt_postuninstall_cmds
23443
23444 # Commands used to build a loadable module (assumed same as above if empty)
23445 module_cmds=$lt_module_cmds_F77
23446 module_expsym_cmds=$lt_module_expsym_cmds_F77
23447
23448 # Commands to strip libraries.
23449 old_striplib=$lt_old_striplib
23450 striplib=$lt_striplib
23451
23452 # Dependencies to place before the objects being linked to create a
23453 # shared library.
23454 predep_objects=$lt_predep_objects_F77
23455
23456 # Dependencies to place after the objects being linked to create a
23457 # shared library.
23458 postdep_objects=$lt_postdep_objects_F77
23459
23460 # Dependencies to place before the objects being linked to create a
23461 # shared library.
23462 predeps=$lt_predeps_F77
23463
23464 # Dependencies to place after the objects being linked to create a
23465 # shared library.
23466 postdeps=$lt_postdeps_F77
23467
23468 # The library search path used internally by the compiler when linking
23469 # a shared library.
23470 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23471
23472 # Method to check whether dependent libraries are shared objects.
23473 deplibs_check_method=$lt_deplibs_check_method
23474
23475 # Command to use when deplibs_check_method == file_magic.
23476 file_magic_cmd=$lt_file_magic_cmd
23477
23478 # Flag that allows shared libraries with undefined symbols to be built.
23479 allow_undefined_flag=$lt_allow_undefined_flag_F77
23480
23481 # Flag that forces no undefined symbols.
23482 no_undefined_flag=$lt_no_undefined_flag_F77
23483
23484 # Commands used to finish a libtool library installation in a directory.
23485 finish_cmds=$lt_finish_cmds
23486
23487 # Same as above, but a single script fragment to be evaled but not shown.
23488 finish_eval=$lt_finish_eval
23489
23490 # Take the output of nm and produce a listing of raw symbols and C names.
23491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23492
23493 # Transform the output of nm in a proper C declaration
23494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23495
23496 # Transform the output of nm in a C name address pair
23497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23498
23499 # This is the shared library runtime path variable.
23500 runpath_var=$runpath_var
23501
23502 # This is the shared library path variable.
23503 shlibpath_var=$shlibpath_var
23504
23505 # Is shlibpath searched before the hard-coded library search path?
23506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23507
23508 # How to hardcode a shared library path into an executable.
23509 hardcode_action=$hardcode_action_F77
23510
23511 # Whether we should hardcode library paths into libraries.
23512 hardcode_into_libs=$hardcode_into_libs
23513
23514 # Flag to hardcode \$libdir into a binary during linking.
23515 # This must work even if \$libdir does not exist.
23516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23517
23518 # If ld is used when linking, flag to hardcode \$libdir into
23519 # a binary during linking. This must work even if \$libdir does
23520 # not exist.
23521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23522
23523 # Whether we need a single -rpath flag with a separated argument.
23524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23525
23526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23527 # resulting binary.
23528 hardcode_direct=$hardcode_direct_F77
23529
23530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23531 # resulting binary.
23532 hardcode_minus_L=$hardcode_minus_L_F77
23533
23534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23535 # the resulting binary.
23536 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23537
23538 # Set to yes if building a shared library automatically hardcodes DIR into the library
23539 # and all subsequent libraries and executables linked against it.
23540 hardcode_automatic=$hardcode_automatic_F77
23541
23542 # Variables whose values should be saved in libtool wrapper scripts and
23543 # restored at relink time.
23544 variables_saved_for_relink="$variables_saved_for_relink"
23545
23546 # Whether libtool must link a program against all its dependency libraries.
23547 link_all_deplibs=$link_all_deplibs_F77
23548
23549 # Compile-time system search path for libraries
23550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23551
23552 # Run-time system search path for libraries
23553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23554
23555 # Fix the shell variable \$srcfile for the compiler.
23556 fix_srcfile_path="$fix_srcfile_path_F77"
23557
23558 # Set to yes if exported symbols are required.
23559 always_export_symbols=$always_export_symbols_F77
23560
23561 # The commands to list exported symbols.
23562 export_symbols_cmds=$lt_export_symbols_cmds_F77
23563
23564 # The commands to extract the exported symbol list from a shared archive.
23565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23566
23567 # Symbols that should not be listed in the preloaded symbols.
23568 exclude_expsyms=$lt_exclude_expsyms_F77
23569
23570 # Symbols that must always be exported.
23571 include_expsyms=$lt_include_expsyms_F77
23572
23573 # ### END LIBTOOL TAG CONFIG: $tagname
23574
23575 __EOF__
23576
23577
23578 else
23579   # If there is no Makefile yet, we rely on a make rule to execute
23580   # `config.status --recheck' to rerun these tests and create the
23581   # libtool script then.
23582   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23583   if test -f "$ltmain_in"; then
23584     test -f Makefile && make "$ltmain"
23585   fi
23586 fi
23587
23588
23589 ac_ext=c
23590 ac_cpp='$CPP $CPPFLAGS'
23591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23594
23595 CC="$lt_save_CC"
23596
23597         else
23598           tagname=""
23599         fi
23600         ;;
23601
23602       GCJ)
23603         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23604           ac_ext=c
23605 ac_cpp='$CPP $CPPFLAGS'
23606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23609
23610
23611 # Source file extension for Java test sources.
23612 ac_ext=java
23613
23614 # Object file extension for compiled Java test sources.
23615 objext=o
23616 objext_GCJ=$objext
23617
23618 # Code to be used in simple compile tests
23619 lt_simple_compile_test_code="class foo {}\n"
23620
23621 # Code to be used in simple link tests
23622 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23623
23624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23625
23626 # If no C compiler was specified, use CC.
23627 LTCC=${LTCC-"$CC"}
23628
23629 # If no C compiler flags were specified, use CFLAGS.
23630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23631
23632 # Allow CC to be a program name with arguments.
23633 compiler=$CC
23634
23635
23636 # save warnings/boilerplate of simple test code
23637 ac_outfile=conftest.$ac_objext
23638 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23639 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23640 _lt_compiler_boilerplate=`cat conftest.err`
23641 $rm conftest*
23642
23643 ac_outfile=conftest.$ac_objext
23644 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23645 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23646 _lt_linker_boilerplate=`cat conftest.err`
23647 $rm conftest*
23648
23649
23650 # Allow CC to be a program name with arguments.
23651 lt_save_CC="$CC"
23652 CC=${GCJ-"gcj"}
23653 compiler=$CC
23654 compiler_GCJ=$CC
23655 for cc_temp in $compiler""; do
23656   case $cc_temp in
23657     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23658     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23659     \-*) ;;
23660     *) break;;
23661   esac
23662 done
23663 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23664
23665
23666 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23667 archive_cmds_need_lc_GCJ=no
23668
23669 old_archive_cmds_GCJ=$old_archive_cmds
23670
23671
23672 lt_prog_compiler_no_builtin_flag_GCJ=
23673
23674 if test "$GCC" = yes; then
23675   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23676
23677
23678 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23681   echo $ECHO_N "(cached) $ECHO_C" >&6
23682 else
23683   lt_cv_prog_compiler_rtti_exceptions=no
23684   ac_outfile=conftest.$ac_objext
23685    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23686    lt_compiler_flag="-fno-rtti -fno-exceptions"
23687    # Insert the option either (1) after the last *FLAGS variable, or
23688    # (2) before a word containing "conftest.", or (3) at the end.
23689    # Note that $ac_compile itself does not contain backslashes and begins
23690    # with a dollar sign (not a hyphen), so the echo should work correctly.
23691    # The option is referenced via a variable to avoid confusing sed.
23692    lt_compile=`echo "$ac_compile" | $SED \
23693    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23694    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23695    -e 's:$: $lt_compiler_flag:'`
23696    (eval echo "\"\$as_me:23696: $lt_compile\"" >&5)
23697    (eval "$lt_compile" 2>conftest.err)
23698    ac_status=$?
23699    cat conftest.err >&5
23700    echo "$as_me:23700: \$? = $ac_status" >&5
23701    if (exit $ac_status) && test -s "$ac_outfile"; then
23702      # The compiler can only warn and ignore the option if not recognized
23703      # So say no if there are warnings other than the usual output.
23704      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23705      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23706      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23707        lt_cv_prog_compiler_rtti_exceptions=yes
23708      fi
23709    fi
23710    $rm conftest*
23711
23712 fi
23713 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23714 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23715
23716 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23717     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23718 else
23719     :
23720 fi
23721
23722 fi
23723
23724 lt_prog_compiler_wl_GCJ=
23725 lt_prog_compiler_pic_GCJ=
23726 lt_prog_compiler_static_GCJ=
23727
23728 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23729 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23730
23731   if test "$GCC" = yes; then
23732     lt_prog_compiler_wl_GCJ='-Wl,'
23733     lt_prog_compiler_static_GCJ='-static'
23734
23735     case $host_os in
23736       aix*)
23737       # All AIX code is PIC.
23738       if test "$host_cpu" = ia64; then
23739         # AIX 5 now supports IA64 processor
23740         lt_prog_compiler_static_GCJ='-Bstatic'
23741       fi
23742       ;;
23743
23744     amigaos*)
23745       # FIXME: we need at least 68020 code to build shared libraries, but
23746       # adding the `-m68020' flag to GCC prevents building anything better,
23747       # like `-m68040'.
23748       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23749       ;;
23750
23751     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23752       # PIC is the default for these OSes.
23753       ;;
23754
23755     mingw* | pw32* | os2*)
23756       # This hack is so that the source file can tell whether it is being
23757       # built for inclusion in a dll (and should export symbols for example).
23758       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23759       ;;
23760
23761     darwin* | rhapsody*)
23762       # PIC is the default on this platform
23763       # Common symbols not allowed in MH_DYLIB files
23764       lt_prog_compiler_pic_GCJ='-fno-common'
23765       ;;
23766
23767     interix3*)
23768       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23769       # Instead, we relocate shared libraries at runtime.
23770       ;;
23771
23772     msdosdjgpp*)
23773       # Just because we use GCC doesn't mean we suddenly get shared libraries
23774       # on systems that don't support them.
23775       lt_prog_compiler_can_build_shared_GCJ=no
23776       enable_shared=no
23777       ;;
23778
23779     sysv4*MP*)
23780       if test -d /usr/nec; then
23781         lt_prog_compiler_pic_GCJ=-Kconform_pic
23782       fi
23783       ;;
23784
23785     hpux*)
23786       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23787       # not for PA HP-UX.
23788       case $host_cpu in
23789       hppa*64*|ia64*)
23790         # +Z the default
23791         ;;
23792       *)
23793         lt_prog_compiler_pic_GCJ='-fPIC'
23794         ;;
23795       esac
23796       ;;
23797
23798     *)
23799       lt_prog_compiler_pic_GCJ='-fPIC'
23800       ;;
23801     esac
23802   else
23803     # PORTME Check for flag to pass linker flags through the system compiler.
23804     case $host_os in
23805     aix*)
23806       lt_prog_compiler_wl_GCJ='-Wl,'
23807       if test "$host_cpu" = ia64; then
23808         # AIX 5 now supports IA64 processor
23809         lt_prog_compiler_static_GCJ='-Bstatic'
23810       else
23811         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23812       fi
23813       ;;
23814       darwin*)
23815         # PIC is the default on this platform
23816         # Common symbols not allowed in MH_DYLIB files
23817        case $cc_basename in
23818          xlc*)
23819          lt_prog_compiler_pic_GCJ='-qnocommon'
23820          lt_prog_compiler_wl_GCJ='-Wl,'
23821          ;;
23822        esac
23823        ;;
23824
23825     mingw* | pw32* | os2*)
23826       # This hack is so that the source file can tell whether it is being
23827       # built for inclusion in a dll (and should export symbols for example).
23828       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23829       ;;
23830
23831     hpux9* | hpux10* | hpux11*)
23832       lt_prog_compiler_wl_GCJ='-Wl,'
23833       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23834       # not for PA HP-UX.
23835       case $host_cpu in
23836       hppa*64*|ia64*)
23837         # +Z the default
23838         ;;
23839       *)
23840         lt_prog_compiler_pic_GCJ='+Z'
23841         ;;
23842       esac
23843       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23844       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23845       ;;
23846
23847     irix5* | irix6* | nonstopux*)
23848       lt_prog_compiler_wl_GCJ='-Wl,'
23849       # PIC (with -KPIC) is the default.
23850       lt_prog_compiler_static_GCJ='-non_shared'
23851       ;;
23852
23853     newsos6)
23854       lt_prog_compiler_pic_GCJ='-KPIC'
23855       lt_prog_compiler_static_GCJ='-Bstatic'
23856       ;;
23857
23858     linux*)
23859       case $cc_basename in
23860       icc* | ecc*)
23861         lt_prog_compiler_wl_GCJ='-Wl,'
23862         lt_prog_compiler_pic_GCJ='-KPIC'
23863         lt_prog_compiler_static_GCJ='-static'
23864         ;;
23865       pgcc* | pgf77* | pgf90* | pgf95*)
23866         # Portland Group compilers (*not* the Pentium gcc compiler,
23867         # which looks to be a dead project)
23868         lt_prog_compiler_wl_GCJ='-Wl,'
23869         lt_prog_compiler_pic_GCJ='-fpic'
23870         lt_prog_compiler_static_GCJ='-Bstatic'
23871         ;;
23872       ccc*)
23873         lt_prog_compiler_wl_GCJ='-Wl,'
23874         # All Alpha code is PIC.
23875         lt_prog_compiler_static_GCJ='-non_shared'
23876         ;;
23877       esac
23878       ;;
23879
23880     osf3* | osf4* | osf5*)
23881       lt_prog_compiler_wl_GCJ='-Wl,'
23882       # All OSF/1 code is PIC.
23883       lt_prog_compiler_static_GCJ='-non_shared'
23884       ;;
23885
23886     solaris*)
23887       lt_prog_compiler_pic_GCJ='-KPIC'
23888       lt_prog_compiler_static_GCJ='-Bstatic'
23889       case $cc_basename in
23890       f77* | f90* | f95*)
23891         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23892       *)
23893         lt_prog_compiler_wl_GCJ='-Wl,';;
23894       esac
23895       ;;
23896
23897     sunos4*)
23898       lt_prog_compiler_wl_GCJ='-Qoption ld '
23899       lt_prog_compiler_pic_GCJ='-PIC'
23900       lt_prog_compiler_static_GCJ='-Bstatic'
23901       ;;
23902
23903     sysv4 | sysv4.2uw2* | sysv4.3*)
23904       lt_prog_compiler_wl_GCJ='-Wl,'
23905       lt_prog_compiler_pic_GCJ='-KPIC'
23906       lt_prog_compiler_static_GCJ='-Bstatic'
23907       ;;
23908
23909     sysv4*MP*)
23910       if test -d /usr/nec ;then
23911         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23912         lt_prog_compiler_static_GCJ='-Bstatic'
23913       fi
23914       ;;
23915
23916     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23917       lt_prog_compiler_wl_GCJ='-Wl,'
23918       lt_prog_compiler_pic_GCJ='-KPIC'
23919       lt_prog_compiler_static_GCJ='-Bstatic'
23920       ;;
23921
23922     unicos*)
23923       lt_prog_compiler_wl_GCJ='-Wl,'
23924       lt_prog_compiler_can_build_shared_GCJ=no
23925       ;;
23926
23927     uts4*)
23928       lt_prog_compiler_pic_GCJ='-pic'
23929       lt_prog_compiler_static_GCJ='-Bstatic'
23930       ;;
23931
23932     *)
23933       lt_prog_compiler_can_build_shared_GCJ=no
23934       ;;
23935     esac
23936   fi
23937
23938 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23939 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23940
23941 #
23942 # Check to make sure the PIC flag actually works.
23943 #
23944 if test -n "$lt_prog_compiler_pic_GCJ"; then
23945
23946 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23947 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23948 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23949   echo $ECHO_N "(cached) $ECHO_C" >&6
23950 else
23951   lt_prog_compiler_pic_works_GCJ=no
23952   ac_outfile=conftest.$ac_objext
23953    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23954    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23955    # Insert the option either (1) after the last *FLAGS variable, or
23956    # (2) before a word containing "conftest.", or (3) at the end.
23957    # Note that $ac_compile itself does not contain backslashes and begins
23958    # with a dollar sign (not a hyphen), so the echo should work correctly.
23959    # The option is referenced via a variable to avoid confusing sed.
23960    lt_compile=`echo "$ac_compile" | $SED \
23961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23963    -e 's:$: $lt_compiler_flag:'`
23964    (eval echo "\"\$as_me:23964: $lt_compile\"" >&5)
23965    (eval "$lt_compile" 2>conftest.err)
23966    ac_status=$?
23967    cat conftest.err >&5
23968    echo "$as_me:23968: \$? = $ac_status" >&5
23969    if (exit $ac_status) && test -s "$ac_outfile"; then
23970      # The compiler can only warn and ignore the option if not recognized
23971      # So say no if there are warnings other than the usual output.
23972      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23973      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23974      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23975        lt_prog_compiler_pic_works_GCJ=yes
23976      fi
23977    fi
23978    $rm conftest*
23979
23980 fi
23981 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23982 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23983
23984 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23985     case $lt_prog_compiler_pic_GCJ in
23986      "" | " "*) ;;
23987      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23988      esac
23989 else
23990     lt_prog_compiler_pic_GCJ=
23991      lt_prog_compiler_can_build_shared_GCJ=no
23992 fi
23993
23994 fi
23995 case $host_os in
23996   # For platforms which do not support PIC, -DPIC is meaningless:
23997   *djgpp*)
23998     lt_prog_compiler_pic_GCJ=
23999     ;;
24000   *)
24001     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24002     ;;
24003 esac
24004
24005 #
24006 # Check to make sure the static flag actually works.
24007 #
24008 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24009 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24010 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24011 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24012   echo $ECHO_N "(cached) $ECHO_C" >&6
24013 else
24014   lt_prog_compiler_static_works_GCJ=no
24015    save_LDFLAGS="$LDFLAGS"
24016    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24017    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24018    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24019      # The linker can only warn and ignore the option if not recognized
24020      # So say no if there are warnings
24021      if test -s conftest.err; then
24022        # Append any errors to the config.log.
24023        cat conftest.err 1>&5
24024        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24025        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24026        if diff conftest.exp conftest.er2 >/dev/null; then
24027          lt_prog_compiler_static_works_GCJ=yes
24028        fi
24029      else
24030        lt_prog_compiler_static_works_GCJ=yes
24031      fi
24032    fi
24033    $rm conftest*
24034    LDFLAGS="$save_LDFLAGS"
24035
24036 fi
24037 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24038 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24039
24040 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24041     :
24042 else
24043     lt_prog_compiler_static_GCJ=
24044 fi
24045
24046
24047 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24048 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24049 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24050   echo $ECHO_N "(cached) $ECHO_C" >&6
24051 else
24052   lt_cv_prog_compiler_c_o_GCJ=no
24053    $rm -r conftest 2>/dev/null
24054    mkdir conftest
24055    cd conftest
24056    mkdir out
24057    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24058
24059    lt_compiler_flag="-o out/conftest2.$ac_objext"
24060    # Insert the option either (1) after the last *FLAGS variable, or
24061    # (2) before a word containing "conftest.", or (3) at the end.
24062    # Note that $ac_compile itself does not contain backslashes and begins
24063    # with a dollar sign (not a hyphen), so the echo should work correctly.
24064    lt_compile=`echo "$ac_compile" | $SED \
24065    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24067    -e 's:$: $lt_compiler_flag:'`
24068    (eval echo "\"\$as_me:24068: $lt_compile\"" >&5)
24069    (eval "$lt_compile" 2>out/conftest.err)
24070    ac_status=$?
24071    cat out/conftest.err >&5
24072    echo "$as_me:24072: \$? = $ac_status" >&5
24073    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24074    then
24075      # The compiler can only warn and ignore the option if not recognized
24076      # So say no if there are warnings
24077      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24078      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24079      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24080        lt_cv_prog_compiler_c_o_GCJ=yes
24081      fi
24082    fi
24083    chmod u+w . 2>&5
24084    $rm conftest*
24085    # SGI C++ compiler will create directory out/ii_files/ for
24086    # template instantiation
24087    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24088    $rm out/* && rmdir out
24089    cd ..
24090    rmdir conftest
24091    $rm conftest*
24092
24093 fi
24094 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24095 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24096
24097
24098 hard_links="nottested"
24099 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24100   # do not overwrite the value of need_locks provided by the user
24101   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24102 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24103   hard_links=yes
24104   $rm conftest*
24105   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24106   touch conftest.a
24107   ln conftest.a conftest.b 2>&5 || hard_links=no
24108   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24109   { echo "$as_me:$LINENO: result: $hard_links" >&5
24110 echo "${ECHO_T}$hard_links" >&6; }
24111   if test "$hard_links" = no; then
24112     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24113 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24114     need_locks=warn
24115   fi
24116 else
24117   need_locks=no
24118 fi
24119
24120 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24121 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24122
24123   runpath_var=
24124   allow_undefined_flag_GCJ=
24125   enable_shared_with_static_runtimes_GCJ=no
24126   archive_cmds_GCJ=
24127   archive_expsym_cmds_GCJ=
24128   old_archive_From_new_cmds_GCJ=
24129   old_archive_from_expsyms_cmds_GCJ=
24130   export_dynamic_flag_spec_GCJ=
24131   whole_archive_flag_spec_GCJ=
24132   thread_safe_flag_spec_GCJ=
24133   hardcode_libdir_flag_spec_GCJ=
24134   hardcode_libdir_flag_spec_ld_GCJ=
24135   hardcode_libdir_separator_GCJ=
24136   hardcode_direct_GCJ=no
24137   hardcode_minus_L_GCJ=no
24138   hardcode_shlibpath_var_GCJ=unsupported
24139   link_all_deplibs_GCJ=unknown
24140   hardcode_automatic_GCJ=no
24141   module_cmds_GCJ=
24142   module_expsym_cmds_GCJ=
24143   always_export_symbols_GCJ=no
24144   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24145   # include_expsyms should be a list of space-separated symbols to be *always*
24146   # included in the symbol list
24147   include_expsyms_GCJ=
24148   # exclude_expsyms can be an extended regexp of symbols to exclude
24149   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24150   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24151   # as well as any symbol that contains `d'.
24152   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24153   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24154   # platforms (ab)use it in PIC code, but their linkers get confused if
24155   # the symbol is explicitly referenced.  Since portable code cannot
24156   # rely on this symbol name, it's probably fine to never include it in
24157   # preloaded symbol tables.
24158   extract_expsyms_cmds=
24159   # Just being paranoid about ensuring that cc_basename is set.
24160   for cc_temp in $compiler""; do
24161   case $cc_temp in
24162     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24163     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24164     \-*) ;;
24165     *) break;;
24166   esac
24167 done
24168 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24169
24170   case $host_os in
24171   cygwin* | mingw* | pw32*)
24172     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24173     # When not using gcc, we currently assume that we are using
24174     # Microsoft Visual C++.
24175     if test "$GCC" != yes; then
24176       with_gnu_ld=no
24177     fi
24178     ;;
24179   interix*)
24180     # we just hope/assume this is gcc and not c89 (= MSVC++)
24181     with_gnu_ld=yes
24182     ;;
24183   openbsd*)
24184     with_gnu_ld=no
24185     ;;
24186   esac
24187
24188   ld_shlibs_GCJ=yes
24189   if test "$with_gnu_ld" = yes; then
24190     # If archive_cmds runs LD, not CC, wlarc should be empty
24191     wlarc='${wl}'
24192
24193     # Set some defaults for GNU ld with shared library support. These
24194     # are reset later if shared libraries are not supported. Putting them
24195     # here allows them to be overridden if necessary.
24196     runpath_var=LD_RUN_PATH
24197     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24198     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24199     # ancient GNU ld didn't support --whole-archive et. al.
24200     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24201         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24202       else
24203         whole_archive_flag_spec_GCJ=
24204     fi
24205     supports_anon_versioning=no
24206     case `$LD -v 2>/dev/null` in
24207       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24208       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24209       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24210       *\ 2.11.*) ;; # other 2.11 versions
24211       *) supports_anon_versioning=yes ;;
24212     esac
24213
24214     # See if GNU ld supports shared libraries.
24215     case $host_os in
24216     aix3* | aix4* | aix5*)
24217       # On AIX/PPC, the GNU linker is very broken
24218       if test "$host_cpu" != ia64; then
24219         ld_shlibs_GCJ=no
24220         cat <<EOF 1>&2
24221
24222 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24223 *** to be unable to reliably create shared libraries on AIX.
24224 *** Therefore, libtool is disabling shared libraries support.  If you
24225 *** really care for shared libraries, you may want to modify your PATH
24226 *** so that a non-GNU linker is found, and then restart.
24227
24228 EOF
24229       fi
24230       ;;
24231
24232     amigaos*)
24233       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)'
24234       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24235       hardcode_minus_L_GCJ=yes
24236
24237       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24238       # that the semantics of dynamic libraries on AmigaOS, at least up
24239       # to version 4, is to share data among multiple programs linked
24240       # with the same dynamic library.  Since this doesn't match the
24241       # behavior of shared libraries on other platforms, we can't use
24242       # them.
24243       ld_shlibs_GCJ=no
24244       ;;
24245
24246     beos*)
24247       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24248         allow_undefined_flag_GCJ=unsupported
24249         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24250         # support --undefined.  This deserves some investigation.  FIXME
24251         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24252       else
24253         ld_shlibs_GCJ=no
24254       fi
24255       ;;
24256
24257     cygwin* | mingw* | pw32*)
24258       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24259       # as there is no search path for DLLs.
24260       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24261       allow_undefined_flag_GCJ=unsupported
24262       always_export_symbols_GCJ=no
24263       enable_shared_with_static_runtimes_GCJ=yes
24264       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24265
24266       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24267         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24268         # If the export-symbols file already is a .def file (1st line
24269         # is EXPORTS), use it as is; otherwise, prepend...
24270         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24271           cp $export_symbols $output_objdir/$soname.def;
24272         else
24273           echo EXPORTS > $output_objdir/$soname.def;
24274           cat $export_symbols >> $output_objdir/$soname.def;
24275         fi~
24276         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24277       else
24278         ld_shlibs_GCJ=no
24279       fi
24280       ;;
24281
24282     interix3*)
24283       hardcode_direct_GCJ=no
24284       hardcode_shlibpath_var_GCJ=no
24285       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24286       export_dynamic_flag_spec_GCJ='${wl}-E'
24287       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24288       # Instead, shared libraries are loaded at an image base (0x10000000 by
24289       # default) and relocated if they conflict, which is a slow very memory
24290       # consuming and fragmenting process.  To avoid this, we pick a random,
24291       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24292       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24293       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'
24294       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'
24295       ;;
24296
24297     linux*)
24298       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24299         tmp_addflag=
24300         case $cc_basename,$host_cpu in
24301         pgcc*)                          # Portland Group C compiler
24302           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'
24303           tmp_addflag=' $pic_flag'
24304           ;;
24305         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24306           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'
24307           tmp_addflag=' $pic_flag -Mnomain' ;;
24308         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24309           tmp_addflag=' -i_dynamic' ;;
24310         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24311           tmp_addflag=' -i_dynamic -nofor_main' ;;
24312         ifc* | ifort*)                  # Intel Fortran compiler
24313           tmp_addflag=' -nofor_main' ;;
24314         esac
24315         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24316
24317         if test $supports_anon_versioning = yes; then
24318           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24319   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24320   $echo "local: *; };" >> $output_objdir/$libname.ver~
24321           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24322         fi
24323       else
24324         ld_shlibs_GCJ=no
24325       fi
24326       ;;
24327
24328     netbsd*)
24329       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24330         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24331         wlarc=
24332       else
24333         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24334         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24335       fi
24336       ;;
24337
24338     solaris*)
24339       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24340         ld_shlibs_GCJ=no
24341         cat <<EOF 1>&2
24342
24343 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24344 *** create shared libraries on Solaris systems.  Therefore, libtool
24345 *** is disabling shared libraries support.  We urge you to upgrade GNU
24346 *** binutils to release 2.9.1 or newer.  Another option is to modify
24347 *** your PATH or compiler configuration so that the native linker is
24348 *** used, and then restart.
24349
24350 EOF
24351       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24352         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24353         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24354       else
24355         ld_shlibs_GCJ=no
24356       fi
24357       ;;
24358
24359     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24360       case `$LD -v 2>&1` in
24361         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24362         ld_shlibs_GCJ=no
24363         cat <<_LT_EOF 1>&2
24364
24365 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24366 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24367 *** is disabling shared libraries support.  We urge you to upgrade GNU
24368 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24369 *** your PATH or compiler configuration so that the native linker is
24370 *** used, and then restart.
24371
24372 _LT_EOF
24373         ;;
24374         *)
24375           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24376             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24377             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24378             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24379           else
24380             ld_shlibs_GCJ=no
24381           fi
24382         ;;
24383       esac
24384       ;;
24385
24386     sunos4*)
24387       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24388       wlarc=
24389       hardcode_direct_GCJ=yes
24390       hardcode_shlibpath_var_GCJ=no
24391       ;;
24392
24393     *)
24394       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24395         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24396         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24397       else
24398         ld_shlibs_GCJ=no
24399       fi
24400       ;;
24401     esac
24402
24403     if test "$ld_shlibs_GCJ" = no; then
24404       runpath_var=
24405       hardcode_libdir_flag_spec_GCJ=
24406       export_dynamic_flag_spec_GCJ=
24407       whole_archive_flag_spec_GCJ=
24408     fi
24409   else
24410     # PORTME fill in a description of your system's linker (not GNU ld)
24411     case $host_os in
24412     aix3*)
24413       allow_undefined_flag_GCJ=unsupported
24414       always_export_symbols_GCJ=yes
24415       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'
24416       # Note: this linker hardcodes the directories in LIBPATH if there
24417       # are no directories specified by -L.
24418       hardcode_minus_L_GCJ=yes
24419       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24420         # Neither direct hardcoding nor static linking is supported with a
24421         # broken collect2.
24422         hardcode_direct_GCJ=unsupported
24423       fi
24424       ;;
24425
24426     aix4* | aix5*)
24427       if test "$host_cpu" = ia64; then
24428         # On IA64, the linker does run time linking by default, so we don't
24429         # have to do anything special.
24430         aix_use_runtimelinking=no
24431         exp_sym_flag='-Bexport'
24432         no_entry_flag=""
24433       else
24434         # If we're using GNU nm, then we don't want the "-C" option.
24435         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24436         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24437           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'
24438         else
24439           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'
24440         fi
24441         aix_use_runtimelinking=no
24442
24443         # Test if we are trying to use run time linking or normal
24444         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24445         # need to do runtime linking.
24446         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24447           for ld_flag in $LDFLAGS; do
24448           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24449             aix_use_runtimelinking=yes
24450             break
24451           fi
24452           done
24453           ;;
24454         esac
24455
24456         exp_sym_flag='-bexport'
24457         no_entry_flag='-bnoentry'
24458       fi
24459
24460       # When large executables or shared objects are built, AIX ld can
24461       # have problems creating the table of contents.  If linking a library
24462       # or program results in "error TOC overflow" add -mminimal-toc to
24463       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24464       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24465
24466       archive_cmds_GCJ=''
24467       hardcode_direct_GCJ=yes
24468       hardcode_libdir_separator_GCJ=':'
24469       link_all_deplibs_GCJ=yes
24470
24471       if test "$GCC" = yes; then
24472         case $host_os in aix4.[012]|aix4.[012].*)
24473         # We only want to do this on AIX 4.2 and lower, the check
24474         # below for broken collect2 doesn't work under 4.3+
24475           collect2name=`${CC} -print-prog-name=collect2`
24476           if test -f "$collect2name" && \
24477            strings "$collect2name" | grep resolve_lib_name >/dev/null
24478           then
24479           # We have reworked collect2
24480           hardcode_direct_GCJ=yes
24481           else
24482           # We have old collect2
24483           hardcode_direct_GCJ=unsupported
24484           # It fails to find uninstalled libraries when the uninstalled
24485           # path is not listed in the libpath.  Setting hardcode_minus_L
24486           # to unsupported forces relinking
24487           hardcode_minus_L_GCJ=yes
24488           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24489           hardcode_libdir_separator_GCJ=
24490           fi
24491           ;;
24492         esac
24493         shared_flag='-shared'
24494         if test "$aix_use_runtimelinking" = yes; then
24495           shared_flag="$shared_flag "'${wl}-G'
24496         fi
24497       else
24498         # not using gcc
24499         if test "$host_cpu" = ia64; then
24500         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24501         # chokes on -Wl,-G. The following line is correct:
24502           shared_flag='-G'
24503         else
24504           if test "$aix_use_runtimelinking" = yes; then
24505             shared_flag='${wl}-G'
24506           else
24507             shared_flag='${wl}-bM:SRE'
24508           fi
24509         fi
24510       fi
24511
24512       # It seems that -bexpall does not export symbols beginning with
24513       # underscore (_), so it is better to generate a list of symbols to export.
24514       always_export_symbols_GCJ=yes
24515       if test "$aix_use_runtimelinking" = yes; then
24516         # Warning - without using the other runtime loading flags (-brtl),
24517         # -berok will link without error, but may produce a broken library.
24518         allow_undefined_flag_GCJ='-berok'
24519        # Determine the default libpath from the value encoded in an empty executable.
24520        cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h.  */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h.  */
24526
24527 int
24528 main ()
24529 {
24530
24531   ;
24532   return 0;
24533 }
24534 _ACEOF
24535 rm -f conftest.$ac_objext conftest$ac_exeext
24536 if { (ac_try="$ac_link"
24537 case "(($ac_try" in
24538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539   *) ac_try_echo=$ac_try;;
24540 esac
24541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542   (eval "$ac_link") 2>conftest.er1
24543   ac_status=$?
24544   grep -v '^ *+' conftest.er1 >conftest.err
24545   rm -f conftest.er1
24546   cat conftest.err >&5
24547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548   (exit $ac_status); } &&
24549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24550   { (case "(($ac_try" in
24551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552   *) ac_try_echo=$ac_try;;
24553 esac
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555   (eval "$ac_try") 2>&5
24556   ac_status=$?
24557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558   (exit $ac_status); }; } &&
24559          { ac_try='test -s conftest$ac_exeext'
24560   { (case "(($ac_try" in
24561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562   *) ac_try_echo=$ac_try;;
24563 esac
24564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565   (eval "$ac_try") 2>&5
24566   ac_status=$?
24567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568   (exit $ac_status); }; }; then
24569
24570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24571 }'`
24572 # Check for a 64-bit object if we didn't find anything.
24573 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; }
24574 }'`; fi
24575 else
24576   echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24578
24579
24580 fi
24581
24582 rm -f core conftest.err conftest.$ac_objext \
24583       conftest$ac_exeext conftest.$ac_ext
24584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24585
24586        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24587         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"
24588        else
24589         if test "$host_cpu" = ia64; then
24590           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24591           allow_undefined_flag_GCJ="-z nodefs"
24592           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"
24593         else
24594          # Determine the default libpath from the value encoded in an empty executable.
24595          cat >conftest.$ac_ext <<_ACEOF
24596 /* confdefs.h.  */
24597 _ACEOF
24598 cat confdefs.h >>conftest.$ac_ext
24599 cat >>conftest.$ac_ext <<_ACEOF
24600 /* end confdefs.h.  */
24601
24602 int
24603 main ()
24604 {
24605
24606   ;
24607   return 0;
24608 }
24609 _ACEOF
24610 rm -f conftest.$ac_objext conftest$ac_exeext
24611 if { (ac_try="$ac_link"
24612 case "(($ac_try" in
24613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614   *) ac_try_echo=$ac_try;;
24615 esac
24616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24617   (eval "$ac_link") 2>conftest.er1
24618   ac_status=$?
24619   grep -v '^ *+' conftest.er1 >conftest.err
24620   rm -f conftest.er1
24621   cat conftest.err >&5
24622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623   (exit $ac_status); } &&
24624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24625   { (case "(($ac_try" in
24626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627   *) ac_try_echo=$ac_try;;
24628 esac
24629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630   (eval "$ac_try") 2>&5
24631   ac_status=$?
24632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633   (exit $ac_status); }; } &&
24634          { ac_try='test -s conftest$ac_exeext'
24635   { (case "(($ac_try" in
24636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637   *) ac_try_echo=$ac_try;;
24638 esac
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640   (eval "$ac_try") 2>&5
24641   ac_status=$?
24642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643   (exit $ac_status); }; }; then
24644
24645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24646 }'`
24647 # Check for a 64-bit object if we didn't find anything.
24648 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; }
24649 }'`; fi
24650 else
24651   echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24653
24654
24655 fi
24656
24657 rm -f core conftest.err conftest.$ac_objext \
24658       conftest$ac_exeext conftest.$ac_ext
24659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24660
24661          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24662           # Warning - without using the other run time loading flags,
24663           # -berok will link without error, but may produce a broken library.
24664           no_undefined_flag_GCJ=' ${wl}-bernotok'
24665           allow_undefined_flag_GCJ=' ${wl}-berok'
24666           # Exported symbols can be pulled into shared objects from archives
24667           whole_archive_flag_spec_GCJ='$convenience'
24668           archive_cmds_need_lc_GCJ=yes
24669           # This is similar to how AIX traditionally builds its shared libraries.
24670           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'
24671         fi
24672       fi
24673       ;;
24674
24675     amigaos*)
24676       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)'
24677       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24678       hardcode_minus_L_GCJ=yes
24679       # see comment about different semantics on the GNU ld section
24680       ld_shlibs_GCJ=no
24681       ;;
24682
24683     bsdi[45]*)
24684       export_dynamic_flag_spec_GCJ=-rdynamic
24685       ;;
24686
24687     cygwin* | mingw* | pw32*)
24688       # When not using gcc, we currently assume that we are using
24689       # Microsoft Visual C++.
24690       # hardcode_libdir_flag_spec is actually meaningless, as there is
24691       # no search path for DLLs.
24692       hardcode_libdir_flag_spec_GCJ=' '
24693       allow_undefined_flag_GCJ=unsupported
24694       # Tell ltmain to make .lib files, not .a files.
24695       libext=lib
24696       # Tell ltmain to make .dll files, not .so files.
24697       shrext_cmds=".dll"
24698       # FIXME: Setting linknames here is a bad hack.
24699       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24700       # The linker will automatically build a .lib file if we build a DLL.
24701       old_archive_From_new_cmds_GCJ='true'
24702       # FIXME: Should let the user specify the lib program.
24703       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24704       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24705       enable_shared_with_static_runtimes_GCJ=yes
24706       ;;
24707
24708     darwin* | rhapsody*)
24709       case $host_os in
24710         rhapsody* | darwin1.[012])
24711          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24712          ;;
24713        *) # Darwin 1.3 on
24714          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24715            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24716          else
24717            case ${MACOSX_DEPLOYMENT_TARGET} in
24718              10.[012])
24719                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24720                ;;
24721              10.*)
24722                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24723                ;;
24724            esac
24725          fi
24726          ;;
24727       esac
24728       archive_cmds_need_lc_GCJ=no
24729       hardcode_direct_GCJ=no
24730       hardcode_automatic_GCJ=yes
24731       hardcode_shlibpath_var_GCJ=unsupported
24732       whole_archive_flag_spec_GCJ=''
24733       link_all_deplibs_GCJ=yes
24734     if test "$GCC" = yes ; then
24735         output_verbose_link_cmd='echo'
24736         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24737       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24738       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24739       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}'
24740       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}'
24741     else
24742       case $cc_basename in
24743         xlc*)
24744          output_verbose_link_cmd='echo'
24745          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24746          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24747           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24748          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}'
24749           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}'
24750           ;;
24751        *)
24752          ld_shlibs_GCJ=no
24753           ;;
24754       esac
24755     fi
24756       ;;
24757
24758     dgux*)
24759       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24760       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24761       hardcode_shlibpath_var_GCJ=no
24762       ;;
24763
24764     freebsd1*)
24765       ld_shlibs_GCJ=no
24766       ;;
24767
24768     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24769     # support.  Future versions do this automatically, but an explicit c++rt0.o
24770     # does not break anything, and helps significantly (at the cost of a little
24771     # extra space).
24772     freebsd2.2*)
24773       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24774       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24775       hardcode_direct_GCJ=yes
24776       hardcode_shlibpath_var_GCJ=no
24777       ;;
24778
24779     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24780     freebsd2*)
24781       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24782       hardcode_direct_GCJ=yes
24783       hardcode_minus_L_GCJ=yes
24784       hardcode_shlibpath_var_GCJ=no
24785       ;;
24786
24787     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24788     freebsd* | kfreebsd*-gnu | dragonfly*)
24789       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24790       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24791       hardcode_direct_GCJ=yes
24792       hardcode_shlibpath_var_GCJ=no
24793       ;;
24794
24795     hpux9*)
24796       if test "$GCC" = yes; then
24797         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'
24798       else
24799         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'
24800       fi
24801       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24802       hardcode_libdir_separator_GCJ=:
24803       hardcode_direct_GCJ=yes
24804
24805       # hardcode_minus_L: Not really in the search PATH,
24806       # but as the default location of the library.
24807       hardcode_minus_L_GCJ=yes
24808       export_dynamic_flag_spec_GCJ='${wl}-E'
24809       ;;
24810
24811     hpux10*)
24812       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24813         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24814       else
24815         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24816       fi
24817       if test "$with_gnu_ld" = no; then
24818         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24819         hardcode_libdir_separator_GCJ=:
24820
24821         hardcode_direct_GCJ=yes
24822         export_dynamic_flag_spec_GCJ='${wl}-E'
24823
24824         # hardcode_minus_L: Not really in the search PATH,
24825         # but as the default location of the library.
24826         hardcode_minus_L_GCJ=yes
24827       fi
24828       ;;
24829
24830     hpux11*)
24831       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24832         case $host_cpu in
24833         hppa*64*)
24834           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24835           ;;
24836         ia64*)
24837           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24838           ;;
24839         *)
24840           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24841           ;;
24842         esac
24843       else
24844         case $host_cpu in
24845         hppa*64*)
24846           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24847           ;;
24848         ia64*)
24849           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24850           ;;
24851         *)
24852           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24853           ;;
24854         esac
24855       fi
24856       if test "$with_gnu_ld" = no; then
24857         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24858         hardcode_libdir_separator_GCJ=:
24859
24860         case $host_cpu in
24861         hppa*64*|ia64*)
24862           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24863           hardcode_direct_GCJ=no
24864           hardcode_shlibpath_var_GCJ=no
24865           ;;
24866         *)
24867           hardcode_direct_GCJ=yes
24868           export_dynamic_flag_spec_GCJ='${wl}-E'
24869
24870           # hardcode_minus_L: Not really in the search PATH,
24871           # but as the default location of the library.
24872           hardcode_minus_L_GCJ=yes
24873           ;;
24874         esac
24875       fi
24876       ;;
24877
24878     irix5* | irix6* | nonstopux*)
24879       if test "$GCC" = yes; then
24880         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'
24881       else
24882         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'
24883         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24884       fi
24885       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24886       hardcode_libdir_separator_GCJ=:
24887       link_all_deplibs_GCJ=yes
24888       ;;
24889
24890     netbsd*)
24891       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24892         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24893       else
24894         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24895       fi
24896       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24897       hardcode_direct_GCJ=yes
24898       hardcode_shlibpath_var_GCJ=no
24899       ;;
24900
24901     newsos6)
24902       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24903       hardcode_direct_GCJ=yes
24904       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24905       hardcode_libdir_separator_GCJ=:
24906       hardcode_shlibpath_var_GCJ=no
24907       ;;
24908
24909     openbsd*)
24910       hardcode_direct_GCJ=yes
24911       hardcode_shlibpath_var_GCJ=no
24912       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24913         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24914         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24915         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24916         export_dynamic_flag_spec_GCJ='${wl}-E'
24917       else
24918        case $host_os in
24919          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24920            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24921            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24922            ;;
24923          *)
24924            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24925            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24926            ;;
24927        esac
24928       fi
24929       ;;
24930
24931     os2*)
24932       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24933       hardcode_minus_L_GCJ=yes
24934       allow_undefined_flag_GCJ=unsupported
24935       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'
24936       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24937       ;;
24938
24939     osf3*)
24940       if test "$GCC" = yes; then
24941         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24942         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'
24943       else
24944         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24945         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'
24946       fi
24947       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24948       hardcode_libdir_separator_GCJ=:
24949       ;;
24950
24951     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24952       if test "$GCC" = yes; then
24953         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24954         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'
24955         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24956       else
24957         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24958         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'
24959         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~
24960         $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'
24961
24962         # Both c and cxx compiler support -rpath directly
24963         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24964       fi
24965       hardcode_libdir_separator_GCJ=:
24966       ;;
24967
24968     solaris*)
24969       no_undefined_flag_GCJ=' -z text'
24970       if test "$GCC" = yes; then
24971         wlarc='${wl}'
24972         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24973         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24974           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24975       else
24976         wlarc=''
24977         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24978         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24979         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24980       fi
24981       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24982       hardcode_shlibpath_var_GCJ=no
24983       case $host_os in
24984       solaris2.[0-5] | solaris2.[0-5].*) ;;
24985       *)
24986         # The compiler driver will combine linker options so we
24987         # cannot just pass the convience library names through
24988         # without $wl, iff we do not link with $LD.
24989         # Luckily, gcc supports the same syntax we need for Sun Studio.
24990         # Supported since Solaris 2.6 (maybe 2.5.1?)
24991         case $wlarc in
24992         '')
24993           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24994         *)
24995           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' ;;
24996         esac ;;
24997       esac
24998       link_all_deplibs_GCJ=yes
24999       ;;
25000
25001     sunos4*)
25002       if test "x$host_vendor" = xsequent; then
25003         # Use $CC to link under sequent, because it throws in some extra .o
25004         # files that make .init and .fini sections work.
25005         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25006       else
25007         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25008       fi
25009       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25010       hardcode_direct_GCJ=yes
25011       hardcode_minus_L_GCJ=yes
25012       hardcode_shlibpath_var_GCJ=no
25013       ;;
25014
25015     sysv4)
25016       case $host_vendor in
25017         sni)
25018           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25019           hardcode_direct_GCJ=yes # is this really true???
25020         ;;
25021         siemens)
25022           ## LD is ld it makes a PLAMLIB
25023           ## CC just makes a GrossModule.
25024           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25025           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25026           hardcode_direct_GCJ=no
25027         ;;
25028         motorola)
25029           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25030           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25031         ;;
25032       esac
25033       runpath_var='LD_RUN_PATH'
25034       hardcode_shlibpath_var_GCJ=no
25035       ;;
25036
25037     sysv4.3*)
25038       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25039       hardcode_shlibpath_var_GCJ=no
25040       export_dynamic_flag_spec_GCJ='-Bexport'
25041       ;;
25042
25043     sysv4*MP*)
25044       if test -d /usr/nec; then
25045         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25046         hardcode_shlibpath_var_GCJ=no
25047         runpath_var=LD_RUN_PATH
25048         hardcode_runpath_var=yes
25049         ld_shlibs_GCJ=yes
25050       fi
25051       ;;
25052
25053     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25054       no_undefined_flag_GCJ='${wl}-z,text'
25055       archive_cmds_need_lc_GCJ=no
25056       hardcode_shlibpath_var_GCJ=no
25057       runpath_var='LD_RUN_PATH'
25058
25059       if test "$GCC" = yes; then
25060         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25061         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25062       else
25063         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25064         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25065       fi
25066       ;;
25067
25068     sysv5* | sco3.2v5* | sco5v6*)
25069       # Note: We can NOT use -z defs as we might desire, because we do not
25070       # link with -lc, and that would cause any symbols used from libc to
25071       # always be unresolved, which means just about no library would
25072       # ever link correctly.  If we're not using GNU ld we use -z text
25073       # though, which does catch some bad symbols but isn't as heavy-handed
25074       # as -z defs.
25075       no_undefined_flag_GCJ='${wl}-z,text'
25076       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25077       archive_cmds_need_lc_GCJ=no
25078       hardcode_shlibpath_var_GCJ=no
25079       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25080       hardcode_libdir_separator_GCJ=':'
25081       link_all_deplibs_GCJ=yes
25082       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25083       runpath_var='LD_RUN_PATH'
25084
25085       if test "$GCC" = yes; then
25086         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25087         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25088       else
25089         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25090         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25091       fi
25092       ;;
25093
25094     uts4*)
25095       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25096       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25097       hardcode_shlibpath_var_GCJ=no
25098       ;;
25099
25100     *)
25101       ld_shlibs_GCJ=no
25102       ;;
25103     esac
25104   fi
25105
25106 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25107 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25108 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25109
25110 #
25111 # Do we need to explicitly link libc?
25112 #
25113 case "x$archive_cmds_need_lc_GCJ" in
25114 x|xyes)
25115   # Assume -lc should be added
25116   archive_cmds_need_lc_GCJ=yes
25117
25118   if test "$enable_shared" = yes && test "$GCC" = yes; then
25119     case $archive_cmds_GCJ in
25120     *'~'*)
25121       # FIXME: we may have to deal with multi-command sequences.
25122       ;;
25123     '$CC '*)
25124       # Test whether the compiler implicitly links with -lc since on some
25125       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25126       # to ld, don't add -lc before -lgcc.
25127       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25128 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25129       $rm conftest*
25130       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25131
25132       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25133   (eval $ac_compile) 2>&5
25134   ac_status=$?
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); } 2>conftest.err; then
25137         soname=conftest
25138         lib=conftest
25139         libobjs=conftest.$ac_objext
25140         deplibs=
25141         wl=$lt_prog_compiler_wl_GCJ
25142         pic_flag=$lt_prog_compiler_pic_GCJ
25143         compiler_flags=-v
25144         linker_flags=-v
25145         verstring=
25146         output_objdir=.
25147         libname=conftest
25148         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25149         allow_undefined_flag_GCJ=
25150         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25151   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25152   ac_status=$?
25153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154   (exit $ac_status); }
25155         then
25156           archive_cmds_need_lc_GCJ=no
25157         else
25158           archive_cmds_need_lc_GCJ=yes
25159         fi
25160         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25161       else
25162         cat conftest.err 1>&5
25163       fi
25164       $rm conftest*
25165       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25166 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25167       ;;
25168     esac
25169   fi
25170   ;;
25171 esac
25172
25173 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25174 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25175 library_names_spec=
25176 libname_spec='lib$name'
25177 soname_spec=
25178 shrext_cmds=".so"
25179 postinstall_cmds=
25180 postuninstall_cmds=
25181 finish_cmds=
25182 finish_eval=
25183 shlibpath_var=
25184 shlibpath_overrides_runpath=unknown
25185 version_type=none
25186 dynamic_linker="$host_os ld.so"
25187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25188 if test "$GCC" = yes; then
25189   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25190   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25191     # if the path contains ";" then we assume it to be the separator
25192     # otherwise default to the standard path separator (i.e. ":") - it is
25193     # assumed that no part of a normal pathname contains ";" but that should
25194     # okay in the real world where ";" in dirpaths is itself problematic.
25195     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25196   else
25197     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25198   fi
25199 else
25200   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25201 fi
25202 need_lib_prefix=unknown
25203 hardcode_into_libs=no
25204
25205 # when you set need_version to no, make sure it does not cause -set_version
25206 # flags to be left without arguments
25207 need_version=unknown
25208
25209 case $host_os in
25210 aix3*)
25211   version_type=linux
25212   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25213   shlibpath_var=LIBPATH
25214
25215   # AIX 3 has no versioning support, so we append a major version to the name.
25216   soname_spec='${libname}${release}${shared_ext}$major'
25217   ;;
25218
25219 aix4* | aix5*)
25220   version_type=linux
25221   need_lib_prefix=no
25222   need_version=no
25223   hardcode_into_libs=yes
25224   if test "$host_cpu" = ia64; then
25225     # AIX 5 supports IA64
25226     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25227     shlibpath_var=LD_LIBRARY_PATH
25228   else
25229     # With GCC up to 2.95.x, collect2 would create an import file
25230     # for dependence libraries.  The import file would start with
25231     # the line `#! .'.  This would cause the generated library to
25232     # depend on `.', always an invalid library.  This was fixed in
25233     # development snapshots of GCC prior to 3.0.
25234     case $host_os in
25235       aix4 | aix4.[01] | aix4.[01].*)
25236       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25237            echo ' yes '
25238            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25239         :
25240       else
25241         can_build_shared=no
25242       fi
25243       ;;
25244     esac
25245     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25246     # soname into executable. Probably we can add versioning support to
25247     # collect2, so additional links can be useful in future.
25248     if test "$aix_use_runtimelinking" = yes; then
25249       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25250       # instead of lib<name>.a to let people know that these are not
25251       # typical AIX shared libraries.
25252       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25253     else
25254       # We preserve .a as extension for shared libraries through AIX4.2
25255       # and later when we are not doing run time linking.
25256       library_names_spec='${libname}${release}.a $libname.a'
25257       soname_spec='${libname}${release}${shared_ext}$major'
25258     fi
25259     shlibpath_var=LIBPATH
25260   fi
25261   ;;
25262
25263 amigaos*)
25264   library_names_spec='$libname.ixlibrary $libname.a'
25265   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25266   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'
25267   ;;
25268
25269 beos*)
25270   library_names_spec='${libname}${shared_ext}'
25271   dynamic_linker="$host_os ld.so"
25272   shlibpath_var=LIBRARY_PATH
25273   ;;
25274
25275 bsdi[45]*)
25276   version_type=linux
25277   need_version=no
25278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25279   soname_spec='${libname}${release}${shared_ext}$major'
25280   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25281   shlibpath_var=LD_LIBRARY_PATH
25282   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25283   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25284   # the default ld.so.conf also contains /usr/contrib/lib and
25285   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25286   # libtool to hard-code these into programs
25287   ;;
25288
25289 cygwin* | mingw* | pw32*)
25290   version_type=windows
25291   shrext_cmds=".dll"
25292   need_version=no
25293   need_lib_prefix=no
25294
25295   case $GCC,$host_os in
25296   yes,cygwin* | yes,mingw* | yes,pw32*)
25297     library_names_spec='$libname.dll.a'
25298     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25299     postinstall_cmds='base_file=`basename \${file}`~
25300       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25301       dldir=$destdir/`dirname \$dlpath`~
25302       test -d \$dldir || mkdir -p \$dldir~
25303       $install_prog $dir/$dlname \$dldir/$dlname~
25304       chmod a+x \$dldir/$dlname'
25305     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25306       dlpath=$dir/\$dldll~
25307        $rm \$dlpath'
25308     shlibpath_overrides_runpath=yes
25309
25310     case $host_os in
25311     cygwin*)
25312       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25313       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25314       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25315       ;;
25316     mingw*)
25317       # MinGW DLLs use traditional 'lib' prefix
25318       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25319       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25320       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25321         # It is most probably a Windows format PATH printed by
25322         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25323         # path with ; separators, and with drive letters. We can handle the
25324         # drive letters (cygwin fileutils understands them), so leave them,
25325         # especially as we might pass files found there to a mingw objdump,
25326         # which wouldn't understand a cygwinified path. Ahh.
25327         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25328       else
25329         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25330       fi
25331       ;;
25332     pw32*)
25333       # pw32 DLLs use 'pw' prefix rather than 'lib'
25334       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25335       ;;
25336     esac
25337     ;;
25338
25339   *)
25340     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25341     ;;
25342   esac
25343   dynamic_linker='Win32 ld.exe'
25344   # FIXME: first we should search . and the directory the executable is in
25345   shlibpath_var=PATH
25346   ;;
25347
25348 darwin* | rhapsody*)
25349   dynamic_linker="$host_os dyld"
25350   version_type=darwin
25351   need_lib_prefix=no
25352   need_version=no
25353   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25354   soname_spec='${libname}${release}${major}$shared_ext'
25355   shlibpath_overrides_runpath=yes
25356   shlibpath_var=DYLD_LIBRARY_PATH
25357   shrext_cmds='.dylib'
25358   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25359   if test "$GCC" = yes; then
25360     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"`
25361   else
25362     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25363   fi
25364   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25365   ;;
25366
25367 dgux*)
25368   version_type=linux
25369   need_lib_prefix=no
25370   need_version=no
25371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25372   soname_spec='${libname}${release}${shared_ext}$major'
25373   shlibpath_var=LD_LIBRARY_PATH
25374   ;;
25375
25376 freebsd1*)
25377   dynamic_linker=no
25378   ;;
25379
25380 kfreebsd*-gnu)
25381   version_type=linux
25382   need_lib_prefix=no
25383   need_version=no
25384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25385   soname_spec='${libname}${release}${shared_ext}$major'
25386   shlibpath_var=LD_LIBRARY_PATH
25387   shlibpath_overrides_runpath=no
25388   hardcode_into_libs=yes
25389   dynamic_linker='GNU ld.so'
25390   ;;
25391
25392 freebsd* | dragonfly*)
25393   # DragonFly does not have aout.  When/if they implement a new
25394   # versioning mechanism, adjust this.
25395   if test -x /usr/bin/objformat; then
25396     objformat=`/usr/bin/objformat`
25397   else
25398     case $host_os in
25399     freebsd[123]*) objformat=aout ;;
25400     *) objformat=elf ;;
25401     esac
25402   fi
25403   version_type=freebsd-$objformat
25404   case $version_type in
25405     freebsd-elf*)
25406       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25407       need_version=no
25408       need_lib_prefix=no
25409       ;;
25410     freebsd-*)
25411       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25412       need_version=yes
25413       ;;
25414   esac
25415   shlibpath_var=LD_LIBRARY_PATH
25416   case $host_os in
25417   freebsd2*)
25418     shlibpath_overrides_runpath=yes
25419     ;;
25420   freebsd3.[01]* | freebsdelf3.[01]*)
25421     shlibpath_overrides_runpath=yes
25422     hardcode_into_libs=yes
25423     ;;
25424   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25425   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25426     shlibpath_overrides_runpath=no
25427     hardcode_into_libs=yes
25428     ;;
25429   freebsd*) # from 4.6 on
25430     shlibpath_overrides_runpath=yes
25431     hardcode_into_libs=yes
25432     ;;
25433   esac
25434   ;;
25435
25436 gnu*)
25437   version_type=linux
25438   need_lib_prefix=no
25439   need_version=no
25440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25441   soname_spec='${libname}${release}${shared_ext}$major'
25442   shlibpath_var=LD_LIBRARY_PATH
25443   hardcode_into_libs=yes
25444   ;;
25445
25446 hpux9* | hpux10* | hpux11*)
25447   # Give a soname corresponding to the major version so that dld.sl refuses to
25448   # link against other versions.
25449   version_type=sunos
25450   need_lib_prefix=no
25451   need_version=no
25452   case $host_cpu in
25453   ia64*)
25454     shrext_cmds='.so'
25455     hardcode_into_libs=yes
25456     dynamic_linker="$host_os dld.so"
25457     shlibpath_var=LD_LIBRARY_PATH
25458     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25460     soname_spec='${libname}${release}${shared_ext}$major'
25461     if test "X$HPUX_IA64_MODE" = X32; then
25462       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25463     else
25464       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25465     fi
25466     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25467     ;;
25468    hppa*64*)
25469      shrext_cmds='.sl'
25470      hardcode_into_libs=yes
25471      dynamic_linker="$host_os dld.sl"
25472      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25473      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25474      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25475      soname_spec='${libname}${release}${shared_ext}$major'
25476      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25477      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25478      ;;
25479    *)
25480     shrext_cmds='.sl'
25481     dynamic_linker="$host_os dld.sl"
25482     shlibpath_var=SHLIB_PATH
25483     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25485     soname_spec='${libname}${release}${shared_ext}$major'
25486     ;;
25487   esac
25488   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25489   postinstall_cmds='chmod 555 $lib'
25490   ;;
25491
25492 interix3*)
25493   version_type=linux
25494   need_lib_prefix=no
25495   need_version=no
25496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25497   soname_spec='${libname}${release}${shared_ext}$major'
25498   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25499   shlibpath_var=LD_LIBRARY_PATH
25500   shlibpath_overrides_runpath=no
25501   hardcode_into_libs=yes
25502   ;;
25503
25504 irix5* | irix6* | nonstopux*)
25505   case $host_os in
25506     nonstopux*) version_type=nonstopux ;;
25507     *)
25508         if test "$lt_cv_prog_gnu_ld" = yes; then
25509                 version_type=linux
25510         else
25511                 version_type=irix
25512         fi ;;
25513   esac
25514   need_lib_prefix=no
25515   need_version=no
25516   soname_spec='${libname}${release}${shared_ext}$major'
25517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25518   case $host_os in
25519   irix5* | nonstopux*)
25520     libsuff= shlibsuff=
25521     ;;
25522   *)
25523     case $LD in # libtool.m4 will add one of these switches to LD
25524     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25525       libsuff= shlibsuff= libmagic=32-bit;;
25526     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25527       libsuff=32 shlibsuff=N32 libmagic=N32;;
25528     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25529       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25530     *) libsuff= shlibsuff= libmagic=never-match;;
25531     esac
25532     ;;
25533   esac
25534   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25535   shlibpath_overrides_runpath=no
25536   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25537   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25538   hardcode_into_libs=yes
25539   ;;
25540
25541 # No shared lib support for Linux oldld, aout, or coff.
25542 linux*oldld* | linux*aout* | linux*coff*)
25543   dynamic_linker=no
25544   ;;
25545
25546 # This must be Linux ELF.
25547 linux*)
25548   version_type=linux
25549   need_lib_prefix=no
25550   need_version=no
25551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25552   soname_spec='${libname}${release}${shared_ext}$major'
25553   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25554   shlibpath_var=LD_LIBRARY_PATH
25555   shlibpath_overrides_runpath=no
25556   # This implies no fast_install, which is unacceptable.
25557   # Some rework will be needed to allow for fast_install
25558   # before this can be enabled.
25559   hardcode_into_libs=yes
25560
25561   # Append ld.so.conf contents to the search path
25562   if test -f /etc/ld.so.conf; then
25563     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' ' '`
25564     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25565   fi
25566
25567   # We used to test for /lib/ld.so.1 and disable shared libraries on
25568   # powerpc, because MkLinux only supported shared libraries with the
25569   # GNU dynamic linker.  Since this was broken with cross compilers,
25570   # most powerpc-linux boxes support dynamic linking these days and
25571   # people can always --disable-shared, the test was removed, and we
25572   # assume the GNU/Linux dynamic linker is in use.
25573   dynamic_linker='GNU/Linux ld.so'
25574   ;;
25575
25576 knetbsd*-gnu)
25577   version_type=linux
25578   need_lib_prefix=no
25579   need_version=no
25580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25581   soname_spec='${libname}${release}${shared_ext}$major'
25582   shlibpath_var=LD_LIBRARY_PATH
25583   shlibpath_overrides_runpath=no
25584   hardcode_into_libs=yes
25585   dynamic_linker='GNU ld.so'
25586   ;;
25587
25588 netbsd*)
25589   version_type=sunos
25590   need_lib_prefix=no
25591   need_version=no
25592   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25593     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25594     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25595     dynamic_linker='NetBSD (a.out) ld.so'
25596   else
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     dynamic_linker='NetBSD ld.elf_so'
25600   fi
25601   shlibpath_var=LD_LIBRARY_PATH
25602   shlibpath_overrides_runpath=yes
25603   hardcode_into_libs=yes
25604   ;;
25605
25606 newsos6)
25607   version_type=linux
25608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25609   shlibpath_var=LD_LIBRARY_PATH
25610   shlibpath_overrides_runpath=yes
25611   ;;
25612
25613 nto-qnx*)
25614   version_type=linux
25615   need_lib_prefix=no
25616   need_version=no
25617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25618   soname_spec='${libname}${release}${shared_ext}$major'
25619   shlibpath_var=LD_LIBRARY_PATH
25620   shlibpath_overrides_runpath=yes
25621   ;;
25622
25623 openbsd*)
25624   version_type=sunos
25625   sys_lib_dlsearch_path_spec="/usr/lib"
25626   need_lib_prefix=no
25627   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25628   case $host_os in
25629     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25630     *)                         need_version=no  ;;
25631   esac
25632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25633   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25634   shlibpath_var=LD_LIBRARY_PATH
25635   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25636     case $host_os in
25637       openbsd2.[89] | openbsd2.[89].*)
25638         shlibpath_overrides_runpath=no
25639         ;;
25640       *)
25641         shlibpath_overrides_runpath=yes
25642         ;;
25643       esac
25644   else
25645     shlibpath_overrides_runpath=yes
25646   fi
25647   ;;
25648
25649 os2*)
25650   libname_spec='$name'
25651   shrext_cmds=".dll"
25652   need_lib_prefix=no
25653   library_names_spec='$libname${shared_ext} $libname.a'
25654   dynamic_linker='OS/2 ld.exe'
25655   shlibpath_var=LIBPATH
25656   ;;
25657
25658 osf3* | osf4* | osf5*)
25659   version_type=osf
25660   need_lib_prefix=no
25661   need_version=no
25662   soname_spec='${libname}${release}${shared_ext}$major'
25663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25664   shlibpath_var=LD_LIBRARY_PATH
25665   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25666   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25667   ;;
25668
25669 solaris*)
25670   version_type=linux
25671   need_lib_prefix=no
25672   need_version=no
25673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25674   soname_spec='${libname}${release}${shared_ext}$major'
25675   shlibpath_var=LD_LIBRARY_PATH
25676   shlibpath_overrides_runpath=yes
25677   hardcode_into_libs=yes
25678   # ldd complains unless libraries are executable
25679   postinstall_cmds='chmod +x $lib'
25680   ;;
25681
25682 sunos4*)
25683   version_type=sunos
25684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25685   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25686   shlibpath_var=LD_LIBRARY_PATH
25687   shlibpath_overrides_runpath=yes
25688   if test "$with_gnu_ld" = yes; then
25689     need_lib_prefix=no
25690   fi
25691   need_version=yes
25692   ;;
25693
25694 sysv4 | sysv4.3*)
25695   version_type=linux
25696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25697   soname_spec='${libname}${release}${shared_ext}$major'
25698   shlibpath_var=LD_LIBRARY_PATH
25699   case $host_vendor in
25700     sni)
25701       shlibpath_overrides_runpath=no
25702       need_lib_prefix=no
25703       export_dynamic_flag_spec='${wl}-Blargedynsym'
25704       runpath_var=LD_RUN_PATH
25705       ;;
25706     siemens)
25707       need_lib_prefix=no
25708       ;;
25709     motorola)
25710       need_lib_prefix=no
25711       need_version=no
25712       shlibpath_overrides_runpath=no
25713       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25714       ;;
25715   esac
25716   ;;
25717
25718 sysv4*MP*)
25719   if test -d /usr/nec ;then
25720     version_type=linux
25721     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25722     soname_spec='$libname${shared_ext}.$major'
25723     shlibpath_var=LD_LIBRARY_PATH
25724   fi
25725   ;;
25726
25727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25728   version_type=freebsd-elf
25729   need_lib_prefix=no
25730   need_version=no
25731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25732   soname_spec='${libname}${release}${shared_ext}$major'
25733   shlibpath_var=LD_LIBRARY_PATH
25734   hardcode_into_libs=yes
25735   if test "$with_gnu_ld" = yes; then
25736     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25737     shlibpath_overrides_runpath=no
25738   else
25739     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25740     shlibpath_overrides_runpath=yes
25741     case $host_os in
25742       sco3.2v5*)
25743         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25744         ;;
25745     esac
25746   fi
25747   sys_lib_dlsearch_path_spec='/usr/lib'
25748   ;;
25749
25750 uts4*)
25751   version_type=linux
25752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25753   soname_spec='${libname}${release}${shared_ext}$major'
25754   shlibpath_var=LD_LIBRARY_PATH
25755   ;;
25756
25757 *)
25758   dynamic_linker=no
25759   ;;
25760 esac
25761 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25762 echo "${ECHO_T}$dynamic_linker" >&6; }
25763 test "$dynamic_linker" = no && can_build_shared=no
25764
25765 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25766 if test "$GCC" = yes; then
25767   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25768 fi
25769
25770 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25771 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25772 hardcode_action_GCJ=
25773 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25774    test -n "$runpath_var_GCJ" || \
25775    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25776
25777   # We can hardcode non-existant directories.
25778   if test "$hardcode_direct_GCJ" != no &&
25779      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25780      # have to relink, otherwise we might link with an installed library
25781      # when we should be linking with a yet-to-be-installed one
25782      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25783      test "$hardcode_minus_L_GCJ" != no; then
25784     # Linking always hardcodes the temporary library directory.
25785     hardcode_action_GCJ=relink
25786   else
25787     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25788     hardcode_action_GCJ=immediate
25789   fi
25790 else
25791   # We cannot hardcode anything, or else we can only hardcode existing
25792   # directories.
25793   hardcode_action_GCJ=unsupported
25794 fi
25795 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25796 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25797
25798 if test "$hardcode_action_GCJ" = relink; then
25799   # Fast installation is not supported
25800   enable_fast_install=no
25801 elif test "$shlibpath_overrides_runpath" = yes ||
25802      test "$enable_shared" = no; then
25803   # Fast installation is not necessary
25804   enable_fast_install=needless
25805 fi
25806
25807
25808 # The else clause should only fire when bootstrapping the
25809 # libtool distribution, otherwise you forgot to ship ltmain.sh
25810 # with your package, and you will get complaints that there are
25811 # no rules to generate ltmain.sh.
25812 if test -f "$ltmain"; then
25813   # See if we are running on zsh, and set the options which allow our commands through
25814   # without removal of \ escapes.
25815   if test -n "${ZSH_VERSION+set}" ; then
25816     setopt NO_GLOB_SUBST
25817   fi
25818   # Now quote all the things that may contain metacharacters while being
25819   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25820   # variables and quote the copies for generation of the libtool script.
25821   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25822     SED SHELL STRIP \
25823     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25824     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25825     deplibs_check_method reload_flag reload_cmds need_locks \
25826     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25827     lt_cv_sys_global_symbol_to_c_name_address \
25828     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25829     old_postinstall_cmds old_postuninstall_cmds \
25830     compiler_GCJ \
25831     CC_GCJ \
25832     LD_GCJ \
25833     lt_prog_compiler_wl_GCJ \
25834     lt_prog_compiler_pic_GCJ \
25835     lt_prog_compiler_static_GCJ \
25836     lt_prog_compiler_no_builtin_flag_GCJ \
25837     export_dynamic_flag_spec_GCJ \
25838     thread_safe_flag_spec_GCJ \
25839     whole_archive_flag_spec_GCJ \
25840     enable_shared_with_static_runtimes_GCJ \
25841     old_archive_cmds_GCJ \
25842     old_archive_from_new_cmds_GCJ \
25843     predep_objects_GCJ \
25844     postdep_objects_GCJ \
25845     predeps_GCJ \
25846     postdeps_GCJ \
25847     compiler_lib_search_path_GCJ \
25848     archive_cmds_GCJ \
25849     archive_expsym_cmds_GCJ \
25850     postinstall_cmds_GCJ \
25851     postuninstall_cmds_GCJ \
25852     old_archive_from_expsyms_cmds_GCJ \
25853     allow_undefined_flag_GCJ \
25854     no_undefined_flag_GCJ \
25855     export_symbols_cmds_GCJ \
25856     hardcode_libdir_flag_spec_GCJ \
25857     hardcode_libdir_flag_spec_ld_GCJ \
25858     hardcode_libdir_separator_GCJ \
25859     hardcode_automatic_GCJ \
25860     module_cmds_GCJ \
25861     module_expsym_cmds_GCJ \
25862     lt_cv_prog_compiler_c_o_GCJ \
25863     exclude_expsyms_GCJ \
25864     include_expsyms_GCJ; do
25865
25866     case $var in
25867     old_archive_cmds_GCJ | \
25868     old_archive_from_new_cmds_GCJ | \
25869     archive_cmds_GCJ | \
25870     archive_expsym_cmds_GCJ | \
25871     module_cmds_GCJ | \
25872     module_expsym_cmds_GCJ | \
25873     old_archive_from_expsyms_cmds_GCJ | \
25874     export_symbols_cmds_GCJ | \
25875     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25876     postinstall_cmds | postuninstall_cmds | \
25877     old_postinstall_cmds | old_postuninstall_cmds | \
25878     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25879       # Double-quote double-evaled strings.
25880       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25881       ;;
25882     *)
25883       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25884       ;;
25885     esac
25886   done
25887
25888   case $lt_echo in
25889   *'\$0 --fallback-echo"')
25890     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25891     ;;
25892   esac
25893
25894 cfgfile="$ofile"
25895
25896   cat <<__EOF__ >> "$cfgfile"
25897 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25898
25899 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25900
25901 # Shell to use when invoking shell scripts.
25902 SHELL=$lt_SHELL
25903
25904 # Whether or not to build shared libraries.
25905 build_libtool_libs=$enable_shared
25906
25907 # Whether or not to build static libraries.
25908 build_old_libs=$enable_static
25909
25910 # Whether or not to add -lc for building shared libraries.
25911 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25912
25913 # Whether or not to disallow shared libs when runtime libs are static
25914 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25915
25916 # Whether or not to optimize for fast installation.
25917 fast_install=$enable_fast_install
25918
25919 # The host system.
25920 host_alias=$host_alias
25921 host=$host
25922 host_os=$host_os
25923
25924 # The build system.
25925 build_alias=$build_alias
25926 build=$build
25927 build_os=$build_os
25928
25929 # An echo program that does not interpret backslashes.
25930 echo=$lt_echo
25931
25932 # The archiver.
25933 AR=$lt_AR
25934 AR_FLAGS=$lt_AR_FLAGS
25935
25936 # A C compiler.
25937 LTCC=$lt_LTCC
25938
25939 # LTCC compiler flags.
25940 LTCFLAGS=$lt_LTCFLAGS
25941
25942 # A language-specific compiler.
25943 CC=$lt_compiler_GCJ
25944
25945 # Is the compiler the GNU C compiler?
25946 with_gcc=$GCC_GCJ
25947
25948 # An ERE matcher.
25949 EGREP=$lt_EGREP
25950
25951 # The linker used to build libraries.
25952 LD=$lt_LD_GCJ
25953
25954 # Whether we need hard or soft links.
25955 LN_S=$lt_LN_S
25956
25957 # A BSD-compatible nm program.
25958 NM=$lt_NM
25959
25960 # A symbol stripping program
25961 STRIP=$lt_STRIP
25962
25963 # Used to examine libraries when file_magic_cmd begins "file"
25964 MAGIC_CMD=$MAGIC_CMD
25965
25966 # Used on cygwin: DLL creation program.
25967 DLLTOOL="$DLLTOOL"
25968
25969 # Used on cygwin: object dumper.
25970 OBJDUMP="$OBJDUMP"
25971
25972 # Used on cygwin: assembler.
25973 AS="$AS"
25974
25975 # The name of the directory that contains temporary libtool files.
25976 objdir=$objdir
25977
25978 # How to create reloadable object files.
25979 reload_flag=$lt_reload_flag
25980 reload_cmds=$lt_reload_cmds
25981
25982 # How to pass a linker flag through the compiler.
25983 wl=$lt_lt_prog_compiler_wl_GCJ
25984
25985 # Object file suffix (normally "o").
25986 objext="$ac_objext"
25987
25988 # Old archive suffix (normally "a").
25989 libext="$libext"
25990
25991 # Shared library suffix (normally ".so").
25992 shrext_cmds='$shrext_cmds'
25993
25994 # Executable file suffix (normally "").
25995 exeext="$exeext"
25996
25997 # Additional compiler flags for building library objects.
25998 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25999 pic_mode=$pic_mode
26000
26001 # What is the maximum length of a command?
26002 max_cmd_len=$lt_cv_sys_max_cmd_len
26003
26004 # Does compiler simultaneously support -c and -o options?
26005 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26006
26007 # Must we lock files when doing compilation?
26008 need_locks=$lt_need_locks
26009
26010 # Do we need the lib prefix for modules?
26011 need_lib_prefix=$need_lib_prefix
26012
26013 # Do we need a version for libraries?
26014 need_version=$need_version
26015
26016 # Whether dlopen is supported.
26017 dlopen_support=$enable_dlopen
26018
26019 # Whether dlopen of programs is supported.
26020 dlopen_self=$enable_dlopen_self
26021
26022 # Whether dlopen of statically linked programs is supported.
26023 dlopen_self_static=$enable_dlopen_self_static
26024
26025 # Compiler flag to prevent dynamic linking.
26026 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26027
26028 # Compiler flag to turn off builtin functions.
26029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26030
26031 # Compiler flag to allow reflexive dlopens.
26032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26033
26034 # Compiler flag to generate shared objects directly from archives.
26035 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26036
26037 # Compiler flag to generate thread-safe objects.
26038 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26039
26040 # Library versioning type.
26041 version_type=$version_type
26042
26043 # Format of library name prefix.
26044 libname_spec=$lt_libname_spec
26045
26046 # List of archive names.  First name is the real one, the rest are links.
26047 # The last name is the one that the linker finds with -lNAME.
26048 library_names_spec=$lt_library_names_spec
26049
26050 # The coded name of the library, if different from the real name.
26051 soname_spec=$lt_soname_spec
26052
26053 # Commands used to build and install an old-style archive.
26054 RANLIB=$lt_RANLIB
26055 old_archive_cmds=$lt_old_archive_cmds_GCJ
26056 old_postinstall_cmds=$lt_old_postinstall_cmds
26057 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26058
26059 # Create an old-style archive from a shared archive.
26060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26061
26062 # Create a temporary old-style archive to link instead of a shared archive.
26063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26064
26065 # Commands used to build and install a shared archive.
26066 archive_cmds=$lt_archive_cmds_GCJ
26067 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26068 postinstall_cmds=$lt_postinstall_cmds
26069 postuninstall_cmds=$lt_postuninstall_cmds
26070
26071 # Commands used to build a loadable module (assumed same as above if empty)
26072 module_cmds=$lt_module_cmds_GCJ
26073 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26074
26075 # Commands to strip libraries.
26076 old_striplib=$lt_old_striplib
26077 striplib=$lt_striplib
26078
26079 # Dependencies to place before the objects being linked to create a
26080 # shared library.
26081 predep_objects=$lt_predep_objects_GCJ
26082
26083 # Dependencies to place after the objects being linked to create a
26084 # shared library.
26085 postdep_objects=$lt_postdep_objects_GCJ
26086
26087 # Dependencies to place before the objects being linked to create a
26088 # shared library.
26089 predeps=$lt_predeps_GCJ
26090
26091 # Dependencies to place after the objects being linked to create a
26092 # shared library.
26093 postdeps=$lt_postdeps_GCJ
26094
26095 # The library search path used internally by the compiler when linking
26096 # a shared library.
26097 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26098
26099 # Method to check whether dependent libraries are shared objects.
26100 deplibs_check_method=$lt_deplibs_check_method
26101
26102 # Command to use when deplibs_check_method == file_magic.
26103 file_magic_cmd=$lt_file_magic_cmd
26104
26105 # Flag that allows shared libraries with undefined symbols to be built.
26106 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26107
26108 # Flag that forces no undefined symbols.
26109 no_undefined_flag=$lt_no_undefined_flag_GCJ
26110
26111 # Commands used to finish a libtool library installation in a directory.
26112 finish_cmds=$lt_finish_cmds
26113
26114 # Same as above, but a single script fragment to be evaled but not shown.
26115 finish_eval=$lt_finish_eval
26116
26117 # Take the output of nm and produce a listing of raw symbols and C names.
26118 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26119
26120 # Transform the output of nm in a proper C declaration
26121 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26122
26123 # Transform the output of nm in a C name address pair
26124 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26125
26126 # This is the shared library runtime path variable.
26127 runpath_var=$runpath_var
26128
26129 # This is the shared library path variable.
26130 shlibpath_var=$shlibpath_var
26131
26132 # Is shlibpath searched before the hard-coded library search path?
26133 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26134
26135 # How to hardcode a shared library path into an executable.
26136 hardcode_action=$hardcode_action_GCJ
26137
26138 # Whether we should hardcode library paths into libraries.
26139 hardcode_into_libs=$hardcode_into_libs
26140
26141 # Flag to hardcode \$libdir into a binary during linking.
26142 # This must work even if \$libdir does not exist.
26143 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26144
26145 # If ld is used when linking, flag to hardcode \$libdir into
26146 # a binary during linking. This must work even if \$libdir does
26147 # not exist.
26148 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26149
26150 # Whether we need a single -rpath flag with a separated argument.
26151 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26152
26153 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26154 # resulting binary.
26155 hardcode_direct=$hardcode_direct_GCJ
26156
26157 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26158 # resulting binary.
26159 hardcode_minus_L=$hardcode_minus_L_GCJ
26160
26161 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26162 # the resulting binary.
26163 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26164
26165 # Set to yes if building a shared library automatically hardcodes DIR into the library
26166 # and all subsequent libraries and executables linked against it.
26167 hardcode_automatic=$hardcode_automatic_GCJ
26168
26169 # Variables whose values should be saved in libtool wrapper scripts and
26170 # restored at relink time.
26171 variables_saved_for_relink="$variables_saved_for_relink"
26172
26173 # Whether libtool must link a program against all its dependency libraries.
26174 link_all_deplibs=$link_all_deplibs_GCJ
26175
26176 # Compile-time system search path for libraries
26177 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26178
26179 # Run-time system search path for libraries
26180 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26181
26182 # Fix the shell variable \$srcfile for the compiler.
26183 fix_srcfile_path="$fix_srcfile_path_GCJ"
26184
26185 # Set to yes if exported symbols are required.
26186 always_export_symbols=$always_export_symbols_GCJ
26187
26188 # The commands to list exported symbols.
26189 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26190
26191 # The commands to extract the exported symbol list from a shared archive.
26192 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26193
26194 # Symbols that should not be listed in the preloaded symbols.
26195 exclude_expsyms=$lt_exclude_expsyms_GCJ
26196
26197 # Symbols that must always be exported.
26198 include_expsyms=$lt_include_expsyms_GCJ
26199
26200 # ### END LIBTOOL TAG CONFIG: $tagname
26201
26202 __EOF__
26203
26204
26205 else
26206   # If there is no Makefile yet, we rely on a make rule to execute
26207   # `config.status --recheck' to rerun these tests and create the
26208   # libtool script then.
26209   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26210   if test -f "$ltmain_in"; then
26211     test -f Makefile && make "$ltmain"
26212   fi
26213 fi
26214
26215
26216 ac_ext=c
26217 ac_cpp='$CPP $CPPFLAGS'
26218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26221
26222 CC="$lt_save_CC"
26223
26224         else
26225           tagname=""
26226         fi
26227         ;;
26228
26229       RC)
26230         ac_ext=c
26231 ac_cpp='$CPP $CPPFLAGS'
26232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26235
26236
26237 # Source file extension for RC test sources.
26238 ac_ext=rc
26239
26240 # Object file extension for compiled RC test sources.
26241 objext=o
26242 objext_RC=$objext
26243
26244 # Code to be used in simple compile tests
26245 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26246
26247 # Code to be used in simple link tests
26248 lt_simple_link_test_code="$lt_simple_compile_test_code"
26249
26250 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26251
26252 # If no C compiler was specified, use CC.
26253 LTCC=${LTCC-"$CC"}
26254
26255 # If no C compiler flags were specified, use CFLAGS.
26256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26257
26258 # Allow CC to be a program name with arguments.
26259 compiler=$CC
26260
26261
26262 # save warnings/boilerplate of simple test code
26263 ac_outfile=conftest.$ac_objext
26264 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26265 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26266 _lt_compiler_boilerplate=`cat conftest.err`
26267 $rm conftest*
26268
26269 ac_outfile=conftest.$ac_objext
26270 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26272 _lt_linker_boilerplate=`cat conftest.err`
26273 $rm conftest*
26274
26275
26276 # Allow CC to be a program name with arguments.
26277 lt_save_CC="$CC"
26278 CC=${RC-"windres"}
26279 compiler=$CC
26280 compiler_RC=$CC
26281 for cc_temp in $compiler""; do
26282   case $cc_temp in
26283     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26284     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26285     \-*) ;;
26286     *) break;;
26287   esac
26288 done
26289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26290
26291 lt_cv_prog_compiler_c_o_RC=yes
26292
26293 # The else clause should only fire when bootstrapping the
26294 # libtool distribution, otherwise you forgot to ship ltmain.sh
26295 # with your package, and you will get complaints that there are
26296 # no rules to generate ltmain.sh.
26297 if test -f "$ltmain"; then
26298   # See if we are running on zsh, and set the options which allow our commands through
26299   # without removal of \ escapes.
26300   if test -n "${ZSH_VERSION+set}" ; then
26301     setopt NO_GLOB_SUBST
26302   fi
26303   # Now quote all the things that may contain metacharacters while being
26304   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26305   # variables and quote the copies for generation of the libtool script.
26306   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26307     SED SHELL STRIP \
26308     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26309     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26310     deplibs_check_method reload_flag reload_cmds need_locks \
26311     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26312     lt_cv_sys_global_symbol_to_c_name_address \
26313     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26314     old_postinstall_cmds old_postuninstall_cmds \
26315     compiler_RC \
26316     CC_RC \
26317     LD_RC \
26318     lt_prog_compiler_wl_RC \
26319     lt_prog_compiler_pic_RC \
26320     lt_prog_compiler_static_RC \
26321     lt_prog_compiler_no_builtin_flag_RC \
26322     export_dynamic_flag_spec_RC \
26323     thread_safe_flag_spec_RC \
26324     whole_archive_flag_spec_RC \
26325     enable_shared_with_static_runtimes_RC \
26326     old_archive_cmds_RC \
26327     old_archive_from_new_cmds_RC \
26328     predep_objects_RC \
26329     postdep_objects_RC \
26330     predeps_RC \
26331     postdeps_RC \
26332     compiler_lib_search_path_RC \
26333     archive_cmds_RC \
26334     archive_expsym_cmds_RC \
26335     postinstall_cmds_RC \
26336     postuninstall_cmds_RC \
26337     old_archive_from_expsyms_cmds_RC \
26338     allow_undefined_flag_RC \
26339     no_undefined_flag_RC \
26340     export_symbols_cmds_RC \
26341     hardcode_libdir_flag_spec_RC \
26342     hardcode_libdir_flag_spec_ld_RC \
26343     hardcode_libdir_separator_RC \
26344     hardcode_automatic_RC \
26345     module_cmds_RC \
26346     module_expsym_cmds_RC \
26347     lt_cv_prog_compiler_c_o_RC \
26348     exclude_expsyms_RC \
26349     include_expsyms_RC; do
26350
26351     case $var in
26352     old_archive_cmds_RC | \
26353     old_archive_from_new_cmds_RC | \
26354     archive_cmds_RC | \
26355     archive_expsym_cmds_RC | \
26356     module_cmds_RC | \
26357     module_expsym_cmds_RC | \
26358     old_archive_from_expsyms_cmds_RC | \
26359     export_symbols_cmds_RC | \
26360     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26361     postinstall_cmds | postuninstall_cmds | \
26362     old_postinstall_cmds | old_postuninstall_cmds | \
26363     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26364       # Double-quote double-evaled strings.
26365       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26366       ;;
26367     *)
26368       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26369       ;;
26370     esac
26371   done
26372
26373   case $lt_echo in
26374   *'\$0 --fallback-echo"')
26375     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26376     ;;
26377   esac
26378
26379 cfgfile="$ofile"
26380
26381   cat <<__EOF__ >> "$cfgfile"
26382 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26383
26384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26385
26386 # Shell to use when invoking shell scripts.
26387 SHELL=$lt_SHELL
26388
26389 # Whether or not to build shared libraries.
26390 build_libtool_libs=$enable_shared
26391
26392 # Whether or not to build static libraries.
26393 build_old_libs=$enable_static
26394
26395 # Whether or not to add -lc for building shared libraries.
26396 build_libtool_need_lc=$archive_cmds_need_lc_RC
26397
26398 # Whether or not to disallow shared libs when runtime libs are static
26399 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26400
26401 # Whether or not to optimize for fast installation.
26402 fast_install=$enable_fast_install
26403
26404 # The host system.
26405 host_alias=$host_alias
26406 host=$host
26407 host_os=$host_os
26408
26409 # The build system.
26410 build_alias=$build_alias
26411 build=$build
26412 build_os=$build_os
26413
26414 # An echo program that does not interpret backslashes.
26415 echo=$lt_echo
26416
26417 # The archiver.
26418 AR=$lt_AR
26419 AR_FLAGS=$lt_AR_FLAGS
26420
26421 # A C compiler.
26422 LTCC=$lt_LTCC
26423
26424 # LTCC compiler flags.
26425 LTCFLAGS=$lt_LTCFLAGS
26426
26427 # A language-specific compiler.
26428 CC=$lt_compiler_RC
26429
26430 # Is the compiler the GNU C compiler?
26431 with_gcc=$GCC_RC
26432
26433 # An ERE matcher.
26434 EGREP=$lt_EGREP
26435
26436 # The linker used to build libraries.
26437 LD=$lt_LD_RC
26438
26439 # Whether we need hard or soft links.
26440 LN_S=$lt_LN_S
26441
26442 # A BSD-compatible nm program.
26443 NM=$lt_NM
26444
26445 # A symbol stripping program
26446 STRIP=$lt_STRIP
26447
26448 # Used to examine libraries when file_magic_cmd begins "file"
26449 MAGIC_CMD=$MAGIC_CMD
26450
26451 # Used on cygwin: DLL creation program.
26452 DLLTOOL="$DLLTOOL"
26453
26454 # Used on cygwin: object dumper.
26455 OBJDUMP="$OBJDUMP"
26456
26457 # Used on cygwin: assembler.
26458 AS="$AS"
26459
26460 # The name of the directory that contains temporary libtool files.
26461 objdir=$objdir
26462
26463 # How to create reloadable object files.
26464 reload_flag=$lt_reload_flag
26465 reload_cmds=$lt_reload_cmds
26466
26467 # How to pass a linker flag through the compiler.
26468 wl=$lt_lt_prog_compiler_wl_RC
26469
26470 # Object file suffix (normally "o").
26471 objext="$ac_objext"
26472
26473 # Old archive suffix (normally "a").
26474 libext="$libext"
26475
26476 # Shared library suffix (normally ".so").
26477 shrext_cmds='$shrext_cmds'
26478
26479 # Executable file suffix (normally "").
26480 exeext="$exeext"
26481
26482 # Additional compiler flags for building library objects.
26483 pic_flag=$lt_lt_prog_compiler_pic_RC
26484 pic_mode=$pic_mode
26485
26486 # What is the maximum length of a command?
26487 max_cmd_len=$lt_cv_sys_max_cmd_len
26488
26489 # Does compiler simultaneously support -c and -o options?
26490 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26491
26492 # Must we lock files when doing compilation?
26493 need_locks=$lt_need_locks
26494
26495 # Do we need the lib prefix for modules?
26496 need_lib_prefix=$need_lib_prefix
26497
26498 # Do we need a version for libraries?
26499 need_version=$need_version
26500
26501 # Whether dlopen is supported.
26502 dlopen_support=$enable_dlopen
26503
26504 # Whether dlopen of programs is supported.
26505 dlopen_self=$enable_dlopen_self
26506
26507 # Whether dlopen of statically linked programs is supported.
26508 dlopen_self_static=$enable_dlopen_self_static
26509
26510 # Compiler flag to prevent dynamic linking.
26511 link_static_flag=$lt_lt_prog_compiler_static_RC
26512
26513 # Compiler flag to turn off builtin functions.
26514 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26515
26516 # Compiler flag to allow reflexive dlopens.
26517 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26518
26519 # Compiler flag to generate shared objects directly from archives.
26520 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26521
26522 # Compiler flag to generate thread-safe objects.
26523 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26524
26525 # Library versioning type.
26526 version_type=$version_type
26527
26528 # Format of library name prefix.
26529 libname_spec=$lt_libname_spec
26530
26531 # List of archive names.  First name is the real one, the rest are links.
26532 # The last name is the one that the linker finds with -lNAME.
26533 library_names_spec=$lt_library_names_spec
26534
26535 # The coded name of the library, if different from the real name.
26536 soname_spec=$lt_soname_spec
26537
26538 # Commands used to build and install an old-style archive.
26539 RANLIB=$lt_RANLIB
26540 old_archive_cmds=$lt_old_archive_cmds_RC
26541 old_postinstall_cmds=$lt_old_postinstall_cmds
26542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26543
26544 # Create an old-style archive from a shared archive.
26545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26546
26547 # Create a temporary old-style archive to link instead of a shared archive.
26548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26549
26550 # Commands used to build and install a shared archive.
26551 archive_cmds=$lt_archive_cmds_RC
26552 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26553 postinstall_cmds=$lt_postinstall_cmds
26554 postuninstall_cmds=$lt_postuninstall_cmds
26555
26556 # Commands used to build a loadable module (assumed same as above if empty)
26557 module_cmds=$lt_module_cmds_RC
26558 module_expsym_cmds=$lt_module_expsym_cmds_RC
26559
26560 # Commands to strip libraries.
26561 old_striplib=$lt_old_striplib
26562 striplib=$lt_striplib
26563
26564 # Dependencies to place before the objects being linked to create a
26565 # shared library.
26566 predep_objects=$lt_predep_objects_RC
26567
26568 # Dependencies to place after the objects being linked to create a
26569 # shared library.
26570 postdep_objects=$lt_postdep_objects_RC
26571
26572 # Dependencies to place before the objects being linked to create a
26573 # shared library.
26574 predeps=$lt_predeps_RC
26575
26576 # Dependencies to place after the objects being linked to create a
26577 # shared library.
26578 postdeps=$lt_postdeps_RC
26579
26580 # The library search path used internally by the compiler when linking
26581 # a shared library.
26582 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26583
26584 # Method to check whether dependent libraries are shared objects.
26585 deplibs_check_method=$lt_deplibs_check_method
26586
26587 # Command to use when deplibs_check_method == file_magic.
26588 file_magic_cmd=$lt_file_magic_cmd
26589
26590 # Flag that allows shared libraries with undefined symbols to be built.
26591 allow_undefined_flag=$lt_allow_undefined_flag_RC
26592
26593 # Flag that forces no undefined symbols.
26594 no_undefined_flag=$lt_no_undefined_flag_RC
26595
26596 # Commands used to finish a libtool library installation in a directory.
26597 finish_cmds=$lt_finish_cmds
26598
26599 # Same as above, but a single script fragment to be evaled but not shown.
26600 finish_eval=$lt_finish_eval
26601
26602 # Take the output of nm and produce a listing of raw symbols and C names.
26603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26604
26605 # Transform the output of nm in a proper C declaration
26606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26607
26608 # Transform the output of nm in a C name address pair
26609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26610
26611 # This is the shared library runtime path variable.
26612 runpath_var=$runpath_var
26613
26614 # This is the shared library path variable.
26615 shlibpath_var=$shlibpath_var
26616
26617 # Is shlibpath searched before the hard-coded library search path?
26618 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26619
26620 # How to hardcode a shared library path into an executable.
26621 hardcode_action=$hardcode_action_RC
26622
26623 # Whether we should hardcode library paths into libraries.
26624 hardcode_into_libs=$hardcode_into_libs
26625
26626 # Flag to hardcode \$libdir into a binary during linking.
26627 # This must work even if \$libdir does not exist.
26628 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26629
26630 # If ld is used when linking, flag to hardcode \$libdir into
26631 # a binary during linking. This must work even if \$libdir does
26632 # not exist.
26633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26634
26635 # Whether we need a single -rpath flag with a separated argument.
26636 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26637
26638 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26639 # resulting binary.
26640 hardcode_direct=$hardcode_direct_RC
26641
26642 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26643 # resulting binary.
26644 hardcode_minus_L=$hardcode_minus_L_RC
26645
26646 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26647 # the resulting binary.
26648 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26649
26650 # Set to yes if building a shared library automatically hardcodes DIR into the library
26651 # and all subsequent libraries and executables linked against it.
26652 hardcode_automatic=$hardcode_automatic_RC
26653
26654 # Variables whose values should be saved in libtool wrapper scripts and
26655 # restored at relink time.
26656 variables_saved_for_relink="$variables_saved_for_relink"
26657
26658 # Whether libtool must link a program against all its dependency libraries.
26659 link_all_deplibs=$link_all_deplibs_RC
26660
26661 # Compile-time system search path for libraries
26662 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26663
26664 # Run-time system search path for libraries
26665 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26666
26667 # Fix the shell variable \$srcfile for the compiler.
26668 fix_srcfile_path="$fix_srcfile_path_RC"
26669
26670 # Set to yes if exported symbols are required.
26671 always_export_symbols=$always_export_symbols_RC
26672
26673 # The commands to list exported symbols.
26674 export_symbols_cmds=$lt_export_symbols_cmds_RC
26675
26676 # The commands to extract the exported symbol list from a shared archive.
26677 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26678
26679 # Symbols that should not be listed in the preloaded symbols.
26680 exclude_expsyms=$lt_exclude_expsyms_RC
26681
26682 # Symbols that must always be exported.
26683 include_expsyms=$lt_include_expsyms_RC
26684
26685 # ### END LIBTOOL TAG CONFIG: $tagname
26686
26687 __EOF__
26688
26689
26690 else
26691   # If there is no Makefile yet, we rely on a make rule to execute
26692   # `config.status --recheck' to rerun these tests and create the
26693   # libtool script then.
26694   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26695   if test -f "$ltmain_in"; then
26696     test -f Makefile && make "$ltmain"
26697   fi
26698 fi
26699
26700
26701 ac_ext=c
26702 ac_cpp='$CPP $CPPFLAGS'
26703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26706
26707 CC="$lt_save_CC"
26708
26709         ;;
26710
26711       *)
26712         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26713 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26714    { (exit 1); exit 1; }; }
26715         ;;
26716       esac
26717
26718       # Append the new tag name to the list of available tags.
26719       if test -n "$tagname" ; then
26720       available_tags="$available_tags $tagname"
26721     fi
26722     fi
26723   done
26724   IFS="$lt_save_ifs"
26725
26726   # Now substitute the updated list of available tags.
26727   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26728     mv "${ofile}T" "$ofile"
26729     chmod +x "$ofile"
26730   else
26731     rm -f "${ofile}T"
26732     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26733 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26734    { (exit 1); exit 1; }; }
26735   fi
26736 fi
26737
26738
26739
26740 # This can be used to rebuild libtool when needed
26741 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26742
26743 # Always use our own libtool.
26744 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26745
26746 # Prevent multiple expansion
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768 if test "$lt_cv_dlopen_self" = "yes" ; then
26769
26770 cat >>confdefs.h <<\_ACEOF
26771 #define CAN_DLOPEN_SELF 1
26772 _ACEOF
26773
26774 fi
26775
26776 if test "$WITH_LLVMGCCDIR" = "default" ; then
26777   LLVMGCC="llvm-gcc${EXEEXT}"
26778   LLVMGXX="llvm-g++${EXEEXT}"
26779   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26780 set dummy $LLVMGCC; ac_word=$2
26781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26783 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26784   echo $ECHO_N "(cached) $ECHO_C" >&6
26785 else
26786   case $LLVMGCC in
26787   [\\/]* | ?:[\\/]*)
26788   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26789   ;;
26790   *)
26791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26792 for as_dir in $PATH
26793 do
26794   IFS=$as_save_IFS
26795   test -z "$as_dir" && as_dir=.
26796   for ac_exec_ext in '' $ac_executable_extensions; do
26797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26798     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26800     break 2
26801   fi
26802 done
26803 done
26804 IFS=$as_save_IFS
26805
26806   ;;
26807 esac
26808 fi
26809 LLVMGCC=$ac_cv_path_LLVMGCC
26810 if test -n "$LLVMGCC"; then
26811   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26812 echo "${ECHO_T}$LLVMGCC" >&6; }
26813 else
26814   { echo "$as_me:$LINENO: result: no" >&5
26815 echo "${ECHO_T}no" >&6; }
26816 fi
26817
26818
26819   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26820 set dummy $LLVMGXX; ac_word=$2
26821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26823 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26824   echo $ECHO_N "(cached) $ECHO_C" >&6
26825 else
26826   case $LLVMGXX in
26827   [\\/]* | ?:[\\/]*)
26828   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26829   ;;
26830   *)
26831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26832 for as_dir in $PATH
26833 do
26834   IFS=$as_save_IFS
26835   test -z "$as_dir" && as_dir=.
26836   for ac_exec_ext in '' $ac_executable_extensions; do
26837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26838     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26840     break 2
26841   fi
26842 done
26843 done
26844 IFS=$as_save_IFS
26845
26846   ;;
26847 esac
26848 fi
26849 LLVMGXX=$ac_cv_path_LLVMGXX
26850 if test -n "$LLVMGXX"; then
26851   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26852 echo "${ECHO_T}$LLVMGXX" >&6; }
26853 else
26854   { echo "$as_me:$LINENO: result: no" >&5
26855 echo "${ECHO_T}no" >&6; }
26856 fi
26857
26858
26859 else
26860   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26861   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26862   LLVMGCC=$LLVMGCC
26863
26864   LLVMGXX=$LLVMGXX
26865
26866 fi
26867
26868 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26869 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26870
26871 ICC=no
26872 IXX=no
26873 case $CC in
26874   icc*|icpc*)
26875     ICC=yes
26876     IXX=yes
26877     ;;
26878    *)
26879     ;;
26880 esac
26881
26882 if test "$GCC" != "yes" && test "$ICC" != "yes"
26883 then
26884   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26885 echo "$as_me: error: gcc|icc required but not found" >&2;}
26886    { (exit 1); exit 1; }; }
26887 fi
26888
26889 if test "$GXX" != "yes" && test "$IXX" != "yes"
26890 then
26891   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26892 echo "$as_me: error: g++|icc required but not found" >&2;}
26893    { (exit 1); exit 1; }; }
26894 fi
26895
26896 if test "$GCC" = "yes"
26897 then
26898   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26899   if test "$gccmajor" -lt "3"
26900   then
26901     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26902 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26903    { (exit 1); exit 1; }; }
26904   fi
26905 fi
26906
26907 if test -z "$llvm_cv_gnu_make_command"
26908 then
26909   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26910 echo "$as_me: error: GNU Make required but not found" >&2;}
26911    { (exit 1); exit 1; }; }
26912 fi
26913
26914 { echo "$as_me:$LINENO: result: ok" >&5
26915 echo "${ECHO_T}ok" >&6; }
26916
26917
26918
26919 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26920 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26921 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26922   echo $ECHO_N "(cached) $ECHO_C" >&6
26923 else
26924   ac_check_lib_save_LIBS=$LIBS
26925 LIBS="-lelf  $LIBS"
26926 cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h.  */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h.  */
26932
26933 /* Override any GCC internal prototype to avoid an error.
26934    Use char because int might match the return type of a GCC
26935    builtin and then its argument prototype would still apply.  */
26936 #ifdef __cplusplus
26937 extern "C"
26938 #endif
26939 char elf_begin ();
26940 int
26941 main ()
26942 {
26943 return elf_begin ();
26944   ;
26945   return 0;
26946 }
26947 _ACEOF
26948 rm -f conftest.$ac_objext conftest$ac_exeext
26949 if { (ac_try="$ac_link"
26950 case "(($ac_try" in
26951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952   *) ac_try_echo=$ac_try;;
26953 esac
26954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955   (eval "$ac_link") 2>conftest.er1
26956   ac_status=$?
26957   grep -v '^ *+' conftest.er1 >conftest.err
26958   rm -f conftest.er1
26959   cat conftest.err >&5
26960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961   (exit $ac_status); } &&
26962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26963   { (case "(($ac_try" in
26964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26965   *) ac_try_echo=$ac_try;;
26966 esac
26967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26968   (eval "$ac_try") 2>&5
26969   ac_status=$?
26970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971   (exit $ac_status); }; } &&
26972          { ac_try='test -s conftest$ac_exeext'
26973   { (case "(($ac_try" in
26974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26975   *) ac_try_echo=$ac_try;;
26976 esac
26977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26978   (eval "$ac_try") 2>&5
26979   ac_status=$?
26980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981   (exit $ac_status); }; }; then
26982   ac_cv_lib_elf_elf_begin=yes
26983 else
26984   echo "$as_me: failed program was:" >&5
26985 sed 's/^/| /' conftest.$ac_ext >&5
26986
26987         ac_cv_lib_elf_elf_begin=no
26988 fi
26989
26990 rm -f core conftest.err conftest.$ac_objext \
26991       conftest$ac_exeext conftest.$ac_ext
26992 LIBS=$ac_check_lib_save_LIBS
26993 fi
26994 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26995 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26996 if test $ac_cv_lib_elf_elf_begin = yes; then
26997   cat >>confdefs.h <<_ACEOF
26998 #define HAVE_LIBELF 1
26999 _ACEOF
27000
27001   LIBS="-lelf $LIBS"
27002
27003 fi
27004
27005
27006 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27007 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27008 if test "${ac_cv_lib_m_sin+set}" = set; then
27009   echo $ECHO_N "(cached) $ECHO_C" >&6
27010 else
27011   ac_check_lib_save_LIBS=$LIBS
27012 LIBS="-lm  $LIBS"
27013 cat >conftest.$ac_ext <<_ACEOF
27014 /* confdefs.h.  */
27015 _ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h.  */
27019
27020 /* Override any GCC internal prototype to avoid an error.
27021    Use char because int might match the return type of a GCC
27022    builtin and then its argument prototype would still apply.  */
27023 #ifdef __cplusplus
27024 extern "C"
27025 #endif
27026 char sin ();
27027 int
27028 main ()
27029 {
27030 return sin ();
27031   ;
27032   return 0;
27033 }
27034 _ACEOF
27035 rm -f conftest.$ac_objext conftest$ac_exeext
27036 if { (ac_try="$ac_link"
27037 case "(($ac_try" in
27038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27039   *) ac_try_echo=$ac_try;;
27040 esac
27041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27042   (eval "$ac_link") 2>conftest.er1
27043   ac_status=$?
27044   grep -v '^ *+' conftest.er1 >conftest.err
27045   rm -f conftest.er1
27046   cat conftest.err >&5
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); } &&
27049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27050   { (case "(($ac_try" in
27051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052   *) ac_try_echo=$ac_try;;
27053 esac
27054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055   (eval "$ac_try") 2>&5
27056   ac_status=$?
27057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058   (exit $ac_status); }; } &&
27059          { ac_try='test -s conftest$ac_exeext'
27060   { (case "(($ac_try" in
27061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062   *) ac_try_echo=$ac_try;;
27063 esac
27064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065   (eval "$ac_try") 2>&5
27066   ac_status=$?
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); }; }; then
27069   ac_cv_lib_m_sin=yes
27070 else
27071   echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27073
27074         ac_cv_lib_m_sin=no
27075 fi
27076
27077 rm -f core conftest.err conftest.$ac_objext \
27078       conftest$ac_exeext conftest.$ac_ext
27079 LIBS=$ac_check_lib_save_LIBS
27080 fi
27081 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27082 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27083 if test $ac_cv_lib_m_sin = yes; then
27084   cat >>confdefs.h <<_ACEOF
27085 #define HAVE_LIBM 1
27086 _ACEOF
27087
27088   LIBS="-lm $LIBS"
27089
27090 fi
27091
27092 if test "$llvm_cv_os_type" = "MingW" ; then
27093
27094 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27095 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27096 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27097   echo $ECHO_N "(cached) $ECHO_C" >&6
27098 else
27099   ac_check_lib_save_LIBS=$LIBS
27100 LIBS="-limagehlp  $LIBS"
27101 cat >conftest.$ac_ext <<_ACEOF
27102 /* confdefs.h.  */
27103 _ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h.  */
27107
27108
27109 int
27110 main ()
27111 {
27112 return main ();
27113   ;
27114   return 0;
27115 }
27116 _ACEOF
27117 rm -f conftest.$ac_objext conftest$ac_exeext
27118 if { (ac_try="$ac_link"
27119 case "(($ac_try" in
27120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121   *) ac_try_echo=$ac_try;;
27122 esac
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124   (eval "$ac_link") 2>conftest.er1
27125   ac_status=$?
27126   grep -v '^ *+' conftest.er1 >conftest.err
27127   rm -f conftest.er1
27128   cat conftest.err >&5
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); } &&
27131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132   { (case "(($ac_try" in
27133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134   *) ac_try_echo=$ac_try;;
27135 esac
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137   (eval "$ac_try") 2>&5
27138   ac_status=$?
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); }; } &&
27141          { ac_try='test -s conftest$ac_exeext'
27142   { (case "(($ac_try" in
27143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144   *) ac_try_echo=$ac_try;;
27145 esac
27146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147   (eval "$ac_try") 2>&5
27148   ac_status=$?
27149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150   (exit $ac_status); }; }; then
27151   ac_cv_lib_imagehlp_main=yes
27152 else
27153   echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156         ac_cv_lib_imagehlp_main=no
27157 fi
27158
27159 rm -f core conftest.err conftest.$ac_objext \
27160       conftest$ac_exeext conftest.$ac_ext
27161 LIBS=$ac_check_lib_save_LIBS
27162 fi
27163 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27164 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27165 if test $ac_cv_lib_imagehlp_main = yes; then
27166   cat >>confdefs.h <<_ACEOF
27167 #define HAVE_LIBIMAGEHLP 1
27168 _ACEOF
27169
27170   LIBS="-limagehlp $LIBS"
27171
27172 fi
27173
27174
27175 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27176 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27177 if test "${ac_cv_lib_psapi_main+set}" = set; then
27178   echo $ECHO_N "(cached) $ECHO_C" >&6
27179 else
27180   ac_check_lib_save_LIBS=$LIBS
27181 LIBS="-lpsapi  $LIBS"
27182 cat >conftest.$ac_ext <<_ACEOF
27183 /* confdefs.h.  */
27184 _ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h.  */
27188
27189
27190 int
27191 main ()
27192 {
27193 return main ();
27194   ;
27195   return 0;
27196 }
27197 _ACEOF
27198 rm -f conftest.$ac_objext conftest$ac_exeext
27199 if { (ac_try="$ac_link"
27200 case "(($ac_try" in
27201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202   *) ac_try_echo=$ac_try;;
27203 esac
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205   (eval "$ac_link") 2>conftest.er1
27206   ac_status=$?
27207   grep -v '^ *+' conftest.er1 >conftest.err
27208   rm -f conftest.er1
27209   cat conftest.err >&5
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); } &&
27212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27213   { (case "(($ac_try" in
27214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215   *) ac_try_echo=$ac_try;;
27216 esac
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218   (eval "$ac_try") 2>&5
27219   ac_status=$?
27220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221   (exit $ac_status); }; } &&
27222          { ac_try='test -s conftest$ac_exeext'
27223   { (case "(($ac_try" in
27224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225   *) ac_try_echo=$ac_try;;
27226 esac
27227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228   (eval "$ac_try") 2>&5
27229   ac_status=$?
27230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231   (exit $ac_status); }; }; then
27232   ac_cv_lib_psapi_main=yes
27233 else
27234   echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27236
27237         ac_cv_lib_psapi_main=no
27238 fi
27239
27240 rm -f core conftest.err conftest.$ac_objext \
27241       conftest$ac_exeext conftest.$ac_ext
27242 LIBS=$ac_check_lib_save_LIBS
27243 fi
27244 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27245 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27246 if test $ac_cv_lib_psapi_main = yes; then
27247   cat >>confdefs.h <<_ACEOF
27248 #define HAVE_LIBPSAPI 1
27249 _ACEOF
27250
27251   LIBS="-lpsapi $LIBS"
27252
27253 fi
27254
27255 fi
27256
27257 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27258 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27259 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27260   echo $ECHO_N "(cached) $ECHO_C" >&6
27261 else
27262   ac_func_search_save_LIBS=$LIBS
27263 cat >conftest.$ac_ext <<_ACEOF
27264 /* confdefs.h.  */
27265 _ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h.  */
27269
27270 /* Override any GCC internal prototype to avoid an error.
27271    Use char because int might match the return type of a GCC
27272    builtin and then its argument prototype would still apply.  */
27273 #ifdef __cplusplus
27274 extern "C"
27275 #endif
27276 char lt_dlopen ();
27277 int
27278 main ()
27279 {
27280 return lt_dlopen ();
27281   ;
27282   return 0;
27283 }
27284 _ACEOF
27285 for ac_lib in '' ltdl; do
27286   if test -z "$ac_lib"; then
27287     ac_res="none required"
27288   else
27289     ac_res=-l$ac_lib
27290     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27291   fi
27292   rm -f conftest.$ac_objext conftest$ac_exeext
27293 if { (ac_try="$ac_link"
27294 case "(($ac_try" in
27295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296   *) ac_try_echo=$ac_try;;
27297 esac
27298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299   (eval "$ac_link") 2>conftest.er1
27300   ac_status=$?
27301   grep -v '^ *+' conftest.er1 >conftest.err
27302   rm -f conftest.er1
27303   cat conftest.err >&5
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); } &&
27306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27307   { (case "(($ac_try" in
27308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309   *) ac_try_echo=$ac_try;;
27310 esac
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312   (eval "$ac_try") 2>&5
27313   ac_status=$?
27314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315   (exit $ac_status); }; } &&
27316          { ac_try='test -s conftest$ac_exeext'
27317   { (case "(($ac_try" in
27318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319   *) ac_try_echo=$ac_try;;
27320 esac
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322   (eval "$ac_try") 2>&5
27323   ac_status=$?
27324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325   (exit $ac_status); }; }; then
27326   ac_cv_search_lt_dlopen=$ac_res
27327 else
27328   echo "$as_me: failed program was:" >&5
27329 sed 's/^/| /' conftest.$ac_ext >&5
27330
27331
27332 fi
27333
27334 rm -f core conftest.err conftest.$ac_objext \
27335       conftest$ac_exeext
27336   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27337   break
27338 fi
27339 done
27340 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27341   :
27342 else
27343   ac_cv_search_lt_dlopen=no
27344 fi
27345 rm conftest.$ac_ext
27346 LIBS=$ac_func_search_save_LIBS
27347 fi
27348 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27349 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27350 ac_res=$ac_cv_search_lt_dlopen
27351 if test "$ac_res" != no; then
27352   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27353
27354 cat >>confdefs.h <<\_ACEOF
27355 #define HAVE_LT_DLOPEN 1
27356 _ACEOF
27357
27358 else
27359   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27360                            not be available" >&5
27361 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27362                            not be available" >&2;}
27363 fi
27364
27365
27366 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27367 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27368 if test "${ac_cv_search_dlopen+set}" = set; then
27369   echo $ECHO_N "(cached) $ECHO_C" >&6
27370 else
27371   ac_func_search_save_LIBS=$LIBS
27372 cat >conftest.$ac_ext <<_ACEOF
27373 /* confdefs.h.  */
27374 _ACEOF
27375 cat confdefs.h >>conftest.$ac_ext
27376 cat >>conftest.$ac_ext <<_ACEOF
27377 /* end confdefs.h.  */
27378
27379 /* Override any GCC internal prototype to avoid an error.
27380    Use char because int might match the return type of a GCC
27381    builtin and then its argument prototype would still apply.  */
27382 #ifdef __cplusplus
27383 extern "C"
27384 #endif
27385 char dlopen ();
27386 int
27387 main ()
27388 {
27389 return dlopen ();
27390   ;
27391   return 0;
27392 }
27393 _ACEOF
27394 for ac_lib in '' dl; do
27395   if test -z "$ac_lib"; then
27396     ac_res="none required"
27397   else
27398     ac_res=-l$ac_lib
27399     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27400   fi
27401   rm -f conftest.$ac_objext conftest$ac_exeext
27402 if { (ac_try="$ac_link"
27403 case "(($ac_try" in
27404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27405   *) ac_try_echo=$ac_try;;
27406 esac
27407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27408   (eval "$ac_link") 2>conftest.er1
27409   ac_status=$?
27410   grep -v '^ *+' conftest.er1 >conftest.err
27411   rm -f conftest.er1
27412   cat conftest.err >&5
27413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414   (exit $ac_status); } &&
27415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27416   { (case "(($ac_try" in
27417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418   *) ac_try_echo=$ac_try;;
27419 esac
27420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421   (eval "$ac_try") 2>&5
27422   ac_status=$?
27423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424   (exit $ac_status); }; } &&
27425          { ac_try='test -s conftest$ac_exeext'
27426   { (case "(($ac_try" in
27427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428   *) ac_try_echo=$ac_try;;
27429 esac
27430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431   (eval "$ac_try") 2>&5
27432   ac_status=$?
27433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434   (exit $ac_status); }; }; then
27435   ac_cv_search_dlopen=$ac_res
27436 else
27437   echo "$as_me: failed program was:" >&5
27438 sed 's/^/| /' conftest.$ac_ext >&5
27439
27440
27441 fi
27442
27443 rm -f core conftest.err conftest.$ac_objext \
27444       conftest$ac_exeext
27445   if test "${ac_cv_search_dlopen+set}" = set; then
27446   break
27447 fi
27448 done
27449 if test "${ac_cv_search_dlopen+set}" = set; then
27450   :
27451 else
27452   ac_cv_search_dlopen=no
27453 fi
27454 rm conftest.$ac_ext
27455 LIBS=$ac_func_search_save_LIBS
27456 fi
27457 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27458 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27459 ac_res=$ac_cv_search_dlopen
27460 if test "$ac_res" != no; then
27461   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27462
27463 cat >>confdefs.h <<\_ACEOF
27464 #define HAVE_DLOPEN 1
27465 _ACEOF
27466
27467 else
27468   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27469 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27470 fi
27471
27472
27473 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27474 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27475 if test "${ac_cv_search_mallinfo+set}" = set; then
27476   echo $ECHO_N "(cached) $ECHO_C" >&6
27477 else
27478   ac_func_search_save_LIBS=$LIBS
27479 cat >conftest.$ac_ext <<_ACEOF
27480 /* confdefs.h.  */
27481 _ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h.  */
27485
27486 /* Override any GCC internal prototype to avoid an error.
27487    Use char because int might match the return type of a GCC
27488    builtin and then its argument prototype would still apply.  */
27489 #ifdef __cplusplus
27490 extern "C"
27491 #endif
27492 char mallinfo ();
27493 int
27494 main ()
27495 {
27496 return mallinfo ();
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 for ac_lib in '' malloc; do
27502   if test -z "$ac_lib"; then
27503     ac_res="none required"
27504   else
27505     ac_res=-l$ac_lib
27506     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27507   fi
27508   rm -f conftest.$ac_objext conftest$ac_exeext
27509 if { (ac_try="$ac_link"
27510 case "(($ac_try" in
27511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27512   *) ac_try_echo=$ac_try;;
27513 esac
27514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27515   (eval "$ac_link") 2>conftest.er1
27516   ac_status=$?
27517   grep -v '^ *+' conftest.er1 >conftest.err
27518   rm -f conftest.er1
27519   cat conftest.err >&5
27520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521   (exit $ac_status); } &&
27522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27523   { (case "(($ac_try" in
27524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27525   *) ac_try_echo=$ac_try;;
27526 esac
27527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27528   (eval "$ac_try") 2>&5
27529   ac_status=$?
27530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531   (exit $ac_status); }; } &&
27532          { ac_try='test -s conftest$ac_exeext'
27533   { (case "(($ac_try" in
27534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535   *) ac_try_echo=$ac_try;;
27536 esac
27537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27538   (eval "$ac_try") 2>&5
27539   ac_status=$?
27540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541   (exit $ac_status); }; }; then
27542   ac_cv_search_mallinfo=$ac_res
27543 else
27544   echo "$as_me: failed program was:" >&5
27545 sed 's/^/| /' conftest.$ac_ext >&5
27546
27547
27548 fi
27549
27550 rm -f core conftest.err conftest.$ac_objext \
27551       conftest$ac_exeext
27552   if test "${ac_cv_search_mallinfo+set}" = set; then
27553   break
27554 fi
27555 done
27556 if test "${ac_cv_search_mallinfo+set}" = set; then
27557   :
27558 else
27559   ac_cv_search_mallinfo=no
27560 fi
27561 rm conftest.$ac_ext
27562 LIBS=$ac_func_search_save_LIBS
27563 fi
27564 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27565 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27566 ac_res=$ac_cv_search_mallinfo
27567 if test "$ac_res" != no; then
27568   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27569
27570 cat >>confdefs.h <<\_ACEOF
27571 #define HAVE_MALLINFO 1
27572 _ACEOF
27573
27574 fi
27575
27576
27577 if test "$ENABLE_THREADS" -eq 1 ; then
27578
27579 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27580 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27581 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27582   echo $ECHO_N "(cached) $ECHO_C" >&6
27583 else
27584   ac_check_lib_save_LIBS=$LIBS
27585 LIBS="-lpthread  $LIBS"
27586 cat >conftest.$ac_ext <<_ACEOF
27587 /* confdefs.h.  */
27588 _ACEOF
27589 cat confdefs.h >>conftest.$ac_ext
27590 cat >>conftest.$ac_ext <<_ACEOF
27591 /* end confdefs.h.  */
27592
27593 /* Override any GCC internal prototype to avoid an error.
27594    Use char because int might match the return type of a GCC
27595    builtin and then its argument prototype would still apply.  */
27596 #ifdef __cplusplus
27597 extern "C"
27598 #endif
27599 char pthread_mutex_init ();
27600 int
27601 main ()
27602 {
27603 return pthread_mutex_init ();
27604   ;
27605   return 0;
27606 }
27607 _ACEOF
27608 rm -f conftest.$ac_objext conftest$ac_exeext
27609 if { (ac_try="$ac_link"
27610 case "(($ac_try" in
27611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612   *) ac_try_echo=$ac_try;;
27613 esac
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615   (eval "$ac_link") 2>conftest.er1
27616   ac_status=$?
27617   grep -v '^ *+' conftest.er1 >conftest.err
27618   rm -f conftest.er1
27619   cat conftest.err >&5
27620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); } &&
27622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27623   { (case "(($ac_try" in
27624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625   *) ac_try_echo=$ac_try;;
27626 esac
27627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27628   (eval "$ac_try") 2>&5
27629   ac_status=$?
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); }; } &&
27632          { ac_try='test -s conftest$ac_exeext'
27633   { (case "(($ac_try" in
27634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27635   *) ac_try_echo=$ac_try;;
27636 esac
27637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27638   (eval "$ac_try") 2>&5
27639   ac_status=$?
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); }; }; then
27642   ac_cv_lib_pthread_pthread_mutex_init=yes
27643 else
27644   echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27646
27647         ac_cv_lib_pthread_pthread_mutex_init=no
27648 fi
27649
27650 rm -f core conftest.err conftest.$ac_objext \
27651       conftest$ac_exeext conftest.$ac_ext
27652 LIBS=$ac_check_lib_save_LIBS
27653 fi
27654 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27655 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27656 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27657   cat >>confdefs.h <<_ACEOF
27658 #define HAVE_LIBPTHREAD 1
27659 _ACEOF
27660
27661   LIBS="-lpthread $LIBS"
27662
27663 fi
27664
27665   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27666 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27667 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27668   echo $ECHO_N "(cached) $ECHO_C" >&6
27669 else
27670   ac_func_search_save_LIBS=$LIBS
27671 cat >conftest.$ac_ext <<_ACEOF
27672 /* confdefs.h.  */
27673 _ACEOF
27674 cat confdefs.h >>conftest.$ac_ext
27675 cat >>conftest.$ac_ext <<_ACEOF
27676 /* end confdefs.h.  */
27677
27678 /* Override any GCC internal prototype to avoid an error.
27679    Use char because int might match the return type of a GCC
27680    builtin and then its argument prototype would still apply.  */
27681 #ifdef __cplusplus
27682 extern "C"
27683 #endif
27684 char pthread_mutex_lock ();
27685 int
27686 main ()
27687 {
27688 return pthread_mutex_lock ();
27689   ;
27690   return 0;
27691 }
27692 _ACEOF
27693 for ac_lib in '' pthread; do
27694   if test -z "$ac_lib"; then
27695     ac_res="none required"
27696   else
27697     ac_res=-l$ac_lib
27698     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27699   fi
27700   rm -f conftest.$ac_objext conftest$ac_exeext
27701 if { (ac_try="$ac_link"
27702 case "(($ac_try" in
27703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704   *) ac_try_echo=$ac_try;;
27705 esac
27706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707   (eval "$ac_link") 2>conftest.er1
27708   ac_status=$?
27709   grep -v '^ *+' conftest.er1 >conftest.err
27710   rm -f conftest.er1
27711   cat conftest.err >&5
27712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); } &&
27714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27715   { (case "(($ac_try" in
27716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717   *) ac_try_echo=$ac_try;;
27718 esac
27719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720   (eval "$ac_try") 2>&5
27721   ac_status=$?
27722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); }; } &&
27724          { ac_try='test -s conftest$ac_exeext'
27725   { (case "(($ac_try" in
27726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727   *) ac_try_echo=$ac_try;;
27728 esac
27729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27730   (eval "$ac_try") 2>&5
27731   ac_status=$?
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); }; }; then
27734   ac_cv_search_pthread_mutex_lock=$ac_res
27735 else
27736   echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27738
27739
27740 fi
27741
27742 rm -f core conftest.err conftest.$ac_objext \
27743       conftest$ac_exeext
27744   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27745   break
27746 fi
27747 done
27748 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27749   :
27750 else
27751   ac_cv_search_pthread_mutex_lock=no
27752 fi
27753 rm conftest.$ac_ext
27754 LIBS=$ac_func_search_save_LIBS
27755 fi
27756 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27757 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27758 ac_res=$ac_cv_search_pthread_mutex_lock
27759 if test "$ac_res" != no; then
27760   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27761
27762 cat >>confdefs.h <<\_ACEOF
27763 #define HAVE_PTHREAD_MUTEX_LOCK 1
27764 _ACEOF
27765
27766 fi
27767
27768 fi
27769
27770
27771 # Check whether --with-udis86 was given.
27772 if test "${with_udis86+set}" = set; then
27773   withval=$with_udis86;
27774       USE_UDIS86=1
27775
27776       case "$withval" in
27777         /usr/lib|yes) ;;
27778         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27779       esac
27780
27781 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27782 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27783 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27784   echo $ECHO_N "(cached) $ECHO_C" >&6
27785 else
27786   ac_check_lib_save_LIBS=$LIBS
27787 LIBS="-ludis86  $LIBS"
27788 cat >conftest.$ac_ext <<_ACEOF
27789 /* confdefs.h.  */
27790 _ACEOF
27791 cat confdefs.h >>conftest.$ac_ext
27792 cat >>conftest.$ac_ext <<_ACEOF
27793 /* end confdefs.h.  */
27794
27795 /* Override any GCC internal prototype to avoid an error.
27796    Use char because int might match the return type of a GCC
27797    builtin and then its argument prototype would still apply.  */
27798 #ifdef __cplusplus
27799 extern "C"
27800 #endif
27801 char ud_init ();
27802 int
27803 main ()
27804 {
27805 return ud_init ();
27806   ;
27807   return 0;
27808 }
27809 _ACEOF
27810 rm -f conftest.$ac_objext conftest$ac_exeext
27811 if { (ac_try="$ac_link"
27812 case "(($ac_try" in
27813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814   *) ac_try_echo=$ac_try;;
27815 esac
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817   (eval "$ac_link") 2>conftest.er1
27818   ac_status=$?
27819   grep -v '^ *+' conftest.er1 >conftest.err
27820   rm -f conftest.er1
27821   cat conftest.err >&5
27822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   (exit $ac_status); } &&
27824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27825   { (case "(($ac_try" in
27826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827   *) ac_try_echo=$ac_try;;
27828 esac
27829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27830   (eval "$ac_try") 2>&5
27831   ac_status=$?
27832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833   (exit $ac_status); }; } &&
27834          { ac_try='test -s conftest$ac_exeext'
27835   { (case "(($ac_try" in
27836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837   *) ac_try_echo=$ac_try;;
27838 esac
27839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840   (eval "$ac_try") 2>&5
27841   ac_status=$?
27842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843   (exit $ac_status); }; }; then
27844   ac_cv_lib_udis86_ud_init=yes
27845 else
27846   echo "$as_me: failed program was:" >&5
27847 sed 's/^/| /' conftest.$ac_ext >&5
27848
27849         ac_cv_lib_udis86_ud_init=no
27850 fi
27851
27852 rm -f core conftest.err conftest.$ac_objext \
27853       conftest$ac_exeext conftest.$ac_ext
27854 LIBS=$ac_check_lib_save_LIBS
27855 fi
27856 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27857 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27858 if test $ac_cv_lib_udis86_ud_init = yes; then
27859   cat >>confdefs.h <<_ACEOF
27860 #define HAVE_LIBUDIS86 1
27861 _ACEOF
27862
27863   LIBS="-ludis86 $LIBS"
27864
27865 else
27866
27867         echo "Error! You need to have libudis86 around."
27868         exit -1
27869
27870 fi
27871
27872
27873 else
27874   USE_UDIS86=0
27875
27876 fi
27877
27878
27879 cat >>confdefs.h <<_ACEOF
27880 #define USE_UDIS86 $USE_UDIS86
27881 _ACEOF
27882
27883
27884
27885
27886
27887
27888
27889
27890 ac_header_dirent=no
27891 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27892   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27893 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27894 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27896   echo $ECHO_N "(cached) $ECHO_C" >&6
27897 else
27898   cat >conftest.$ac_ext <<_ACEOF
27899 /* confdefs.h.  */
27900 _ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h.  */
27904 #include <sys/types.h>
27905 #include <$ac_hdr>
27906
27907 int
27908 main ()
27909 {
27910 if ((DIR *) 0)
27911 return 0;
27912   ;
27913   return 0;
27914 }
27915 _ACEOF
27916 rm -f conftest.$ac_objext
27917 if { (ac_try="$ac_compile"
27918 case "(($ac_try" in
27919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27920   *) ac_try_echo=$ac_try;;
27921 esac
27922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27923   (eval "$ac_compile") 2>conftest.er1
27924   ac_status=$?
27925   grep -v '^ *+' conftest.er1 >conftest.err
27926   rm -f conftest.er1
27927   cat conftest.err >&5
27928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929   (exit $ac_status); } &&
27930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27931   { (case "(($ac_try" in
27932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27933   *) ac_try_echo=$ac_try;;
27934 esac
27935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27936   (eval "$ac_try") 2>&5
27937   ac_status=$?
27938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939   (exit $ac_status); }; } &&
27940          { ac_try='test -s conftest.$ac_objext'
27941   { (case "(($ac_try" in
27942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943   *) ac_try_echo=$ac_try;;
27944 esac
27945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27946   (eval "$ac_try") 2>&5
27947   ac_status=$?
27948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949   (exit $ac_status); }; }; then
27950   eval "$as_ac_Header=yes"
27951 else
27952   echo "$as_me: failed program was:" >&5
27953 sed 's/^/| /' conftest.$ac_ext >&5
27954
27955         eval "$as_ac_Header=no"
27956 fi
27957
27958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27959 fi
27960 ac_res=`eval echo '${'$as_ac_Header'}'`
27961                { echo "$as_me:$LINENO: result: $ac_res" >&5
27962 echo "${ECHO_T}$ac_res" >&6; }
27963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27964   cat >>confdefs.h <<_ACEOF
27965 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27966 _ACEOF
27967
27968 ac_header_dirent=$ac_hdr; break
27969 fi
27970
27971 done
27972 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27973 if test $ac_header_dirent = dirent.h; then
27974   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27975 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27976 if test "${ac_cv_search_opendir+set}" = set; then
27977   echo $ECHO_N "(cached) $ECHO_C" >&6
27978 else
27979   ac_func_search_save_LIBS=$LIBS
27980 cat >conftest.$ac_ext <<_ACEOF
27981 /* confdefs.h.  */
27982 _ACEOF
27983 cat confdefs.h >>conftest.$ac_ext
27984 cat >>conftest.$ac_ext <<_ACEOF
27985 /* end confdefs.h.  */
27986
27987 /* Override any GCC internal prototype to avoid an error.
27988    Use char because int might match the return type of a GCC
27989    builtin and then its argument prototype would still apply.  */
27990 #ifdef __cplusplus
27991 extern "C"
27992 #endif
27993 char opendir ();
27994 int
27995 main ()
27996 {
27997 return opendir ();
27998   ;
27999   return 0;
28000 }
28001 _ACEOF
28002 for ac_lib in '' dir; do
28003   if test -z "$ac_lib"; then
28004     ac_res="none required"
28005   else
28006     ac_res=-l$ac_lib
28007     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28008   fi
28009   rm -f conftest.$ac_objext conftest$ac_exeext
28010 if { (ac_try="$ac_link"
28011 case "(($ac_try" in
28012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013   *) ac_try_echo=$ac_try;;
28014 esac
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016   (eval "$ac_link") 2>conftest.er1
28017   ac_status=$?
28018   grep -v '^ *+' conftest.er1 >conftest.err
28019   rm -f conftest.er1
28020   cat conftest.err >&5
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); } &&
28023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28024   { (case "(($ac_try" in
28025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026   *) ac_try_echo=$ac_try;;
28027 esac
28028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28029   (eval "$ac_try") 2>&5
28030   ac_status=$?
28031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032   (exit $ac_status); }; } &&
28033          { ac_try='test -s conftest$ac_exeext'
28034   { (case "(($ac_try" in
28035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28036   *) ac_try_echo=$ac_try;;
28037 esac
28038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28039   (eval "$ac_try") 2>&5
28040   ac_status=$?
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); }; }; then
28043   ac_cv_search_opendir=$ac_res
28044 else
28045   echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28047
28048
28049 fi
28050
28051 rm -f core conftest.err conftest.$ac_objext \
28052       conftest$ac_exeext
28053   if test "${ac_cv_search_opendir+set}" = set; then
28054   break
28055 fi
28056 done
28057 if test "${ac_cv_search_opendir+set}" = set; then
28058   :
28059 else
28060   ac_cv_search_opendir=no
28061 fi
28062 rm conftest.$ac_ext
28063 LIBS=$ac_func_search_save_LIBS
28064 fi
28065 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28066 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28067 ac_res=$ac_cv_search_opendir
28068 if test "$ac_res" != no; then
28069   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28070
28071 fi
28072
28073 else
28074   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28076 if test "${ac_cv_search_opendir+set}" = set; then
28077   echo $ECHO_N "(cached) $ECHO_C" >&6
28078 else
28079   ac_func_search_save_LIBS=$LIBS
28080 cat >conftest.$ac_ext <<_ACEOF
28081 /* confdefs.h.  */
28082 _ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h.  */
28086
28087 /* Override any GCC internal prototype to avoid an error.
28088    Use char because int might match the return type of a GCC
28089    builtin and then its argument prototype would still apply.  */
28090 #ifdef __cplusplus
28091 extern "C"
28092 #endif
28093 char opendir ();
28094 int
28095 main ()
28096 {
28097 return opendir ();
28098   ;
28099   return 0;
28100 }
28101 _ACEOF
28102 for ac_lib in '' x; do
28103   if test -z "$ac_lib"; then
28104     ac_res="none required"
28105   else
28106     ac_res=-l$ac_lib
28107     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28108   fi
28109   rm -f conftest.$ac_objext conftest$ac_exeext
28110 if { (ac_try="$ac_link"
28111 case "(($ac_try" in
28112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113   *) ac_try_echo=$ac_try;;
28114 esac
28115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28116   (eval "$ac_link") 2>conftest.er1
28117   ac_status=$?
28118   grep -v '^ *+' conftest.er1 >conftest.err
28119   rm -f conftest.er1
28120   cat conftest.err >&5
28121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122   (exit $ac_status); } &&
28123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28124   { (case "(($ac_try" in
28125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126   *) ac_try_echo=$ac_try;;
28127 esac
28128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129   (eval "$ac_try") 2>&5
28130   ac_status=$?
28131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132   (exit $ac_status); }; } &&
28133          { ac_try='test -s conftest$ac_exeext'
28134   { (case "(($ac_try" in
28135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136   *) ac_try_echo=$ac_try;;
28137 esac
28138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139   (eval "$ac_try") 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); }; }; then
28143   ac_cv_search_opendir=$ac_res
28144 else
28145   echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28147
28148
28149 fi
28150
28151 rm -f core conftest.err conftest.$ac_objext \
28152       conftest$ac_exeext
28153   if test "${ac_cv_search_opendir+set}" = set; then
28154   break
28155 fi
28156 done
28157 if test "${ac_cv_search_opendir+set}" = set; then
28158   :
28159 else
28160   ac_cv_search_opendir=no
28161 fi
28162 rm conftest.$ac_ext
28163 LIBS=$ac_func_search_save_LIBS
28164 fi
28165 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28166 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28167 ac_res=$ac_cv_search_opendir
28168 if test "$ac_res" != no; then
28169   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28170
28171 fi
28172
28173 fi
28174
28175 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28176 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28177 if test "${ac_cv_header_mmap_anon+set}" = set; then
28178   echo $ECHO_N "(cached) $ECHO_C" >&6
28179 else
28180    ac_ext=c
28181 ac_cpp='$CPP $CPPFLAGS'
28182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28185
28186   cat >conftest.$ac_ext <<_ACEOF
28187 /* confdefs.h.  */
28188 _ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h.  */
28192 #include <sys/mman.h>
28193 #include <unistd.h>
28194 #include <fcntl.h>
28195 int
28196 main ()
28197 {
28198 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28199   ;
28200   return 0;
28201 }
28202 _ACEOF
28203 rm -f conftest.$ac_objext
28204 if { (ac_try="$ac_compile"
28205 case "(($ac_try" in
28206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207   *) ac_try_echo=$ac_try;;
28208 esac
28209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210   (eval "$ac_compile") 2>conftest.er1
28211   ac_status=$?
28212   grep -v '^ *+' conftest.er1 >conftest.err
28213   rm -f conftest.er1
28214   cat conftest.err >&5
28215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216   (exit $ac_status); } &&
28217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28218   { (case "(($ac_try" in
28219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220   *) ac_try_echo=$ac_try;;
28221 esac
28222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223   (eval "$ac_try") 2>&5
28224   ac_status=$?
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); }; } &&
28227          { ac_try='test -s conftest.$ac_objext'
28228   { (case "(($ac_try" in
28229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230   *) ac_try_echo=$ac_try;;
28231 esac
28232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233   (eval "$ac_try") 2>&5
28234   ac_status=$?
28235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236   (exit $ac_status); }; }; then
28237   ac_cv_header_mmap_anon=yes
28238 else
28239   echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28241
28242         ac_cv_header_mmap_anon=no
28243 fi
28244
28245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28246   ac_ext=c
28247 ac_cpp='$CPP $CPPFLAGS'
28248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28251
28252
28253 fi
28254 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28255 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28256 if test "$ac_cv_header_mmap_anon" = yes; then
28257
28258 cat >>confdefs.h <<\_ACEOF
28259 #define HAVE_MMAP_ANONYMOUS 1
28260 _ACEOF
28261
28262 fi
28263
28264 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28265 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28266 if test "${ac_cv_header_stat_broken+set}" = set; then
28267   echo $ECHO_N "(cached) $ECHO_C" >&6
28268 else
28269   cat >conftest.$ac_ext <<_ACEOF
28270 /* confdefs.h.  */
28271 _ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h.  */
28275 #include <sys/types.h>
28276 #include <sys/stat.h>
28277
28278 #if defined S_ISBLK && defined S_IFDIR
28279 # if S_ISBLK (S_IFDIR)
28280 You lose.
28281 # endif
28282 #endif
28283
28284 #if defined S_ISBLK && defined S_IFCHR
28285 # if S_ISBLK (S_IFCHR)
28286 You lose.
28287 # endif
28288 #endif
28289
28290 #if defined S_ISLNK && defined S_IFREG
28291 # if S_ISLNK (S_IFREG)
28292 You lose.
28293 # endif
28294 #endif
28295
28296 #if defined S_ISSOCK && defined S_IFREG
28297 # if S_ISSOCK (S_IFREG)
28298 You lose.
28299 # endif
28300 #endif
28301
28302 _ACEOF
28303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28304   $EGREP "You lose" >/dev/null 2>&1; then
28305   ac_cv_header_stat_broken=yes
28306 else
28307   ac_cv_header_stat_broken=no
28308 fi
28309 rm -f conftest*
28310
28311 fi
28312 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28313 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28314 if test $ac_cv_header_stat_broken = yes; then
28315
28316 cat >>confdefs.h <<\_ACEOF
28317 #define STAT_MACROS_BROKEN 1
28318 _ACEOF
28319
28320 fi
28321
28322 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28323 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28324 if test "${ac_cv_header_stdc+set}" = set; then
28325   echo $ECHO_N "(cached) $ECHO_C" >&6
28326 else
28327   cat >conftest.$ac_ext <<_ACEOF
28328 /* confdefs.h.  */
28329 _ACEOF
28330 cat confdefs.h >>conftest.$ac_ext
28331 cat >>conftest.$ac_ext <<_ACEOF
28332 /* end confdefs.h.  */
28333 #include <stdlib.h>
28334 #include <stdarg.h>
28335 #include <string.h>
28336 #include <float.h>
28337
28338 int
28339 main ()
28340 {
28341
28342   ;
28343   return 0;
28344 }
28345 _ACEOF
28346 rm -f conftest.$ac_objext
28347 if { (ac_try="$ac_compile"
28348 case "(($ac_try" in
28349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350   *) ac_try_echo=$ac_try;;
28351 esac
28352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28353   (eval "$ac_compile") 2>conftest.er1
28354   ac_status=$?
28355   grep -v '^ *+' conftest.er1 >conftest.err
28356   rm -f conftest.er1
28357   cat conftest.err >&5
28358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359   (exit $ac_status); } &&
28360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28361   { (case "(($ac_try" in
28362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363   *) ac_try_echo=$ac_try;;
28364 esac
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366   (eval "$ac_try") 2>&5
28367   ac_status=$?
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); }; } &&
28370          { ac_try='test -s conftest.$ac_objext'
28371   { (case "(($ac_try" in
28372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373   *) ac_try_echo=$ac_try;;
28374 esac
28375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376   (eval "$ac_try") 2>&5
28377   ac_status=$?
28378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379   (exit $ac_status); }; }; then
28380   ac_cv_header_stdc=yes
28381 else
28382   echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28384
28385         ac_cv_header_stdc=no
28386 fi
28387
28388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28389
28390 if test $ac_cv_header_stdc = yes; then
28391   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28392   cat >conftest.$ac_ext <<_ACEOF
28393 /* confdefs.h.  */
28394 _ACEOF
28395 cat confdefs.h >>conftest.$ac_ext
28396 cat >>conftest.$ac_ext <<_ACEOF
28397 /* end confdefs.h.  */
28398 #include <string.h>
28399
28400 _ACEOF
28401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28402   $EGREP "memchr" >/dev/null 2>&1; then
28403   :
28404 else
28405   ac_cv_header_stdc=no
28406 fi
28407 rm -f conftest*
28408
28409 fi
28410
28411 if test $ac_cv_header_stdc = yes; then
28412   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28413   cat >conftest.$ac_ext <<_ACEOF
28414 /* confdefs.h.  */
28415 _ACEOF
28416 cat confdefs.h >>conftest.$ac_ext
28417 cat >>conftest.$ac_ext <<_ACEOF
28418 /* end confdefs.h.  */
28419 #include <stdlib.h>
28420
28421 _ACEOF
28422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28423   $EGREP "free" >/dev/null 2>&1; then
28424   :
28425 else
28426   ac_cv_header_stdc=no
28427 fi
28428 rm -f conftest*
28429
28430 fi
28431
28432 if test $ac_cv_header_stdc = yes; then
28433   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28434   if test "$cross_compiling" = yes; then
28435   :
28436 else
28437   cat >conftest.$ac_ext <<_ACEOF
28438 /* confdefs.h.  */
28439 _ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h.  */
28443 #include <ctype.h>
28444 #include <stdlib.h>
28445 #if ((' ' & 0x0FF) == 0x020)
28446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28448 #else
28449 # define ISLOWER(c) \
28450                    (('a' <= (c) && (c) <= 'i') \
28451                      || ('j' <= (c) && (c) <= 'r') \
28452                      || ('s' <= (c) && (c) <= 'z'))
28453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28454 #endif
28455
28456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28457 int
28458 main ()
28459 {
28460   int i;
28461   for (i = 0; i < 256; i++)
28462     if (XOR (islower (i), ISLOWER (i))
28463         || toupper (i) != TOUPPER (i))
28464       return 2;
28465   return 0;
28466 }
28467 _ACEOF
28468 rm -f conftest$ac_exeext
28469 if { (ac_try="$ac_link"
28470 case "(($ac_try" in
28471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472   *) ac_try_echo=$ac_try;;
28473 esac
28474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475   (eval "$ac_link") 2>&5
28476   ac_status=$?
28477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28479   { (case "(($ac_try" in
28480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481   *) ac_try_echo=$ac_try;;
28482 esac
28483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484   (eval "$ac_try") 2>&5
28485   ac_status=$?
28486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487   (exit $ac_status); }; }; then
28488   :
28489 else
28490   echo "$as_me: program exited with status $ac_status" >&5
28491 echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28493
28494 ( exit $ac_status )
28495 ac_cv_header_stdc=no
28496 fi
28497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28498 fi
28499
28500
28501 fi
28502 fi
28503 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28504 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28505 if test $ac_cv_header_stdc = yes; then
28506
28507 cat >>confdefs.h <<\_ACEOF
28508 #define STDC_HEADERS 1
28509 _ACEOF
28510
28511 fi
28512
28513 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28514 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28515 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28516   echo $ECHO_N "(cached) $ECHO_C" >&6
28517 else
28518   cat >conftest.$ac_ext <<_ACEOF
28519 /* confdefs.h.  */
28520 _ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h.  */
28524 #include <sys/types.h>
28525 #include <sys/wait.h>
28526 #ifndef WEXITSTATUS
28527 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28528 #endif
28529 #ifndef WIFEXITED
28530 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28531 #endif
28532
28533 int
28534 main ()
28535 {
28536   int s;
28537   wait (&s);
28538   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28539   ;
28540   return 0;
28541 }
28542 _ACEOF
28543 rm -f conftest.$ac_objext
28544 if { (ac_try="$ac_compile"
28545 case "(($ac_try" in
28546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547   *) ac_try_echo=$ac_try;;
28548 esac
28549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550   (eval "$ac_compile") 2>conftest.er1
28551   ac_status=$?
28552   grep -v '^ *+' conftest.er1 >conftest.err
28553   rm -f conftest.er1
28554   cat conftest.err >&5
28555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556   (exit $ac_status); } &&
28557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28558   { (case "(($ac_try" in
28559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560   *) ac_try_echo=$ac_try;;
28561 esac
28562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563   (eval "$ac_try") 2>&5
28564   ac_status=$?
28565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566   (exit $ac_status); }; } &&
28567          { ac_try='test -s conftest.$ac_objext'
28568   { (case "(($ac_try" in
28569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28570   *) ac_try_echo=$ac_try;;
28571 esac
28572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28573   (eval "$ac_try") 2>&5
28574   ac_status=$?
28575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); }; }; then
28577   ac_cv_header_sys_wait_h=yes
28578 else
28579   echo "$as_me: failed program was:" >&5
28580 sed 's/^/| /' conftest.$ac_ext >&5
28581
28582         ac_cv_header_sys_wait_h=no
28583 fi
28584
28585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28586 fi
28587 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28588 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28589 if test $ac_cv_header_sys_wait_h = yes; then
28590
28591 cat >>confdefs.h <<\_ACEOF
28592 #define HAVE_SYS_WAIT_H 1
28593 _ACEOF
28594
28595 fi
28596
28597 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28598 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28599 if test "${ac_cv_header_time+set}" = set; then
28600   echo $ECHO_N "(cached) $ECHO_C" >&6
28601 else
28602   cat >conftest.$ac_ext <<_ACEOF
28603 /* confdefs.h.  */
28604 _ACEOF
28605 cat confdefs.h >>conftest.$ac_ext
28606 cat >>conftest.$ac_ext <<_ACEOF
28607 /* end confdefs.h.  */
28608 #include <sys/types.h>
28609 #include <sys/time.h>
28610 #include <time.h>
28611
28612 int
28613 main ()
28614 {
28615 if ((struct tm *) 0)
28616 return 0;
28617   ;
28618   return 0;
28619 }
28620 _ACEOF
28621 rm -f conftest.$ac_objext
28622 if { (ac_try="$ac_compile"
28623 case "(($ac_try" in
28624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625   *) ac_try_echo=$ac_try;;
28626 esac
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628   (eval "$ac_compile") 2>conftest.er1
28629   ac_status=$?
28630   grep -v '^ *+' conftest.er1 >conftest.err
28631   rm -f conftest.er1
28632   cat conftest.err >&5
28633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634   (exit $ac_status); } &&
28635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28636   { (case "(($ac_try" in
28637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28638   *) ac_try_echo=$ac_try;;
28639 esac
28640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28641   (eval "$ac_try") 2>&5
28642   ac_status=$?
28643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644   (exit $ac_status); }; } &&
28645          { ac_try='test -s conftest.$ac_objext'
28646   { (case "(($ac_try" in
28647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648   *) ac_try_echo=$ac_try;;
28649 esac
28650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651   (eval "$ac_try") 2>&5
28652   ac_status=$?
28653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654   (exit $ac_status); }; }; then
28655   ac_cv_header_time=yes
28656 else
28657   echo "$as_me: failed program was:" >&5
28658 sed 's/^/| /' conftest.$ac_ext >&5
28659
28660         ac_cv_header_time=no
28661 fi
28662
28663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28664 fi
28665 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28666 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28667 if test $ac_cv_header_time = yes; then
28668
28669 cat >>confdefs.h <<\_ACEOF
28670 #define TIME_WITH_SYS_TIME 1
28671 _ACEOF
28672
28673 fi
28674
28675
28676
28677
28678
28679
28680
28681
28682 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28683 do
28684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28689   echo $ECHO_N "(cached) $ECHO_C" >&6
28690 fi
28691 ac_res=`eval echo '${'$as_ac_Header'}'`
28692                { echo "$as_me:$LINENO: result: $ac_res" >&5
28693 echo "${ECHO_T}$ac_res" >&6; }
28694 else
28695   # Is the header compilable?
28696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28698 cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h.  */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h.  */
28704 $ac_includes_default
28705 #include <$ac_header>
28706 _ACEOF
28707 rm -f conftest.$ac_objext
28708 if { (ac_try="$ac_compile"
28709 case "(($ac_try" in
28710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711   *) ac_try_echo=$ac_try;;
28712 esac
28713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714   (eval "$ac_compile") 2>conftest.er1
28715   ac_status=$?
28716   grep -v '^ *+' conftest.er1 >conftest.err
28717   rm -f conftest.er1
28718   cat conftest.err >&5
28719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720   (exit $ac_status); } &&
28721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28722   { (case "(($ac_try" in
28723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724   *) ac_try_echo=$ac_try;;
28725 esac
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727   (eval "$ac_try") 2>&5
28728   ac_status=$?
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); }; } &&
28731          { ac_try='test -s conftest.$ac_objext'
28732   { (case "(($ac_try" in
28733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734   *) ac_try_echo=$ac_try;;
28735 esac
28736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737   (eval "$ac_try") 2>&5
28738   ac_status=$?
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); }; }; then
28741   ac_header_compiler=yes
28742 else
28743   echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.$ac_ext >&5
28745
28746         ac_header_compiler=no
28747 fi
28748
28749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28751 echo "${ECHO_T}$ac_header_compiler" >&6; }
28752
28753 # Is the header present?
28754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28756 cat >conftest.$ac_ext <<_ACEOF
28757 /* confdefs.h.  */
28758 _ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h.  */
28762 #include <$ac_header>
28763 _ACEOF
28764 if { (ac_try="$ac_cpp conftest.$ac_ext"
28765 case "(($ac_try" in
28766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767   *) ac_try_echo=$ac_try;;
28768 esac
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28771   ac_status=$?
28772   grep -v '^ *+' conftest.er1 >conftest.err
28773   rm -f conftest.er1
28774   cat conftest.err >&5
28775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776   (exit $ac_status); } >/dev/null; then
28777   if test -s conftest.err; then
28778     ac_cpp_err=$ac_c_preproc_warn_flag
28779     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28780   else
28781     ac_cpp_err=
28782   fi
28783 else
28784   ac_cpp_err=yes
28785 fi
28786 if test -z "$ac_cpp_err"; then
28787   ac_header_preproc=yes
28788 else
28789   echo "$as_me: failed program was:" >&5
28790 sed 's/^/| /' conftest.$ac_ext >&5
28791
28792   ac_header_preproc=no
28793 fi
28794
28795 rm -f conftest.err conftest.$ac_ext
28796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28797 echo "${ECHO_T}$ac_header_preproc" >&6; }
28798
28799 # So?  What about this header?
28800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28801   yes:no: )
28802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28806     ac_header_preproc=yes
28807     ;;
28808   no:yes:* )
28809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28821     ( cat <<\_ASBOX
28822 ## ----------------------------------- ##
28823 ## Report this to llvmbugs@cs.uiuc.edu ##
28824 ## ----------------------------------- ##
28825 _ASBOX
28826      ) | sed "s/^/$as_me: WARNING:     /" >&2
28827     ;;
28828 esac
28829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28832   echo $ECHO_N "(cached) $ECHO_C" >&6
28833 else
28834   eval "$as_ac_Header=\$ac_header_preproc"
28835 fi
28836 ac_res=`eval echo '${'$as_ac_Header'}'`
28837                { echo "$as_me:$LINENO: result: $ac_res" >&5
28838 echo "${ECHO_T}$ac_res" >&6; }
28839
28840 fi
28841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28842   cat >>confdefs.h <<_ACEOF
28843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28844 _ACEOF
28845
28846 fi
28847
28848 done
28849
28850
28851
28852
28853
28854
28855
28856 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28857 do
28858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28860   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28863   echo $ECHO_N "(cached) $ECHO_C" >&6
28864 fi
28865 ac_res=`eval echo '${'$as_ac_Header'}'`
28866                { echo "$as_me:$LINENO: result: $ac_res" >&5
28867 echo "${ECHO_T}$ac_res" >&6; }
28868 else
28869   # Is the header compilable?
28870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28872 cat >conftest.$ac_ext <<_ACEOF
28873 /* confdefs.h.  */
28874 _ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h.  */
28878 $ac_includes_default
28879 #include <$ac_header>
28880 _ACEOF
28881 rm -f conftest.$ac_objext
28882 if { (ac_try="$ac_compile"
28883 case "(($ac_try" in
28884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885   *) ac_try_echo=$ac_try;;
28886 esac
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888   (eval "$ac_compile") 2>conftest.er1
28889   ac_status=$?
28890   grep -v '^ *+' conftest.er1 >conftest.err
28891   rm -f conftest.er1
28892   cat conftest.err >&5
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); } &&
28895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28896   { (case "(($ac_try" in
28897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898   *) ac_try_echo=$ac_try;;
28899 esac
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901   (eval "$ac_try") 2>&5
28902   ac_status=$?
28903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904   (exit $ac_status); }; } &&
28905          { ac_try='test -s conftest.$ac_objext'
28906   { (case "(($ac_try" in
28907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28908   *) ac_try_echo=$ac_try;;
28909 esac
28910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28911   (eval "$ac_try") 2>&5
28912   ac_status=$?
28913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914   (exit $ac_status); }; }; then
28915   ac_header_compiler=yes
28916 else
28917   echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28919
28920         ac_header_compiler=no
28921 fi
28922
28923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28925 echo "${ECHO_T}$ac_header_compiler" >&6; }
28926
28927 # Is the header present?
28928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28930 cat >conftest.$ac_ext <<_ACEOF
28931 /* confdefs.h.  */
28932 _ACEOF
28933 cat confdefs.h >>conftest.$ac_ext
28934 cat >>conftest.$ac_ext <<_ACEOF
28935 /* end confdefs.h.  */
28936 #include <$ac_header>
28937 _ACEOF
28938 if { (ac_try="$ac_cpp conftest.$ac_ext"
28939 case "(($ac_try" in
28940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28941   *) ac_try_echo=$ac_try;;
28942 esac
28943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28945   ac_status=$?
28946   grep -v '^ *+' conftest.er1 >conftest.err
28947   rm -f conftest.er1
28948   cat conftest.err >&5
28949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950   (exit $ac_status); } >/dev/null; then
28951   if test -s conftest.err; then
28952     ac_cpp_err=$ac_c_preproc_warn_flag
28953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28954   else
28955     ac_cpp_err=
28956   fi
28957 else
28958   ac_cpp_err=yes
28959 fi
28960 if test -z "$ac_cpp_err"; then
28961   ac_header_preproc=yes
28962 else
28963   echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28965
28966   ac_header_preproc=no
28967 fi
28968
28969 rm -f conftest.err conftest.$ac_ext
28970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28971 echo "${ECHO_T}$ac_header_preproc" >&6; }
28972
28973 # So?  What about this header?
28974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28975   yes:no: )
28976     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28980     ac_header_preproc=yes
28981     ;;
28982   no:yes:* )
28983     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28985     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28986 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28987     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28989     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28990 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28993     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28995     ( cat <<\_ASBOX
28996 ## ----------------------------------- ##
28997 ## Report this to llvmbugs@cs.uiuc.edu ##
28998 ## ----------------------------------- ##
28999 _ASBOX
29000      ) | sed "s/^/$as_me: WARNING:     /" >&2
29001     ;;
29002 esac
29003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29006   echo $ECHO_N "(cached) $ECHO_C" >&6
29007 else
29008   eval "$as_ac_Header=\$ac_header_preproc"
29009 fi
29010 ac_res=`eval echo '${'$as_ac_Header'}'`
29011                { echo "$as_me:$LINENO: result: $ac_res" >&5
29012 echo "${ECHO_T}$ac_res" >&6; }
29013
29014 fi
29015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29016   cat >>confdefs.h <<_ACEOF
29017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29018 _ACEOF
29019
29020 fi
29021
29022 done
29023
29024
29025 for ac_header in windows.h
29026 do
29027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29029   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29032   echo $ECHO_N "(cached) $ECHO_C" >&6
29033 fi
29034 ac_res=`eval echo '${'$as_ac_Header'}'`
29035                { echo "$as_me:$LINENO: result: $ac_res" >&5
29036 echo "${ECHO_T}$ac_res" >&6; }
29037 else
29038   # Is the header compilable?
29039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29041 cat >conftest.$ac_ext <<_ACEOF
29042 /* confdefs.h.  */
29043 _ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h.  */
29047 $ac_includes_default
29048 #include <$ac_header>
29049 _ACEOF
29050 rm -f conftest.$ac_objext
29051 if { (ac_try="$ac_compile"
29052 case "(($ac_try" in
29053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29054   *) ac_try_echo=$ac_try;;
29055 esac
29056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29057   (eval "$ac_compile") 2>conftest.er1
29058   ac_status=$?
29059   grep -v '^ *+' conftest.er1 >conftest.err
29060   rm -f conftest.er1
29061   cat conftest.err >&5
29062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063   (exit $ac_status); } &&
29064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29065   { (case "(($ac_try" in
29066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29067   *) ac_try_echo=$ac_try;;
29068 esac
29069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29070   (eval "$ac_try") 2>&5
29071   ac_status=$?
29072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073   (exit $ac_status); }; } &&
29074          { ac_try='test -s conftest.$ac_objext'
29075   { (case "(($ac_try" in
29076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29077   *) ac_try_echo=$ac_try;;
29078 esac
29079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29080   (eval "$ac_try") 2>&5
29081   ac_status=$?
29082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083   (exit $ac_status); }; }; then
29084   ac_header_compiler=yes
29085 else
29086   echo "$as_me: failed program was:" >&5
29087 sed 's/^/| /' conftest.$ac_ext >&5
29088
29089         ac_header_compiler=no
29090 fi
29091
29092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29094 echo "${ECHO_T}$ac_header_compiler" >&6; }
29095
29096 # Is the header present?
29097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29099 cat >conftest.$ac_ext <<_ACEOF
29100 /* confdefs.h.  */
29101 _ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h.  */
29105 #include <$ac_header>
29106 _ACEOF
29107 if { (ac_try="$ac_cpp conftest.$ac_ext"
29108 case "(($ac_try" in
29109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29110   *) ac_try_echo=$ac_try;;
29111 esac
29112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29114   ac_status=$?
29115   grep -v '^ *+' conftest.er1 >conftest.err
29116   rm -f conftest.er1
29117   cat conftest.err >&5
29118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119   (exit $ac_status); } >/dev/null; then
29120   if test -s conftest.err; then
29121     ac_cpp_err=$ac_c_preproc_warn_flag
29122     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29123   else
29124     ac_cpp_err=
29125   fi
29126 else
29127   ac_cpp_err=yes
29128 fi
29129 if test -z "$ac_cpp_err"; then
29130   ac_header_preproc=yes
29131 else
29132   echo "$as_me: failed program was:" >&5
29133 sed 's/^/| /' conftest.$ac_ext >&5
29134
29135   ac_header_preproc=no
29136 fi
29137
29138 rm -f conftest.err conftest.$ac_ext
29139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29140 echo "${ECHO_T}$ac_header_preproc" >&6; }
29141
29142 # So?  What about this header?
29143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29144   yes:no: )
29145     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29149     ac_header_preproc=yes
29150     ;;
29151   no:yes:* )
29152     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29154     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29155 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29156     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29158     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29159 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29162     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29164     ( cat <<\_ASBOX
29165 ## ----------------------------------- ##
29166 ## Report this to llvmbugs@cs.uiuc.edu ##
29167 ## ----------------------------------- ##
29168 _ASBOX
29169      ) | sed "s/^/$as_me: WARNING:     /" >&2
29170     ;;
29171 esac
29172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29175   echo $ECHO_N "(cached) $ECHO_C" >&6
29176 else
29177   eval "$as_ac_Header=\$ac_header_preproc"
29178 fi
29179 ac_res=`eval echo '${'$as_ac_Header'}'`
29180                { echo "$as_me:$LINENO: result: $ac_res" >&5
29181 echo "${ECHO_T}$ac_res" >&6; }
29182
29183 fi
29184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29185   cat >>confdefs.h <<_ACEOF
29186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29187 _ACEOF
29188
29189 fi
29190
29191 done
29192
29193
29194
29195
29196
29197 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29198 do
29199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29201   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29204   echo $ECHO_N "(cached) $ECHO_C" >&6
29205 fi
29206 ac_res=`eval echo '${'$as_ac_Header'}'`
29207                { echo "$as_me:$LINENO: result: $ac_res" >&5
29208 echo "${ECHO_T}$ac_res" >&6; }
29209 else
29210   # Is the header compilable?
29211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29213 cat >conftest.$ac_ext <<_ACEOF
29214 /* confdefs.h.  */
29215 _ACEOF
29216 cat confdefs.h >>conftest.$ac_ext
29217 cat >>conftest.$ac_ext <<_ACEOF
29218 /* end confdefs.h.  */
29219 $ac_includes_default
29220 #include <$ac_header>
29221 _ACEOF
29222 rm -f conftest.$ac_objext
29223 if { (ac_try="$ac_compile"
29224 case "(($ac_try" in
29225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226   *) ac_try_echo=$ac_try;;
29227 esac
29228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229   (eval "$ac_compile") 2>conftest.er1
29230   ac_status=$?
29231   grep -v '^ *+' conftest.er1 >conftest.err
29232   rm -f conftest.er1
29233   cat conftest.err >&5
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); } &&
29236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29237   { (case "(($ac_try" in
29238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239   *) ac_try_echo=$ac_try;;
29240 esac
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242   (eval "$ac_try") 2>&5
29243   ac_status=$?
29244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245   (exit $ac_status); }; } &&
29246          { ac_try='test -s conftest.$ac_objext'
29247   { (case "(($ac_try" in
29248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249   *) ac_try_echo=$ac_try;;
29250 esac
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252   (eval "$ac_try") 2>&5
29253   ac_status=$?
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); }; }; then
29256   ac_header_compiler=yes
29257 else
29258   echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.$ac_ext >&5
29260
29261         ac_header_compiler=no
29262 fi
29263
29264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29266 echo "${ECHO_T}$ac_header_compiler" >&6; }
29267
29268 # Is the header present?
29269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29271 cat >conftest.$ac_ext <<_ACEOF
29272 /* confdefs.h.  */
29273 _ACEOF
29274 cat confdefs.h >>conftest.$ac_ext
29275 cat >>conftest.$ac_ext <<_ACEOF
29276 /* end confdefs.h.  */
29277 #include <$ac_header>
29278 _ACEOF
29279 if { (ac_try="$ac_cpp conftest.$ac_ext"
29280 case "(($ac_try" in
29281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29282   *) ac_try_echo=$ac_try;;
29283 esac
29284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29286   ac_status=$?
29287   grep -v '^ *+' conftest.er1 >conftest.err
29288   rm -f conftest.er1
29289   cat conftest.err >&5
29290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291   (exit $ac_status); } >/dev/null; then
29292   if test -s conftest.err; then
29293     ac_cpp_err=$ac_c_preproc_warn_flag
29294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29295   else
29296     ac_cpp_err=
29297   fi
29298 else
29299   ac_cpp_err=yes
29300 fi
29301 if test -z "$ac_cpp_err"; then
29302   ac_header_preproc=yes
29303 else
29304   echo "$as_me: failed program was:" >&5
29305 sed 's/^/| /' conftest.$ac_ext >&5
29306
29307   ac_header_preproc=no
29308 fi
29309
29310 rm -f conftest.err conftest.$ac_ext
29311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29312 echo "${ECHO_T}$ac_header_preproc" >&6; }
29313
29314 # So?  What about this header?
29315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29316   yes:no: )
29317     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29321     ac_header_preproc=yes
29322     ;;
29323   no:yes:* )
29324     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29326     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29327 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29328     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29330     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29331 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29334     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29336     ( cat <<\_ASBOX
29337 ## ----------------------------------- ##
29338 ## Report this to llvmbugs@cs.uiuc.edu ##
29339 ## ----------------------------------- ##
29340 _ASBOX
29341      ) | sed "s/^/$as_me: WARNING:     /" >&2
29342     ;;
29343 esac
29344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29347   echo $ECHO_N "(cached) $ECHO_C" >&6
29348 else
29349   eval "$as_ac_Header=\$ac_header_preproc"
29350 fi
29351 ac_res=`eval echo '${'$as_ac_Header'}'`
29352                { echo "$as_me:$LINENO: result: $ac_res" >&5
29353 echo "${ECHO_T}$ac_res" >&6; }
29354
29355 fi
29356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29357   cat >>confdefs.h <<_ACEOF
29358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29359 _ACEOF
29360
29361 fi
29362
29363 done
29364
29365
29366
29367
29368 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29369 do
29370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29372   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29375   echo $ECHO_N "(cached) $ECHO_C" >&6
29376 fi
29377 ac_res=`eval echo '${'$as_ac_Header'}'`
29378                { echo "$as_me:$LINENO: result: $ac_res" >&5
29379 echo "${ECHO_T}$ac_res" >&6; }
29380 else
29381   # Is the header compilable?
29382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29384 cat >conftest.$ac_ext <<_ACEOF
29385 /* confdefs.h.  */
29386 _ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h.  */
29390 $ac_includes_default
29391 #include <$ac_header>
29392 _ACEOF
29393 rm -f conftest.$ac_objext
29394 if { (ac_try="$ac_compile"
29395 case "(($ac_try" in
29396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397   *) ac_try_echo=$ac_try;;
29398 esac
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400   (eval "$ac_compile") 2>conftest.er1
29401   ac_status=$?
29402   grep -v '^ *+' conftest.er1 >conftest.err
29403   rm -f conftest.er1
29404   cat conftest.err >&5
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); } &&
29407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29408   { (case "(($ac_try" in
29409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410   *) ac_try_echo=$ac_try;;
29411 esac
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413   (eval "$ac_try") 2>&5
29414   ac_status=$?
29415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416   (exit $ac_status); }; } &&
29417          { ac_try='test -s conftest.$ac_objext'
29418   { (case "(($ac_try" in
29419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420   *) ac_try_echo=$ac_try;;
29421 esac
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423   (eval "$ac_try") 2>&5
29424   ac_status=$?
29425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426   (exit $ac_status); }; }; then
29427   ac_header_compiler=yes
29428 else
29429   echo "$as_me: failed program was:" >&5
29430 sed 's/^/| /' conftest.$ac_ext >&5
29431
29432         ac_header_compiler=no
29433 fi
29434
29435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29437 echo "${ECHO_T}$ac_header_compiler" >&6; }
29438
29439 # Is the header present?
29440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29442 cat >conftest.$ac_ext <<_ACEOF
29443 /* confdefs.h.  */
29444 _ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h.  */
29448 #include <$ac_header>
29449 _ACEOF
29450 if { (ac_try="$ac_cpp conftest.$ac_ext"
29451 case "(($ac_try" in
29452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453   *) ac_try_echo=$ac_try;;
29454 esac
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29457   ac_status=$?
29458   grep -v '^ *+' conftest.er1 >conftest.err
29459   rm -f conftest.er1
29460   cat conftest.err >&5
29461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462   (exit $ac_status); } >/dev/null; then
29463   if test -s conftest.err; then
29464     ac_cpp_err=$ac_c_preproc_warn_flag
29465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29466   else
29467     ac_cpp_err=
29468   fi
29469 else
29470   ac_cpp_err=yes
29471 fi
29472 if test -z "$ac_cpp_err"; then
29473   ac_header_preproc=yes
29474 else
29475   echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29477
29478   ac_header_preproc=no
29479 fi
29480
29481 rm -f conftest.err conftest.$ac_ext
29482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29483 echo "${ECHO_T}$ac_header_preproc" >&6; }
29484
29485 # So?  What about this header?
29486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29487   yes:no: )
29488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29492     ac_header_preproc=yes
29493     ;;
29494   no:yes:* )
29495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29507     ( cat <<\_ASBOX
29508 ## ----------------------------------- ##
29509 ## Report this to llvmbugs@cs.uiuc.edu ##
29510 ## ----------------------------------- ##
29511 _ASBOX
29512      ) | sed "s/^/$as_me: WARNING:     /" >&2
29513     ;;
29514 esac
29515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29518   echo $ECHO_N "(cached) $ECHO_C" >&6
29519 else
29520   eval "$as_ac_Header=\$ac_header_preproc"
29521 fi
29522 ac_res=`eval echo '${'$as_ac_Header'}'`
29523                { echo "$as_me:$LINENO: result: $ac_res" >&5
29524 echo "${ECHO_T}$ac_res" >&6; }
29525
29526 fi
29527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29528   cat >>confdefs.h <<_ACEOF
29529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29530 _ACEOF
29531
29532 fi
29533
29534 done
29535
29536 if test "$ENABLE_THREADS" -eq 1 ; then
29537
29538 for ac_header in pthread.h
29539 do
29540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29542   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29545   echo $ECHO_N "(cached) $ECHO_C" >&6
29546 fi
29547 ac_res=`eval echo '${'$as_ac_Header'}'`
29548                { echo "$as_me:$LINENO: result: $ac_res" >&5
29549 echo "${ECHO_T}$ac_res" >&6; }
29550 else
29551   # Is the header compilable?
29552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29554 cat >conftest.$ac_ext <<_ACEOF
29555 /* confdefs.h.  */
29556 _ACEOF
29557 cat confdefs.h >>conftest.$ac_ext
29558 cat >>conftest.$ac_ext <<_ACEOF
29559 /* end confdefs.h.  */
29560 $ac_includes_default
29561 #include <$ac_header>
29562 _ACEOF
29563 rm -f conftest.$ac_objext
29564 if { (ac_try="$ac_compile"
29565 case "(($ac_try" in
29566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567   *) ac_try_echo=$ac_try;;
29568 esac
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570   (eval "$ac_compile") 2>conftest.er1
29571   ac_status=$?
29572   grep -v '^ *+' conftest.er1 >conftest.err
29573   rm -f conftest.er1
29574   cat conftest.err >&5
29575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576   (exit $ac_status); } &&
29577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29578   { (case "(($ac_try" in
29579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580   *) ac_try_echo=$ac_try;;
29581 esac
29582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583   (eval "$ac_try") 2>&5
29584   ac_status=$?
29585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586   (exit $ac_status); }; } &&
29587          { ac_try='test -s conftest.$ac_objext'
29588   { (case "(($ac_try" in
29589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29590   *) ac_try_echo=$ac_try;;
29591 esac
29592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29593   (eval "$ac_try") 2>&5
29594   ac_status=$?
29595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596   (exit $ac_status); }; }; then
29597   ac_header_compiler=yes
29598 else
29599   echo "$as_me: failed program was:" >&5
29600 sed 's/^/| /' conftest.$ac_ext >&5
29601
29602         ac_header_compiler=no
29603 fi
29604
29605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29607 echo "${ECHO_T}$ac_header_compiler" >&6; }
29608
29609 # Is the header present?
29610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29612 cat >conftest.$ac_ext <<_ACEOF
29613 /* confdefs.h.  */
29614 _ACEOF
29615 cat confdefs.h >>conftest.$ac_ext
29616 cat >>conftest.$ac_ext <<_ACEOF
29617 /* end confdefs.h.  */
29618 #include <$ac_header>
29619 _ACEOF
29620 if { (ac_try="$ac_cpp conftest.$ac_ext"
29621 case "(($ac_try" in
29622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623   *) ac_try_echo=$ac_try;;
29624 esac
29625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29627   ac_status=$?
29628   grep -v '^ *+' conftest.er1 >conftest.err
29629   rm -f conftest.er1
29630   cat conftest.err >&5
29631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632   (exit $ac_status); } >/dev/null; then
29633   if test -s conftest.err; then
29634     ac_cpp_err=$ac_c_preproc_warn_flag
29635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29636   else
29637     ac_cpp_err=
29638   fi
29639 else
29640   ac_cpp_err=yes
29641 fi
29642 if test -z "$ac_cpp_err"; then
29643   ac_header_preproc=yes
29644 else
29645   echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29647
29648   ac_header_preproc=no
29649 fi
29650
29651 rm -f conftest.err conftest.$ac_ext
29652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29653 echo "${ECHO_T}$ac_header_preproc" >&6; }
29654
29655 # So?  What about this header?
29656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29657   yes:no: )
29658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29662     ac_header_preproc=yes
29663     ;;
29664   no:yes:* )
29665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29677     ( cat <<\_ASBOX
29678 ## ----------------------------------- ##
29679 ## Report this to llvmbugs@cs.uiuc.edu ##
29680 ## ----------------------------------- ##
29681 _ASBOX
29682      ) | sed "s/^/$as_me: WARNING:     /" >&2
29683     ;;
29684 esac
29685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29688   echo $ECHO_N "(cached) $ECHO_C" >&6
29689 else
29690   eval "$as_ac_Header=\$ac_header_preproc"
29691 fi
29692 ac_res=`eval echo '${'$as_ac_Header'}'`
29693                { echo "$as_me:$LINENO: result: $ac_res" >&5
29694 echo "${ECHO_T}$ac_res" >&6; }
29695
29696 fi
29697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29698   cat >>confdefs.h <<_ACEOF
29699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29700 _ACEOF
29701  HAVE_PTHREAD=1
29702
29703 else
29704   HAVE_PTHREAD=0
29705
29706 fi
29707
29708 done
29709
29710 else
29711   HAVE_PTHREAD=0
29712
29713 fi
29714
29715
29716
29717   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29718 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29719 if test "${ac_cv_huge_val_sanity+set}" = set; then
29720   echo $ECHO_N "(cached) $ECHO_C" >&6
29721 else
29722
29723     ac_ext=cpp
29724 ac_cpp='$CXXCPP $CPPFLAGS'
29725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29728
29729     CXXFLAGS=-pedantic
29730     if test "$cross_compiling" = yes; then
29731   ac_cv_huge_val_sanity=yes
29732 else
29733   cat >conftest.$ac_ext <<_ACEOF
29734 /* confdefs.h.  */
29735 _ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h.  */
29739 #include <math.h>
29740 int
29741 main ()
29742 {
29743 double x = HUGE_VAL; return x != x;
29744   ;
29745   return 0;
29746 }
29747 _ACEOF
29748 rm -f conftest$ac_exeext
29749 if { (ac_try="$ac_link"
29750 case "(($ac_try" in
29751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752   *) ac_try_echo=$ac_try;;
29753 esac
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755   (eval "$ac_link") 2>&5
29756   ac_status=$?
29757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29759   { (case "(($ac_try" in
29760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761   *) ac_try_echo=$ac_try;;
29762 esac
29763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764   (eval "$ac_try") 2>&5
29765   ac_status=$?
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); }; }; then
29768   ac_cv_huge_val_sanity=yes
29769 else
29770   echo "$as_me: program exited with status $ac_status" >&5
29771 echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29773
29774 ( exit $ac_status )
29775 ac_cv_huge_val_sanity=no
29776 fi
29777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29778 fi
29779
29780
29781     ac_ext=c
29782 ac_cpp='$CPP $CPPFLAGS'
29783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29786
29787
29788 fi
29789 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29790 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29791   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29792
29793
29794 { echo "$as_me:$LINENO: checking for pid_t" >&5
29795 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29796 if test "${ac_cv_type_pid_t+set}" = set; then
29797   echo $ECHO_N "(cached) $ECHO_C" >&6
29798 else
29799   cat >conftest.$ac_ext <<_ACEOF
29800 /* confdefs.h.  */
29801 _ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h.  */
29805 $ac_includes_default
29806 typedef pid_t ac__type_new_;
29807 int
29808 main ()
29809 {
29810 if ((ac__type_new_ *) 0)
29811   return 0;
29812 if (sizeof (ac__type_new_))
29813   return 0;
29814   ;
29815   return 0;
29816 }
29817 _ACEOF
29818 rm -f conftest.$ac_objext
29819 if { (ac_try="$ac_compile"
29820 case "(($ac_try" in
29821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822   *) ac_try_echo=$ac_try;;
29823 esac
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825   (eval "$ac_compile") 2>conftest.er1
29826   ac_status=$?
29827   grep -v '^ *+' conftest.er1 >conftest.err
29828   rm -f conftest.er1
29829   cat conftest.err >&5
29830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831   (exit $ac_status); } &&
29832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29833   { (case "(($ac_try" in
29834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29835   *) ac_try_echo=$ac_try;;
29836 esac
29837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838   (eval "$ac_try") 2>&5
29839   ac_status=$?
29840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841   (exit $ac_status); }; } &&
29842          { ac_try='test -s conftest.$ac_objext'
29843   { (case "(($ac_try" in
29844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845   *) ac_try_echo=$ac_try;;
29846 esac
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848   (eval "$ac_try") 2>&5
29849   ac_status=$?
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); }; }; then
29852   ac_cv_type_pid_t=yes
29853 else
29854   echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29856
29857         ac_cv_type_pid_t=no
29858 fi
29859
29860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29861 fi
29862 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29863 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29864 if test $ac_cv_type_pid_t = yes; then
29865   :
29866 else
29867
29868 cat >>confdefs.h <<_ACEOF
29869 #define pid_t int
29870 _ACEOF
29871
29872 fi
29873
29874 { echo "$as_me:$LINENO: checking for size_t" >&5
29875 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29876 if test "${ac_cv_type_size_t+set}" = set; then
29877   echo $ECHO_N "(cached) $ECHO_C" >&6
29878 else
29879   cat >conftest.$ac_ext <<_ACEOF
29880 /* confdefs.h.  */
29881 _ACEOF
29882 cat confdefs.h >>conftest.$ac_ext
29883 cat >>conftest.$ac_ext <<_ACEOF
29884 /* end confdefs.h.  */
29885 $ac_includes_default
29886 typedef size_t ac__type_new_;
29887 int
29888 main ()
29889 {
29890 if ((ac__type_new_ *) 0)
29891   return 0;
29892 if (sizeof (ac__type_new_))
29893   return 0;
29894   ;
29895   return 0;
29896 }
29897 _ACEOF
29898 rm -f conftest.$ac_objext
29899 if { (ac_try="$ac_compile"
29900 case "(($ac_try" in
29901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902   *) ac_try_echo=$ac_try;;
29903 esac
29904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905   (eval "$ac_compile") 2>conftest.er1
29906   ac_status=$?
29907   grep -v '^ *+' conftest.er1 >conftest.err
29908   rm -f conftest.er1
29909   cat conftest.err >&5
29910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911   (exit $ac_status); } &&
29912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29913   { (case "(($ac_try" in
29914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915   *) ac_try_echo=$ac_try;;
29916 esac
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918   (eval "$ac_try") 2>&5
29919   ac_status=$?
29920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921   (exit $ac_status); }; } &&
29922          { ac_try='test -s conftest.$ac_objext'
29923   { (case "(($ac_try" in
29924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925   *) ac_try_echo=$ac_try;;
29926 esac
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928   (eval "$ac_try") 2>&5
29929   ac_status=$?
29930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931   (exit $ac_status); }; }; then
29932   ac_cv_type_size_t=yes
29933 else
29934   echo "$as_me: failed program was:" >&5
29935 sed 's/^/| /' conftest.$ac_ext >&5
29936
29937         ac_cv_type_size_t=no
29938 fi
29939
29940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29941 fi
29942 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29943 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29944 if test $ac_cv_type_size_t = yes; then
29945   :
29946 else
29947
29948 cat >>confdefs.h <<_ACEOF
29949 #define size_t unsigned int
29950 _ACEOF
29951
29952 fi
29953
29954 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29955 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29956 if test "${ac_cv_type_signal+set}" = set; then
29957   echo $ECHO_N "(cached) $ECHO_C" >&6
29958 else
29959   cat >conftest.$ac_ext <<_ACEOF
29960 /* confdefs.h.  */
29961 _ACEOF
29962 cat confdefs.h >>conftest.$ac_ext
29963 cat >>conftest.$ac_ext <<_ACEOF
29964 /* end confdefs.h.  */
29965 #include <sys/types.h>
29966 #include <signal.h>
29967
29968 int
29969 main ()
29970 {
29971 return *(signal (0, 0)) (0) == 1;
29972   ;
29973   return 0;
29974 }
29975 _ACEOF
29976 rm -f conftest.$ac_objext
29977 if { (ac_try="$ac_compile"
29978 case "(($ac_try" in
29979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980   *) ac_try_echo=$ac_try;;
29981 esac
29982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983   (eval "$ac_compile") 2>conftest.er1
29984   ac_status=$?
29985   grep -v '^ *+' conftest.er1 >conftest.err
29986   rm -f conftest.er1
29987   cat conftest.err >&5
29988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989   (exit $ac_status); } &&
29990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29991   { (case "(($ac_try" in
29992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29993   *) ac_try_echo=$ac_try;;
29994 esac
29995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29996   (eval "$ac_try") 2>&5
29997   ac_status=$?
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); }; } &&
30000          { ac_try='test -s conftest.$ac_objext'
30001   { (case "(($ac_try" in
30002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003   *) ac_try_echo=$ac_try;;
30004 esac
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006   (eval "$ac_try") 2>&5
30007   ac_status=$?
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); }; }; then
30010   ac_cv_type_signal=int
30011 else
30012   echo "$as_me: failed program was:" >&5
30013 sed 's/^/| /' conftest.$ac_ext >&5
30014
30015         ac_cv_type_signal=void
30016 fi
30017
30018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30019 fi
30020 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30021 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30022
30023 cat >>confdefs.h <<_ACEOF
30024 #define RETSIGTYPE $ac_cv_type_signal
30025 _ACEOF
30026
30027
30028 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30029 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30030 if test "${ac_cv_struct_tm+set}" = set; then
30031   echo $ECHO_N "(cached) $ECHO_C" >&6
30032 else
30033   cat >conftest.$ac_ext <<_ACEOF
30034 /* confdefs.h.  */
30035 _ACEOF
30036 cat confdefs.h >>conftest.$ac_ext
30037 cat >>conftest.$ac_ext <<_ACEOF
30038 /* end confdefs.h.  */
30039 #include <sys/types.h>
30040 #include <time.h>
30041
30042 int
30043 main ()
30044 {
30045 struct tm *tp; tp->tm_sec;
30046   ;
30047   return 0;
30048 }
30049 _ACEOF
30050 rm -f conftest.$ac_objext
30051 if { (ac_try="$ac_compile"
30052 case "(($ac_try" in
30053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054   *) ac_try_echo=$ac_try;;
30055 esac
30056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057   (eval "$ac_compile") 2>conftest.er1
30058   ac_status=$?
30059   grep -v '^ *+' conftest.er1 >conftest.err
30060   rm -f conftest.er1
30061   cat conftest.err >&5
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); } &&
30064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30065   { (case "(($ac_try" in
30066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30067   *) ac_try_echo=$ac_try;;
30068 esac
30069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30070   (eval "$ac_try") 2>&5
30071   ac_status=$?
30072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073   (exit $ac_status); }; } &&
30074          { ac_try='test -s conftest.$ac_objext'
30075   { (case "(($ac_try" in
30076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30077   *) ac_try_echo=$ac_try;;
30078 esac
30079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30080   (eval "$ac_try") 2>&5
30081   ac_status=$?
30082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083   (exit $ac_status); }; }; then
30084   ac_cv_struct_tm=time.h
30085 else
30086   echo "$as_me: failed program was:" >&5
30087 sed 's/^/| /' conftest.$ac_ext >&5
30088
30089         ac_cv_struct_tm=sys/time.h
30090 fi
30091
30092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30093 fi
30094 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30095 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30096 if test $ac_cv_struct_tm = sys/time.h; then
30097
30098 cat >>confdefs.h <<\_ACEOF
30099 #define TM_IN_SYS_TIME 1
30100 _ACEOF
30101
30102 fi
30103
30104 { echo "$as_me:$LINENO: checking for int64_t" >&5
30105 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30106 if test "${ac_cv_type_int64_t+set}" = set; then
30107   echo $ECHO_N "(cached) $ECHO_C" >&6
30108 else
30109   cat >conftest.$ac_ext <<_ACEOF
30110 /* confdefs.h.  */
30111 _ACEOF
30112 cat confdefs.h >>conftest.$ac_ext
30113 cat >>conftest.$ac_ext <<_ACEOF
30114 /* end confdefs.h.  */
30115 $ac_includes_default
30116 typedef int64_t ac__type_new_;
30117 int
30118 main ()
30119 {
30120 if ((ac__type_new_ *) 0)
30121   return 0;
30122 if (sizeof (ac__type_new_))
30123   return 0;
30124   ;
30125   return 0;
30126 }
30127 _ACEOF
30128 rm -f conftest.$ac_objext
30129 if { (ac_try="$ac_compile"
30130 case "(($ac_try" in
30131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132   *) ac_try_echo=$ac_try;;
30133 esac
30134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135   (eval "$ac_compile") 2>conftest.er1
30136   ac_status=$?
30137   grep -v '^ *+' conftest.er1 >conftest.err
30138   rm -f conftest.er1
30139   cat conftest.err >&5
30140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141   (exit $ac_status); } &&
30142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30143   { (case "(($ac_try" in
30144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145   *) ac_try_echo=$ac_try;;
30146 esac
30147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30148   (eval "$ac_try") 2>&5
30149   ac_status=$?
30150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151   (exit $ac_status); }; } &&
30152          { ac_try='test -s conftest.$ac_objext'
30153   { (case "(($ac_try" in
30154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30155   *) ac_try_echo=$ac_try;;
30156 esac
30157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30158   (eval "$ac_try") 2>&5
30159   ac_status=$?
30160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161   (exit $ac_status); }; }; then
30162   ac_cv_type_int64_t=yes
30163 else
30164   echo "$as_me: failed program was:" >&5
30165 sed 's/^/| /' conftest.$ac_ext >&5
30166
30167         ac_cv_type_int64_t=no
30168 fi
30169
30170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30171 fi
30172 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30173 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30174 if test $ac_cv_type_int64_t = yes; then
30175
30176 cat >>confdefs.h <<_ACEOF
30177 #define HAVE_INT64_T 1
30178 _ACEOF
30179
30180
30181 else
30182   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30183 echo "$as_me: error: Type int64_t required but not found" >&2;}
30184    { (exit 1); exit 1; }; }
30185 fi
30186
30187 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30188 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30189 if test "${ac_cv_type_uint64_t+set}" = set; then
30190   echo $ECHO_N "(cached) $ECHO_C" >&6
30191 else
30192   cat >conftest.$ac_ext <<_ACEOF
30193 /* confdefs.h.  */
30194 _ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h.  */
30198 $ac_includes_default
30199 typedef uint64_t ac__type_new_;
30200 int
30201 main ()
30202 {
30203 if ((ac__type_new_ *) 0)
30204   return 0;
30205 if (sizeof (ac__type_new_))
30206   return 0;
30207   ;
30208   return 0;
30209 }
30210 _ACEOF
30211 rm -f conftest.$ac_objext
30212 if { (ac_try="$ac_compile"
30213 case "(($ac_try" in
30214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215   *) ac_try_echo=$ac_try;;
30216 esac
30217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30218   (eval "$ac_compile") 2>conftest.er1
30219   ac_status=$?
30220   grep -v '^ *+' conftest.er1 >conftest.err
30221   rm -f conftest.er1
30222   cat conftest.err >&5
30223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224   (exit $ac_status); } &&
30225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30226   { (case "(($ac_try" in
30227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228   *) ac_try_echo=$ac_try;;
30229 esac
30230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231   (eval "$ac_try") 2>&5
30232   ac_status=$?
30233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234   (exit $ac_status); }; } &&
30235          { ac_try='test -s conftest.$ac_objext'
30236   { (case "(($ac_try" in
30237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238   *) ac_try_echo=$ac_try;;
30239 esac
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241   (eval "$ac_try") 2>&5
30242   ac_status=$?
30243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244   (exit $ac_status); }; }; then
30245   ac_cv_type_uint64_t=yes
30246 else
30247   echo "$as_me: failed program was:" >&5
30248 sed 's/^/| /' conftest.$ac_ext >&5
30249
30250         ac_cv_type_uint64_t=no
30251 fi
30252
30253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30254 fi
30255 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30256 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30257 if test $ac_cv_type_uint64_t = yes; then
30258
30259 cat >>confdefs.h <<_ACEOF
30260 #define HAVE_UINT64_T 1
30261 _ACEOF
30262
30263
30264 else
30265   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30266 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30267 if test "${ac_cv_type_u_int64_t+set}" = set; then
30268   echo $ECHO_N "(cached) $ECHO_C" >&6
30269 else
30270   cat >conftest.$ac_ext <<_ACEOF
30271 /* confdefs.h.  */
30272 _ACEOF
30273 cat confdefs.h >>conftest.$ac_ext
30274 cat >>conftest.$ac_ext <<_ACEOF
30275 /* end confdefs.h.  */
30276 $ac_includes_default
30277 typedef u_int64_t ac__type_new_;
30278 int
30279 main ()
30280 {
30281 if ((ac__type_new_ *) 0)
30282   return 0;
30283 if (sizeof (ac__type_new_))
30284   return 0;
30285   ;
30286   return 0;
30287 }
30288 _ACEOF
30289 rm -f conftest.$ac_objext
30290 if { (ac_try="$ac_compile"
30291 case "(($ac_try" in
30292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293   *) ac_try_echo=$ac_try;;
30294 esac
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296   (eval "$ac_compile") 2>conftest.er1
30297   ac_status=$?
30298   grep -v '^ *+' conftest.er1 >conftest.err
30299   rm -f conftest.er1
30300   cat conftest.err >&5
30301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302   (exit $ac_status); } &&
30303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30304   { (case "(($ac_try" in
30305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30306   *) ac_try_echo=$ac_try;;
30307 esac
30308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30309   (eval "$ac_try") 2>&5
30310   ac_status=$?
30311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312   (exit $ac_status); }; } &&
30313          { ac_try='test -s conftest.$ac_objext'
30314   { (case "(($ac_try" in
30315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30316   *) ac_try_echo=$ac_try;;
30317 esac
30318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30319   (eval "$ac_try") 2>&5
30320   ac_status=$?
30321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322   (exit $ac_status); }; }; then
30323   ac_cv_type_u_int64_t=yes
30324 else
30325   echo "$as_me: failed program was:" >&5
30326 sed 's/^/| /' conftest.$ac_ext >&5
30327
30328         ac_cv_type_u_int64_t=no
30329 fi
30330
30331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30332 fi
30333 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30334 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30335 if test $ac_cv_type_u_int64_t = yes; then
30336
30337 cat >>confdefs.h <<_ACEOF
30338 #define HAVE_U_INT64_T 1
30339 _ACEOF
30340
30341
30342 else
30343   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30344 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30345    { (exit 1); exit 1; }; }
30346 fi
30347
30348 fi
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358
30359 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30360 do
30361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30365   echo $ECHO_N "(cached) $ECHO_C" >&6
30366 else
30367   cat >conftest.$ac_ext <<_ACEOF
30368 /* confdefs.h.  */
30369 _ACEOF
30370 cat confdefs.h >>conftest.$ac_ext
30371 cat >>conftest.$ac_ext <<_ACEOF
30372 /* end confdefs.h.  */
30373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30375 #define $ac_func innocuous_$ac_func
30376
30377 /* System header to define __stub macros and hopefully few prototypes,
30378     which can conflict with char $ac_func (); below.
30379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30380     <limits.h> exists even on freestanding compilers.  */
30381
30382 #ifdef __STDC__
30383 # include <limits.h>
30384 #else
30385 # include <assert.h>
30386 #endif
30387
30388 #undef $ac_func
30389
30390 /* Override any GCC internal prototype to avoid an error.
30391    Use char because int might match the return type of a GCC
30392    builtin and then its argument prototype would still apply.  */
30393 #ifdef __cplusplus
30394 extern "C"
30395 #endif
30396 char $ac_func ();
30397 /* The GNU C library defines this for functions which it implements
30398     to always fail with ENOSYS.  Some functions are actually named
30399     something starting with __ and the normal name is an alias.  */
30400 #if defined __stub_$ac_func || defined __stub___$ac_func
30401 choke me
30402 #endif
30403
30404 int
30405 main ()
30406 {
30407 return $ac_func ();
30408   ;
30409   return 0;
30410 }
30411 _ACEOF
30412 rm -f conftest.$ac_objext conftest$ac_exeext
30413 if { (ac_try="$ac_link"
30414 case "(($ac_try" in
30415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416   *) ac_try_echo=$ac_try;;
30417 esac
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419   (eval "$ac_link") 2>conftest.er1
30420   ac_status=$?
30421   grep -v '^ *+' conftest.er1 >conftest.err
30422   rm -f conftest.er1
30423   cat conftest.err >&5
30424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425   (exit $ac_status); } &&
30426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30427   { (case "(($ac_try" in
30428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429   *) ac_try_echo=$ac_try;;
30430 esac
30431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432   (eval "$ac_try") 2>&5
30433   ac_status=$?
30434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435   (exit $ac_status); }; } &&
30436          { ac_try='test -s conftest$ac_exeext'
30437   { (case "(($ac_try" in
30438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30439   *) ac_try_echo=$ac_try;;
30440 esac
30441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30442   (eval "$ac_try") 2>&5
30443   ac_status=$?
30444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445   (exit $ac_status); }; }; then
30446   eval "$as_ac_var=yes"
30447 else
30448   echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30450
30451         eval "$as_ac_var=no"
30452 fi
30453
30454 rm -f core conftest.err conftest.$ac_objext \
30455       conftest$ac_exeext conftest.$ac_ext
30456 fi
30457 ac_res=`eval echo '${'$as_ac_var'}'`
30458                { echo "$as_me:$LINENO: result: $ac_res" >&5
30459 echo "${ECHO_T}$ac_res" >&6; }
30460 if test `eval echo '${'$as_ac_var'}'` = yes; then
30461   cat >>confdefs.h <<_ACEOF
30462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30463 _ACEOF
30464
30465 fi
30466 done
30467
30468
30469
30470
30471
30472 for ac_func in powf fmodf strtof round
30473 do
30474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30478   echo $ECHO_N "(cached) $ECHO_C" >&6
30479 else
30480   cat >conftest.$ac_ext <<_ACEOF
30481 /* confdefs.h.  */
30482 _ACEOF
30483 cat confdefs.h >>conftest.$ac_ext
30484 cat >>conftest.$ac_ext <<_ACEOF
30485 /* end confdefs.h.  */
30486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30488 #define $ac_func innocuous_$ac_func
30489
30490 /* System header to define __stub macros and hopefully few prototypes,
30491     which can conflict with char $ac_func (); below.
30492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30493     <limits.h> exists even on freestanding compilers.  */
30494
30495 #ifdef __STDC__
30496 # include <limits.h>
30497 #else
30498 # include <assert.h>
30499 #endif
30500
30501 #undef $ac_func
30502
30503 /* Override any GCC internal prototype to avoid an error.
30504    Use char because int might match the return type of a GCC
30505    builtin and then its argument prototype would still apply.  */
30506 #ifdef __cplusplus
30507 extern "C"
30508 #endif
30509 char $ac_func ();
30510 /* The GNU C library defines this for functions which it implements
30511     to always fail with ENOSYS.  Some functions are actually named
30512     something starting with __ and the normal name is an alias.  */
30513 #if defined __stub_$ac_func || defined __stub___$ac_func
30514 choke me
30515 #endif
30516
30517 int
30518 main ()
30519 {
30520 return $ac_func ();
30521   ;
30522   return 0;
30523 }
30524 _ACEOF
30525 rm -f conftest.$ac_objext conftest$ac_exeext
30526 if { (ac_try="$ac_link"
30527 case "(($ac_try" in
30528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30529   *) ac_try_echo=$ac_try;;
30530 esac
30531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30532   (eval "$ac_link") 2>conftest.er1
30533   ac_status=$?
30534   grep -v '^ *+' conftest.er1 >conftest.err
30535   rm -f conftest.er1
30536   cat conftest.err >&5
30537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538   (exit $ac_status); } &&
30539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30540   { (case "(($ac_try" in
30541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542   *) ac_try_echo=$ac_try;;
30543 esac
30544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545   (eval "$ac_try") 2>&5
30546   ac_status=$?
30547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548   (exit $ac_status); }; } &&
30549          { ac_try='test -s conftest$ac_exeext'
30550   { (case "(($ac_try" in
30551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552   *) ac_try_echo=$ac_try;;
30553 esac
30554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555   (eval "$ac_try") 2>&5
30556   ac_status=$?
30557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558   (exit $ac_status); }; }; then
30559   eval "$as_ac_var=yes"
30560 else
30561   echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.$ac_ext >&5
30563
30564         eval "$as_ac_var=no"
30565 fi
30566
30567 rm -f core conftest.err conftest.$ac_objext \
30568       conftest$ac_exeext conftest.$ac_ext
30569 fi
30570 ac_res=`eval echo '${'$as_ac_var'}'`
30571                { echo "$as_me:$LINENO: result: $ac_res" >&5
30572 echo "${ECHO_T}$ac_res" >&6; }
30573 if test `eval echo '${'$as_ac_var'}'` = yes; then
30574   cat >>confdefs.h <<_ACEOF
30575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30576 _ACEOF
30577
30578 fi
30579 done
30580
30581
30582
30583
30584
30585
30586 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30587 do
30588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30592   echo $ECHO_N "(cached) $ECHO_C" >&6
30593 else
30594   cat >conftest.$ac_ext <<_ACEOF
30595 /* confdefs.h.  */
30596 _ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h.  */
30600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30602 #define $ac_func innocuous_$ac_func
30603
30604 /* System header to define __stub macros and hopefully few prototypes,
30605     which can conflict with char $ac_func (); below.
30606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30607     <limits.h> exists even on freestanding compilers.  */
30608
30609 #ifdef __STDC__
30610 # include <limits.h>
30611 #else
30612 # include <assert.h>
30613 #endif
30614
30615 #undef $ac_func
30616
30617 /* Override any GCC internal prototype to avoid an error.
30618    Use char because int might match the return type of a GCC
30619    builtin and then its argument prototype would still apply.  */
30620 #ifdef __cplusplus
30621 extern "C"
30622 #endif
30623 char $ac_func ();
30624 /* The GNU C library defines this for functions which it implements
30625     to always fail with ENOSYS.  Some functions are actually named
30626     something starting with __ and the normal name is an alias.  */
30627 #if defined __stub_$ac_func || defined __stub___$ac_func
30628 choke me
30629 #endif
30630
30631 int
30632 main ()
30633 {
30634 return $ac_func ();
30635   ;
30636   return 0;
30637 }
30638 _ACEOF
30639 rm -f conftest.$ac_objext conftest$ac_exeext
30640 if { (ac_try="$ac_link"
30641 case "(($ac_try" in
30642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30643   *) ac_try_echo=$ac_try;;
30644 esac
30645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30646   (eval "$ac_link") 2>conftest.er1
30647   ac_status=$?
30648   grep -v '^ *+' conftest.er1 >conftest.err
30649   rm -f conftest.er1
30650   cat conftest.err >&5
30651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652   (exit $ac_status); } &&
30653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30654   { (case "(($ac_try" in
30655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656   *) ac_try_echo=$ac_try;;
30657 esac
30658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659   (eval "$ac_try") 2>&5
30660   ac_status=$?
30661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662   (exit $ac_status); }; } &&
30663          { ac_try='test -s conftest$ac_exeext'
30664   { (case "(($ac_try" in
30665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666   *) ac_try_echo=$ac_try;;
30667 esac
30668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669   (eval "$ac_try") 2>&5
30670   ac_status=$?
30671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672   (exit $ac_status); }; }; then
30673   eval "$as_ac_var=yes"
30674 else
30675   echo "$as_me: failed program was:" >&5
30676 sed 's/^/| /' conftest.$ac_ext >&5
30677
30678         eval "$as_ac_var=no"
30679 fi
30680
30681 rm -f core conftest.err conftest.$ac_objext \
30682       conftest$ac_exeext conftest.$ac_ext
30683 fi
30684 ac_res=`eval echo '${'$as_ac_var'}'`
30685                { echo "$as_me:$LINENO: result: $ac_res" >&5
30686 echo "${ECHO_T}$ac_res" >&6; }
30687 if test `eval echo '${'$as_ac_var'}'` = yes; then
30688   cat >>confdefs.h <<_ACEOF
30689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30690 _ACEOF
30691
30692 fi
30693 done
30694
30695
30696
30697
30698 for ac_func in isatty mkdtemp mkstemp
30699 do
30700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30704   echo $ECHO_N "(cached) $ECHO_C" >&6
30705 else
30706   cat >conftest.$ac_ext <<_ACEOF
30707 /* confdefs.h.  */
30708 _ACEOF
30709 cat confdefs.h >>conftest.$ac_ext
30710 cat >>conftest.$ac_ext <<_ACEOF
30711 /* end confdefs.h.  */
30712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30714 #define $ac_func innocuous_$ac_func
30715
30716 /* System header to define __stub macros and hopefully few prototypes,
30717     which can conflict with char $ac_func (); below.
30718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30719     <limits.h> exists even on freestanding compilers.  */
30720
30721 #ifdef __STDC__
30722 # include <limits.h>
30723 #else
30724 # include <assert.h>
30725 #endif
30726
30727 #undef $ac_func
30728
30729 /* Override any GCC internal prototype to avoid an error.
30730    Use char because int might match the return type of a GCC
30731    builtin and then its argument prototype would still apply.  */
30732 #ifdef __cplusplus
30733 extern "C"
30734 #endif
30735 char $ac_func ();
30736 /* The GNU C library defines this for functions which it implements
30737     to always fail with ENOSYS.  Some functions are actually named
30738     something starting with __ and the normal name is an alias.  */
30739 #if defined __stub_$ac_func || defined __stub___$ac_func
30740 choke me
30741 #endif
30742
30743 int
30744 main ()
30745 {
30746 return $ac_func ();
30747   ;
30748   return 0;
30749 }
30750 _ACEOF
30751 rm -f conftest.$ac_objext conftest$ac_exeext
30752 if { (ac_try="$ac_link"
30753 case "(($ac_try" in
30754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755   *) ac_try_echo=$ac_try;;
30756 esac
30757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758   (eval "$ac_link") 2>conftest.er1
30759   ac_status=$?
30760   grep -v '^ *+' conftest.er1 >conftest.err
30761   rm -f conftest.er1
30762   cat conftest.err >&5
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); } &&
30765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30766   { (case "(($ac_try" in
30767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768   *) ac_try_echo=$ac_try;;
30769 esac
30770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771   (eval "$ac_try") 2>&5
30772   ac_status=$?
30773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774   (exit $ac_status); }; } &&
30775          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30785   eval "$as_ac_var=yes"
30786 else
30787   echo "$as_me: failed program was:" >&5
30788 sed 's/^/| /' conftest.$ac_ext >&5
30789
30790         eval "$as_ac_var=no"
30791 fi
30792
30793 rm -f core conftest.err conftest.$ac_objext \
30794       conftest$ac_exeext conftest.$ac_ext
30795 fi
30796 ac_res=`eval echo '${'$as_ac_var'}'`
30797                { echo "$as_me:$LINENO: result: $ac_res" >&5
30798 echo "${ECHO_T}$ac_res" >&6; }
30799 if test `eval echo '${'$as_ac_var'}'` = yes; then
30800   cat >>confdefs.h <<_ACEOF
30801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30802 _ACEOF
30803
30804 fi
30805 done
30806
30807
30808
30809
30810
30811
30812
30813
30814 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30815 do
30816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30820   echo $ECHO_N "(cached) $ECHO_C" >&6
30821 else
30822   cat >conftest.$ac_ext <<_ACEOF
30823 /* confdefs.h.  */
30824 _ACEOF
30825 cat confdefs.h >>conftest.$ac_ext
30826 cat >>conftest.$ac_ext <<_ACEOF
30827 /* end confdefs.h.  */
30828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30830 #define $ac_func innocuous_$ac_func
30831
30832 /* System header to define __stub macros and hopefully few prototypes,
30833     which can conflict with char $ac_func (); below.
30834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30835     <limits.h> exists even on freestanding compilers.  */
30836
30837 #ifdef __STDC__
30838 # include <limits.h>
30839 #else
30840 # include <assert.h>
30841 #endif
30842
30843 #undef $ac_func
30844
30845 /* Override any GCC internal prototype to avoid an error.
30846    Use char because int might match the return type of a GCC
30847    builtin and then its argument prototype would still apply.  */
30848 #ifdef __cplusplus
30849 extern "C"
30850 #endif
30851 char $ac_func ();
30852 /* The GNU C library defines this for functions which it implements
30853     to always fail with ENOSYS.  Some functions are actually named
30854     something starting with __ and the normal name is an alias.  */
30855 #if defined __stub_$ac_func || defined __stub___$ac_func
30856 choke me
30857 #endif
30858
30859 int
30860 main ()
30861 {
30862 return $ac_func ();
30863   ;
30864   return 0;
30865 }
30866 _ACEOF
30867 rm -f conftest.$ac_objext conftest$ac_exeext
30868 if { (ac_try="$ac_link"
30869 case "(($ac_try" in
30870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871   *) ac_try_echo=$ac_try;;
30872 esac
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874   (eval "$ac_link") 2>conftest.er1
30875   ac_status=$?
30876   grep -v '^ *+' conftest.er1 >conftest.err
30877   rm -f conftest.er1
30878   cat conftest.err >&5
30879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880   (exit $ac_status); } &&
30881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30882   { (case "(($ac_try" in
30883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884   *) ac_try_echo=$ac_try;;
30885 esac
30886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30887   (eval "$ac_try") 2>&5
30888   ac_status=$?
30889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890   (exit $ac_status); }; } &&
30891          { ac_try='test -s conftest$ac_exeext'
30892   { (case "(($ac_try" in
30893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894   *) ac_try_echo=$ac_try;;
30895 esac
30896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897   (eval "$ac_try") 2>&5
30898   ac_status=$?
30899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900   (exit $ac_status); }; }; then
30901   eval "$as_ac_var=yes"
30902 else
30903   echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.$ac_ext >&5
30905
30906         eval "$as_ac_var=no"
30907 fi
30908
30909 rm -f core conftest.err conftest.$ac_objext \
30910       conftest$ac_exeext conftest.$ac_ext
30911 fi
30912 ac_res=`eval echo '${'$as_ac_var'}'`
30913                { echo "$as_me:$LINENO: result: $ac_res" >&5
30914 echo "${ECHO_T}$ac_res" >&6; }
30915 if test `eval echo '${'$as_ac_var'}'` = yes; then
30916   cat >>confdefs.h <<_ACEOF
30917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30918 _ACEOF
30919
30920 fi
30921 done
30922
30923
30924
30925
30926
30927 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30928 do
30929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30933   echo $ECHO_N "(cached) $ECHO_C" >&6
30934 else
30935   cat >conftest.$ac_ext <<_ACEOF
30936 /* confdefs.h.  */
30937 _ACEOF
30938 cat confdefs.h >>conftest.$ac_ext
30939 cat >>conftest.$ac_ext <<_ACEOF
30940 /* end confdefs.h.  */
30941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30943 #define $ac_func innocuous_$ac_func
30944
30945 /* System header to define __stub macros and hopefully few prototypes,
30946     which can conflict with char $ac_func (); below.
30947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30948     <limits.h> exists even on freestanding compilers.  */
30949
30950 #ifdef __STDC__
30951 # include <limits.h>
30952 #else
30953 # include <assert.h>
30954 #endif
30955
30956 #undef $ac_func
30957
30958 /* Override any GCC internal prototype to avoid an error.
30959    Use char because int might match the return type of a GCC
30960    builtin and then its argument prototype would still apply.  */
30961 #ifdef __cplusplus
30962 extern "C"
30963 #endif
30964 char $ac_func ();
30965 /* The GNU C library defines this for functions which it implements
30966     to always fail with ENOSYS.  Some functions are actually named
30967     something starting with __ and the normal name is an alias.  */
30968 #if defined __stub_$ac_func || defined __stub___$ac_func
30969 choke me
30970 #endif
30971
30972 int
30973 main ()
30974 {
30975 return $ac_func ();
30976   ;
30977   return 0;
30978 }
30979 _ACEOF
30980 rm -f conftest.$ac_objext conftest$ac_exeext
30981 if { (ac_try="$ac_link"
30982 case "(($ac_try" in
30983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984   *) ac_try_echo=$ac_try;;
30985 esac
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987   (eval "$ac_link") 2>conftest.er1
30988   ac_status=$?
30989   grep -v '^ *+' conftest.er1 >conftest.err
30990   rm -f conftest.er1
30991   cat conftest.err >&5
30992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993   (exit $ac_status); } &&
30994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30995   { (case "(($ac_try" in
30996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30997   *) ac_try_echo=$ac_try;;
30998 esac
30999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31000   (eval "$ac_try") 2>&5
31001   ac_status=$?
31002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003   (exit $ac_status); }; } &&
31004          { ac_try='test -s conftest$ac_exeext'
31005   { (case "(($ac_try" in
31006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007   *) ac_try_echo=$ac_try;;
31008 esac
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010   (eval "$ac_try") 2>&5
31011   ac_status=$?
31012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013   (exit $ac_status); }; }; then
31014   eval "$as_ac_var=yes"
31015 else
31016   echo "$as_me: failed program was:" >&5
31017 sed 's/^/| /' conftest.$ac_ext >&5
31018
31019         eval "$as_ac_var=no"
31020 fi
31021
31022 rm -f core conftest.err conftest.$ac_objext \
31023       conftest$ac_exeext conftest.$ac_ext
31024 fi
31025 ac_res=`eval echo '${'$as_ac_var'}'`
31026                { echo "$as_me:$LINENO: result: $ac_res" >&5
31027 echo "${ECHO_T}$ac_res" >&6; }
31028 if test `eval echo '${'$as_ac_var'}'` = yes; then
31029   cat >>confdefs.h <<_ACEOF
31030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31031 _ACEOF
31032
31033 fi
31034 done
31035
31036
31037
31038
31039
31040 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31041 do
31042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31046   echo $ECHO_N "(cached) $ECHO_C" >&6
31047 else
31048   cat >conftest.$ac_ext <<_ACEOF
31049 /* confdefs.h.  */
31050 _ACEOF
31051 cat confdefs.h >>conftest.$ac_ext
31052 cat >>conftest.$ac_ext <<_ACEOF
31053 /* end confdefs.h.  */
31054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31056 #define $ac_func innocuous_$ac_func
31057
31058 /* System header to define __stub macros and hopefully few prototypes,
31059     which can conflict with char $ac_func (); below.
31060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31061     <limits.h> exists even on freestanding compilers.  */
31062
31063 #ifdef __STDC__
31064 # include <limits.h>
31065 #else
31066 # include <assert.h>
31067 #endif
31068
31069 #undef $ac_func
31070
31071 /* Override any GCC internal prototype to avoid an error.
31072    Use char because int might match the return type of a GCC
31073    builtin and then its argument prototype would still apply.  */
31074 #ifdef __cplusplus
31075 extern "C"
31076 #endif
31077 char $ac_func ();
31078 /* The GNU C library defines this for functions which it implements
31079     to always fail with ENOSYS.  Some functions are actually named
31080     something starting with __ and the normal name is an alias.  */
31081 #if defined __stub_$ac_func || defined __stub___$ac_func
31082 choke me
31083 #endif
31084
31085 int
31086 main ()
31087 {
31088 return $ac_func ();
31089   ;
31090   return 0;
31091 }
31092 _ACEOF
31093 rm -f conftest.$ac_objext conftest$ac_exeext
31094 if { (ac_try="$ac_link"
31095 case "(($ac_try" in
31096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31097   *) ac_try_echo=$ac_try;;
31098 esac
31099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31100   (eval "$ac_link") 2>conftest.er1
31101   ac_status=$?
31102   grep -v '^ *+' conftest.er1 >conftest.err
31103   rm -f conftest.er1
31104   cat conftest.err >&5
31105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106   (exit $ac_status); } &&
31107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31108   { (case "(($ac_try" in
31109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110   *) ac_try_echo=$ac_try;;
31111 esac
31112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113   (eval "$ac_try") 2>&5
31114   ac_status=$?
31115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116   (exit $ac_status); }; } &&
31117          { ac_try='test -s conftest$ac_exeext'
31118   { (case "(($ac_try" in
31119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31120   *) ac_try_echo=$ac_try;;
31121 esac
31122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31123   (eval "$ac_try") 2>&5
31124   ac_status=$?
31125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126   (exit $ac_status); }; }; then
31127   eval "$as_ac_var=yes"
31128 else
31129   echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31131
31132         eval "$as_ac_var=no"
31133 fi
31134
31135 rm -f core conftest.err conftest.$ac_objext \
31136       conftest$ac_exeext conftest.$ac_ext
31137 fi
31138 ac_res=`eval echo '${'$as_ac_var'}'`
31139                { echo "$as_me:$LINENO: result: $ac_res" >&5
31140 echo "${ECHO_T}$ac_res" >&6; }
31141 if test `eval echo '${'$as_ac_var'}'` = yes; then
31142   cat >>confdefs.h <<_ACEOF
31143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31144 _ACEOF
31145
31146 fi
31147 done
31148
31149 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31150 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31151 if test "${llvm_cv_c_printf_a+set}" = set; then
31152   echo $ECHO_N "(cached) $ECHO_C" >&6
31153 else
31154   ac_ext=c
31155 ac_cpp='$CPP $CPPFLAGS'
31156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31159
31160  if test "$cross_compiling" = yes; then
31161   llvmac_cv_c_printf_a=no
31162 else
31163   cat >conftest.$ac_ext <<_ACEOF
31164
31165   /* confdefs.h.  */
31166 _ACEOF
31167 cat confdefs.h >>conftest.$ac_ext
31168 cat >>conftest.$ac_ext <<_ACEOF
31169 /* end confdefs.h.  */
31170
31171 #include <stdio.h>
31172 #include <stdlib.h>
31173
31174 int
31175 main ()
31176 {
31177
31178 volatile double A, B;
31179 char Buffer[100];
31180 A = 1;
31181 A /= 10.0;
31182 sprintf(Buffer, "%a", A);
31183 B = atof(Buffer);
31184 if (A != B)
31185   return (1);
31186 if (A != 0x1.999999999999ap-4)
31187   return (1);
31188 return (0);
31189   ;
31190   return 0;
31191 }
31192 _ACEOF
31193 rm -f conftest$ac_exeext
31194 if { (ac_try="$ac_link"
31195 case "(($ac_try" in
31196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197   *) ac_try_echo=$ac_try;;
31198 esac
31199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200   (eval "$ac_link") 2>&5
31201   ac_status=$?
31202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31204   { (case "(($ac_try" in
31205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206   *) ac_try_echo=$ac_try;;
31207 esac
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209   (eval "$ac_try") 2>&5
31210   ac_status=$?
31211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212   (exit $ac_status); }; }; then
31213   llvm_cv_c_printf_a=yes
31214 else
31215   echo "$as_me: program exited with status $ac_status" >&5
31216 echo "$as_me: failed program was:" >&5
31217 sed 's/^/| /' conftest.$ac_ext >&5
31218
31219 ( exit $ac_status )
31220 llvmac_cv_c_printf_a=no
31221 fi
31222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31223 fi
31224
31225
31226  ac_ext=c
31227 ac_cpp='$CPP $CPPFLAGS'
31228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31231
31232 fi
31233 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31234 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31235  if test "$llvm_cv_c_printf_a" = "yes"; then
31236
31237 cat >>confdefs.h <<\_ACEOF
31238 #define HAVE_PRINTF_A 1
31239 _ACEOF
31240
31241  fi
31242
31243 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31244 # for constant arguments.  Useless!
31245 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31246 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31247 if test "${ac_cv_working_alloca_h+set}" = set; then
31248   echo $ECHO_N "(cached) $ECHO_C" >&6
31249 else
31250   cat >conftest.$ac_ext <<_ACEOF
31251 /* confdefs.h.  */
31252 _ACEOF
31253 cat confdefs.h >>conftest.$ac_ext
31254 cat >>conftest.$ac_ext <<_ACEOF
31255 /* end confdefs.h.  */
31256 #include <alloca.h>
31257 int
31258 main ()
31259 {
31260 char *p = (char *) alloca (2 * sizeof (int));
31261                           if (p) return 0;
31262   ;
31263   return 0;
31264 }
31265 _ACEOF
31266 rm -f conftest.$ac_objext conftest$ac_exeext
31267 if { (ac_try="$ac_link"
31268 case "(($ac_try" in
31269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270   *) ac_try_echo=$ac_try;;
31271 esac
31272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273   (eval "$ac_link") 2>conftest.er1
31274   ac_status=$?
31275   grep -v '^ *+' conftest.er1 >conftest.err
31276   rm -f conftest.er1
31277   cat conftest.err >&5
31278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279   (exit $ac_status); } &&
31280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31281   { (case "(($ac_try" in
31282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283   *) ac_try_echo=$ac_try;;
31284 esac
31285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286   (eval "$ac_try") 2>&5
31287   ac_status=$?
31288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289   (exit $ac_status); }; } &&
31290          { ac_try='test -s conftest$ac_exeext'
31291   { (case "(($ac_try" in
31292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293   *) ac_try_echo=$ac_try;;
31294 esac
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296   (eval "$ac_try") 2>&5
31297   ac_status=$?
31298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299   (exit $ac_status); }; }; then
31300   ac_cv_working_alloca_h=yes
31301 else
31302   echo "$as_me: failed program was:" >&5
31303 sed 's/^/| /' conftest.$ac_ext >&5
31304
31305         ac_cv_working_alloca_h=no
31306 fi
31307
31308 rm -f core conftest.err conftest.$ac_objext \
31309       conftest$ac_exeext conftest.$ac_ext
31310 fi
31311 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31312 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31313 if test $ac_cv_working_alloca_h = yes; then
31314
31315 cat >>confdefs.h <<\_ACEOF
31316 #define HAVE_ALLOCA_H 1
31317 _ACEOF
31318
31319 fi
31320
31321 { echo "$as_me:$LINENO: checking for alloca" >&5
31322 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31323 if test "${ac_cv_func_alloca_works+set}" = set; then
31324   echo $ECHO_N "(cached) $ECHO_C" >&6
31325 else
31326   cat >conftest.$ac_ext <<_ACEOF
31327 /* confdefs.h.  */
31328 _ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h.  */
31332 #ifdef __GNUC__
31333 # define alloca __builtin_alloca
31334 #else
31335 # ifdef _MSC_VER
31336 #  include <malloc.h>
31337 #  define alloca _alloca
31338 # else
31339 #  if HAVE_ALLOCA_H
31340 #   include <alloca.h>
31341 #  else
31342 #   ifdef _AIX
31343  #pragma alloca
31344 #   else
31345 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31346 char *alloca ();
31347 #    endif
31348 #   endif
31349 #  endif
31350 # endif
31351 #endif
31352
31353 int
31354 main ()
31355 {
31356 char *p = (char *) alloca (1);
31357                                     if (p) return 0;
31358   ;
31359   return 0;
31360 }
31361 _ACEOF
31362 rm -f conftest.$ac_objext conftest$ac_exeext
31363 if { (ac_try="$ac_link"
31364 case "(($ac_try" in
31365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366   *) ac_try_echo=$ac_try;;
31367 esac
31368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369   (eval "$ac_link") 2>conftest.er1
31370   ac_status=$?
31371   grep -v '^ *+' conftest.er1 >conftest.err
31372   rm -f conftest.er1
31373   cat conftest.err >&5
31374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375   (exit $ac_status); } &&
31376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31377   { (case "(($ac_try" in
31378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379   *) ac_try_echo=$ac_try;;
31380 esac
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382   (eval "$ac_try") 2>&5
31383   ac_status=$?
31384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385   (exit $ac_status); }; } &&
31386          { ac_try='test -s conftest$ac_exeext'
31387   { (case "(($ac_try" in
31388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31389   *) ac_try_echo=$ac_try;;
31390 esac
31391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31392   (eval "$ac_try") 2>&5
31393   ac_status=$?
31394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395   (exit $ac_status); }; }; then
31396   ac_cv_func_alloca_works=yes
31397 else
31398   echo "$as_me: failed program was:" >&5
31399 sed 's/^/| /' conftest.$ac_ext >&5
31400
31401         ac_cv_func_alloca_works=no
31402 fi
31403
31404 rm -f core conftest.err conftest.$ac_objext \
31405       conftest$ac_exeext conftest.$ac_ext
31406 fi
31407 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31409
31410 if test $ac_cv_func_alloca_works = yes; then
31411
31412 cat >>confdefs.h <<\_ACEOF
31413 #define HAVE_ALLOCA 1
31414 _ACEOF
31415
31416 else
31417   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31418 # that cause trouble.  Some versions do not even contain alloca or
31419 # contain a buggy version.  If you still want to use their alloca,
31420 # use ar to extract alloca.o from them instead of compiling alloca.c.
31421
31422 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31423
31424 cat >>confdefs.h <<\_ACEOF
31425 #define C_ALLOCA 1
31426 _ACEOF
31427
31428
31429 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31431 if test "${ac_cv_os_cray+set}" = set; then
31432   echo $ECHO_N "(cached) $ECHO_C" >&6
31433 else
31434   cat >conftest.$ac_ext <<_ACEOF
31435 /* confdefs.h.  */
31436 _ACEOF
31437 cat confdefs.h >>conftest.$ac_ext
31438 cat >>conftest.$ac_ext <<_ACEOF
31439 /* end confdefs.h.  */
31440 #if defined CRAY && ! defined CRAY2
31441 webecray
31442 #else
31443 wenotbecray
31444 #endif
31445
31446 _ACEOF
31447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31448   $EGREP "webecray" >/dev/null 2>&1; then
31449   ac_cv_os_cray=yes
31450 else
31451   ac_cv_os_cray=no
31452 fi
31453 rm -f conftest*
31454
31455 fi
31456 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31457 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31458 if test $ac_cv_os_cray = yes; then
31459   for ac_func in _getb67 GETB67 getb67; do
31460     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31464   echo $ECHO_N "(cached) $ECHO_C" >&6
31465 else
31466   cat >conftest.$ac_ext <<_ACEOF
31467 /* confdefs.h.  */
31468 _ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h.  */
31472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31474 #define $ac_func innocuous_$ac_func
31475
31476 /* System header to define __stub macros and hopefully few prototypes,
31477     which can conflict with char $ac_func (); below.
31478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31479     <limits.h> exists even on freestanding compilers.  */
31480
31481 #ifdef __STDC__
31482 # include <limits.h>
31483 #else
31484 # include <assert.h>
31485 #endif
31486
31487 #undef $ac_func
31488
31489 /* Override any GCC internal prototype to avoid an error.
31490    Use char because int might match the return type of a GCC
31491    builtin and then its argument prototype would still apply.  */
31492 #ifdef __cplusplus
31493 extern "C"
31494 #endif
31495 char $ac_func ();
31496 /* The GNU C library defines this for functions which it implements
31497     to always fail with ENOSYS.  Some functions are actually named
31498     something starting with __ and the normal name is an alias.  */
31499 #if defined __stub_$ac_func || defined __stub___$ac_func
31500 choke me
31501 #endif
31502
31503 int
31504 main ()
31505 {
31506 return $ac_func ();
31507   ;
31508   return 0;
31509 }
31510 _ACEOF
31511 rm -f conftest.$ac_objext conftest$ac_exeext
31512 if { (ac_try="$ac_link"
31513 case "(($ac_try" in
31514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515   *) ac_try_echo=$ac_try;;
31516 esac
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518   (eval "$ac_link") 2>conftest.er1
31519   ac_status=$?
31520   grep -v '^ *+' conftest.er1 >conftest.err
31521   rm -f conftest.er1
31522   cat conftest.err >&5
31523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524   (exit $ac_status); } &&
31525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31526   { (case "(($ac_try" in
31527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528   *) ac_try_echo=$ac_try;;
31529 esac
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531   (eval "$ac_try") 2>&5
31532   ac_status=$?
31533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534   (exit $ac_status); }; } &&
31535          { ac_try='test -s conftest$ac_exeext'
31536   { (case "(($ac_try" in
31537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538   *) ac_try_echo=$ac_try;;
31539 esac
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541   (eval "$ac_try") 2>&5
31542   ac_status=$?
31543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544   (exit $ac_status); }; }; then
31545   eval "$as_ac_var=yes"
31546 else
31547   echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31549
31550         eval "$as_ac_var=no"
31551 fi
31552
31553 rm -f core conftest.err conftest.$ac_objext \
31554       conftest$ac_exeext conftest.$ac_ext
31555 fi
31556 ac_res=`eval echo '${'$as_ac_var'}'`
31557                { echo "$as_me:$LINENO: result: $ac_res" >&5
31558 echo "${ECHO_T}$ac_res" >&6; }
31559 if test `eval echo '${'$as_ac_var'}'` = yes; then
31560
31561 cat >>confdefs.h <<_ACEOF
31562 #define CRAY_STACKSEG_END $ac_func
31563 _ACEOF
31564
31565     break
31566 fi
31567
31568   done
31569 fi
31570
31571 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31572 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31573 if test "${ac_cv_c_stack_direction+set}" = set; then
31574   echo $ECHO_N "(cached) $ECHO_C" >&6
31575 else
31576   if test "$cross_compiling" = yes; then
31577   ac_cv_c_stack_direction=0
31578 else
31579   cat >conftest.$ac_ext <<_ACEOF
31580 /* confdefs.h.  */
31581 _ACEOF
31582 cat confdefs.h >>conftest.$ac_ext
31583 cat >>conftest.$ac_ext <<_ACEOF
31584 /* end confdefs.h.  */
31585 $ac_includes_default
31586 int
31587 find_stack_direction ()
31588 {
31589   static char *addr = 0;
31590   auto char dummy;
31591   if (addr == 0)
31592     {
31593       addr = &dummy;
31594       return find_stack_direction ();
31595     }
31596   else
31597     return (&dummy > addr) ? 1 : -1;
31598 }
31599
31600 int
31601 main ()
31602 {
31603   return find_stack_direction () < 0;
31604 }
31605 _ACEOF
31606 rm -f conftest$ac_exeext
31607 if { (ac_try="$ac_link"
31608 case "(($ac_try" in
31609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610   *) ac_try_echo=$ac_try;;
31611 esac
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613   (eval "$ac_link") 2>&5
31614   ac_status=$?
31615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31617   { (case "(($ac_try" in
31618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31619   *) ac_try_echo=$ac_try;;
31620 esac
31621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31622   (eval "$ac_try") 2>&5
31623   ac_status=$?
31624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625   (exit $ac_status); }; }; then
31626   ac_cv_c_stack_direction=1
31627 else
31628   echo "$as_me: program exited with status $ac_status" >&5
31629 echo "$as_me: failed program was:" >&5
31630 sed 's/^/| /' conftest.$ac_ext >&5
31631
31632 ( exit $ac_status )
31633 ac_cv_c_stack_direction=-1
31634 fi
31635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31636 fi
31637
31638
31639 fi
31640 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31641 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31642
31643 cat >>confdefs.h <<_ACEOF
31644 #define STACK_DIRECTION $ac_cv_c_stack_direction
31645 _ACEOF
31646
31647
31648 fi
31649
31650
31651 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31652 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31653 if test "${ac_cv_func_rand48+set}" = set; then
31654   echo $ECHO_N "(cached) $ECHO_C" >&6
31655 else
31656   ac_ext=cpp
31657 ac_cpp='$CXXCPP $CPPFLAGS'
31658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31661
31662    cat >conftest.$ac_ext <<_ACEOF
31663 /* confdefs.h.  */
31664 _ACEOF
31665 cat confdefs.h >>conftest.$ac_ext
31666 cat >>conftest.$ac_ext <<_ACEOF
31667 /* end confdefs.h.  */
31668 #include <stdlib.h>
31669 int
31670 main ()
31671 {
31672 srand48(0);lrand48();drand48();
31673   ;
31674   return 0;
31675 }
31676 _ACEOF
31677 rm -f conftest.$ac_objext
31678 if { (ac_try="$ac_compile"
31679 case "(($ac_try" in
31680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31681   *) ac_try_echo=$ac_try;;
31682 esac
31683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31684   (eval "$ac_compile") 2>conftest.er1
31685   ac_status=$?
31686   grep -v '^ *+' conftest.er1 >conftest.err
31687   rm -f conftest.er1
31688   cat conftest.err >&5
31689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690   (exit $ac_status); } &&
31691          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31692   { (case "(($ac_try" in
31693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694   *) ac_try_echo=$ac_try;;
31695 esac
31696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697   (eval "$ac_try") 2>&5
31698   ac_status=$?
31699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700   (exit $ac_status); }; } &&
31701          { ac_try='test -s conftest.$ac_objext'
31702   { (case "(($ac_try" in
31703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704   *) ac_try_echo=$ac_try;;
31705 esac
31706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707   (eval "$ac_try") 2>&5
31708   ac_status=$?
31709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710   (exit $ac_status); }; }; then
31711   ac_cv_func_rand48=yes
31712 else
31713   echo "$as_me: failed program was:" >&5
31714 sed 's/^/| /' conftest.$ac_ext >&5
31715
31716         ac_cv_func_rand48=no
31717 fi
31718
31719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31720   ac_ext=c
31721 ac_cpp='$CPP $CPPFLAGS'
31722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31725
31726 fi
31727 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31728 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31729
31730 if test "$ac_cv_func_rand48" = "yes" ; then
31731
31732 cat >>confdefs.h <<\_ACEOF
31733 #define HAVE_RAND48 1
31734 _ACEOF
31735
31736 fi
31737
31738
31739 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31740 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31741 if test "${ac_cv_cxx_namespaces+set}" = set; then
31742   echo $ECHO_N "(cached) $ECHO_C" >&6
31743 else
31744   ac_ext=cpp
31745 ac_cpp='$CXXCPP $CPPFLAGS'
31746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31749
31750  cat >conftest.$ac_ext <<_ACEOF
31751 /* confdefs.h.  */
31752 _ACEOF
31753 cat confdefs.h >>conftest.$ac_ext
31754 cat >>conftest.$ac_ext <<_ACEOF
31755 /* end confdefs.h.  */
31756 namespace Outer { namespace Inner { int i = 0; }}
31757 int
31758 main ()
31759 {
31760 using namespace Outer::Inner; return i;
31761   ;
31762   return 0;
31763 }
31764 _ACEOF
31765 rm -f conftest.$ac_objext
31766 if { (ac_try="$ac_compile"
31767 case "(($ac_try" in
31768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31769   *) ac_try_echo=$ac_try;;
31770 esac
31771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31772   (eval "$ac_compile") 2>conftest.er1
31773   ac_status=$?
31774   grep -v '^ *+' conftest.er1 >conftest.err
31775   rm -f conftest.er1
31776   cat conftest.err >&5
31777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778   (exit $ac_status); } &&
31779          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31780   { (case "(($ac_try" in
31781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782   *) ac_try_echo=$ac_try;;
31783 esac
31784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785   (eval "$ac_try") 2>&5
31786   ac_status=$?
31787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788   (exit $ac_status); }; } &&
31789          { ac_try='test -s conftest.$ac_objext'
31790   { (case "(($ac_try" in
31791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31792   *) ac_try_echo=$ac_try;;
31793 esac
31794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31795   (eval "$ac_try") 2>&5
31796   ac_status=$?
31797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798   (exit $ac_status); }; }; then
31799   ac_cv_cxx_namespaces=yes
31800 else
31801   echo "$as_me: failed program was:" >&5
31802 sed 's/^/| /' conftest.$ac_ext >&5
31803
31804         ac_cv_cxx_namespaces=no
31805 fi
31806
31807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31808  ac_ext=c
31809 ac_cpp='$CPP $CPPFLAGS'
31810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31813
31814
31815 fi
31816 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31817 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31818 if test "$ac_cv_cxx_namespaces" = yes; then
31819
31820 cat >>confdefs.h <<\_ACEOF
31821 #define HAVE_NAMESPACES
31822 _ACEOF
31823
31824 fi
31825
31826 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31827 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31828 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31829   echo $ECHO_N "(cached) $ECHO_C" >&6
31830 else
31831
31832   ac_ext=cpp
31833 ac_cpp='$CXXCPP $CPPFLAGS'
31834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31837
31838   cat >conftest.$ac_ext <<_ACEOF
31839 /* confdefs.h.  */
31840 _ACEOF
31841 cat confdefs.h >>conftest.$ac_ext
31842 cat >>conftest.$ac_ext <<_ACEOF
31843 /* end confdefs.h.  */
31844 #include <ext/hash_map>
31845 #ifdef HAVE_NAMESPACES
31846 using namespace std;
31847 #endif
31848 int
31849 main ()
31850 {
31851 hash_map<int, int> t;
31852   ;
31853   return 0;
31854 }
31855 _ACEOF
31856 rm -f conftest.$ac_objext
31857 if { (ac_try="$ac_compile"
31858 case "(($ac_try" in
31859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31860   *) ac_try_echo=$ac_try;;
31861 esac
31862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31863   (eval "$ac_compile") 2>conftest.er1
31864   ac_status=$?
31865   grep -v '^ *+' conftest.er1 >conftest.err
31866   rm -f conftest.er1
31867   cat conftest.err >&5
31868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869   (exit $ac_status); } &&
31870          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31871   { (case "(($ac_try" in
31872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31873   *) ac_try_echo=$ac_try;;
31874 esac
31875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31876   (eval "$ac_try") 2>&5
31877   ac_status=$?
31878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879   (exit $ac_status); }; } &&
31880          { ac_try='test -s conftest.$ac_objext'
31881   { (case "(($ac_try" in
31882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31883   *) ac_try_echo=$ac_try;;
31884 esac
31885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31886   (eval "$ac_try") 2>&5
31887   ac_status=$?
31888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889   (exit $ac_status); }; }; then
31890   ac_cv_cxx_have_std_ext_hash_map=yes
31891 else
31892   echo "$as_me: failed program was:" >&5
31893 sed 's/^/| /' conftest.$ac_ext >&5
31894
31895         ac_cv_cxx_have_std_ext_hash_map=no
31896 fi
31897
31898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31899   ac_ext=c
31900 ac_cpp='$CPP $CPPFLAGS'
31901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31904
31905 fi
31906 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31907 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31908  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31909  then
31910
31911 cat >>confdefs.h <<\_ACEOF
31912 #define HAVE_STD_EXT_HASH_MAP 1
31913 _ACEOF
31914
31915  else
31916
31917 cat >>confdefs.h <<\_ACEOF
31918 #define HAVE_STD_EXT_HASH_MAP 0
31919 _ACEOF
31920
31921  fi
31922
31923  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31924 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31925 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31926   echo $ECHO_N "(cached) $ECHO_C" >&6
31927 else
31928
31929   ac_ext=cpp
31930 ac_cpp='$CXXCPP $CPPFLAGS'
31931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31934
31935   cat >conftest.$ac_ext <<_ACEOF
31936 /* confdefs.h.  */
31937 _ACEOF
31938 cat confdefs.h >>conftest.$ac_ext
31939 cat >>conftest.$ac_ext <<_ACEOF
31940 /* end confdefs.h.  */
31941 #include <ext/hash_map>
31942 #ifdef HAVE_NAMESPACES
31943 using namespace __gnu_cxx;
31944 #endif
31945 int
31946 main ()
31947 {
31948 hash_map<int,int> t;
31949   ;
31950   return 0;
31951 }
31952 _ACEOF
31953 rm -f conftest.$ac_objext
31954 if { (ac_try="$ac_compile"
31955 case "(($ac_try" in
31956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957   *) ac_try_echo=$ac_try;;
31958 esac
31959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31960   (eval "$ac_compile") 2>conftest.er1
31961   ac_status=$?
31962   grep -v '^ *+' conftest.er1 >conftest.err
31963   rm -f conftest.er1
31964   cat conftest.err >&5
31965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966   (exit $ac_status); } &&
31967          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31968   { (case "(($ac_try" in
31969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31970   *) ac_try_echo=$ac_try;;
31971 esac
31972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31973   (eval "$ac_try") 2>&5
31974   ac_status=$?
31975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976   (exit $ac_status); }; } &&
31977          { ac_try='test -s conftest.$ac_objext'
31978   { (case "(($ac_try" in
31979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31980   *) ac_try_echo=$ac_try;;
31981 esac
31982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31983   (eval "$ac_try") 2>&5
31984   ac_status=$?
31985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986   (exit $ac_status); }; }; then
31987   ac_cv_cxx_have_gnu_ext_hash_map=yes
31988 else
31989   echo "$as_me: failed program was:" >&5
31990 sed 's/^/| /' conftest.$ac_ext >&5
31991
31992         ac_cv_cxx_have_gnu_ext_hash_map=no
31993 fi
31994
31995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31996   ac_ext=c
31997 ac_cpp='$CPP $CPPFLAGS'
31998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32001
32002 fi
32003 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32004 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32005  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32006  then
32007
32008 cat >>confdefs.h <<\_ACEOF
32009 #define HAVE_GNU_EXT_HASH_MAP 1
32010 _ACEOF
32011
32012  else
32013
32014 cat >>confdefs.h <<\_ACEOF
32015 #define HAVE_GNU_EXT_HASH_MAP 0
32016 _ACEOF
32017
32018  fi
32019
32020  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32021 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32022 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32023   echo $ECHO_N "(cached) $ECHO_C" >&6
32024 else
32025
32026   ac_ext=cpp
32027 ac_cpp='$CXXCPP $CPPFLAGS'
32028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32031
32032   cat >conftest.$ac_ext <<_ACEOF
32033 /* confdefs.h.  */
32034 _ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h.  */
32038 #include <hash_map>
32039 int
32040 main ()
32041 {
32042 hash_map<int,int> t;
32043   ;
32044   return 0;
32045 }
32046 _ACEOF
32047 rm -f conftest.$ac_objext
32048 if { (ac_try="$ac_compile"
32049 case "(($ac_try" in
32050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051   *) ac_try_echo=$ac_try;;
32052 esac
32053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32054   (eval "$ac_compile") 2>conftest.er1
32055   ac_status=$?
32056   grep -v '^ *+' conftest.er1 >conftest.err
32057   rm -f conftest.er1
32058   cat conftest.err >&5
32059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060   (exit $ac_status); } &&
32061          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32062   { (case "(($ac_try" in
32063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32064   *) ac_try_echo=$ac_try;;
32065 esac
32066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32067   (eval "$ac_try") 2>&5
32068   ac_status=$?
32069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070   (exit $ac_status); }; } &&
32071          { ac_try='test -s conftest.$ac_objext'
32072   { (case "(($ac_try" in
32073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074   *) ac_try_echo=$ac_try;;
32075 esac
32076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077   (eval "$ac_try") 2>&5
32078   ac_status=$?
32079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080   (exit $ac_status); }; }; then
32081   ac_cv_cxx_have_global_hash_map=yes
32082 else
32083   echo "$as_me: failed program was:" >&5
32084 sed 's/^/| /' conftest.$ac_ext >&5
32085
32086         ac_cv_cxx_have_global_hash_map=no
32087 fi
32088
32089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32090   ac_ext=c
32091 ac_cpp='$CPP $CPPFLAGS'
32092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32095
32096 fi
32097 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32098 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32099  if test "$ac_cv_cxx_have_global_hash_map" = yes
32100  then
32101
32102 cat >>confdefs.h <<\_ACEOF
32103 #define HAVE_GLOBAL_HASH_MAP 1
32104 _ACEOF
32105
32106  else
32107
32108 cat >>confdefs.h <<\_ACEOF
32109 #define HAVE_GLOBAL_HASH_MAP 0
32110 _ACEOF
32111
32112  fi
32113
32114 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32115 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32116 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32117   echo $ECHO_N "(cached) $ECHO_C" >&6
32118 else
32119
32120   ac_ext=cpp
32121 ac_cpp='$CXXCPP $CPPFLAGS'
32122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32125
32126   cat >conftest.$ac_ext <<_ACEOF
32127 /* confdefs.h.  */
32128 _ACEOF
32129 cat confdefs.h >>conftest.$ac_ext
32130 cat >>conftest.$ac_ext <<_ACEOF
32131 /* end confdefs.h.  */
32132 #include <ext/hash_set>
32133 #ifdef HAVE_NAMESPACES
32134 using namespace std;
32135 #endif
32136 int
32137 main ()
32138 {
32139 hash_set<int> t;
32140   ;
32141   return 0;
32142 }
32143 _ACEOF
32144 rm -f conftest.$ac_objext
32145 if { (ac_try="$ac_compile"
32146 case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151   (eval "$ac_compile") 2>conftest.er1
32152   ac_status=$?
32153   grep -v '^ *+' conftest.er1 >conftest.err
32154   rm -f conftest.er1
32155   cat conftest.err >&5
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); } &&
32158          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32159   { (case "(($ac_try" in
32160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161   *) ac_try_echo=$ac_try;;
32162 esac
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164   (eval "$ac_try") 2>&5
32165   ac_status=$?
32166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167   (exit $ac_status); }; } &&
32168          { ac_try='test -s conftest.$ac_objext'
32169   { (case "(($ac_try" in
32170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32171   *) ac_try_echo=$ac_try;;
32172 esac
32173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32174   (eval "$ac_try") 2>&5
32175   ac_status=$?
32176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177   (exit $ac_status); }; }; then
32178   ac_cv_cxx_have_std_ext_hash_set=yes
32179 else
32180   echo "$as_me: failed program was:" >&5
32181 sed 's/^/| /' conftest.$ac_ext >&5
32182
32183         ac_cv_cxx_have_std_ext_hash_set=no
32184 fi
32185
32186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32187   ac_ext=c
32188 ac_cpp='$CPP $CPPFLAGS'
32189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32192
32193 fi
32194 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32195 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32196  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32197  then
32198
32199 cat >>confdefs.h <<\_ACEOF
32200 #define HAVE_STD_EXT_HASH_SET 1
32201 _ACEOF
32202
32203  else
32204
32205 cat >>confdefs.h <<\_ACEOF
32206 #define HAVE_STD_EXT_HASH_SET 0
32207 _ACEOF
32208
32209  fi
32210
32211  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32212 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32213 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32214   echo $ECHO_N "(cached) $ECHO_C" >&6
32215 else
32216
32217   ac_ext=cpp
32218 ac_cpp='$CXXCPP $CPPFLAGS'
32219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32222
32223   cat >conftest.$ac_ext <<_ACEOF
32224 /* confdefs.h.  */
32225 _ACEOF
32226 cat confdefs.h >>conftest.$ac_ext
32227 cat >>conftest.$ac_ext <<_ACEOF
32228 /* end confdefs.h.  */
32229 #include <ext/hash_set>
32230 #ifdef HAVE_NAMESPACES
32231 using namespace __gnu_cxx;
32232 #endif
32233 int
32234 main ()
32235 {
32236 hash_set<int> t;
32237   ;
32238   return 0;
32239 }
32240 _ACEOF
32241 rm -f conftest.$ac_objext
32242 if { (ac_try="$ac_compile"
32243 case "(($ac_try" in
32244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245   *) ac_try_echo=$ac_try;;
32246 esac
32247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248   (eval "$ac_compile") 2>conftest.er1
32249   ac_status=$?
32250   grep -v '^ *+' conftest.er1 >conftest.err
32251   rm -f conftest.er1
32252   cat conftest.err >&5
32253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254   (exit $ac_status); } &&
32255          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32256   { (case "(($ac_try" in
32257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258   *) ac_try_echo=$ac_try;;
32259 esac
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261   (eval "$ac_try") 2>&5
32262   ac_status=$?
32263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264   (exit $ac_status); }; } &&
32265          { ac_try='test -s conftest.$ac_objext'
32266   { (case "(($ac_try" in
32267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268   *) ac_try_echo=$ac_try;;
32269 esac
32270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271   (eval "$ac_try") 2>&5
32272   ac_status=$?
32273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274   (exit $ac_status); }; }; then
32275   ac_cv_cxx_have_gnu_ext_hash_set=yes
32276 else
32277   echo "$as_me: failed program was:" >&5
32278 sed 's/^/| /' conftest.$ac_ext >&5
32279
32280         ac_cv_cxx_have_gnu_ext_hash_set=no
32281 fi
32282
32283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32284   ac_ext=c
32285 ac_cpp='$CPP $CPPFLAGS'
32286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32289
32290 fi
32291 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32292 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32293  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32294  then
32295
32296 cat >>confdefs.h <<\_ACEOF
32297 #define HAVE_GNU_EXT_HASH_SET 1
32298 _ACEOF
32299
32300  else
32301
32302 cat >>confdefs.h <<\_ACEOF
32303 #define HAVE_GNU_EXT_HASH_SET 0
32304 _ACEOF
32305
32306  fi
32307
32308  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32309 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32310 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32311   echo $ECHO_N "(cached) $ECHO_C" >&6
32312 else
32313
32314   ac_ext=cpp
32315 ac_cpp='$CXXCPP $CPPFLAGS'
32316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32319
32320   cat >conftest.$ac_ext <<_ACEOF
32321 /* confdefs.h.  */
32322 _ACEOF
32323 cat confdefs.h >>conftest.$ac_ext
32324 cat >>conftest.$ac_ext <<_ACEOF
32325 /* end confdefs.h.  */
32326 #include <hash_set>
32327 int
32328 main ()
32329 {
32330 hash_set<int> t; return 0;
32331   ;
32332   return 0;
32333 }
32334 _ACEOF
32335 rm -f conftest.$ac_objext
32336 if { (ac_try="$ac_compile"
32337 case "(($ac_try" in
32338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32339   *) ac_try_echo=$ac_try;;
32340 esac
32341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32342   (eval "$ac_compile") 2>conftest.er1
32343   ac_status=$?
32344   grep -v '^ *+' conftest.er1 >conftest.err
32345   rm -f conftest.er1
32346   cat conftest.err >&5
32347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348   (exit $ac_status); } &&
32349          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32350   { (case "(($ac_try" in
32351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32352   *) ac_try_echo=$ac_try;;
32353 esac
32354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355   (eval "$ac_try") 2>&5
32356   ac_status=$?
32357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358   (exit $ac_status); }; } &&
32359          { ac_try='test -s conftest.$ac_objext'
32360   { (case "(($ac_try" in
32361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362   *) ac_try_echo=$ac_try;;
32363 esac
32364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365   (eval "$ac_try") 2>&5
32366   ac_status=$?
32367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368   (exit $ac_status); }; }; then
32369   ac_cv_cxx_have_global_hash_set=yes
32370 else
32371   echo "$as_me: failed program was:" >&5
32372 sed 's/^/| /' conftest.$ac_ext >&5
32373
32374         ac_cv_cxx_have_global_hash_set=no
32375 fi
32376
32377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32378   ac_ext=c
32379 ac_cpp='$CPP $CPPFLAGS'
32380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32383
32384 fi
32385 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32386 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32387  if test "$ac_cv_cxx_have_global_hash_set" = yes
32388  then
32389
32390 cat >>confdefs.h <<\_ACEOF
32391 #define HAVE_GLOBAL_HASH_SET 1
32392 _ACEOF
32393
32394  else
32395
32396 cat >>confdefs.h <<\_ACEOF
32397 #define HAVE_GLOBAL_HASH_SET 0
32398 _ACEOF
32399
32400  fi
32401
32402 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32403 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32404 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32405   echo $ECHO_N "(cached) $ECHO_C" >&6
32406 else
32407
32408   ac_ext=cpp
32409 ac_cpp='$CXXCPP $CPPFLAGS'
32410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32413
32414   cat >conftest.$ac_ext <<_ACEOF
32415 /* confdefs.h.  */
32416 _ACEOF
32417 cat confdefs.h >>conftest.$ac_ext
32418 cat >>conftest.$ac_ext <<_ACEOF
32419 /* end confdefs.h.  */
32420 #include <iterator>
32421 #ifdef HAVE_NAMESPACES
32422 using namespace std;
32423 #endif
32424 int
32425 main ()
32426 {
32427 iterator<int,int,int> t; return 0;
32428   ;
32429   return 0;
32430 }
32431 _ACEOF
32432 rm -f conftest.$ac_objext
32433 if { (ac_try="$ac_compile"
32434 case "(($ac_try" in
32435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32436   *) ac_try_echo=$ac_try;;
32437 esac
32438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32439   (eval "$ac_compile") 2>conftest.er1
32440   ac_status=$?
32441   grep -v '^ *+' conftest.er1 >conftest.err
32442   rm -f conftest.er1
32443   cat conftest.err >&5
32444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445   (exit $ac_status); } &&
32446          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32447   { (case "(($ac_try" in
32448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449   *) ac_try_echo=$ac_try;;
32450 esac
32451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452   (eval "$ac_try") 2>&5
32453   ac_status=$?
32454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455   (exit $ac_status); }; } &&
32456          { ac_try='test -s conftest.$ac_objext'
32457   { (case "(($ac_try" in
32458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32459   *) ac_try_echo=$ac_try;;
32460 esac
32461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32462   (eval "$ac_try") 2>&5
32463   ac_status=$?
32464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465   (exit $ac_status); }; }; then
32466   ac_cv_cxx_have_std_iterator=yes
32467 else
32468   echo "$as_me: failed program was:" >&5
32469 sed 's/^/| /' conftest.$ac_ext >&5
32470
32471         ac_cv_cxx_have_std_iterator=no
32472 fi
32473
32474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32475   ac_ext=c
32476 ac_cpp='$CPP $CPPFLAGS'
32477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32480
32481
32482 fi
32483 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32484 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32485 if test "$ac_cv_cxx_have_std_iterator" = yes
32486 then
32487
32488 cat >>confdefs.h <<\_ACEOF
32489 #define HAVE_STD_ITERATOR 1
32490 _ACEOF
32491
32492 else
32493
32494 cat >>confdefs.h <<\_ACEOF
32495 #define HAVE_STD_ITERATOR 0
32496 _ACEOF
32497
32498 fi
32499
32500 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32501 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32502 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32503   echo $ECHO_N "(cached) $ECHO_C" >&6
32504 else
32505
32506   ac_ext=cpp
32507 ac_cpp='$CXXCPP $CPPFLAGS'
32508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32511
32512   cat >conftest.$ac_ext <<_ACEOF
32513 /* confdefs.h.  */
32514 _ACEOF
32515 cat confdefs.h >>conftest.$ac_ext
32516 cat >>conftest.$ac_ext <<_ACEOF
32517 /* end confdefs.h.  */
32518 #include <iterator>
32519 #ifdef HAVE_NAMESPACES
32520 using namespace std;
32521 #endif
32522 int
32523 main ()
32524 {
32525 bidirectional_iterator<int,int> t; return 0;
32526   ;
32527   return 0;
32528 }
32529 _ACEOF
32530 rm -f conftest.$ac_objext
32531 if { (ac_try="$ac_compile"
32532 case "(($ac_try" in
32533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534   *) ac_try_echo=$ac_try;;
32535 esac
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537   (eval "$ac_compile") 2>conftest.er1
32538   ac_status=$?
32539   grep -v '^ *+' conftest.er1 >conftest.err
32540   rm -f conftest.er1
32541   cat conftest.err >&5
32542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543   (exit $ac_status); } &&
32544          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32545   { (case "(($ac_try" in
32546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547   *) ac_try_echo=$ac_try;;
32548 esac
32549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32550   (eval "$ac_try") 2>&5
32551   ac_status=$?
32552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553   (exit $ac_status); }; } &&
32554          { ac_try='test -s conftest.$ac_objext'
32555   { (case "(($ac_try" in
32556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557   *) ac_try_echo=$ac_try;;
32558 esac
32559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560   (eval "$ac_try") 2>&5
32561   ac_status=$?
32562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563   (exit $ac_status); }; }; then
32564   ac_cv_cxx_have_bi_iterator=yes
32565 else
32566   echo "$as_me: failed program was:" >&5
32567 sed 's/^/| /' conftest.$ac_ext >&5
32568
32569         ac_cv_cxx_have_bi_iterator=no
32570 fi
32571
32572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32573   ac_ext=c
32574 ac_cpp='$CPP $CPPFLAGS'
32575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32578
32579
32580 fi
32581 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32582 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32583 if test "$ac_cv_cxx_have_bi_iterator" = yes
32584 then
32585
32586 cat >>confdefs.h <<\_ACEOF
32587 #define HAVE_BI_ITERATOR 1
32588 _ACEOF
32589
32590 else
32591
32592 cat >>confdefs.h <<\_ACEOF
32593 #define HAVE_BI_ITERATOR 0
32594 _ACEOF
32595
32596 fi
32597
32598 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32599 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32600 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32601   echo $ECHO_N "(cached) $ECHO_C" >&6
32602 else
32603
32604   ac_ext=cpp
32605 ac_cpp='$CXXCPP $CPPFLAGS'
32606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32609
32610   cat >conftest.$ac_ext <<_ACEOF
32611 /* confdefs.h.  */
32612 _ACEOF
32613 cat confdefs.h >>conftest.$ac_ext
32614 cat >>conftest.$ac_ext <<_ACEOF
32615 /* end confdefs.h.  */
32616 #include <iterator>
32617 #ifdef HAVE_NAMESPACES
32618 using namespace std;
32619 #endif
32620 int
32621 main ()
32622 {
32623 forward_iterator<int,int> t; return 0;
32624   ;
32625   return 0;
32626 }
32627 _ACEOF
32628 rm -f conftest.$ac_objext
32629 if { (ac_try="$ac_compile"
32630 case "(($ac_try" in
32631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632   *) ac_try_echo=$ac_try;;
32633 esac
32634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635   (eval "$ac_compile") 2>conftest.er1
32636   ac_status=$?
32637   grep -v '^ *+' conftest.er1 >conftest.err
32638   rm -f conftest.er1
32639   cat conftest.err >&5
32640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641   (exit $ac_status); } &&
32642          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32643   { (case "(($ac_try" in
32644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32645   *) ac_try_echo=$ac_try;;
32646 esac
32647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32648   (eval "$ac_try") 2>&5
32649   ac_status=$?
32650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651   (exit $ac_status); }; } &&
32652          { ac_try='test -s conftest.$ac_objext'
32653   { (case "(($ac_try" in
32654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32655   *) ac_try_echo=$ac_try;;
32656 esac
32657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32658   (eval "$ac_try") 2>&5
32659   ac_status=$?
32660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661   (exit $ac_status); }; }; then
32662   ac_cv_cxx_have_fwd_iterator=yes
32663 else
32664   echo "$as_me: failed program was:" >&5
32665 sed 's/^/| /' conftest.$ac_ext >&5
32666
32667         ac_cv_cxx_have_fwd_iterator=no
32668 fi
32669
32670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32671   ac_ext=c
32672 ac_cpp='$CPP $CPPFLAGS'
32673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32676
32677
32678 fi
32679 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32680 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32681 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32682 then
32683
32684 cat >>confdefs.h <<\_ACEOF
32685 #define HAVE_FWD_ITERATOR 1
32686 _ACEOF
32687
32688 else
32689
32690 cat >>confdefs.h <<\_ACEOF
32691 #define HAVE_FWD_ITERATOR 0
32692 _ACEOF
32693
32694 fi
32695
32696
32697 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32698 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32699 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32700   echo $ECHO_N "(cached) $ECHO_C" >&6
32701 else
32702   ac_ext=cpp
32703 ac_cpp='$CXXCPP $CPPFLAGS'
32704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32707
32708    cat >conftest.$ac_ext <<_ACEOF
32709 /* confdefs.h.  */
32710 _ACEOF
32711 cat confdefs.h >>conftest.$ac_ext
32712 cat >>conftest.$ac_ext <<_ACEOF
32713 /* end confdefs.h.  */
32714 #include <math.h>
32715 int
32716 main ()
32717 {
32718 float f; isnan(f);
32719   ;
32720   return 0;
32721 }
32722 _ACEOF
32723 rm -f conftest.$ac_objext
32724 if { (ac_try="$ac_compile"
32725 case "(($ac_try" in
32726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32727   *) ac_try_echo=$ac_try;;
32728 esac
32729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32730   (eval "$ac_compile") 2>conftest.er1
32731   ac_status=$?
32732   grep -v '^ *+' conftest.er1 >conftest.err
32733   rm -f conftest.er1
32734   cat conftest.err >&5
32735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736   (exit $ac_status); } &&
32737          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32738   { (case "(($ac_try" in
32739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32740   *) ac_try_echo=$ac_try;;
32741 esac
32742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32743   (eval "$ac_try") 2>&5
32744   ac_status=$?
32745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746   (exit $ac_status); }; } &&
32747          { ac_try='test -s conftest.$ac_objext'
32748   { (case "(($ac_try" in
32749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750   *) ac_try_echo=$ac_try;;
32751 esac
32752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32753   (eval "$ac_try") 2>&5
32754   ac_status=$?
32755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756   (exit $ac_status); }; }; then
32757   ac_cv_func_isnan_in_math_h=yes
32758 else
32759   echo "$as_me: failed program was:" >&5
32760 sed 's/^/| /' conftest.$ac_ext >&5
32761
32762         ac_cv_func_isnan_in_math_h=no
32763 fi
32764
32765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32766   ac_ext=c
32767 ac_cpp='$CPP $CPPFLAGS'
32768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32771
32772 fi
32773 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32774 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32775
32776
32777 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32778
32779 cat >>confdefs.h <<\_ACEOF
32780 #define HAVE_ISNAN_IN_MATH_H 1
32781 _ACEOF
32782
32783 fi
32784
32785 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32786 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32787 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32788   echo $ECHO_N "(cached) $ECHO_C" >&6
32789 else
32790   ac_ext=cpp
32791 ac_cpp='$CXXCPP $CPPFLAGS'
32792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32795
32796    cat >conftest.$ac_ext <<_ACEOF
32797 /* confdefs.h.  */
32798 _ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h.  */
32802 #include <cmath>
32803 int
32804 main ()
32805 {
32806 float f; isnan(f);
32807   ;
32808   return 0;
32809 }
32810 _ACEOF
32811 rm -f conftest.$ac_objext
32812 if { (ac_try="$ac_compile"
32813 case "(($ac_try" in
32814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32815   *) ac_try_echo=$ac_try;;
32816 esac
32817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32818   (eval "$ac_compile") 2>conftest.er1
32819   ac_status=$?
32820   grep -v '^ *+' conftest.er1 >conftest.err
32821   rm -f conftest.er1
32822   cat conftest.err >&5
32823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824   (exit $ac_status); } &&
32825          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32826   { (case "(($ac_try" in
32827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32828   *) ac_try_echo=$ac_try;;
32829 esac
32830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32831   (eval "$ac_try") 2>&5
32832   ac_status=$?
32833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834   (exit $ac_status); }; } &&
32835          { ac_try='test -s conftest.$ac_objext'
32836   { (case "(($ac_try" in
32837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838   *) ac_try_echo=$ac_try;;
32839 esac
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841   (eval "$ac_try") 2>&5
32842   ac_status=$?
32843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844   (exit $ac_status); }; }; then
32845   ac_cv_func_isnan_in_cmath=yes
32846 else
32847   echo "$as_me: failed program was:" >&5
32848 sed 's/^/| /' conftest.$ac_ext >&5
32849
32850         ac_cv_func_isnan_in_cmath=no
32851 fi
32852
32853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32854   ac_ext=c
32855 ac_cpp='$CPP $CPPFLAGS'
32856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32859
32860 fi
32861 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32862 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32863
32864 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32865
32866 cat >>confdefs.h <<\_ACEOF
32867 #define HAVE_ISNAN_IN_CMATH 1
32868 _ACEOF
32869
32870 fi
32871
32872 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32873 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32874 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32875   echo $ECHO_N "(cached) $ECHO_C" >&6
32876 else
32877   ac_ext=cpp
32878 ac_cpp='$CXXCPP $CPPFLAGS'
32879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32882
32883    cat >conftest.$ac_ext <<_ACEOF
32884 /* confdefs.h.  */
32885 _ACEOF
32886 cat confdefs.h >>conftest.$ac_ext
32887 cat >>conftest.$ac_ext <<_ACEOF
32888 /* end confdefs.h.  */
32889 #include <cmath>
32890 int
32891 main ()
32892 {
32893 float f; std::isnan(f);
32894   ;
32895   return 0;
32896 }
32897 _ACEOF
32898 rm -f conftest.$ac_objext
32899 if { (ac_try="$ac_compile"
32900 case "(($ac_try" in
32901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32902   *) ac_try_echo=$ac_try;;
32903 esac
32904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32905   (eval "$ac_compile") 2>conftest.er1
32906   ac_status=$?
32907   grep -v '^ *+' conftest.er1 >conftest.err
32908   rm -f conftest.er1
32909   cat conftest.err >&5
32910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911   (exit $ac_status); } &&
32912          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32913   { (case "(($ac_try" in
32914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32915   *) ac_try_echo=$ac_try;;
32916 esac
32917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32918   (eval "$ac_try") 2>&5
32919   ac_status=$?
32920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921   (exit $ac_status); }; } &&
32922          { ac_try='test -s conftest.$ac_objext'
32923   { (case "(($ac_try" in
32924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925   *) ac_try_echo=$ac_try;;
32926 esac
32927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32928   (eval "$ac_try") 2>&5
32929   ac_status=$?
32930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32931   (exit $ac_status); }; }; then
32932   ac_cv_func_std_isnan_in_cmath=yes
32933 else
32934   echo "$as_me: failed program was:" >&5
32935 sed 's/^/| /' conftest.$ac_ext >&5
32936
32937         ac_cv_func_std_isnan_in_cmath=no
32938 fi
32939
32940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32941   ac_ext=c
32942 ac_cpp='$CPP $CPPFLAGS'
32943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32946
32947 fi
32948 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32949 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32950
32951 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32952
32953 cat >>confdefs.h <<\_ACEOF
32954 #define HAVE_STD_ISNAN_IN_CMATH 1
32955 _ACEOF
32956
32957 fi
32958
32959
32960 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32961 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32962 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32963   echo $ECHO_N "(cached) $ECHO_C" >&6
32964 else
32965   ac_ext=cpp
32966 ac_cpp='$CXXCPP $CPPFLAGS'
32967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32970
32971    cat >conftest.$ac_ext <<_ACEOF
32972 /* confdefs.h.  */
32973 _ACEOF
32974 cat confdefs.h >>conftest.$ac_ext
32975 cat >>conftest.$ac_ext <<_ACEOF
32976 /* end confdefs.h.  */
32977 #include <math.h>
32978 int
32979 main ()
32980 {
32981 float f; isinf(f);
32982   ;
32983   return 0;
32984 }
32985 _ACEOF
32986 rm -f conftest.$ac_objext
32987 if { (ac_try="$ac_compile"
32988 case "(($ac_try" in
32989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990   *) ac_try_echo=$ac_try;;
32991 esac
32992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993   (eval "$ac_compile") 2>conftest.er1
32994   ac_status=$?
32995   grep -v '^ *+' conftest.er1 >conftest.err
32996   rm -f conftest.er1
32997   cat conftest.err >&5
32998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999   (exit $ac_status); } &&
33000          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33001   { (case "(($ac_try" in
33002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33003   *) ac_try_echo=$ac_try;;
33004 esac
33005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33006   (eval "$ac_try") 2>&5
33007   ac_status=$?
33008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009   (exit $ac_status); }; } &&
33010          { ac_try='test -s conftest.$ac_objext'
33011   { (case "(($ac_try" in
33012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33013   *) ac_try_echo=$ac_try;;
33014 esac
33015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33016   (eval "$ac_try") 2>&5
33017   ac_status=$?
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); }; }; then
33020   ac_cv_func_isinf_in_math_h=yes
33021 else
33022   echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33024
33025         ac_cv_func_isinf_in_math_h=no
33026 fi
33027
33028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33029   ac_ext=c
33030 ac_cpp='$CPP $CPPFLAGS'
33031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33034
33035 fi
33036 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33037 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33038
33039 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33040
33041 cat >>confdefs.h <<\_ACEOF
33042 #define HAVE_ISINF_IN_MATH_H 1
33043 _ACEOF
33044
33045 fi
33046
33047 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33048 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33049 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33050   echo $ECHO_N "(cached) $ECHO_C" >&6
33051 else
33052   ac_ext=cpp
33053 ac_cpp='$CXXCPP $CPPFLAGS'
33054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33057
33058    cat >conftest.$ac_ext <<_ACEOF
33059 /* confdefs.h.  */
33060 _ACEOF
33061 cat confdefs.h >>conftest.$ac_ext
33062 cat >>conftest.$ac_ext <<_ACEOF
33063 /* end confdefs.h.  */
33064 #include <cmath>
33065 int
33066 main ()
33067 {
33068 float f; isinf(f);
33069   ;
33070   return 0;
33071 }
33072 _ACEOF
33073 rm -f conftest.$ac_objext
33074 if { (ac_try="$ac_compile"
33075 case "(($ac_try" in
33076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33077   *) ac_try_echo=$ac_try;;
33078 esac
33079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33080   (eval "$ac_compile") 2>conftest.er1
33081   ac_status=$?
33082   grep -v '^ *+' conftest.er1 >conftest.err
33083   rm -f conftest.er1
33084   cat conftest.err >&5
33085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33086   (exit $ac_status); } &&
33087          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33088   { (case "(($ac_try" in
33089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33090   *) ac_try_echo=$ac_try;;
33091 esac
33092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093   (eval "$ac_try") 2>&5
33094   ac_status=$?
33095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096   (exit $ac_status); }; } &&
33097          { ac_try='test -s conftest.$ac_objext'
33098   { (case "(($ac_try" in
33099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100   *) ac_try_echo=$ac_try;;
33101 esac
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103   (eval "$ac_try") 2>&5
33104   ac_status=$?
33105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106   (exit $ac_status); }; }; then
33107   ac_cv_func_isinf_in_cmath=yes
33108 else
33109   echo "$as_me: failed program was:" >&5
33110 sed 's/^/| /' conftest.$ac_ext >&5
33111
33112         ac_cv_func_isinf_in_cmath=no
33113 fi
33114
33115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33116   ac_ext=c
33117 ac_cpp='$CPP $CPPFLAGS'
33118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33121
33122 fi
33123 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33124 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33125
33126 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33127
33128 cat >>confdefs.h <<\_ACEOF
33129 #define HAVE_ISINF_IN_CMATH 1
33130 _ACEOF
33131
33132 fi
33133
33134 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33135 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33136 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33137   echo $ECHO_N "(cached) $ECHO_C" >&6
33138 else
33139   ac_ext=cpp
33140 ac_cpp='$CXXCPP $CPPFLAGS'
33141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33144
33145    cat >conftest.$ac_ext <<_ACEOF
33146 /* confdefs.h.  */
33147 _ACEOF
33148 cat confdefs.h >>conftest.$ac_ext
33149 cat >>conftest.$ac_ext <<_ACEOF
33150 /* end confdefs.h.  */
33151 #include <cmath>
33152 int
33153 main ()
33154 {
33155 float f; std::isinf(f)}
33156   ;
33157   return 0;
33158 }
33159 _ACEOF
33160 rm -f conftest.$ac_objext
33161 if { (ac_try="$ac_compile"
33162 case "(($ac_try" in
33163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164   *) ac_try_echo=$ac_try;;
33165 esac
33166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167   (eval "$ac_compile") 2>conftest.er1
33168   ac_status=$?
33169   grep -v '^ *+' conftest.er1 >conftest.err
33170   rm -f conftest.er1
33171   cat conftest.err >&5
33172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173   (exit $ac_status); } &&
33174          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33175   { (case "(($ac_try" in
33176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33177   *) ac_try_echo=$ac_try;;
33178 esac
33179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33180   (eval "$ac_try") 2>&5
33181   ac_status=$?
33182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183   (exit $ac_status); }; } &&
33184          { ac_try='test -s conftest.$ac_objext'
33185   { (case "(($ac_try" in
33186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33187   *) ac_try_echo=$ac_try;;
33188 esac
33189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33190   (eval "$ac_try") 2>&5
33191   ac_status=$?
33192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193   (exit $ac_status); }; }; then
33194   ac_cv_func_std_isinf_in_cmath=yes
33195 else
33196   echo "$as_me: failed program was:" >&5
33197 sed 's/^/| /' conftest.$ac_ext >&5
33198
33199         ac_cv_func_std_isinf_in_cmath=no
33200 fi
33201
33202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33203   ac_ext=c
33204 ac_cpp='$CPP $CPPFLAGS'
33205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33208
33209 fi
33210 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33211 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33212
33213 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33214
33215 cat >>confdefs.h <<\_ACEOF
33216 #define HAVE_STD_ISINF_IN_CMATH 1
33217 _ACEOF
33218
33219 fi
33220
33221 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33222 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33223 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33224   echo $ECHO_N "(cached) $ECHO_C" >&6
33225 else
33226   ac_ext=cpp
33227 ac_cpp='$CXXCPP $CPPFLAGS'
33228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33231
33232    cat >conftest.$ac_ext <<_ACEOF
33233 /* confdefs.h.  */
33234 _ACEOF
33235 cat confdefs.h >>conftest.$ac_ext
33236 cat >>conftest.$ac_ext <<_ACEOF
33237 /* end confdefs.h.  */
33238 #include <ieeefp.h>
33239 int
33240 main ()
33241 {
33242 float f; finite(f);
33243   ;
33244   return 0;
33245 }
33246 _ACEOF
33247 rm -f conftest.$ac_objext
33248 if { (ac_try="$ac_compile"
33249 case "(($ac_try" in
33250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33251   *) ac_try_echo=$ac_try;;
33252 esac
33253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33254   (eval "$ac_compile") 2>conftest.er1
33255   ac_status=$?
33256   grep -v '^ *+' conftest.er1 >conftest.err
33257   rm -f conftest.er1
33258   cat conftest.err >&5
33259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260   (exit $ac_status); } &&
33261          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33262   { (case "(($ac_try" in
33263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264   *) ac_try_echo=$ac_try;;
33265 esac
33266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267   (eval "$ac_try") 2>&5
33268   ac_status=$?
33269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270   (exit $ac_status); }; } &&
33271          { ac_try='test -s conftest.$ac_objext'
33272   { (case "(($ac_try" in
33273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274   *) ac_try_echo=$ac_try;;
33275 esac
33276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277   (eval "$ac_try") 2>&5
33278   ac_status=$?
33279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280   (exit $ac_status); }; }; then
33281   ac_cv_func_finite_in_ieeefp_h=yes
33282 else
33283   echo "$as_me: failed program was:" >&5
33284 sed 's/^/| /' conftest.$ac_ext >&5
33285
33286         ac_cv_func_finite_in_ieeefp_h=no
33287 fi
33288
33289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33290   ac_ext=c
33291 ac_cpp='$CPP $CPPFLAGS'
33292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33295
33296 fi
33297 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33298 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33299
33300 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33301
33302 cat >>confdefs.h <<\_ACEOF
33303 #define HAVE_FINITE_IN_IEEEFP_H 1
33304 _ACEOF
33305
33306 fi
33307
33308
33309
33310 if test "$llvm_cv_platform_type" = "Unix" ; then
33311
33312
33313 for ac_header in stdlib.h unistd.h
33314 do
33315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33317   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33320   echo $ECHO_N "(cached) $ECHO_C" >&6
33321 fi
33322 ac_res=`eval echo '${'$as_ac_Header'}'`
33323                { echo "$as_me:$LINENO: result: $ac_res" >&5
33324 echo "${ECHO_T}$ac_res" >&6; }
33325 else
33326   # Is the header compilable?
33327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33329 cat >conftest.$ac_ext <<_ACEOF
33330 /* confdefs.h.  */
33331 _ACEOF
33332 cat confdefs.h >>conftest.$ac_ext
33333 cat >>conftest.$ac_ext <<_ACEOF
33334 /* end confdefs.h.  */
33335 $ac_includes_default
33336 #include <$ac_header>
33337 _ACEOF
33338 rm -f conftest.$ac_objext
33339 if { (ac_try="$ac_compile"
33340 case "(($ac_try" in
33341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33342   *) ac_try_echo=$ac_try;;
33343 esac
33344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33345   (eval "$ac_compile") 2>conftest.er1
33346   ac_status=$?
33347   grep -v '^ *+' conftest.er1 >conftest.err
33348   rm -f conftest.er1
33349   cat conftest.err >&5
33350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351   (exit $ac_status); } &&
33352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33353   { (case "(($ac_try" in
33354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33355   *) ac_try_echo=$ac_try;;
33356 esac
33357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33358   (eval "$ac_try") 2>&5
33359   ac_status=$?
33360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361   (exit $ac_status); }; } &&
33362          { ac_try='test -s conftest.$ac_objext'
33363   { (case "(($ac_try" in
33364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33365   *) ac_try_echo=$ac_try;;
33366 esac
33367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33368   (eval "$ac_try") 2>&5
33369   ac_status=$?
33370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371   (exit $ac_status); }; }; then
33372   ac_header_compiler=yes
33373 else
33374   echo "$as_me: failed program was:" >&5
33375 sed 's/^/| /' conftest.$ac_ext >&5
33376
33377         ac_header_compiler=no
33378 fi
33379
33380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33382 echo "${ECHO_T}$ac_header_compiler" >&6; }
33383
33384 # Is the header present?
33385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33387 cat >conftest.$ac_ext <<_ACEOF
33388 /* confdefs.h.  */
33389 _ACEOF
33390 cat confdefs.h >>conftest.$ac_ext
33391 cat >>conftest.$ac_ext <<_ACEOF
33392 /* end confdefs.h.  */
33393 #include <$ac_header>
33394 _ACEOF
33395 if { (ac_try="$ac_cpp conftest.$ac_ext"
33396 case "(($ac_try" in
33397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398   *) ac_try_echo=$ac_try;;
33399 esac
33400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33402   ac_status=$?
33403   grep -v '^ *+' conftest.er1 >conftest.err
33404   rm -f conftest.er1
33405   cat conftest.err >&5
33406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407   (exit $ac_status); } >/dev/null; then
33408   if test -s conftest.err; then
33409     ac_cpp_err=$ac_c_preproc_warn_flag
33410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33411   else
33412     ac_cpp_err=
33413   fi
33414 else
33415   ac_cpp_err=yes
33416 fi
33417 if test -z "$ac_cpp_err"; then
33418   ac_header_preproc=yes
33419 else
33420   echo "$as_me: failed program was:" >&5
33421 sed 's/^/| /' conftest.$ac_ext >&5
33422
33423   ac_header_preproc=no
33424 fi
33425
33426 rm -f conftest.err conftest.$ac_ext
33427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33428 echo "${ECHO_T}$ac_header_preproc" >&6; }
33429
33430 # So?  What about this header?
33431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33432   yes:no: )
33433     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33437     ac_header_preproc=yes
33438     ;;
33439   no:yes:* )
33440     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33442     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33443 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33444     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33446     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33447 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33450     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33452     ( cat <<\_ASBOX
33453 ## ----------------------------------- ##
33454 ## Report this to llvmbugs@cs.uiuc.edu ##
33455 ## ----------------------------------- ##
33456 _ASBOX
33457      ) | sed "s/^/$as_me: WARNING:     /" >&2
33458     ;;
33459 esac
33460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33463   echo $ECHO_N "(cached) $ECHO_C" >&6
33464 else
33465   eval "$as_ac_Header=\$ac_header_preproc"
33466 fi
33467 ac_res=`eval echo '${'$as_ac_Header'}'`
33468                { echo "$as_me:$LINENO: result: $ac_res" >&5
33469 echo "${ECHO_T}$ac_res" >&6; }
33470
33471 fi
33472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33473   cat >>confdefs.h <<_ACEOF
33474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33475 _ACEOF
33476
33477 fi
33478
33479 done
33480
33481
33482 for ac_func in getpagesize
33483 do
33484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33488   echo $ECHO_N "(cached) $ECHO_C" >&6
33489 else
33490   cat >conftest.$ac_ext <<_ACEOF
33491 /* confdefs.h.  */
33492 _ACEOF
33493 cat confdefs.h >>conftest.$ac_ext
33494 cat >>conftest.$ac_ext <<_ACEOF
33495 /* end confdefs.h.  */
33496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33498 #define $ac_func innocuous_$ac_func
33499
33500 /* System header to define __stub macros and hopefully few prototypes,
33501     which can conflict with char $ac_func (); below.
33502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33503     <limits.h> exists even on freestanding compilers.  */
33504
33505 #ifdef __STDC__
33506 # include <limits.h>
33507 #else
33508 # include <assert.h>
33509 #endif
33510
33511 #undef $ac_func
33512
33513 /* Override any GCC internal prototype to avoid an error.
33514    Use char because int might match the return type of a GCC
33515    builtin and then its argument prototype would still apply.  */
33516 #ifdef __cplusplus
33517 extern "C"
33518 #endif
33519 char $ac_func ();
33520 /* The GNU C library defines this for functions which it implements
33521     to always fail with ENOSYS.  Some functions are actually named
33522     something starting with __ and the normal name is an alias.  */
33523 #if defined __stub_$ac_func || defined __stub___$ac_func
33524 choke me
33525 #endif
33526
33527 int
33528 main ()
33529 {
33530 return $ac_func ();
33531   ;
33532   return 0;
33533 }
33534 _ACEOF
33535 rm -f conftest.$ac_objext conftest$ac_exeext
33536 if { (ac_try="$ac_link"
33537 case "(($ac_try" in
33538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33539   *) ac_try_echo=$ac_try;;
33540 esac
33541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33542   (eval "$ac_link") 2>conftest.er1
33543   ac_status=$?
33544   grep -v '^ *+' conftest.er1 >conftest.err
33545   rm -f conftest.er1
33546   cat conftest.err >&5
33547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548   (exit $ac_status); } &&
33549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33550   { (case "(($ac_try" in
33551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552   *) ac_try_echo=$ac_try;;
33553 esac
33554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555   (eval "$ac_try") 2>&5
33556   ac_status=$?
33557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558   (exit $ac_status); }; } &&
33559          { ac_try='test -s conftest$ac_exeext'
33560   { (case "(($ac_try" in
33561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33562   *) ac_try_echo=$ac_try;;
33563 esac
33564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33565   (eval "$ac_try") 2>&5
33566   ac_status=$?
33567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33568   (exit $ac_status); }; }; then
33569   eval "$as_ac_var=yes"
33570 else
33571   echo "$as_me: failed program was:" >&5
33572 sed 's/^/| /' conftest.$ac_ext >&5
33573
33574         eval "$as_ac_var=no"
33575 fi
33576
33577 rm -f core conftest.err conftest.$ac_objext \
33578       conftest$ac_exeext conftest.$ac_ext
33579 fi
33580 ac_res=`eval echo '${'$as_ac_var'}'`
33581                { echo "$as_me:$LINENO: result: $ac_res" >&5
33582 echo "${ECHO_T}$ac_res" >&6; }
33583 if test `eval echo '${'$as_ac_var'}'` = yes; then
33584   cat >>confdefs.h <<_ACEOF
33585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33586 _ACEOF
33587
33588 fi
33589 done
33590
33591 { echo "$as_me:$LINENO: checking for working mmap" >&5
33592 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33593 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33594   echo $ECHO_N "(cached) $ECHO_C" >&6
33595 else
33596   if test "$cross_compiling" = yes; then
33597   ac_cv_func_mmap_fixed_mapped=no
33598 else
33599   cat >conftest.$ac_ext <<_ACEOF
33600 /* confdefs.h.  */
33601 _ACEOF
33602 cat confdefs.h >>conftest.$ac_ext
33603 cat >>conftest.$ac_ext <<_ACEOF
33604 /* end confdefs.h.  */
33605 $ac_includes_default
33606 /* malloc might have been renamed as rpl_malloc. */
33607 #undef malloc
33608
33609 /* Thanks to Mike Haertel and Jim Avera for this test.
33610    Here is a matrix of mmap possibilities:
33611         mmap private not fixed
33612         mmap private fixed at somewhere currently unmapped
33613         mmap private fixed at somewhere already mapped
33614         mmap shared not fixed
33615         mmap shared fixed at somewhere currently unmapped
33616         mmap shared fixed at somewhere already mapped
33617    For private mappings, we should verify that changes cannot be read()
33618    back from the file, nor mmap's back from the file at a different
33619    address.  (There have been systems where private was not correctly
33620    implemented like the infamous i386 svr4.0, and systems where the
33621    VM page cache was not coherent with the file system buffer cache
33622    like early versions of FreeBSD and possibly contemporary NetBSD.)
33623    For shared mappings, we should conversely verify that changes get
33624    propagated back to all the places they're supposed to be.
33625
33626    Grep wants private fixed already mapped.
33627    The main things grep needs to know about mmap are:
33628    * does it exist and is it safe to write into the mmap'd area
33629    * how to use it (BSD variants)  */
33630
33631 #include <fcntl.h>
33632 #include <sys/mman.h>
33633
33634 #if !STDC_HEADERS && !HAVE_STDLIB_H
33635 char *malloc ();
33636 #endif
33637
33638 /* This mess was copied from the GNU getpagesize.h.  */
33639 #if !HAVE_GETPAGESIZE
33640 /* Assume that all systems that can run configure have sys/param.h.  */
33641 # if !HAVE_SYS_PARAM_H
33642 #  define HAVE_SYS_PARAM_H 1
33643 # endif
33644
33645 # ifdef _SC_PAGESIZE
33646 #  define getpagesize() sysconf(_SC_PAGESIZE)
33647 # else /* no _SC_PAGESIZE */
33648 #  if HAVE_SYS_PARAM_H
33649 #   include <sys/param.h>
33650 #   ifdef EXEC_PAGESIZE
33651 #    define getpagesize() EXEC_PAGESIZE
33652 #   else /* no EXEC_PAGESIZE */
33653 #    ifdef NBPG
33654 #     define getpagesize() NBPG * CLSIZE
33655 #     ifndef CLSIZE
33656 #      define CLSIZE 1
33657 #     endif /* no CLSIZE */
33658 #    else /* no NBPG */
33659 #     ifdef NBPC
33660 #      define getpagesize() NBPC
33661 #     else /* no NBPC */
33662 #      ifdef PAGESIZE
33663 #       define getpagesize() PAGESIZE
33664 #      endif /* PAGESIZE */
33665 #     endif /* no NBPC */
33666 #    endif /* no NBPG */
33667 #   endif /* no EXEC_PAGESIZE */
33668 #  else /* no HAVE_SYS_PARAM_H */
33669 #   define getpagesize() 8192   /* punt totally */
33670 #  endif /* no HAVE_SYS_PARAM_H */
33671 # endif /* no _SC_PAGESIZE */
33672
33673 #endif /* no HAVE_GETPAGESIZE */
33674
33675 int
33676 main ()
33677 {
33678   char *data, *data2, *data3;
33679   int i, pagesize;
33680   int fd;
33681
33682   pagesize = getpagesize ();
33683
33684   /* First, make a file with some known garbage in it. */
33685   data = (char *) malloc (pagesize);
33686   if (!data)
33687     return 1;
33688   for (i = 0; i < pagesize; ++i)
33689     *(data + i) = rand ();
33690   umask (0);
33691   fd = creat ("conftest.mmap", 0600);
33692   if (fd < 0)
33693     return 1;
33694   if (write (fd, data, pagesize) != pagesize)
33695     return 1;
33696   close (fd);
33697
33698   /* Next, try to mmap the file at a fixed address which already has
33699      something else allocated at it.  If we can, also make sure that
33700      we see the same garbage.  */
33701   fd = open ("conftest.mmap", O_RDWR);
33702   if (fd < 0)
33703     return 1;
33704   data2 = (char *) malloc (2 * pagesize);
33705   if (!data2)
33706     return 1;
33707   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33708   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33709                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33710     return 1;
33711   for (i = 0; i < pagesize; ++i)
33712     if (*(data + i) != *(data2 + i))
33713       return 1;
33714
33715   /* Finally, make sure that changes to the mapped area do not
33716      percolate back to the file as seen by read().  (This is a bug on
33717      some variants of i386 svr4.0.)  */
33718   for (i = 0; i < pagesize; ++i)
33719     *(data2 + i) = *(data2 + i) + 1;
33720   data3 = (char *) malloc (pagesize);
33721   if (!data3)
33722     return 1;
33723   if (read (fd, data3, pagesize) != pagesize)
33724     return 1;
33725   for (i = 0; i < pagesize; ++i)
33726     if (*(data + i) != *(data3 + i))
33727       return 1;
33728   close (fd);
33729   return 0;
33730 }
33731 _ACEOF
33732 rm -f conftest$ac_exeext
33733 if { (ac_try="$ac_link"
33734 case "(($ac_try" in
33735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736   *) ac_try_echo=$ac_try;;
33737 esac
33738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739   (eval "$ac_link") 2>&5
33740   ac_status=$?
33741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33743   { (case "(($ac_try" in
33744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745   *) ac_try_echo=$ac_try;;
33746 esac
33747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748   (eval "$ac_try") 2>&5
33749   ac_status=$?
33750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751   (exit $ac_status); }; }; then
33752   ac_cv_func_mmap_fixed_mapped=yes
33753 else
33754   echo "$as_me: program exited with status $ac_status" >&5
33755 echo "$as_me: failed program was:" >&5
33756 sed 's/^/| /' conftest.$ac_ext >&5
33757
33758 ( exit $ac_status )
33759 ac_cv_func_mmap_fixed_mapped=no
33760 fi
33761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33762 fi
33763
33764
33765 fi
33766 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33767 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33768 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33769
33770 cat >>confdefs.h <<\_ACEOF
33771 #define HAVE_MMAP 1
33772 _ACEOF
33773
33774 fi
33775 rm -f conftest.mmap
33776
33777   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33778 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33779 if test "${ac_cv_func_mmap_file+set}" = set; then
33780   echo $ECHO_N "(cached) $ECHO_C" >&6
33781 else
33782    ac_ext=c
33783 ac_cpp='$CPP $CPPFLAGS'
33784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33787
33788   if test "$cross_compiling" = yes; then
33789   ac_cv_func_mmap_file=no
33790 else
33791   cat >conftest.$ac_ext <<_ACEOF
33792
33793     /* confdefs.h.  */
33794 _ACEOF
33795 cat confdefs.h >>conftest.$ac_ext
33796 cat >>conftest.$ac_ext <<_ACEOF
33797 /* end confdefs.h.  */
33798
33799 #include <sys/types.h>
33800 #include <sys/mman.h>
33801 #include <fcntl.h>
33802
33803 int
33804 main ()
33805 {
33806
33807   int fd;
33808   fd = creat ("foo",0777);
33809   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33810   unlink ("foo");
33811   return (fd != (int) MAP_FAILED);
33812   ;
33813   return 0;
33814 }
33815 _ACEOF
33816 rm -f conftest$ac_exeext
33817 if { (ac_try="$ac_link"
33818 case "(($ac_try" in
33819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33820   *) ac_try_echo=$ac_try;;
33821 esac
33822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33823   (eval "$ac_link") 2>&5
33824   ac_status=$?
33825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33827   { (case "(($ac_try" in
33828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33829   *) ac_try_echo=$ac_try;;
33830 esac
33831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832   (eval "$ac_try") 2>&5
33833   ac_status=$?
33834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835   (exit $ac_status); }; }; then
33836   ac_cv_func_mmap_file=yes
33837 else
33838   echo "$as_me: program exited with status $ac_status" >&5
33839 echo "$as_me: failed program was:" >&5
33840 sed 's/^/| /' conftest.$ac_ext >&5
33841
33842 ( exit $ac_status )
33843 ac_cv_func_mmap_file=no
33844 fi
33845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33846 fi
33847
33848
33849   ac_ext=c
33850 ac_cpp='$CPP $CPPFLAGS'
33851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33854
33855
33856 fi
33857 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33858 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33859 if test "$ac_cv_func_mmap_file" = yes; then
33860
33861 cat >>confdefs.h <<\_ACEOF
33862 #define HAVE_MMAP_FILE
33863 _ACEOF
33864
33865    MMAP_FILE=yes
33866
33867 fi
33868
33869   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33870 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33871 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33872   echo $ECHO_N "(cached) $ECHO_C" >&6
33873 else
33874   if test "$llvm_cv_os_type" = "Interix" ; then
33875    ac_cv_need_dev_zero_for_mmap=yes
33876  else
33877    ac_cv_need_dev_zero_for_mmap=no
33878  fi
33879
33880 fi
33881 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33882 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33883 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33884
33885 cat >>confdefs.h <<\_ACEOF
33886 #define NEED_DEV_ZERO_FOR_MMAP 1
33887 _ACEOF
33888
33889 fi
33890
33891   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33892   then
33893     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33894 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33895   fi
33896   if test "$ac_cv_func_mmap_file" = "no"
33897   then
33898     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33899 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33900   fi
33901 fi
33902
33903
33904
33905 for ac_func in __dso_handle
33906 do
33907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33911   echo $ECHO_N "(cached) $ECHO_C" >&6
33912 else
33913   cat >conftest.$ac_ext <<_ACEOF
33914 /* confdefs.h.  */
33915 _ACEOF
33916 cat confdefs.h >>conftest.$ac_ext
33917 cat >>conftest.$ac_ext <<_ACEOF
33918 /* end confdefs.h.  */
33919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33921 #define $ac_func innocuous_$ac_func
33922
33923 /* System header to define __stub macros and hopefully few prototypes,
33924     which can conflict with char $ac_func (); below.
33925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33926     <limits.h> exists even on freestanding compilers.  */
33927
33928 #ifdef __STDC__
33929 # include <limits.h>
33930 #else
33931 # include <assert.h>
33932 #endif
33933
33934 #undef $ac_func
33935
33936 /* Override any GCC internal prototype to avoid an error.
33937    Use char because int might match the return type of a GCC
33938    builtin and then its argument prototype would still apply.  */
33939 #ifdef __cplusplus
33940 extern "C"
33941 #endif
33942 char $ac_func ();
33943 /* The GNU C library defines this for functions which it implements
33944     to always fail with ENOSYS.  Some functions are actually named
33945     something starting with __ and the normal name is an alias.  */
33946 #if defined __stub_$ac_func || defined __stub___$ac_func
33947 choke me
33948 #endif
33949
33950 int
33951 main ()
33952 {
33953 return $ac_func ();
33954   ;
33955   return 0;
33956 }
33957 _ACEOF
33958 rm -f conftest.$ac_objext conftest$ac_exeext
33959 if { (ac_try="$ac_link"
33960 case "(($ac_try" in
33961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33962   *) ac_try_echo=$ac_try;;
33963 esac
33964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33965   (eval "$ac_link") 2>conftest.er1
33966   ac_status=$?
33967   grep -v '^ *+' conftest.er1 >conftest.err
33968   rm -f conftest.er1
33969   cat conftest.err >&5
33970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971   (exit $ac_status); } &&
33972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33973   { (case "(($ac_try" in
33974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975   *) ac_try_echo=$ac_try;;
33976 esac
33977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33978   (eval "$ac_try") 2>&5
33979   ac_status=$?
33980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981   (exit $ac_status); }; } &&
33982          { ac_try='test -s conftest$ac_exeext'
33983   { (case "(($ac_try" in
33984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33985   *) ac_try_echo=$ac_try;;
33986 esac
33987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33988   (eval "$ac_try") 2>&5
33989   ac_status=$?
33990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991   (exit $ac_status); }; }; then
33992   eval "$as_ac_var=yes"
33993 else
33994   echo "$as_me: failed program was:" >&5
33995 sed 's/^/| /' conftest.$ac_ext >&5
33996
33997         eval "$as_ac_var=no"
33998 fi
33999
34000 rm -f core conftest.err conftest.$ac_objext \
34001       conftest$ac_exeext conftest.$ac_ext
34002 fi
34003 ac_res=`eval echo '${'$as_ac_var'}'`
34004                { echo "$as_me:$LINENO: result: $ac_res" >&5
34005 echo "${ECHO_T}$ac_res" >&6; }
34006 if test `eval echo '${'$as_ac_var'}'` = yes; then
34007   cat >>confdefs.h <<_ACEOF
34008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34009 _ACEOF
34010
34011 fi
34012 done
34013
34014
34015 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34016 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34017 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34018   echo $ECHO_N "(cached) $ECHO_C" >&6
34019 else
34020   llvm_cv_llvmgcc_sanity="no"
34021 if test -x "$LLVMGCC" ; then
34022   cp /dev/null conftest.c
34023   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34024       grep 'target datalayout =' > /dev/null 2>&1
34025   if test $? -eq 0 ; then
34026     llvm_cv_llvmgcc_sanity="yes"
34027   fi
34028   rm conftest.c
34029 fi
34030 fi
34031 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34032 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34033
34034 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34035   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34036 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34037   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34038   LLVMCC1=$llvmcc1path
34039
34040   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34041   LLVMCC1PLUS=$llvmcc1pluspath
34042
34043   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34044   LLVMGCCDIR=$llvmgccdir
34045
34046   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34047   LLVMGCCLIBEXEC=$llvmgcclibexec
34048
34049   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34050   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34051   LLVMGCC_VERSION=$llvmgccversion
34052
34053   LLVMGCC_MAJVERS=$llvmgccmajvers
34054
34055   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34056   LLVMGCC_LANGS=$llvmgcclangs
34057
34058   { echo "$as_me:$LINENO: result: ok" >&5
34059 echo "${ECHO_T}ok" >&6; }
34060 fi
34061
34062 SHLIBEXT=$libltdl_cv_shlibext
34063
34064
34065 # Translate the various configuration directories and other basic
34066 # information into substitutions that will end up in Makefile.config.in
34067 # that these configured values can be used by the makefiles
34068 if test "${prefix}" = "NONE" ; then
34069   prefix="/usr/local"
34070 fi
34071 eval LLVM_PREFIX="${prefix}";
34072 eval LLVM_BINDIR="${prefix}/bin";
34073 eval LLVM_LIBDIR="${prefix}/lib";
34074 eval LLVM_DATADIR="${prefix}/share/llvm";
34075 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34076 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34077 eval LLVM_INCLUDEDIR="${prefix}/include";
34078 eval LLVM_INFODIR="${prefix}/info";
34079 eval LLVM_MANDIR="${prefix}/man";
34080 LLVM_CONFIGTIME=`date`
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092 # Place the various directores into the config.h file as #defines so that we
34093 # can know about the installation paths within LLVM.
34094
34095 cat >>confdefs.h <<_ACEOF
34096 #define LLVM_PREFIX "$LLVM_PREFIX"
34097 _ACEOF
34098
34099
34100 cat >>confdefs.h <<_ACEOF
34101 #define LLVM_BINDIR "$LLVM_BINDIR"
34102 _ACEOF
34103
34104
34105 cat >>confdefs.h <<_ACEOF
34106 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34107 _ACEOF
34108
34109
34110 cat >>confdefs.h <<_ACEOF
34111 #define LLVM_DATADIR "$LLVM_DATADIR"
34112 _ACEOF
34113
34114
34115 cat >>confdefs.h <<_ACEOF
34116 #define LLVM_DATADIR "$LLVM_DOCSDIR"
34117 _ACEOF
34118
34119
34120 cat >>confdefs.h <<_ACEOF
34121 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34122 _ACEOF
34123
34124
34125 cat >>confdefs.h <<_ACEOF
34126 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34127 _ACEOF
34128
34129
34130 cat >>confdefs.h <<_ACEOF
34131 #define LLVM_INFODIR "$LLVM_INFODIR"
34132 _ACEOF
34133
34134
34135 cat >>confdefs.h <<_ACEOF
34136 #define LLVM_MANDIR "$LLVM_MANDIR"
34137 _ACEOF
34138
34139
34140 cat >>confdefs.h <<_ACEOF
34141 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34142 _ACEOF
34143
34144
34145 # Determine which bindings to build.
34146 if test "$BINDINGS_TO_BUILD" = auto ; then
34147   BINDINGS_TO_BUILD=""
34148   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34149     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34150   fi
34151 fi
34152 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34153
34154
34155 # This isn't really configurey, but it avoids having to repeat the list in
34156 # other files.
34157 ALL_BINDINGS=ocaml
34158
34159
34160
34161 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34162
34163 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34164
34165 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34166
34167 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34168
34169 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34170
34171
34172 ac_config_files="$ac_config_files Makefile.config"
34173
34174
34175 ac_config_files="$ac_config_files llvm.spec"
34176
34177
34178 ac_config_files="$ac_config_files docs/doxygen.cfg"
34179
34180
34181 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34182
34183
34184 ac_config_commands="$ac_config_commands setup"
34185
34186 ac_config_commands="$ac_config_commands Makefile"
34187
34188
34189 ac_config_commands="$ac_config_commands Makefile.common"
34190
34191
34192 ac_config_commands="$ac_config_commands examples/Makefile"
34193
34194
34195 ac_config_commands="$ac_config_commands lib/Makefile"
34196
34197
34198 ac_config_commands="$ac_config_commands runtime/Makefile"
34199
34200
34201 ac_config_commands="$ac_config_commands test/Makefile"
34202
34203
34204 ac_config_commands="$ac_config_commands test/Makefile.tests"
34205
34206
34207 ac_config_commands="$ac_config_commands tools/Makefile"
34208
34209
34210 ac_config_commands="$ac_config_commands utils/Makefile"
34211
34212
34213 ac_config_commands="$ac_config_commands projects/Makefile"
34214
34215
34216 ac_config_commands="$ac_config_commands bindings/Makefile"
34217
34218
34219 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34220
34221
34222
34223 cat >confcache <<\_ACEOF
34224 # This file is a shell script that caches the results of configure
34225 # tests run on this system so they can be shared between configure
34226 # scripts and configure runs, see configure's option --config-cache.
34227 # It is not useful on other systems.  If it contains results you don't
34228 # want to keep, you may remove or edit it.
34229 #
34230 # config.status only pays attention to the cache file if you give it
34231 # the --recheck option to rerun configure.
34232 #
34233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34235 # following values.
34236
34237 _ACEOF
34238
34239 # The following way of writing the cache mishandles newlines in values,
34240 # but we know of no workaround that is simple, portable, and efficient.
34241 # So, we kill variables containing newlines.
34242 # Ultrix sh set writes to stderr and can't be redirected directly,
34243 # and sets the high bit in the cache file unless we assign to the vars.
34244 (
34245   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34246     eval ac_val=\$$ac_var
34247     case $ac_val in #(
34248     *${as_nl}*)
34249       case $ac_var in #(
34250       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34251 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34252       esac
34253       case $ac_var in #(
34254       _ | IFS | as_nl) ;; #(
34255       *) $as_unset $ac_var ;;
34256       esac ;;
34257     esac
34258   done
34259
34260   (set) 2>&1 |
34261     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34262     *${as_nl}ac_space=\ *)
34263       # `set' does not quote correctly, so add quotes (double-quote
34264       # substitution turns \\\\ into \\, and sed turns \\ into \).
34265       sed -n \
34266         "s/'/'\\\\''/g;
34267           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34268       ;; #(
34269     *)
34270       # `set' quotes correctly as required by POSIX, so do not add quotes.
34271       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34272       ;;
34273     esac |
34274     sort
34275 ) |
34276   sed '
34277      /^ac_cv_env_/b end
34278      t clear
34279      :clear
34280      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34281      t end
34282      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34283      :end' >>confcache
34284 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34285   if test -w "$cache_file"; then
34286     test "x$cache_file" != "x/dev/null" &&
34287       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34288 echo "$as_me: updating cache $cache_file" >&6;}
34289     cat confcache >$cache_file
34290   else
34291     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34292 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34293   fi
34294 fi
34295 rm -f confcache
34296
34297 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34298 # Let make expand exec_prefix.
34299 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34300
34301 DEFS=-DHAVE_CONFIG_H
34302
34303 ac_libobjs=
34304 ac_ltlibobjs=
34305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34306   # 1. Remove the extension, and $U if already installed.
34307   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34308   ac_i=`echo "$ac_i" | sed "$ac_script"`
34309   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34310   #    will be set to the directory where LIBOBJS objects are built.
34311   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34312   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34313 done
34314 LIBOBJS=$ac_libobjs
34315
34316 LTLIBOBJS=$ac_ltlibobjs
34317
34318
34319 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34320   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34321 Usually this means the macro was only invoked conditionally." >&5
34322 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34323 Usually this means the macro was only invoked conditionally." >&2;}
34324    { (exit 1); exit 1; }; }
34325 fi
34326 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34327   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34328 Usually this means the macro was only invoked conditionally." >&5
34329 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34330 Usually this means the macro was only invoked conditionally." >&2;}
34331    { (exit 1); exit 1; }; }
34332 fi
34333
34334 : ${CONFIG_STATUS=./config.status}
34335 ac_clean_files_save=$ac_clean_files
34336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34337 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34339 cat >$CONFIG_STATUS <<_ACEOF
34340 #! $SHELL
34341 # Generated by $as_me.
34342 # Run this file to recreate the current configuration.
34343 # Compiler output produced by configure, useful for debugging
34344 # configure, is in config.log if it exists.
34345
34346 debug=false
34347 ac_cs_recheck=false
34348 ac_cs_silent=false
34349 SHELL=\${CONFIG_SHELL-$SHELL}
34350 _ACEOF
34351
34352 cat >>$CONFIG_STATUS <<\_ACEOF
34353 ## --------------------- ##
34354 ## M4sh Initialization.  ##
34355 ## --------------------- ##
34356
34357 # Be Bourne compatible
34358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34359   emulate sh
34360   NULLCMD=:
34361   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34362   # is contrary to our usage.  Disable this feature.
34363   alias -g '${1+"$@"}'='"$@"'
34364   setopt NO_GLOB_SUBST
34365 else
34366   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34367 fi
34368 BIN_SH=xpg4; export BIN_SH # for Tru64
34369 DUALCASE=1; export DUALCASE # for MKS sh
34370
34371
34372 # PATH needs CR
34373 # Avoid depending upon Character Ranges.
34374 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34377 as_cr_digits='0123456789'
34378 as_cr_alnum=$as_cr_Letters$as_cr_digits
34379
34380 # The user is always right.
34381 if test "${PATH_SEPARATOR+set}" != set; then
34382   echo "#! /bin/sh" >conf$$.sh
34383   echo  "exit 0"   >>conf$$.sh
34384   chmod +x conf$$.sh
34385   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34386     PATH_SEPARATOR=';'
34387   else
34388     PATH_SEPARATOR=:
34389   fi
34390   rm -f conf$$.sh
34391 fi
34392
34393 # Support unset when possible.
34394 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34395   as_unset=unset
34396 else
34397   as_unset=false
34398 fi
34399
34400
34401 # IFS
34402 # We need space, tab and new line, in precisely that order.  Quoting is
34403 # there to prevent editors from complaining about space-tab.
34404 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34405 # splitting by setting IFS to empty value.)
34406 as_nl='
34407 '
34408 IFS=" ""        $as_nl"
34409
34410 # Find who we are.  Look in the path if we contain no directory separator.
34411 case $0 in
34412   *[\\/]* ) as_myself=$0 ;;
34413   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34414 for as_dir in $PATH
34415 do
34416   IFS=$as_save_IFS
34417   test -z "$as_dir" && as_dir=.
34418   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34419 done
34420 IFS=$as_save_IFS
34421
34422      ;;
34423 esac
34424 # We did not find ourselves, most probably we were run as `sh COMMAND'
34425 # in which case we are not to be found in the path.
34426 if test "x$as_myself" = x; then
34427   as_myself=$0
34428 fi
34429 if test ! -f "$as_myself"; then
34430   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34431   { (exit 1); exit 1; }
34432 fi
34433
34434 # Work around bugs in pre-3.0 UWIN ksh.
34435 for as_var in ENV MAIL MAILPATH
34436 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34437 done
34438 PS1='$ '
34439 PS2='> '
34440 PS4='+ '
34441
34442 # NLS nuisances.
34443 for as_var in \
34444   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34445   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34446   LC_TELEPHONE LC_TIME
34447 do
34448   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34449     eval $as_var=C; export $as_var
34450   else
34451     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34452   fi
34453 done
34454
34455 # Required to use basename.
34456 if expr a : '\(a\)' >/dev/null 2>&1 &&
34457    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34458   as_expr=expr
34459 else
34460   as_expr=false
34461 fi
34462
34463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34464   as_basename=basename
34465 else
34466   as_basename=false
34467 fi
34468
34469
34470 # Name of the executable.
34471 as_me=`$as_basename -- "$0" ||
34472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34473          X"$0" : 'X\(//\)$' \| \
34474          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34475 echo X/"$0" |
34476     sed '/^.*\/\([^/][^/]*\)\/*$/{
34477             s//\1/
34478             q
34479           }
34480           /^X\/\(\/\/\)$/{
34481             s//\1/
34482             q
34483           }
34484           /^X\/\(\/\).*/{
34485             s//\1/
34486             q
34487           }
34488           s/.*/./; q'`
34489
34490 # CDPATH.
34491 $as_unset CDPATH
34492
34493
34494
34495   as_lineno_1=$LINENO
34496   as_lineno_2=$LINENO
34497   test "x$as_lineno_1" != "x$as_lineno_2" &&
34498   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34499
34500   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34501   # uniformly replaced by the line number.  The first 'sed' inserts a
34502   # line-number line after each line using $LINENO; the second 'sed'
34503   # does the real work.  The second script uses 'N' to pair each
34504   # line-number line with the line containing $LINENO, and appends
34505   # trailing '-' during substitution so that $LINENO is not a special
34506   # case at line end.
34507   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34508   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34509   # E. McMahon (1931-1989) for sed's syntax.  :-)
34510   sed -n '
34511     p
34512     /[$]LINENO/=
34513   ' <$as_myself |
34514     sed '
34515       s/[$]LINENO.*/&-/
34516       t lineno
34517       b
34518       :lineno
34519       N
34520       :loop
34521       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34522       t loop
34523       s/-\n.*//
34524     ' >$as_me.lineno &&
34525   chmod +x "$as_me.lineno" ||
34526     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34527    { (exit 1); exit 1; }; }
34528
34529   # Don't try to exec as it changes $[0], causing all sort of problems
34530   # (the dirname of $[0] is not the place where we might find the
34531   # original and so on.  Autoconf is especially sensitive to this).
34532   . "./$as_me.lineno"
34533   # Exit status is that of the last command.
34534   exit
34535 }
34536
34537
34538 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34539   as_dirname=dirname
34540 else
34541   as_dirname=false
34542 fi
34543
34544 ECHO_C= ECHO_N= ECHO_T=
34545 case `echo -n x` in
34546 -n*)
34547   case `echo 'x\c'` in
34548   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34549   *)   ECHO_C='\c';;
34550   esac;;
34551 *)
34552   ECHO_N='-n';;
34553 esac
34554
34555 if expr a : '\(a\)' >/dev/null 2>&1 &&
34556    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34557   as_expr=expr
34558 else
34559   as_expr=false
34560 fi
34561
34562 rm -f conf$$ conf$$.exe conf$$.file
34563 if test -d conf$$.dir; then
34564   rm -f conf$$.dir/conf$$.file
34565 else
34566   rm -f conf$$.dir
34567   mkdir conf$$.dir
34568 fi
34569 echo >conf$$.file
34570 if ln -s conf$$.file conf$$ 2>/dev/null; then
34571   as_ln_s='ln -s'
34572   # ... but there are two gotchas:
34573   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34574   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34575   # In both cases, we have to default to `cp -p'.
34576   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34577     as_ln_s='cp -p'
34578 elif ln conf$$.file conf$$ 2>/dev/null; then
34579   as_ln_s=ln
34580 else
34581   as_ln_s='cp -p'
34582 fi
34583 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34584 rmdir conf$$.dir 2>/dev/null
34585
34586 if mkdir -p . 2>/dev/null; then
34587   as_mkdir_p=:
34588 else
34589   test -d ./-p && rmdir ./-p
34590   as_mkdir_p=false
34591 fi
34592
34593 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34594 # systems may use methods other than mode bits to determine executability.
34595 cat >conf$$.file <<_ASEOF
34596 #! /bin/sh
34597 exit 0
34598 _ASEOF
34599 chmod +x conf$$.file
34600 if test -x conf$$.file >/dev/null 2>&1; then
34601   as_executable_p="test -x"
34602 else
34603   as_executable_p=:
34604 fi
34605 rm -f conf$$.file
34606
34607 # Sed expression to map a string onto a valid CPP name.
34608 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34609
34610 # Sed expression to map a string onto a valid variable name.
34611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34612
34613
34614 exec 6>&1
34615
34616 # Save the log message, to keep $[0] and so on meaningful, and to
34617 # report actual input values of CONFIG_FILES etc. instead of their
34618 # values after options handling.
34619 ac_log="
34620 This file was extended by llvm $as_me 2.2svn, which was
34621 generated by GNU Autoconf 2.60.  Invocation command line was
34622
34623   CONFIG_FILES    = $CONFIG_FILES
34624   CONFIG_HEADERS  = $CONFIG_HEADERS
34625   CONFIG_LINKS    = $CONFIG_LINKS
34626   CONFIG_COMMANDS = $CONFIG_COMMANDS
34627   $ $0 $@
34628
34629 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34630 "
34631
34632 _ACEOF
34633
34634 cat >>$CONFIG_STATUS <<_ACEOF
34635 # Files that config.status was made for.
34636 config_files="$ac_config_files"
34637 config_headers="$ac_config_headers"
34638 config_commands="$ac_config_commands"
34639
34640 _ACEOF
34641
34642 cat >>$CONFIG_STATUS <<\_ACEOF
34643 ac_cs_usage="\
34644 \`$as_me' instantiates files from templates according to the
34645 current configuration.
34646
34647 Usage: $0 [OPTIONS] [FILE]...
34648
34649   -h, --help       print this help, then exit
34650   -V, --version    print version number, then exit
34651   -q, --quiet      do not print progress messages
34652   -d, --debug      don't remove temporary files
34653       --recheck    update $as_me by reconfiguring in the same conditions
34654   --file=FILE[:TEMPLATE]
34655                    instantiate the configuration file FILE
34656   --header=FILE[:TEMPLATE]
34657                    instantiate the configuration header FILE
34658
34659 Configuration files:
34660 $config_files
34661
34662 Configuration headers:
34663 $config_headers
34664
34665 Configuration commands:
34666 $config_commands
34667
34668 Report bugs to <bug-autoconf@gnu.org>."
34669
34670 _ACEOF
34671 cat >>$CONFIG_STATUS <<_ACEOF
34672 ac_cs_version="\\
34673 llvm config.status 2.2svn
34674 configured by $0, generated by GNU Autoconf 2.60,
34675   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34676
34677 Copyright (C) 2006 Free Software Foundation, Inc.
34678 This config.status script is free software; the Free Software Foundation
34679 gives unlimited permission to copy, distribute and modify it."
34680
34681 ac_pwd='$ac_pwd'
34682 srcdir='$srcdir'
34683 INSTALL='$INSTALL'
34684 _ACEOF
34685
34686 cat >>$CONFIG_STATUS <<\_ACEOF
34687 # If no file are specified by the user, then we need to provide default
34688 # value.  By we need to know if files were specified by the user.
34689 ac_need_defaults=:
34690 while test $# != 0
34691 do
34692   case $1 in
34693   --*=*)
34694     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34695     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34696     ac_shift=:
34697     ;;
34698   *)
34699     ac_option=$1
34700     ac_optarg=$2
34701     ac_shift=shift
34702     ;;
34703   esac
34704
34705   case $ac_option in
34706   # Handling of the options.
34707   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34708     ac_cs_recheck=: ;;
34709   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34710     echo "$ac_cs_version"; exit ;;
34711   --debug | --debu | --deb | --de | --d | -d )
34712     debug=: ;;
34713   --file | --fil | --fi | --f )
34714     $ac_shift
34715     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34716     ac_need_defaults=false;;
34717   --header | --heade | --head | --hea )
34718     $ac_shift
34719     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34720     ac_need_defaults=false;;
34721   --he | --h)
34722     # Conflict between --help and --header
34723     { echo "$as_me: error: ambiguous option: $1
34724 Try \`$0 --help' for more information." >&2
34725    { (exit 1); exit 1; }; };;
34726   --help | --hel | -h )
34727     echo "$ac_cs_usage"; exit ;;
34728   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34729   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34730     ac_cs_silent=: ;;
34731
34732   # This is an error.
34733   -*) { echo "$as_me: error: unrecognized option: $1
34734 Try \`$0 --help' for more information." >&2
34735    { (exit 1); exit 1; }; } ;;
34736
34737   *) ac_config_targets="$ac_config_targets $1"
34738      ac_need_defaults=false ;;
34739
34740   esac
34741   shift
34742 done
34743
34744 ac_configure_extra_args=
34745
34746 if $ac_cs_silent; then
34747   exec 6>/dev/null
34748   ac_configure_extra_args="$ac_configure_extra_args --silent"
34749 fi
34750
34751 _ACEOF
34752 cat >>$CONFIG_STATUS <<_ACEOF
34753 if \$ac_cs_recheck; then
34754   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34755   CONFIG_SHELL=$SHELL
34756   export CONFIG_SHELL
34757   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34758 fi
34759
34760 _ACEOF
34761 cat >>$CONFIG_STATUS <<\_ACEOF
34762 exec 5>>config.log
34763 {
34764   echo
34765   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34766 ## Running $as_me. ##
34767 _ASBOX
34768   echo "$ac_log"
34769 } >&5
34770
34771 _ACEOF
34772 cat >>$CONFIG_STATUS <<_ACEOF
34773 #
34774 # INIT-COMMANDS
34775 #
34776 llvm_src="${srcdir}"
34777
34778 _ACEOF
34779
34780 cat >>$CONFIG_STATUS <<\_ACEOF
34781
34782 # Handling of arguments.
34783 for ac_config_target in $ac_config_targets
34784 do
34785   case $ac_config_target in
34786     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34787     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34788     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34789     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34790     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34791     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34792     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34793     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34794     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34795     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34796     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34797     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34798     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34799     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34800     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34801     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34802     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34803     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34804     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34805     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34806     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34807     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34808
34809   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34810 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34811    { (exit 1); exit 1; }; };;
34812   esac
34813 done
34814
34815
34816 # If the user did not use the arguments to specify the items to instantiate,
34817 # then the envvar interface is used.  Set only those that are not.
34818 # We use the long form for the default assignment because of an extremely
34819 # bizarre bug on SunOS 4.1.3.
34820 if $ac_need_defaults; then
34821   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34822   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34823   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34824 fi
34825
34826 # Have a temporary directory for convenience.  Make it in the build tree
34827 # simply because there is no reason against having it here, and in addition,
34828 # creating and moving files from /tmp can sometimes cause problems.
34829 # Hook for its removal unless debugging.
34830 # Note that there is a small window in which the directory will not be cleaned:
34831 # after its creation but before its name has been assigned to `$tmp'.
34832 $debug ||
34833 {
34834   tmp=
34835   trap 'exit_status=$?
34836   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34837 ' 0
34838   trap '{ (exit 1); exit 1; }' 1 2 13 15
34839 }
34840 # Create a (secure) tmp directory for tmp files.
34841
34842 {
34843   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34844   test -n "$tmp" && test -d "$tmp"
34845 }  ||
34846 {
34847   tmp=./conf$$-$RANDOM
34848   (umask 077 && mkdir "$tmp")
34849 } ||
34850 {
34851    echo "$me: cannot create a temporary directory in ." >&2
34852    { (exit 1); exit 1; }
34853 }
34854
34855 #
34856 # Set up the sed scripts for CONFIG_FILES section.
34857 #
34858
34859 # No need to generate the scripts if there are no CONFIG_FILES.
34860 # This happens for instance when ./config.status config.h
34861 if test -n "$CONFIG_FILES"; then
34862
34863 _ACEOF
34864
34865
34866
34867 ac_delim='%!_!# '
34868 for ac_last_try in false false false false false :; do
34869   cat >conf$$subs.sed <<_ACEOF
34870 SHELL!$SHELL$ac_delim
34871 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34872 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34873 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34874 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34875 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34876 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34877 exec_prefix!$exec_prefix$ac_delim
34878 prefix!$prefix$ac_delim
34879 program_transform_name!$program_transform_name$ac_delim
34880 bindir!$bindir$ac_delim
34881 sbindir!$sbindir$ac_delim
34882 libexecdir!$libexecdir$ac_delim
34883 datarootdir!$datarootdir$ac_delim
34884 datadir!$datadir$ac_delim
34885 sysconfdir!$sysconfdir$ac_delim
34886 sharedstatedir!$sharedstatedir$ac_delim
34887 localstatedir!$localstatedir$ac_delim
34888 includedir!$includedir$ac_delim
34889 oldincludedir!$oldincludedir$ac_delim
34890 docdir!$docdir$ac_delim
34891 infodir!$infodir$ac_delim
34892 htmldir!$htmldir$ac_delim
34893 dvidir!$dvidir$ac_delim
34894 pdfdir!$pdfdir$ac_delim
34895 psdir!$psdir$ac_delim
34896 libdir!$libdir$ac_delim
34897 localedir!$localedir$ac_delim
34898 mandir!$mandir$ac_delim
34899 DEFS!$DEFS$ac_delim
34900 ECHO_C!$ECHO_C$ac_delim
34901 ECHO_N!$ECHO_N$ac_delim
34902 ECHO_T!$ECHO_T$ac_delim
34903 LIBS!$LIBS$ac_delim
34904 build_alias!$build_alias$ac_delim
34905 host_alias!$host_alias$ac_delim
34906 target_alias!$target_alias$ac_delim
34907 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34908 subdirs!$subdirs$ac_delim
34909 build!$build$ac_delim
34910 build_cpu!$build_cpu$ac_delim
34911 build_vendor!$build_vendor$ac_delim
34912 build_os!$build_os$ac_delim
34913 host!$host$ac_delim
34914 host_cpu!$host_cpu$ac_delim
34915 host_vendor!$host_vendor$ac_delim
34916 host_os!$host_os$ac_delim
34917 target!$target$ac_delim
34918 target_cpu!$target_cpu$ac_delim
34919 target_vendor!$target_vendor$ac_delim
34920 target_os!$target_os$ac_delim
34921 OS!$OS$ac_delim
34922 LINKALL!$LINKALL$ac_delim
34923 NOLINKALL!$NOLINKALL$ac_delim
34924 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34925 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34926 ARCH!$ARCH$ac_delim
34927 ENDIAN!$ENDIAN$ac_delim
34928 CC!$CC$ac_delim
34929 CFLAGS!$CFLAGS$ac_delim
34930 LDFLAGS!$LDFLAGS$ac_delim
34931 CPPFLAGS!$CPPFLAGS$ac_delim
34932 ac_ct_CC!$ac_ct_CC$ac_delim
34933 EXEEXT!$EXEEXT$ac_delim
34934 OBJEXT!$OBJEXT$ac_delim
34935 CPP!$CPP$ac_delim
34936 GREP!$GREP$ac_delim
34937 EGREP!$EGREP$ac_delim
34938 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34939 BUILD_CC!$BUILD_CC$ac_delim
34940 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34941 CVSBUILD!$CVSBUILD$ac_delim
34942 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34943 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34944 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34945 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34946 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34947 JIT!$JIT$ac_delim
34948 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34949 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34950 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34951 ENABLE_PIC!$ENABLE_PIC$ac_delim
34952 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34953 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34954 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34955 CXX!$CXX$ac_delim
34956 CXXFLAGS!$CXXFLAGS$ac_delim
34957 ac_ct_CXX!$ac_ct_CXX$ac_delim
34958 LEX!$LEX$ac_delim
34959 LEXLIB!$LEXLIB$ac_delim
34960 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34961 FLEX!$FLEX$ac_delim
34962 YACC!$YACC$ac_delim
34963 YFLAGS!$YFLAGS$ac_delim
34964 BISON!$BISON$ac_delim
34965 NM!$NM$ac_delim
34966 ifGNUmake!$ifGNUmake$ac_delim
34967 _ACEOF
34968
34969   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34970     break
34971   elif $ac_last_try; then
34972     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34973 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34974    { (exit 1); exit 1; }; }
34975   else
34976     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34977   fi
34978 done
34979
34980 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34981 if test -n "$ac_eof"; then
34982   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34983   ac_eof=`expr $ac_eof + 1`
34984 fi
34985
34986 cat >>$CONFIG_STATUS <<_ACEOF
34987 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34989 _ACEOF
34990 sed '
34991 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34992 s/^/s,@/; s/!/@,|#_!!_#|/
34993 :n
34994 t n
34995 s/'"$ac_delim"'$/,g/; t
34996 s/$/\\/; p
34997 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34998 ' >>$CONFIG_STATUS <conf$$subs.sed
34999 rm -f conf$$subs.sed
35000 cat >>$CONFIG_STATUS <<_ACEOF
35001 CEOF$ac_eof
35002 _ACEOF
35003
35004
35005 ac_delim='%!_!# '
35006 for ac_last_try in false false false false false :; do
35007   cat >conf$$subs.sed <<_ACEOF
35008 LN_S!$LN_S$ac_delim
35009 CMP!$CMP$ac_delim
35010 CP!$CP$ac_delim
35011 DATE!$DATE$ac_delim
35012 FIND!$FIND$ac_delim
35013 MKDIR!$MKDIR$ac_delim
35014 MV!$MV$ac_delim
35015 RANLIB!$RANLIB$ac_delim
35016 RM!$RM$ac_delim
35017 SED!$SED$ac_delim
35018 TAR!$TAR$ac_delim
35019 BINPWD!$BINPWD$ac_delim
35020 GRAPHVIZ!$GRAPHVIZ$ac_delim
35021 DOT!$DOT$ac_delim
35022 GV!$GV$ac_delim
35023 DOTTY!$DOTTY$ac_delim
35024 PERL!$PERL$ac_delim
35025 HAVE_PERL!$HAVE_PERL$ac_delim
35026 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35027 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35028 INSTALL_DATA!$INSTALL_DATA$ac_delim
35029 BZIP2!$BZIP2$ac_delim
35030 DOXYGEN!$DOXYGEN$ac_delim
35031 GROFF!$GROFF$ac_delim
35032 GZIP!$GZIP$ac_delim
35033 POD2HTML!$POD2HTML$ac_delim
35034 POD2MAN!$POD2MAN$ac_delim
35035 RUNTEST!$RUNTEST$ac_delim
35036 TCLSH!$TCLSH$ac_delim
35037 ZIP!$ZIP$ac_delim
35038 OCAMLC!$OCAMLC$ac_delim
35039 OCAMLOPT!$OCAMLOPT$ac_delim
35040 OCAMLDEP!$OCAMLDEP$ac_delim
35041 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35042 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35043 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35044 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35045 LIBADD_DL!$LIBADD_DL$ac_delim
35046 ECHO!$ECHO$ac_delim
35047 AR!$AR$ac_delim
35048 STRIP!$STRIP$ac_delim
35049 CXXCPP!$CXXCPP$ac_delim
35050 F77!$F77$ac_delim
35051 FFLAGS!$FFLAGS$ac_delim
35052 ac_ct_F77!$ac_ct_F77$ac_delim
35053 LIBTOOL!$LIBTOOL$ac_delim
35054 LLVMGCC!$LLVMGCC$ac_delim
35055 LLVMGXX!$LLVMGXX$ac_delim
35056 USE_UDIS86!$USE_UDIS86$ac_delim
35057 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35058 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35059 ALLOCA!$ALLOCA$ac_delim
35060 MMAP_FILE!$MMAP_FILE$ac_delim
35061 LLVMCC1!$LLVMCC1$ac_delim
35062 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35063 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35064 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35065 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35066 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35067 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35068 SHLIBEXT!$SHLIBEXT$ac_delim
35069 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35070 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35071 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35072 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35073 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35074 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35075 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35076 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35077 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35078 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35079 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35080 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35081 LIBOBJS!$LIBOBJS$ac_delim
35082 LTLIBOBJS!$LTLIBOBJS$ac_delim
35083 _ACEOF
35084
35085   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
35086     break
35087   elif $ac_last_try; then
35088     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35089 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35090    { (exit 1); exit 1; }; }
35091   else
35092     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35093   fi
35094 done
35095
35096 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35097 if test -n "$ac_eof"; then
35098   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35099   ac_eof=`expr $ac_eof + 1`
35100 fi
35101
35102 cat >>$CONFIG_STATUS <<_ACEOF
35103 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35105 _ACEOF
35106 sed '
35107 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35108 s/^/s,@/; s/!/@,|#_!!_#|/
35109 :n
35110 t n
35111 s/'"$ac_delim"'$/,g/; t
35112 s/$/\\/; p
35113 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35114 ' >>$CONFIG_STATUS <conf$$subs.sed
35115 rm -f conf$$subs.sed
35116 cat >>$CONFIG_STATUS <<_ACEOF
35117 :end
35118 s/|#_!!_#|//g
35119 CEOF$ac_eof
35120 _ACEOF
35121
35122
35123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35125 # trailing colons and then remove the whole line if VPATH becomes empty
35126 # (actually we leave an empty line to preserve line numbers).
35127 if test "x$srcdir" = x.; then
35128   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35129 s/:*\$(srcdir):*/:/
35130 s/:*\${srcdir}:*/:/
35131 s/:*@srcdir@:*/:/
35132 s/^\([^=]*=[     ]*\):*/\1/
35133 s/:*$//
35134 s/^[^=]*=[       ]*$//
35135 }'
35136 fi
35137
35138 cat >>$CONFIG_STATUS <<\_ACEOF
35139 fi # test -n "$CONFIG_FILES"
35140
35141
35142 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35143 do
35144   case $ac_tag in
35145   :[FHLC]) ac_mode=$ac_tag; continue;;
35146   esac
35147   case $ac_mode$ac_tag in
35148   :[FHL]*:*);;
35149   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35150 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35151    { (exit 1); exit 1; }; };;
35152   :[FH]-) ac_tag=-:-;;
35153   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35154   esac
35155   ac_save_IFS=$IFS
35156   IFS=:
35157   set x $ac_tag
35158   IFS=$ac_save_IFS
35159   shift
35160   ac_file=$1
35161   shift
35162
35163   case $ac_mode in
35164   :L) ac_source=$1;;
35165   :[FH])
35166     ac_file_inputs=
35167     for ac_f
35168     do
35169       case $ac_f in
35170       -) ac_f="$tmp/stdin";;
35171       *) # Look for the file first in the build tree, then in the source tree
35172          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35173          # because $ac_f cannot contain `:'.
35174          test -f "$ac_f" ||
35175            case $ac_f in
35176            [\\/$]*) false;;
35177            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35178            esac ||
35179            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35180 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35181    { (exit 1); exit 1; }; };;
35182       esac
35183       ac_file_inputs="$ac_file_inputs $ac_f"
35184     done
35185
35186     # Let's still pretend it is `configure' which instantiates (i.e., don't
35187     # use $as_me), people would be surprised to read:
35188     #    /* config.h.  Generated by config.status.  */
35189     configure_input="Generated from "`IFS=:
35190           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35191     if test x"$ac_file" != x-; then
35192       configure_input="$ac_file.  $configure_input"
35193       { echo "$as_me:$LINENO: creating $ac_file" >&5
35194 echo "$as_me: creating $ac_file" >&6;}
35195     fi
35196
35197     case $ac_tag in
35198     *:-:* | *:-) cat >"$tmp/stdin";;
35199     esac
35200     ;;
35201   esac
35202
35203   ac_dir=`$as_dirname -- "$ac_file" ||
35204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35205          X"$ac_file" : 'X\(//\)[^/]' \| \
35206          X"$ac_file" : 'X\(//\)$' \| \
35207          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35208 echo X"$ac_file" |
35209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35210             s//\1/
35211             q
35212           }
35213           /^X\(\/\/\)[^/].*/{
35214             s//\1/
35215             q
35216           }
35217           /^X\(\/\/\)$/{
35218             s//\1/
35219             q
35220           }
35221           /^X\(\/\).*/{
35222             s//\1/
35223             q
35224           }
35225           s/.*/./; q'`
35226   { as_dir="$ac_dir"
35227   case $as_dir in #(
35228   -*) as_dir=./$as_dir;;
35229   esac
35230   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35231     as_dirs=
35232     while :; do
35233       case $as_dir in #(
35234       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35235       *) as_qdir=$as_dir;;
35236       esac
35237       as_dirs="'$as_qdir' $as_dirs"
35238       as_dir=`$as_dirname -- "$as_dir" ||
35239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35240          X"$as_dir" : 'X\(//\)[^/]' \| \
35241          X"$as_dir" : 'X\(//\)$' \| \
35242          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35243 echo X"$as_dir" |
35244     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35245             s//\1/
35246             q
35247           }
35248           /^X\(\/\/\)[^/].*/{
35249             s//\1/
35250             q
35251           }
35252           /^X\(\/\/\)$/{
35253             s//\1/
35254             q
35255           }
35256           /^X\(\/\).*/{
35257             s//\1/
35258             q
35259           }
35260           s/.*/./; q'`
35261       test -d "$as_dir" && break
35262     done
35263     test -z "$as_dirs" || eval "mkdir $as_dirs"
35264   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35265 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35266    { (exit 1); exit 1; }; }; }
35267   ac_builddir=.
35268
35269 case "$ac_dir" in
35270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35271 *)
35272   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35273   # A ".." for each directory in $ac_dir_suffix.
35274   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35275   case $ac_top_builddir_sub in
35276   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35277   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35278   esac ;;
35279 esac
35280 ac_abs_top_builddir=$ac_pwd
35281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35282 # for backward compatibility:
35283 ac_top_builddir=$ac_top_build_prefix
35284
35285 case $srcdir in
35286   .)  # We are building in place.
35287     ac_srcdir=.
35288     ac_top_srcdir=$ac_top_builddir_sub
35289     ac_abs_top_srcdir=$ac_pwd ;;
35290   [\\/]* | ?:[\\/]* )  # Absolute name.
35291     ac_srcdir=$srcdir$ac_dir_suffix;
35292     ac_top_srcdir=$srcdir
35293     ac_abs_top_srcdir=$srcdir ;;
35294   *) # Relative name.
35295     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35296     ac_top_srcdir=$ac_top_build_prefix$srcdir
35297     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35298 esac
35299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35300
35301
35302   case $ac_mode in
35303   :F)
35304   #
35305   # CONFIG_FILE
35306   #
35307
35308   case $INSTALL in
35309   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35310   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35311   esac
35312 _ACEOF
35313
35314 cat >>$CONFIG_STATUS <<\_ACEOF
35315 # If the template does not know about datarootdir, expand it.
35316 # FIXME: This hack should be removed a few years after 2.60.
35317 ac_datarootdir_hack=; ac_datarootdir_seen=
35318
35319 case `sed -n '/datarootdir/ {
35320   p
35321   q
35322 }
35323 /@datadir@/p
35324 /@docdir@/p
35325 /@infodir@/p
35326 /@localedir@/p
35327 /@mandir@/p
35328 ' $ac_file_inputs` in
35329 *datarootdir*) ac_datarootdir_seen=yes;;
35330 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35331   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35332 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35333 _ACEOF
35334 cat >>$CONFIG_STATUS <<_ACEOF
35335   ac_datarootdir_hack='
35336   s&@datadir@&$datadir&g
35337   s&@docdir@&$docdir&g
35338   s&@infodir@&$infodir&g
35339   s&@localedir@&$localedir&g
35340   s&@mandir@&$mandir&g
35341     s&\\\${datarootdir}&$datarootdir&g' ;;
35342 esac
35343 _ACEOF
35344
35345 # Neutralize VPATH when `$srcdir' = `.'.
35346 # Shell code in configure.ac might set extrasub.
35347 # FIXME: do we really want to maintain this feature?
35348 cat >>$CONFIG_STATUS <<_ACEOF
35349   sed "$ac_vpsub
35350 $extrasub
35351 _ACEOF
35352 cat >>$CONFIG_STATUS <<\_ACEOF
35353 :t
35354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35355 s&@configure_input@&$configure_input&;t t
35356 s&@top_builddir@&$ac_top_builddir_sub&;t t
35357 s&@srcdir@&$ac_srcdir&;t t
35358 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35359 s&@top_srcdir@&$ac_top_srcdir&;t t
35360 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35361 s&@builddir@&$ac_builddir&;t t
35362 s&@abs_builddir@&$ac_abs_builddir&;t t
35363 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35364 s&@INSTALL@&$ac_INSTALL&;t t
35365 $ac_datarootdir_hack
35366 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35367
35368 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35369   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35370   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35371   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35372 which seems to be undefined.  Please make sure it is defined." >&5
35373 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35374 which seems to be undefined.  Please make sure it is defined." >&2;}
35375
35376   rm -f "$tmp/stdin"
35377   case $ac_file in
35378   -) cat "$tmp/out"; rm -f "$tmp/out";;
35379   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35380   esac
35381  ;;
35382   :H)
35383   #
35384   # CONFIG_HEADER
35385   #
35386 _ACEOF
35387
35388 # Transform confdefs.h into a sed script `conftest.defines', that
35389 # substitutes the proper values into config.h.in to produce config.h.
35390 rm -f conftest.defines conftest.tail
35391 # First, append a space to every undef/define line, to ease matching.
35392 echo 's/$/ /' >conftest.defines
35393 # Then, protect against being on the right side of a sed subst, or in
35394 # an unquoted here document, in config.status.  If some macros were
35395 # called several times there might be several #defines for the same
35396 # symbol, which is useless.  But do not sort them, since the last
35397 # AC_DEFINE must be honored.
35398 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35399 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35400 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35401 # PARAMS is the parameter list in the macro definition--in most cases, it's
35402 # just an empty string.
35403 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35404 ac_dB='\\)[      (].*,\\1define\\2'
35405 ac_dC=' '
35406 ac_dD=' ,'
35407
35408 uniq confdefs.h |
35409   sed -n '
35410         t rset
35411         :rset
35412         s/^[     ]*#[    ]*define[       ][      ]*//
35413         t ok
35414         d
35415         :ok
35416         s/[\\&,]/\\&/g
35417         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35418         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35419   ' >>conftest.defines
35420
35421 # Remove the space that was appended to ease matching.
35422 # Then replace #undef with comments.  This is necessary, for
35423 # example, in the case of _POSIX_SOURCE, which is predefined and required
35424 # on some systems where configure will not decide to define it.
35425 # (The regexp can be short, since the line contains either #define or #undef.)
35426 echo 's/ $//
35427 s,^[     #]*u.*,/* & */,' >>conftest.defines
35428
35429 # Break up conftest.defines:
35430 ac_max_sed_lines=50
35431
35432 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35433 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35434 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35435 # et cetera.
35436 ac_in='$ac_file_inputs'
35437 ac_out='"$tmp/out1"'
35438 ac_nxt='"$tmp/out2"'
35439
35440 while :
35441 do
35442   # Write a here document:
35443     cat >>$CONFIG_STATUS <<_ACEOF
35444     # First, check the format of the line:
35445     cat >"\$tmp/defines.sed" <<\\CEOF
35446 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35447 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35448 b
35449 :def
35450 _ACEOF
35451   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35452   echo 'CEOF
35453     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35454   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35455   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35456   grep . conftest.tail >/dev/null || break
35457   rm -f conftest.defines
35458   mv conftest.tail conftest.defines
35459 done
35460 rm -f conftest.defines conftest.tail
35461
35462 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35463 cat >>$CONFIG_STATUS <<\_ACEOF
35464   if test x"$ac_file" != x-; then
35465     echo "/* $configure_input  */" >"$tmp/config.h"
35466     cat "$ac_result" >>"$tmp/config.h"
35467     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35468       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35469 echo "$as_me: $ac_file is unchanged" >&6;}
35470     else
35471       rm -f $ac_file
35472       mv "$tmp/config.h" $ac_file
35473     fi
35474   else
35475     echo "/* $configure_input  */"
35476     cat "$ac_result"
35477   fi
35478   rm -f "$tmp/out12"
35479  ;;
35480
35481   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35482 echo "$as_me: executing $ac_file commands" >&6;}
35483  ;;
35484   esac
35485
35486
35487   case $ac_file$ac_mode in
35488     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35489    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35490     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35491    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35492     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35493    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35494     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35495    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35496     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35497    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35498     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35499    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35500     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35501    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35502     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35503    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35504     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35505    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35506     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35507    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35508     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35509    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35510     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35511    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35512
35513   esac
35514 done # for ac_tag
35515
35516
35517 { (exit 0); exit 0; }
35518 _ACEOF
35519 chmod +x $CONFIG_STATUS
35520 ac_clean_files=$ac_clean_files_save
35521
35522
35523 # configure is writing to config.log, and then calls config.status.
35524 # config.status does its own redirection, appending to config.log.
35525 # Unfortunately, on DOS this fails, as config.log is still kept open
35526 # by configure, so config.status won't be able to write to it; its
35527 # output is simply discarded.  So we exec the FD to /dev/null,
35528 # effectively closing config.log, so it can be properly (re)opened and
35529 # appended to by config.status.  When coming back to configure, we
35530 # need to make the FD available again.
35531 if test "$no_create" != yes; then
35532   ac_cs_success=:
35533   ac_config_status_args=
35534   test "$silent" = yes &&
35535     ac_config_status_args="$ac_config_status_args --quiet"
35536   exec 5>/dev/null
35537   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35538   exec 5>>config.log
35539   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35540   # would make configure fail if this is the last instruction.
35541   $ac_cs_success || { (exit 1); exit 1; }
35542 fi
35543
35544 #
35545 # CONFIG_SUBDIRS section.
35546 #
35547 if test "$no_recursion" != yes; then
35548
35549   # Remove --cache-file and --srcdir arguments so they do not pile up.
35550   ac_sub_configure_args=
35551   ac_prev=
35552   eval "set x $ac_configure_args"
35553   shift
35554   for ac_arg
35555   do
35556     if test -n "$ac_prev"; then
35557       ac_prev=
35558       continue
35559     fi
35560     case $ac_arg in
35561     -cache-file | --cache-file | --cache-fil | --cache-fi \
35562     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35563       ac_prev=cache_file ;;
35564     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35565     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35566     | --c=*)
35567       ;;
35568     --config-cache | -C)
35569       ;;
35570     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35571       ac_prev=srcdir ;;
35572     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35573       ;;
35574     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35575       ac_prev=prefix ;;
35576     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35577       ;;
35578     *)
35579       case $ac_arg in
35580       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35581       esac
35582       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35583     esac
35584   done
35585
35586   # Always prepend --prefix to ensure using the same prefix
35587   # in subdir configurations.
35588   ac_arg="--prefix=$prefix"
35589   case $ac_arg in
35590   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35591   esac
35592   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35593
35594   ac_popdir=`pwd`
35595   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35596
35597     # Do not complain, so a configure script can configure whichever
35598     # parts of a large source tree are present.
35599     test -d "$srcdir/$ac_dir" || continue
35600
35601     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35602     echo "$as_me:$LINENO: $ac_msg" >&5
35603     echo "$ac_msg" >&6
35604     { as_dir="$ac_dir"
35605   case $as_dir in #(
35606   -*) as_dir=./$as_dir;;
35607   esac
35608   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35609     as_dirs=
35610     while :; do
35611       case $as_dir in #(
35612       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35613       *) as_qdir=$as_dir;;
35614       esac
35615       as_dirs="'$as_qdir' $as_dirs"
35616       as_dir=`$as_dirname -- "$as_dir" ||
35617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35618          X"$as_dir" : 'X\(//\)[^/]' \| \
35619          X"$as_dir" : 'X\(//\)$' \| \
35620          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35621 echo X"$as_dir" |
35622     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35623             s//\1/
35624             q
35625           }
35626           /^X\(\/\/\)[^/].*/{
35627             s//\1/
35628             q
35629           }
35630           /^X\(\/\/\)$/{
35631             s//\1/
35632             q
35633           }
35634           /^X\(\/\).*/{
35635             s//\1/
35636             q
35637           }
35638           s/.*/./; q'`
35639       test -d "$as_dir" && break
35640     done
35641     test -z "$as_dirs" || eval "mkdir $as_dirs"
35642   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35643 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35644    { (exit 1); exit 1; }; }; }
35645     ac_builddir=.
35646
35647 case "$ac_dir" in
35648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35649 *)
35650   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35651   # A ".." for each directory in $ac_dir_suffix.
35652   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35653   case $ac_top_builddir_sub in
35654   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35655   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35656   esac ;;
35657 esac
35658 ac_abs_top_builddir=$ac_pwd
35659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35660 # for backward compatibility:
35661 ac_top_builddir=$ac_top_build_prefix
35662
35663 case $srcdir in
35664   .)  # We are building in place.
35665     ac_srcdir=.
35666     ac_top_srcdir=$ac_top_builddir_sub
35667     ac_abs_top_srcdir=$ac_pwd ;;
35668   [\\/]* | ?:[\\/]* )  # Absolute name.
35669     ac_srcdir=$srcdir$ac_dir_suffix;
35670     ac_top_srcdir=$srcdir
35671     ac_abs_top_srcdir=$srcdir ;;
35672   *) # Relative name.
35673     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35674     ac_top_srcdir=$ac_top_build_prefix$srcdir
35675     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35676 esac
35677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35678
35679
35680     cd "$ac_dir"
35681
35682     # Check for guested configure; otherwise get Cygnus style configure.
35683     if test -f "$ac_srcdir/configure.gnu"; then
35684       ac_sub_configure=$ac_srcdir/configure.gnu
35685     elif test -f "$ac_srcdir/configure"; then
35686       ac_sub_configure=$ac_srcdir/configure
35687     elif test -f "$ac_srcdir/configure.in"; then
35688       # This should be Cygnus configure.
35689       ac_sub_configure=$ac_aux_dir/configure
35690     else
35691       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35692 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35693       ac_sub_configure=
35694     fi
35695
35696     # The recursion is here.
35697     if test -n "$ac_sub_configure"; then
35698       # Make the cache file name correct relative to the subdirectory.
35699       case $cache_file in
35700       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35701       *) # Relative name.
35702         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35703       esac
35704
35705       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35706 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35707       # The eval makes quoting arguments work.
35708       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35709            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35710         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35711 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35712    { (exit 1); exit 1; }; }
35713     fi
35714
35715     cd "$ac_popdir"
35716   done
35717 fi
35718
35719